![LaTeX Beamer - 讓數學模式下的文字也成為襯線](https://rvso.com/image/420047/LaTeX%20Beamer%20-%20%E8%AE%93%E6%95%B8%E5%AD%B8%E6%A8%A1%E5%BC%8F%E4%B8%8B%E7%9A%84%E6%96%87%E5%AD%97%E4%B9%9F%E6%88%90%E7%82%BA%E8%A5%AF%E7%B7%9A.png)
我在投影機投影片中使用無襯線字體,但在方程式中使用常規襯線數學字體。但是,如果我\text{}
在數學模式下使用,則使用無襯線字體。我想強制在使用時使用襯線字體\text{}
。
這是一個 MWE
\documentclass{beamer}
\usefonttheme[onlymath]{serif}
\begin{document}
\begin{frame}
I would like to make $f_\text{LO}$ look like $f_\mathrm{LO}$.
\end{frame}
\end{document}
更新:我發現我不應該重新定義\text{}
,而應該\textrm{}
在數學模式下使用襯線字體。透過這樣做,我仍然可以使用添加常規文字\text{}
。