18

My talk slides use a mostly-white background image (supplied by organizers) that has some visual patterns at the bottom. I would like to tell beamer to not cover these patterns (as it makes text less readable).

I can set horizontal margins with \setbeamersize.

But how can I set vertical margins for all my slides?

2
  • @Papiro: I need to set vertical margins. Commented Apr 21, 2013 at 3:45
  • Beamer moves the text area down so it won't overlap with the title bar, but \textheight is not resized. This can be seen by putting \includegraphics[height=\textheight]{example-image} in a normal and plain frame. It seems the only solution to your problem is not to put anything at the bottom of the frame.
    – erik
    Commented Apr 24, 2013 at 11:54

2 Answers 2

16

For the top margin you may try to place a \vspace in the frametitle:

\setbeamertemplate{frametitle}{
    \vspace{2cm}\\
    \insertframetitle
}

and for the bottom margin, a \vspace in the footline:

\setbeamertemplate{footline}{
    \vspace{0.5cm}
}
4
  • Does not work for me. Commented Apr 22, 2013 at 9:00
  • 5
    A MWE would be useful. However, beamer loads the geometry package, so you can play around with the following and set the best result for you (it accepts negative values): \geometry{ paperwidth=\the\paperwidth, paperheight=\the\paperheight, hmargin=1cm,% vmargin=0cm,% head=0.5cm, % headsep=0pt,% foot=0.5cm % }
    – cacamailg
    Commented Apr 22, 2013 at 12:29
  • I didn't mentioned that but my solution can't work with a [plain] frame because there isn't any frame title nor footline in this kind of frame. Aren't you in this case?
    – GuillaumeM
    Commented Apr 22, 2013 at 15:01
  • Your footline solution worked perfectly for me. Thank you!
    – Luke Davis
    Commented Feb 21, 2018 at 9:27
10

Putting vertical space before the frame title does not solve the problem for the frames without a title.

You could instead try increasing the \headsep:

\addtolength{\headsep}{0.6cm}
2
  • 1
    In my case this breaks the frames with a title by shifting the titlebar downwards, which is unwanted. Commented Oct 8, 2020 at 15:04
  • It also moves the footer.
    – dremodaris
    Commented Apr 19 at 15:50

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .