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.

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.

share|improve this question
add comment

1 Answer 1

up vote 13 down vote accepted

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}

enter image description here

share|improve this answer
    
Unfortunately this solution does not work well with some themes, like Rochester, which I use with the option height=\baselineskip. In this case the title frame height is completely ignored. –  Romildo Mar 9 '12 at 19:15
    
@Romildo: in this case, simply add \addtobeamertemplate{frametitle}{\vspace{-1.6\baselineskip}} to my solution. –  Gonzalo Medina Mar 9 '12 at 22:10
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.