Page Layout ⇒ beamer | Change Spacing between Frame Title and Content
beamer | Change Spacing between Frame Title and Content
I work quite a long time with LaTeX and the beamer class, even created my own template for work. But this problem I can't solve. It looks ridiculous, if the page is full, sometime exceeds the space, but there is about 1cm space between title and content. It's still remaining, even if I remove the frame title (of course the frame title space becomes available, but still there is a spacing between header and content). The biggest problem is, it seems to be identical for all templates. Therefore I have no clue, where to start. Can anyone tell me, where I can define the frame title (I found it in inner and outer sometimes) with the spacing after (which I never found)?
Thanks in advance!
André
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
beamer | Change Spacing between Frame Title and Content
Code: Select all
\documentclass{beamer}
\usepackage[english]{babel}
\usepackage{blindtext}
\usetheme{Madrid}
\begin{document}
\begin{frame}
\frametitle{text}
\blindtext
\blindtext
\blindtext
\end{frame}
\end{document}
\frametitle
. Everything is full again.Now change to
\usetheme{Rochester}
. The space for title is bigger than Madrid. Even if you do not have title, space is still reserved for it.Nikolay
beamer | Change Spacing between Frame Title and Content
I posted a crude solution over here.
I am still looking for the exact name of that space though.
beamer | Change Spacing between Frame Title and Content
Code: Select all
\frametitle{Model evaluation - Temperature}
\vspace{-15.5pt}
% add whatever here, text, or figs bla bla
beamer | Change Spacing between Frame Title and Content
It seems the correct way to do this is to add this before the begin document
Code: Select all
\addtobeamertemplate{frametitle}{\vspace*{-1.4cm}}{\vspace*{0.2cm}}
- Stefan Kottwitz
- Site Admin
- Posts: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
Re: beamer | Change Spacing between Frame Title and Content
welcome to the forum, and thank you for telling us your solution!
Stefan
beamer | Change Spacing between Frame Title and Content
Look for the frametitle definition and change the vskip to lower the title and add a vspace at the end to move the content upwards (see comments below).
Code: Select all
\defbeamertemplate*{frametitle}{default}[1][left]
{%
\ifbeamercolorempty[bg]{frametitle}{}{\nointerlineskip}%
\@tempdima=\textwidth%
\advance\@tempdima by\beamer@leftmargin%
\advance\@tempdima by\beamer@rightmargin%
\begin{beamercolorbox}[sep=0.3cm,#1,wd=\the\@tempdima]{frametitle}
\usebeamerfont{frametitle}%
\vbox{}\vskip-1ex%
\if@tempswa\else\csname beamer@fte#1\endcsname\fi%
\strut\insertframetitle\par%
{%
\ifx\insertframesubtitle\@empty%
\else%
{\usebeamerfont{framesubtitle}\usebeamercolor[fg]{framesubtitle}\strut\insertframesubtitle\par}%
\fi
}%
\vskip-3ex% Added this to lower the title
\if@tempswa\else\vskip-.3cm\fi%
\end{beamercolorbox}%
\vspace*{-3.5cm} % Added this to move the content upwards
}