XeLaTeX:腳註中的 \mathrm 使用與 \setmathfont [關閉] 指定的字體不同的字體

XeLaTeX:腳註中的 \mathrm 使用與 \setmathfont [關閉] 指定的字體不同的字體

在下面的 XeLaTeX 範例中,

\documentclass{article}
\usepackage{fontspec,unicode-math}
\setmainfont{Libertinus Serif}
\setmathfont{Libertinus Math}
\begin{document}
$\mathrm{d}$: d\footnote{$\mathrm{d}$: d}
\end{document}

\mathrm正文中的 d 很好(兩個 d 看起來相同),而腳註中的 d 沒有使用正確的字體(第一個 d 不同)。這裡發生了什麼以及我該如何解決它?

不同的數學

相關內容