유니코드 수학 및 ntheorem이 포함된 보이지 않는 수학 문자

유니코드 수학 및 ntheorem이 포함된 보이지 않는 수학 문자

lualaTeX(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}

첫 번째 ABC와 더 일반적으로 인라인 수학 모드의 그리스어 또는 라틴어 문자(앞에 오는 경우 \theorem@headerfont)는 보이지 않으며 그 이유를 전혀 모릅니다. 내가 하고 싶은 것은 '1.1. ($pi$의) 정의'입니다.

이 문제를 해결하거나 우회하는 방법을 아는 사람이 있습니까?

답변1

문제는 \theorem@headerfont호출 \theorem@checkbold과 이 매크로가

\if b\expandafter\@car\f@series\@nil\boldmath\fi

이것이 사라진 이유입니다. 사용된 글꼴은 볼드체이고 이로 인해 \boldmath작동하게 되지만 XITS Math는아니요굵은 버전.

정리 레이블에 수학을 사용하려면 ntheorem굵은 글꼴이 아닌 글꼴을 사용해야 합니다.

최신 TeX 배포판(TeX Live 2012)에는 XITS Math의 굵은 버전이 있으므로 업데이트해 볼 수 있습니다.

관련 정보