I want to change only the \frametitle
font size. Changing this, is the height of the frame title going to decrease also? Because I want that.
I'm using the Warsaw
theme.
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.
Sign up to join this communityI want to change only the \frametitle
font size. Changing this, is the height of the frame title going to decrease also? Because I want that.
I'm using the Warsaw
theme.
Yes; changing the font size will also affect the height of the frametitle
template. However, depending on the theme used the effect will be different; using Warsaw
:
An image of the default frametitle height:
and with \tiny
font size (as in the example code):
\documentclass{beamer}
\usetheme{Warsaw}
\setbeamerfont{frametitle}{size=\tiny}
\begin{document}
\begin{frame}
\frametitle{A test frame}
Test
\end{frame}
\end{document}
And using CambridgeUS
:
\documentclass{beamer}
\usetheme{CambridgeUS}
\setbeamerfont{frametitle}{size=\tiny}
\begin{document}
\begin{frame}
\frametitle{A test frame}
Test
\end{frame}
\end{document}
An image of the default frametitle height:
and with \tiny
font size (as in the example code):
The change can be locally applied to some specific frame(s), as the following example illustrates:
\documentclass{beamer}
\usetheme{Warsaw}
\begin{document}
\begin{frame}
\frametitle{A test frame}
Test
\end{frame}
{
\setbeamerfont{frametitle}{size=\tiny}
\begin{frame}
\frametitle{A test frame}
Test
\end{frame}
}
\begin{frame}
\frametitle{A test frame}
Test
\end{frame}
\end{document}
\frametitle
command. Setting the frametitle
font as in, for example, \setbeamerfont{frametitle}{size=\tiny}
will save you having to type \tiny
for every title.
– Gonzalo Medina
Feb 27 '15 at 12:46
ignorenonframetext
class option. After surrounding the \setbeamerfont
line with \mode<presentation>{...}
it all worked fine.
– Matthew Leingang
Feb 27 '19 at 14:17