6

Because beamer is more powerful, I am learning to use it to prepare my presentation. But, I prefer the default font style in \documentclass{slides}. So, I have two questions:

  1. What is the defaults font in \documentclass{slides}?
  2. How to use it in beamer?

Thanks.

4
  • Please see this answer.
    – Masroor
    Commented Feb 9, 2014 at 2:15
  • 7
    @MMA: No, this answers a question about font size.
    – Speravir
    Commented Feb 9, 2014 at 2:21
  • For your second question use the search in tex.sx: tex.stackexchange.com/….
    – Speravir
    Commented Feb 9, 2014 at 2:39
  • It is TeX's standard font: Computer Modern. Commented Feb 9, 2014 at 9:26

1 Answer 1

8

You can use the lcmss fonts (and lcmtt for typewriter type), but you have to make them arbitrarily scalable:

\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}

enter image description here

You can also load the lxfonts that were created by Claudio Beccari, inspired by the lcmss fonts, with some differences.

\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}

enter image description here

1
  • 1
    In there anything regarding TeX you don't know? =:-)
    – Sveinung
    Commented Feb 9, 2014 at 11:37

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .