在我的beamer
文档中,我无法切换到cmr
公式,因为否则它们看起来很奇怪。
最小工作示例:
\documentclass{mybeamer}
\usepackage{amsmath}
\newcommand*{\myfont}{\fontfamily{cmr}\selectfont}
\begin{document}
\begin{frame}
Normal Text.
{\myfont
\begin{equation*}
f(x) = \sin(x)
\end{equation*}
}
\end{frame}
\end{document}
mybeamer 类:
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{mybeamer}[2010/12/30 v0.5]
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{beamer}}
\ProcessOptions
\LoadClass{beamer}
\renewcommand{\familydefault}{phv}
\renewcommand{\sfdefault}{phv}
\renewcommand{\normalsize}{\fontsize{10.5pt}{12.5pt}\xiiiv}
\DeclareFixedFont{\x}{T1}{phv}{m}{n}{10}
\DeclareFixedFont{\xb}{T1}{phv}{b}{n}{10}
\newfont{\xiiiv}{phvr8t at 30pt}
\newfont{\xiiivb}{phvb8t at 8.5pt}
我怎样才能使这种字体改变发生?