LaTeX forum ⇒ Page Layoutbeamer | Change Spacing between Frame Title and Content Topic is solved

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Posts: 1
Joined: Thu Sep 15, 2011 12:04 pm

beamer | Change Spacing between Frame Title and Content

Postby 4ndre » Thu Sep 15, 2011 12:10 pm


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!


User avatar
Posts: 69
Joined: Mon Sep 05, 2011 10:27 am

Postby justdeath » Mon Sep 19, 2011 9:08 pm

This is theme specific. Consider this:
  1. \documentclass{beamer}
  2. \usepackage[english]{babel}
  3. \usepackage{blindtext}
  4. \usetheme{Madrid}
  6. \begin{document}
  7. \begin{frame}
  8. \frametitle{text}
  9. \blindtext
  10. \blindtext
  11. \blindtext
  12. \end{frame}
  13. \end{document}

There is very small space between title and content. Now comment out the \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.

Last edited by cgnieder on Wed May 15, 2013 9:01 pm, edited 1 time in total.
Reason: added inline code markup

Posts: 1
Joined: Wed May 15, 2013 8:38 pm

Postby on4aa » Wed May 15, 2013 8:41 pm

I experience exactly the same problem.
I posted a crude solution over here.
I am still looking for the exact name of that space though.

Posts: 1
Joined: Tue Feb 25, 2014 7:47 am

Postby jatin » Tue Feb 25, 2014 7:50 am

Hi, just found this really easy fix, just add \vspace{} after \frametitle:
  1. \frametitle{Model evaluation - Temperature}
  2. \vspace{-15.5pt}
  3. % add whatever here, text, or figs bla bla

Posts: 1
Joined: Sat Nov 21, 2015 7:22 pm

Postby womullan » Sat Nov 21, 2015 7:26 pm

I have added this vspace to many of my slides and looked several times now for a proper generic solution for all slides ! I finally figured it out

It seems the correct way to do this is to add this before the begin document

  1. \addtobeamertemplate{frametitle}{\vspace*{-1.4cm}}{\vspace*{0.2cm}}

the first vspace moves the Frame title the second moves the text coming after the frame title so this allows me to move the title up or down and fix the space between title and body in one go !

User avatar
Stefan Kottwitz
Site Admin
Posts: 9582
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Sun Nov 22, 2015 1:22 am

Hi womullan,

welcome to the forum, and thank you for telling us your solution!

Stefan admin

Posts: 1
Joined: Mon Aug 05, 2019 6:44 pm

Postby mkcons » Mon Aug 05, 2019 6:50 pm

Was having the same problem. In case it can help anyone, I was able to fix it by modifying the beamerouterthemedefault.sty file.

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] [Expand/Collapse] [Download] ({untitled.tex})
  1. \defbeamertemplate*{frametitle}{default}[1][left]
  2. {%
  3. \ifbeamercolorempty[bg]{frametitle}{}{\nointerlineskip}%
  4. \@tempdima=\textwidth%
  5. \advance\@tempdima by\beamer@leftmargin%
  6. \advance\@tempdima by\beamer@rightmargin%
  7. \begin{beamercolorbox}[sep=0.3cm,#1,wd=\the\@tempdima]{frametitle}
  8. \usebeamerfont{frametitle}%
  9. \vbox{}\vskip-1ex%
  10. \if@tempswa\else\csname beamer@fte#1\endcsname\fi%
  11. \strut\insertframetitle\par%
  12. {%
  13. \ifx\insertframesubtitle\@empty%
  14. \else%
  15. {\usebeamerfont{framesubtitle}\usebeamercolor[fg]{framesubtitle}\strut\insertframesubtitle\par}%
  16. \fi
  17. }%
  18. \vskip-3ex% Added this to lower the title
  19. \if@tempswa\else\vskip-.3cm\fi%
  20. \end{beamercolorbox}%
  21. \vspace*{-3.5cm} % Added this to move the content upwards
  22. }

Return to “Page Layout”

Who is online

Users browsing this forum: No registered users and 4 guests