What is the default font in LaTeX beamer. I want to use it in an ooffice master layout.
[Tex/LaTex] the default font in latex beamer
beamerfonts
Related Solutions
The first part of this echoes Herbert's answer but I posted it as a comment 8 minutes prior to that answer and so claim this answer is legitimate ;). (But I will remove it if Herbert objects or if anybody else, not being Herbert, both objects and can give me a good reason why they have a right to object despite not being Herbert.)
Original Question
\usefonttheme{professionalfonts}
prevents beamer
from overwriting your fonts and is therefore needed to use specified font packages.
palatino
is deprecated, however. l2tabuen
recommends this replacement:
\usepackage{mathpazo}
\usepackage[scaled=.95]{helvet}% uncomment these if required
\usepackage{courier}
An alternative would be to use TeX Gyre's Pagella, for example.
Second Question
Since this is a different question it should really be a different question. However, you could use the description
environment rather than the definition
environment here. definition
always starts a new line for the main part of the definition. (The name of the term can go on the same line but the definition itself starts below.) While this could obviously be changed, it seems to me there are simpler options. For example:
\begin{description}
\item[Definition] Definition goes here.
\end{description}
The Code
\documentclass[xcolor=x11names,compress]{beamer}
\usepackage{graphicx}
\usepackage{tikz}
% \usepackage{palatino}% is obsolete - see l2tabu (or l2tabuen) for details
\usepackage{mathpazo}
% \usepackage[scaled=.95]{helvet}% uncomment these if required
% \usepackage{courier}
\useinnertheme{default}
\usefonttheme{professionalfonts}
\usefonttheme{serif}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\begin{frame}{Example}
\begin{description}
\item[Definition] Let $R\subseteq S\times T$ be a relation.\break
The domain of R is defined as:\break
$\operatorname{Dom} \left({\mathcal R}\right) := \left\{{s \in S: \exists t \in T: \left({s, t}\right) \in \mathcal R}\right\}$\break
and can be denoted $\operatorname{Dom} \left({\mathcal R}\right)$.
\end{description}
\end{frame}
\end{document}
Edit: I am grateful to samcarter who pointed out that the information that I provided below is also available in the beamer user guide "18.2.1 Choosing a Font Size for Normal Text".
I was able to find that in the source code of the beamer.cls file, there are relevant lines:
\def\beamer@size{{size11.clo}}
\DeclareOptionBeamer{8pt}{\def\beamer@size{{size8.clo}}}
\DeclareOptionBeamer{9pt}{\def\beamer@size{{size9.clo}}}
\DeclareOptionBeamer{10pt}{\def\beamer@size{{size10.clo}}}
\DeclareOptionBeamer{11pt}{\def\beamer@size{{size11.clo}}}
\DeclareOptionBeamer{12pt}{\def\beamer@size{{size12.clo}}}
\DeclareOptionBeamer{14pt}{\def\beamer@size{{size14.clo}}}
\DeclareOptionBeamer{17pt}{\def\beamer@size{{size17.clo}}}
\DeclareOptionBeamer{20pt}{\def\beamer@size{{size20.clo}}}
These lines indicate that the default font size is 11pt
,
and that the options Xpt
are available
for X in {8, 9, 10, 11, 12, 14, 17, 20}. Furthermore smaller
(same as 10pt
) and bigger
(same as 12pt
) are available. All options besides 10pt
, 11pt
and 12pt
require the extsize
package to be installed.
MWE: 20pt
\documentclass[20pt]{beamer}
\begin{document}
\begin{frame}{}
This is 20pt.
\end{frame}
\end{document}
MWE: 8pt
\documentclass[8pt]{beamer}
\begin{document}
\begin{frame}{}
This is 8pt.
\end{frame}
\end{document}
Best Answer
Just compile a minimal document to PDF and check the fonts in the document properties in your PDF viewer.
My viewer tell me that it's Computer Modern (CM) sans serif at 10pt size.