Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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.

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

1 Answer 1

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

share|improve this answer
    
In there anything regarding TeX you don't know? =:-) –  Sveinung Feb 9 at 11:37
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.