2

As a follow up to an earlier question I asked, I need to be able to set the normal font size to 20pt for a Beamer presentation. The catch is, I can't use

\documentclass[20pt]{beamer}

because I want to set this font size inside a custom theme that the end users can just load without needing to supply the extra [20pt].

I already tried

\setbeamerfont{normal text}{size=20pt}

but no joy!

2
  • Have you tried something like \setbeamerfont{normal text}{series=\normalfont, size=\fontsize{20}{24}} or \AtBeginDocument{\fontsize{20}{24}\selectfont} in your beamer theme? Commented Nov 28, 2013 at 15:36
  • @samcarter Thanks for the suggestions. Neither one worked, unfortunately.
    – Joseph R.
    Commented Nov 28, 2013 at 22:33

1 Answer 1

2

Based on the code from previous question:

\documentclass{beamer}
\usetheme{Madrid}

\defbeamertemplate*{footline}{my footline}
{
    \ifnum \insertpagenumber=1
      \leavevmode%
      \hbox{%
      \begin{beamercolorbox}[wd=\paperwidth,ht=2.25ex,dp=1ex,center]{}%
        % empty environment to raise height
      \end{beamercolorbox}}%
      \vskip0pt%
    \else
      \leavevmode%
      \hbox{%
      \begin{beamercolorbox}[wd=\paperwidth,ht=2.25ex,dp=1ex,center]{title in head/foot}%
        \usebeamerfont{title in head/foot}\insertshorttitle
      \end{beamercolorbox}}%
      \vskip0pt%
    \fi
}

\setbeamertemplate{footline}[my footline]

\AtBeginDocument{\fontsize{20}{24}\selectfont}

\title{Some Title}

\begin{document}

\begin{frame}
\titlepage
\end{frame}

\begin{frame}{Frame 1}
This is a normal frame.
\end{frame}
\end{document}

enter image description here

You must log in to answer this question.

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