I'm trying to read the source of Beamer default outer theme (the file beamerouterthemedefault.sty
). In line 144 there is this code:
\defbeamertemplate*{frametitle}{default}[1][left]
{
\ifbeamercolorempty[bg]{frametitle}{}{\nointerlineskip}%
% more things here
}
My question is simple: what is the purpose of this \nointerlineskip
, and how is this connected to the background of the frametitle
Beamer-color?
Edit: I checked on the repository on Bitbucket, and couldn't find any hints there (I hoped for some enlightening commit message found through "blame" – but no, nothing.)
Best Answer
In the definition of
beamer@frameslide
environment inbeamerbaseframe.sty
, there is an emptyvbox
above theframetitle
:Now assume we remove
\nointerlineskip
line from the template code forframetitle
, then there will be vertical space between the emptyvbox
andframetitle
:The vertical space comes from
\lineskip
, since by default the height of theframetitle
box is larger than\baselineskip
.When the backgoround color of the
frametitle
is empty, this extra vertical space is usually unobtrusive. But if the background color exists, and furthermore if the headline also exists, this space looks redundant:To get rid of this extra space, we may also patch
beamer@frameslide
, removing the extravbox{}
.