[texhax] unicode-math plus braket
Arno Trautmann
Arno.Trautmann at gmx.de
Tue Feb 22 11:21:22 CET 2011
Hi all,
I just found out about a somewhat funny bug …
Consider the following document:
\documentclass{scrartcl}
\usepackage{
braket,
unicode-math
}
%\setmathfont{xits-math}
\begin{document}
test
\begin{figure}
\caption{$\ket{}$}
\end{figure}
\listoffigures
\end{document}
This works fine on every run. Now taking \setmathfont, the first run is ok, but the second one crashes when \listoffigures tries to typeset the lof:
./test.lof:1: Undefined control sequence.
<argument> ...$\mathinner {|{}\Udelimiter 5\symum
_allsym "027E9\scan _stop:...
l.1 ... 5\symum _allsym "027E9\scan _stop: }$}}{1}
?
This error stays until the lof is deleted, even when commenting out setmathfont and unicode-math. It happens also with Asana Math, so seems not to be font-related. The \ket in the caption is fine, though.
Now … can anybody explain this to me? Or even provide a solution? ;)
A first guess: A problem with expl3 names when reading the .lof file (wrong catcode of _)?
cheers
Arno
--
Schon gehört? GMX hat einen genialen Phishing-Filter in die
Toolbar eingebaut! http://www.gmx.net/de/go/toolbar
More information about the texhax
mailing list