[OS X TeX] Problem with unicode-math and amsmath after migration towards Mountain Lion

Herbert Schulz herbs at wideopenwest.com
Fri Feb 15 15:38:19 EST 2013


On Feb 15, 2013, at 11:22 AM, Franck Pastor <franck.pastor at skynet.be> wrote:

> 
> Le 15 févr. 2013 à 02:07, Herbert Schulz <herbs at wideopenwest.com> a écrit :
> 
>> 
>> On Feb 14, 2013, at 7:03 PM, Franck Pastor <franck.pastor at skynet.be> wrote:
>> 
>>> 
>>> Le 15 févr. 2013 à 01:48, Herbert Schulz a écrit :
>>> 
>>>> 
>>>> On Feb 14, 2013, at 5:38 PM, Franck Pastor <franck.pastor at skynet.be> wrote:
>>>> 
>>>>> 
>>>>> Le 15 févr. 2013 à 00:25, Franck Pastor a écrit :
>>>>> 
>>>>>> Hello,
>>>>>> 
>>>>>> I've just migrated from Snow Leopard towards Mountain Lion (both with MacTeX 2012), and now most of  my LuaLaTeX files will not work. More precisely those who call simultaneously amsmath and unicode-math. An example:
>>>>>> 
>>>>>> % !TEX encoding = UTF-8 Unicode
>>>>>> % !TEX TS-program = LuaLaTeX
>>>>>> \documentclass{article}
>>>>>> %\usepackage{amsmath}
>>>>>> \usepackage{unicode-math}
>>>>>> \setmathfont{latinmodern-math}% latin modern math font installed recently
>>>>>> \begin{document}
>>>>>> 	Try.
>>>>>> \end{document}
>>>>>> 
>>>>>> This file produces the following message of the console (nothing of that sort appears in the log file):
>>>>>> 
>>>>>> ./try.tex:7: Undefined control sequence.
>>>>>> \__lltxmath_set_mathchar:NN ...def #1\lua_now_x:n 
>>>>>>                                             {lualatex.math.print_class...
>>>>>> l.7 \begin{document}
>>>>>> 
>>>>>> ? h
>>>>>> The control sequence at the end of the top line
>>>>>> of your error message was never \def'ed. If you have
>>>>>> misspelled it (e.g., `\hobx'), type `I' and the correct
>>>>>> spelling (e.g., `I\hbox'). Otherwise just continue,
>>>>>> and I'll forget about whatever was undefined.
>>>>>> 
>>>>>> It looks like a problem with LuaLaTeX itself, but I don't have a clue about what it is, and why it happens after my migration to Mountain Lion. Any idea?
>>>>>> 
>>>>>> Thanks in advance,
>>>>>> 
>>>>>> Franck Pastor
>>>>> 
>>>>> Sorry, you have to take out the comment symbol before the loading of amsmath, to make the error appear. Like this:
>>>>> 
>>>>> % !TEX encoding = UTF-8 Unicode
>>>>> % !TEX TS-program = LuaLaTeX
>>>>> \documentclass{article}
>>>>> \usepackage{amsmath}
>>>>> \usepackage{unicode-math}
>>>>> \setmathfont{latinmodern-math}% latin modern math font installed recently
>>>>> \begin{document}
>>>>> 	Try.
>>>>> \end{document}
>>>> 
>>>> 
>>>> Howdy,
>>>> 
>>>> Sigh... no problem compiling that file here. Do you have latinmodern-math.otf installed in one of the standard Font folders; e.g., what does Font Book show? The name of the font has changed a bit back?
>>>> 
>>>> Good Luck,
>>>> 
>>>> Herb Schulz
>>>> (herbs at wideopenwest dot com)
>>>> 
>>> 
>>> Yes, latinmodern-math.otf is installed, not in the Standard Font folder but  in the texmf-dist/fonts/opentype folder of TeXLive 2012, and LuaLaTeX recognises it. This file is not the culprit anyway, since the program runs without problem if I comment out the line "\usepackage{amsmath}".
>>> 
>>> The puzzling thing is that rigourously the same program works perfectly well with Snow Leopard and not for Mountain Lion.
>>> 
>>> Maybe something to do with the Migration Assistant? I should try to reinstall MacTeX from scratch…
>> 
>> 
>> Howdy,
>> 
>> Before doing that try running FixMacTeX2012.pkg in /Applications/TeX. Don't know if that fixes things but there seem to be problems it fixes when migrating to Mountain Lion.
>> 
>> Good Luck,
>> 
>> Herb Schulz
>> (herbs at wideopenwest dot com)
> 
> I've done that, to no avail. So I reinstalled MacTeX and… it solved the problem. Then I discovered that the culprit was the last version of the lualatex-math package. I had indeed updated this package in the meantime, via TeXLive-utility, and the bug reappeared. Restoring the older MacTeX-2012 version of this package definitely cleaned up the mess.
> 
> This bug didn't show up on the other computer  (which runs under Snow Leopard) simply because I didn't update lualatex-math on it…
> 
> So… Problem solved :-) Thanks! And I will make a bug report to the author of lualatex-math.
> 
> Franck Pastor


Howdy,

Strange... I'm completely up to date---ran TeX Live Utility this AM---and I didn't have a problem compiling your sample document. I'm using unicode-math version 0.7a and compiling with LuaLaTeX. 

Good Luck,

Herb Schulz
(herbs at wideopenwest dot com)






More information about the MacOSX-TeX mailing list