我想手动修复拉丁现代数学中某些大写字母对(例如 UF 和 YX)之间长期存在的间距问题。由于这些字母对代表实际乘积,因此我不想\mathit{UF}
每次都这样写。以下是我的尝试:
\documentclass{article}
\usepackage{unicode-math}
\directlua{
fonts.handlers.otf.addfeature {
name = "lmkern",
type = "kern",
data = {
[0x1D434] = { [0x1D435] = -100 },
[0x1D448] = { [0x1D439] = -100 },
[0x1D44C] = { [0x1D44B] = -100 }
}
}
}
\setmathfont[RawFeature=+lmkern]{Latin Modern Math}
\begin{document}
\showoutput
$AB_{AB}$\quad$UF_{UF}$\quad$YX_{YX}$
\end{document}
输出的相关位是:
....\TU/LatinModernMath(1)/m/n/10