[Tex/LaTex] Slide number in beamer Berkeley header
beamer
Could someone please tell me how to get the page numbers to appear in the header line of the Berkeley theme?
Thanks
Best Answer
Although beamer provides many hooks for modifying the way things look, the author couldn't think of every possible tweak, and so some things that you might think would be simple are not. This is one of those cases, since it involves hunting through the beamer source code (specifically in beamerouterthemesidebar.sty) to find the definition of the frametitle and then modifying a copy of the relevant code in the preamble of the document.
Warsaw internally uses beamerboxesrounded which applies the bmb@transition shading to add color between the title and the body parts of blocks. Here's the original definition (found in the file beamerbaseboxes.sty):
The width of the bar can be set with the width= option passed to the \usetheme{Berkeley} command. In this example I've set it unreasonably wide for demonstration purposes. You can set the size of the text in the sidebar using \setbeamerfont{section in sidebar}{size= ...}.
\documentclass{beamer}
\usetheme[width=2in]{Berkeley}
\setbeamerfont{section in sidebar}{size=\Huge}
\begin{document}
\begin{frame}{A frame}
\end{frame}
\end{document}
Best Answer
Although
beamer
provides many hooks for modifying the way things look, the author couldn't think of every possible tweak, and so some things that you might think would be simple are not. This is one of those cases, since it involves hunting through thebeamer
source code (specifically inbeamerouterthemesidebar.sty
) to find the definition of the frametitle and then modifying a copy of the relevant code in the preamble of the document.