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

Herbert Schulz herbs at wideopenwest.com
Thu Feb 14 19:55:54 EST 2013


On Feb 14, 2013, at 6:48 PM, Herbert Schulz <herbs at wideopenwest.com> wrote:

> 
> 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)


Howdy,

Forgot to mention, since it's LuaLaTeX you are working with, that you might try to remove ~/Library/texlive/2012/texmf-var/luatex-cache and rerun the typeset with lualatex. That will force a rebuild of the cache and maybe things will work again.

Good Luck,

Herb Schulz
(herbs at wideopenwest dot com)






More information about the MacOSX-TeX mailing list