From: Nasser M. Abbasi on
Version 7.

Some Latex commands are converted ok to Mathematica expressions, such as:

ToExpression["\\sqrt{3}", TeXForm]
ToExpression["\\frac{a}{b}", TeXForm]

But the next Latex "sum" command does not seem to work. Is this a known
"issue" or is there a trick for one command?

I take the output of the TexForm command, and then try to convert it back to
Mathematica expression, but the conversion back fails:

s = TeXForm[Sum[f[n], {n, 1, m}]]
ToExpression[ToString[s], TeXForm]

Even when I type the Latex output by hand, it does not work:

ToExpression["\\sum_{n=1}^m f(n)", TeXForm]

the error is :

Syntax::sntxi:Incomplete expression; more input is needed.
ToExpression::esntx:Could not parse \sum_{n=1}^m f(n) as Mathematica input.

--Nasser


From: Nasser M. Abbasi on
Thanks, I can then only assume that this was a bug in version 7.0.0 and it
was fixed in 7.0.1

my system says:

"7.0 for Microsoft Windows (32-bit) (November 10, 2008)"

rant about version numbers follows:

Interesting that $Version prints 7.0 on my system like it does on yours
below, but the date is different, mine says nov 10 2008 and yours says
"February 19, 2009".

I assume then you knew, somehow, from the date shown on your end that this
is 7.0.1? It would have been nice if the version number would also have
changed/updated to reflect this and not just the date!

I noticed for sometime that WRI have something about showing version
numbers, it is almost impossible to find what version numbers some of their
products are at for some reason.

For example, I spent sometime the other day trying to find exactly what
version number is the current Mathematica at, and I could not.

I think it is 7.0.2, or 7.2.0, but I am guessing as there is no place on
WRI web site which says anything about this.

If any one knows where to find this info, please let me know, as I'd like to
keep my Mathematica version number page correct here

http://12000.org/my_notes/compare_mathematica/index.htm


--Nasser

----- Original Message -----
From: "Bob Hanlon" <hanlonr(a)cox.net>
To: "Nasser M. Abbasi" <nma(a)12000.org>; <mathgroup(a)smc.vnet.net>
Sent: Thursday, October 29, 2009 7:33 PM
Subject: Re: ToExpression[..,TexForm] does not seem to work on
some Latex commands?


>
> I have version 7.0.1
>
> $Version
>
> 7.0 for Mac OS X x86 (64-bit) (February 19, 2009)
>
> s = TeXForm[Sum[f[n], {n, 1, m}]]
>
> \sum _{n=1}^m f(n)
>
> ToExpression["\\sum _{n=1}^m f(n)", TeXForm]
>
> Sum[f[n], {n, 1, m}]
>
>
> Bob Hanlon
>
> ---- "Nasser M. Abbasi" <nma(a)12000.org> wrote:
>
> =============
>
> 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
>
>


From: Nasser M. Abbasi on

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



From: Nasser M. Abbasi on



>
> The latest Mathematica version is available at
>
> http://www.wolfram.com/products/mathematica/latestversion/
>
> Your version number is under the menu
>
> Mathematica | About Mathematica...
>
>
> Bob Hanlon

Thanks Bob.

I do not know how to found this, becuase when I go to

http://www.wolfram.com/products/mathematica/index.html

and from there, I do not see a link to this "latest version" page, and that
where I was stuck.

But thanks for the link, good to know there is a page there with this info,
even though it seems unlinked from the main product page.

--Nasser



>
> ---- "Nasser M. Abbasi" <nma(a)12000.org> wrote:
>
> =============
> Thanks, I can then only assume that this was a bug in version 7.0.0 and it
> was fixed in 7.0.1
>
> my system says:
>
> "7.0 for Microsoft Windows (32-bit) (November 10, 2008)"
>
> rant about version numbers follows:
>
> Interesting that $Version prints 7.0 on my system like it does on yours
> below, but the date is different, mine says nov 10 2008 and yours says
> "February 19, 2009".
>
> I assume then you knew, somehow, from the date shown on your end that this
> is 7.0.1? It would have been nice if the version number would also have
> changed/updated to reflect this and not just the date!
>
> I noticed for sometime that WRI have something about showing version
> numbers, it is almost impossible to find what version numbers some of
> their
> products are at for some reason.
>
> For example, I spent sometime the other day trying to find exactly what
> version number is the current Mathematica at, and I could not.
>
> I think it is 7.0.2, or 7.2.0, but I am guessing as there is no place on
> WRI web site which says anything about this.
>
> If any one knows where to find this info, please let me know, as I'd like
> to
> keep my Mathematica version number page correct here
>
> http://12000.org/my_notes/compare_mathematica/index.htm
>
>
> --Nasser
>
> ----- Original Message -----
> From: "Bob Hanlon" <hanlonr(a)cox.net>
> To: "Nasser M. Abbasi" <nma(a)12000.org>; <mathgroup(a)smc.vnet.net>
> Sent: Thursday, October 29, 2009 7:33 PM
> Subject: Re: ToExpression[..,TexForm] does not seem to work on
> some Latex commands?
>
>
>>
>> I have version 7.0.1
>>
>> $Version
>>
>> 7.0 for Mac OS X x86 (64-bit) (February 19, 2009)
>>
>> s = TeXForm[Sum[f[n], {n, 1, m}]]
>>
>> \sum _{n=1}^m f(n)
>>
>> ToExpression["\\sum _{n=1}^m f(n)", TeXForm]
>>
>> Sum[f[n], {n, 1, m}]
>>
>>
>> Bob Hanlon
>>
>> ---- "Nasser M. Abbasi" <nma(a)12000.org> wrote:
>>
>> =============
>>
>> 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
>>
>


From: Nasser M. Abbasi on



>
> The latest Mathematica version is available at
>
> http://www.wolfram.com/products/mathematica/latestversion/
>
> Your version number is under the menu
>
> Mathematica | About Mathematica...
>
>
> Bob Hanlon

Thanks Bob.

I do not know how to found this, becuase when I go to

http://www.wolfram.com/products/mathematica/index.html

and from there, I do not see a link to this "latest version" page, and that
where I was stuck.

But thanks for the link, good to know there is a page there with this info,
even though it seems unlinked from the main product page.

--Nasser



>
> ---- "Nasser M. Abbasi" <nma(a)12000.org> wrote:
>
> =============
> Thanks, I can then only assume that this was a bug in version 7.0.0 and it
> was fixed in 7.0.1
>
> my system says:
>
> "7.0 for Microsoft Windows (32-bit) (November 10, 2008)"
>
> rant about version numbers follows:
>
> Interesting that $Version prints 7.0 on my system like it does on yours
> below, but the date is different, mine says nov 10 2008 and yours says
> "February 19, 2009".
>
> I assume then you knew, somehow, from the date shown on your end that this
> is 7.0.1? It would have been nice if the version number would also have
> changed/updated to reflect this and not just the date!
>
> I noticed for sometime that WRI have something about showing version
> numbers, it is almost impossible to find what version numbers some of
> their
> products are at for some reason.
>
> For example, I spent sometime the other day trying to find exactly what
> version number is the current Mathematica at, and I could not.
>
> I think it is 7.0.2, or 7.2.0, but I am guessing as there is no place on
> WRI web site which says anything about this.
>
> If any one knows where to find this info, please let me know, as I'd like
> to
> keep my Mathematica version number page correct here
>
> http://12000.org/my_notes/compare_mathematica/index.htm
>
>
> --Nasser
>
> ----- Original Message -----
> From: "Bob Hanlon" <hanlonr(a)cox.net>
> To: "Nasser M. Abbasi" <nma(a)12000.org>; <mathgroup(a)smc.vnet.net>
> Sent: Thursday, October 29, 2009 7:33 PM
> Subject: Re: ToExpression[..,TexForm] does not seem to work on
> some Latex commands?
>
>
>>
>> I have version 7.0.1
>>
>> $Version
>>
>> 7.0 for Mac OS X x86 (64-bit) (February 19, 2009)
>>
>> s = TeXForm[Sum[f[n], {n, 1, m}]]
>>
>> \sum _{n=1}^m f(n)
>>
>> ToExpression["\\sum _{n=1}^m f(n)", TeXForm]
>>
>> Sum[f[n], {n, 1, m}]
>>
>>
>> Bob Hanlon
>>
>> ---- "Nasser M. Abbasi" <nma(a)12000.org> wrote:
>>
>> =============
>>
>> 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
>>
>