       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:= ToExpression["\\sum_{i}^b x_i", TeXForm]
>
> Out= Sum[Subscript[x, i], {i, 1, b}]
>
> In:= ToExpression["\\sum_{i=1}^b x_i", TeXForm]
>
> During evaluation of In:= ToExpression::esntx:Could not parse \
> \sum_{i=1}^b x_i as Mathematica input.
>
> Out= $Failed > > In:= ToExpression["\\sum_{a}^b x_i", TeXForm] > > Out= b*Subscript[x, i] > > In:= ToExpression[ToString[\sum _ {n = 1}^m n^2], TeXForm] > > During evaluation of In:= ToExpression::esntx:Could not parse \sum \ > _{n=1}^m n^2 as Mathematica input. > > Out=$Failed
>
> In:= ToExpression[
>   ToString[\frac {(x + y)^2} {\sqrt {x y}}], TeXForm]
>
> Out= (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