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

Franck Pastor franck.pastor at skynet.be
Fri Feb 15 02:03:28 CET 2013


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…







More information about the macostex-archives mailing list