[Date Index]
[Thread Index]
[Author Index]
Re: Latex and \sum
*To*: mathgroup at smc.vnet.net
*Subject*: [mg77194] Re: Latex and \sum
*From*: "Martin Grossman" <martin.grossman at gmail.com>
*Date*: Tue, 5 Jun 2007 06:52:28 -0400 (EDT)
*References*: <f3of1o$ong$1@smc.vnet.net> <465FE63D.4070405@gmail.com>
Hi,
Yes you are right, but I didnt find any solution to this...:-( Any ideas?
martin
On 6/1/07, Jean-Marc Gulliet <jeanmarc.gulliet at gmail.com> wrote:
> Martin Grossman wrote:
> > Hi there,
> >
> > In Mathematica 6 I am having trouble using command
> > ToExpression["input", TeXForm].
> > I want to use LaTex sign sum : \sum
> > When I used ToExpression["\\sum _{i=a}^b x_i",TeXForm] it doesnt work.
> > Other symbols like \frac{}{} work... Any solution?
> >
> > Thanks
> > martin grossman
> >
>
> The issue, though that does not solve the problem, seems to be related
> to the way Mathematica parses the "i=a" part.
>
> In[1]:= ToExpression["\\sum_{i}^b x_i", TeXForm]
>
> Out[1]= Sum[Subscript[x, i], {i, 1, b}]
>
> In[2]:= ToExpression["\\sum_{i=1}^b x_i", TeXForm]
>
> During evaluation of In[2]:= ToExpression::esntx:Could not parse \
> \sum_{i=1}^b x_i as Mathematica input.
>
> Out[2]= $Failed
>
> In[3]:= ToExpression["\\sum_{a}^b x_i", TeXForm]
>
> Out[3]= b*Subscript[x, i]
>
> In[4]:= ToExpression[ToString[\sum _ {n = 1}^m n^2], TeXForm]
>
> During evaluation of In[4]:= ToExpression::esntx:Could not parse \sum \
> _{n=1}^m n^2 as Mathematica input.
>
> Out[4]= $Failed
>
> In[5]:= ToExpression[
> ToString[\frac {(x + y)^2} {\sqrt {x y}}], TeXForm]
>
> Out[5]= (x + y)^2/Sqrt[xy]
>
> Regards,
> Jean-Marc
>
Prev by Date:
**NDSolve, Do loop, and Plot**
Next by Date:
**how to transform a list in a sequence of arguments?**
Previous by thread:
**Re: Latex and \sum**
Next by thread:
**Re: Latex and \sum**
| |