When compiling this code with lualaTeX (from TeXLive 2011),
\documentclass{minimal}
\usepackage{unicode-math}
\usepackage{ntheorem,thmtools}
\setmathfont{xits-math}
\makeatletter
\newtheoremstyle{mathfonttest}
{\item[\theorem@headerfont $ABC$ DEF $:!?$ ]} % 1. option
{\item[$ABC$ DEF ]} % 2. option
\makeatother
\declaretheorem[style=mathfonttest]{test}
\begin{document}
\begin{test} % 1. option, ABC invisible
Something.
\end{test}
\begin{test}[triggers 2. option] % 2. option, ABC visible
Something.
\end{test}
\end{document}
the first ABC, and more generally any greek or latin character in inline math mode – when preceded by \theorem@headerfont – is invisible and I have no clue why. What I want to do is use math code in optional or alternative description to a definition like '1.1. Definition (of $pi$)'.
Does anybody know how to solve this or circumvent it?
lualatexrejected the file. Everything worked after I deleted the invisible characters, though. – Ian Thompson Sep 1 '12 at 15:21