我使用 OpenSans 字体和光字体样式。对于文本有效,但在数学模式下无效。我试过了\setbeamerfont{math text}{series=\fontseries{l}}
,但它没有改变任何东西。
我也想在数学模式中使用浅色字体样式。
这是我的 MWE:
\documentclass{beamer}
\usepackage[default, scale=0.95]{opensans}
\usepackage{siunitx}
\setbeamerfont{math text}{series=\fontseries{l}} % does not change anything
\setbeamerfont{normal text}{series=\fontseries{l}}
\AtBeginDocument{\usebeamerfont{normal text}}
\begin{document}
\begin{frame}{Some Math and Text}
here is some text in OpenSans light \\
but $math\,mode$ is not in light: \si{\micro\second}
\end{frame}
\end{document}
答案1
答案2
如果你不介意一切都设置为轻量级:
\documentclass{beamer}
\usepackage[default, scale=0.95]{opensans}
\usepackage{siunitx}
\setbeamerfont{math text}{series=\fontseries{l}} % does not change anything
\setbeamerfont{normal text}{series=\fontseries{l}}
\AtBeginDocument{\usebeamerfont{normal text}}
\renewcommand{\mddefault}{l}
\begin{document}
\begin{frame}{Some Math and Text}
here is some text in OpenSans light \\
but $math\,mode$ is not in light: \si{\micro\second}
\end{frame}
\end{document}