由于beamer
功能更强大,我正在学习使用它来准备演示文稿。但是,我更喜欢 中的默认字体样式\documentclass{slides}
。因此,我有两个问题:
- 默认字体是什么
\documentclass{slides}
? - 如何在 中使用它
beamer
?
谢谢。
答案1
您可以使用lcmss
字体(以及lcmtt
打字机类型),但必须使它们可以任意缩放:
\documentclass{beamer}
\usefonttheme{professionalfonts} % don't load the usual fonts
\DeclareFontFamily{OT1}{lcmss}{\hyphenchar\font45 }
\DeclareFontShape{OT1}{lcmss}{m}{n}{<-> lcmss8}{}
\DeclareFontShape{OT1}{lcmss}{m}{sl}{<-> lcmssi8}{}
\DeclareFontShape{OT1}{lcmss}{m}{it}{<-> ssub*lcmss/m/sl}{}
\DeclareFontShape{OT1}{lcmss}{bx}{n}{<-> lcmssb8}{}
\DeclareFontShape{OT1}{lcmss}{m}{ui}{<-> ssub*cmr/m/ui}{}
\DeclareFontShape{OT1}{lcmss}{bx}{ui}{<-> sub*cmr/m/ui}{}
\DeclareFontFamily{OT1}{lcmtt}{\hyphenchar\font=-1 }
\DeclareFontShape{OT1}{lcmtt}{m}{n}{<-> cmtt8}{}
\DeclareFontShape{OT1}{lcmtt}{m}{it}{<-> cmitt10}{}
\DeclareFontShape{OT1}{lcmtt}{m}{ui}{<-> ssub*cmtt/m/it}{}
\DeclareFontShape{OT1}{lcmtt}{bx}{ui}{<-> ssub*cmtt/m/it}{}
\renewcommand\rmdefault{lcmss}
\renewcommand\sfdefault{lcmss}
\begin{document}
\begin{frame}[fragile]
\frametitle{Title}
Some text in a beamer \emph{slide} is \textbf{here}.
\begin{verbatim}
hu*{\lll
\end{verbatim}
\end{frame}
\end{document}
您还可以加载lxfonts
由 Claudio Beccari 创作的、受lcmss
字体启发的但有一些差异的字体。
\documentclass{beamer}
\usefonttheme{professionalfonts} % don't load the usual fonts
\usepackage{lxfonts}
\begin{document}
\begin{frame}[fragile]
\frametitle{Title}
Some text in a beamer \emph{slide} is \textbf{here}.
\begin{verbatim}
hu*{\lll
\end{verbatim}
\end{frame}
\end{document}