MathGroup Archive 2009

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: ToExpression[..,TexForm] does not seem to work on some Latex commands?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg104398] Re: [mg104351] ToExpression[..,TexForm] does not seem to work on some Latex commands?
  • From: "Nasser M. Abbasi" <nma at 12000.org>
  • Date: Fri, 30 Oct 2009 02:19:24 -0500 (EST)
  • References: <20091029064833.6LNIU.751671.imail@eastrmwml34>
  • Reply-to: "Nasser M. Abbasi" <nma at 12000.org>

From: "Bob Hanlon"

> Put a space after sum in the TeX
>
> s = TeXForm[Sum[f[n], {n, 1, m}]]
>
> \sum _{n=1}^m f(n)
>
> Note the space after sum in the above output
>
> ToExpression["\\sum _{n=1}^m f(n)", TeXForm]
>
> Sum[f[n], {n, 1, m}]
>
> ToExpression["\\sum _ {n=1}^m f(n)", TeXForm]
>
> Sum[f[n], {n, 1, m}]
>
>
> Bob Hanlon
>


hello;

I did.

With or without space, I get the same error. Which version you used? I am 
using version 7

In[1]:= ToExpression["\\sum _{n=1}^m f(n)", TeXForm]
During evaluation of In[1]:= ToExpression::esntx:Could not parse \sum 
_{n=1}^m f(n) as Mathematica input.
Out[1]= $Failed

Thanks
--Nasser




  • Prev by Date: Re: Opportunities and Player Pro
  • Next by Date: Re: ToExpression[..,TexForm] does not seem to work on
  • Previous by thread: ToExpression[..,TexForm] does not seem to work on some Latex commands?
  • Next by thread: Re: ToExpression[..,TexForm] does not seem to work on some Latex commands?