How to set up beamer in a document so that frame titles are centered? Most of the themes seem to use left aligned frame titles.
Asked
Active
Viewed 1.7k times
13
-
Duplicate: http://stackoverflow.com/questions/2365539/centering-titles-when-using-the-beamer-class-in-latex – Adobe May 25 '15 at 07:55
1 Answers
22
You can control the title alignment by using the second optional argument of the frametitle template (See page 75 of the beamer documentation):
\documentclass{beamer}
\usetheme{CambridgeUS}
\setbeamertemplate{frametitle}[default][center]
\begin{document}
\begin{frame}
\frametitle{test}
\end{frame}
\end{document}

Gonzalo Medina
- 505,128
-
Unfortunately this solution does not work well with some themes, like
Rochester, which I use with the optionheight=\baselineskip. In this case the title frame height is completely ignored. – Romildo Mar 09 '12 at 19:15 -
2@Romildo: in this case, simply add
\addtobeamertemplate{frametitle}{\vspace{-1.6\baselineskip}}to my solution. – Gonzalo Medina Mar 09 '12 at 22:10