# Change \headheight in Beamer, Copenhagen

I want to increase the \headheight in Beamer, Copenhagen.

I tried, \setlength{\headheight}{10in}, did not seem to work.

• Aug 20, 2013 at 21:15

Edit: My previous answer was actually valid with the Sidebar outer theme, it is not as simple with Split, which is used by Copenhagen. It explains the error you got, since \beamer@headheight is not defined in Split.

You can use the following

\makeatletter

\leavevmode%
\@tempdimb=2.4375ex%
\ifnum\beamer@subsectionmax<\beamer@sectionmax%
\multiply\@tempdimb by\beamer@sectionmax%
\else%
\multiply\@tempdimb by\beamer@subsectionmax%
\fi%
\fi
\ifdim\@tempdimb>0pt%
\end{beamercolorbox}%
\end{beamercolorbox}%
\fi%
}
\makeatother


You define a new length \beamer@headheight you can modify easily. This is a modification of the Split outer theme that will check if your new head height is larger than the one set by Beamer; if it is true, it will use this new length. If not, it won't change anything to avoid to mess up the headline. If you always want to force the headline to have the \beamer@headheight height, you can simply use

\makeatletter

\leavevmode%

• I am getting the following error, Undefined control sequence. <argument> \beamer@height \setlength{\beamer@headheight}{10pt}