活动\XeTeXinterchartoks
是否也处于数学模式?我试过:
\documentclass{article}
\usepackage{fontspec}
\begin{document}
\XeTeXinterchartokenstate = 1
\newXeTeXintercharclass \myletterclass
\XeTeXcharclass `\a \myletterclass
\XeTeXcharclass `\A \myletterclass
\XeTeXinterchartoks \myletterclass \myletterclass {\hskip1em}
aAAaa % ok
\textit{aAAaa} % ok
$aAAaa$ % no
$\hbox{aAAaa}$ % ok
\end{document}
有没有办法将 interchar 标记插入数学模式字符之间?
答案1
答案很简短,恐怕不行。该\XeTeXinterchartoks
功能在数学模式下被禁用。