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.

I'm currently using the beamer PaloAlto theme with a headline and sidebar on each slide. I used the command \setbeamersize{sidebar width left=1.7cm} to fit the table of contents in the sidebar. The command changes the width of the sidebar, but it doesn't change the width of the darker area in the upper left corner of the slide where the sidebar overlaps the headline. I was wondering what parameters I need to change to make the width of the dark overlap area the same as the width of the sidebar?

share|improve this question

1 Answer 1

up vote 6 down vote accepted

The sidebar outer theme uses \beamer@sidebarwidth to calculate this width in the headline template, so you'll have to redefine it. Add to the preamble

\makeatletter
\setlength\beamer@sidebarwidth{1.7cm}
\makeatother

A complete example:

\documentclass{beamer}
\usetheme[sidebar]{PaloAlto}

\setbeamersize{sidebar width left=1.7cm}

\makeatletter
\setlength\beamer@sidebarwidth{1.7cm}
\makeatother

\begin{document}

\begin{frame}
test
\end{frame}

\end{document}

enter image description here

Of course, it's better to define a new length and use this length to modify both widths consistently:

\documentclass{beamer}
\usetheme[sidebar]{PaloAlto}

\newlength\sidebarwd
\setlength\sidebarwd{1.7cm}

\setbeamersize{sidebar width left=\sidebarwd}

\makeatletter
\setlength\beamer@sidebarwidth{\sidebarwd}
\makeatother

\begin{document}

\begin{frame}
test
\end{frame}

\end{document}
share|improve this answer
    
Thanks so much I would never have figured that out. –  Sarah May 4 '12 at 17:35

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.