17

I would like to put some content, for example a beamercolorbox exactly in the middle of the page (horizontally/vertically centered) and then some other content on the bottom of a frame. Centering just the colorbox is easy:

\begin{frame}[plain]
  \vfill
  \begin{beamercolorbox}[center]{title}
     example text
  \end{beamercolorbox}
  \vfill
\end{frame}

How can I now insert some more content at the bottom without disturbing the vertical alignment?

Any help is appreciated!

13

May be it's a little bit overkill but it works. Compile twice to watch the result.

\documentclass{beamer}
\usepackage{tikz}

\begin{document}
\begin{frame}[plain]
\begin{tikzpicture}[overlay, remember picture]
\node[anchor=center] at (current page.center) {
\begin{beamercolorbox}[center]{title}
     example text
  \end{beamercolorbox}};
\end{tikzpicture}
\end{frame}
\end{document}

enter image description here

| improve this answer | |
  • Thank you, works like a charm! Maybe you should add for those who are going to read this in the future, that outside of the tikzpicture environment you can add to the frame whatever you want without affecting the alignment. – r_faszanatas Oct 23 '14 at 15:12
  • @r_faszanatas What's the reason for a beamercolorbox? If you just want to put some text somewhere, a TiKZ node without the inner beamercolorbox is enough. And if you want to add some background to your slides, there exist better solutions. – Ignasi Oct 23 '14 at 15:30
  • There's no particular reason for the colorbox, thanks for pointing this out. I have modified my question accordingly. The problem occured when designing a custom title page for a beamer presentation, I would like to have the title etc. centered in the middle of the page and then add some additional content to the bottom left. I'm adding background via beamer's background template. – r_faszanatas Oct 23 '14 at 18:02
16

I simply add a frame like this for my last slide. the [c] part centers the text vertically, while the \centering command is in charge of the horizontal centering. The template used in all your slides will be preserved.

\begin{frame}[c]{ }
\centering
Thank you!
\end{frame}
| improve this answer | |
  • 3
    Welcome to TeX.SX! You can have a look at our starter guide to familiarize yourself further with our format. How does this address the problem of having some more text at the very bottom? – yo' Dec 2 '14 at 23:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.