18  Vertical alignment within slides

Vertical alignment in individual slides

The contents of Beamer slides are vertically centered within slides. This is particularly noticeable if there is very little material in the slide.

The options t, c or b to \begin{frame} cause the contents of the slide to be aligned with the top, center or bottom of the slide, respectively. The default option is c.

The following example illustrate this:

\documentclass{beamer} 
\usetheme{Singapore} 
\begin{document} 
 
\begin{frame}[t] 
  \frametitle{Top alignment} 
 
This is the contents of the slide. 
 
\end{frame} 
\end{document} 

[image]


\documentclass{beamer} 
\usetheme{Singapore} 
\begin{document} 
 
\begin{frame}[c]    % [c] is the default 
  \frametitle{Center alignment (default)} 
 
This is the contents of the slide. 
 
\end{frame} 
\end{document} 

[image]


\documentclass{beamer} 
\usetheme{Singapore} 
\begin{document} 
 
\begin{frame}[b] 
  \frametitle{Bottom alignment} 
 
This is the contents of the slide. 
 
\end{frame} 
\end{document} 

[image]


Vertical alignment for the entire document

You may set the vertical alignment policy for the entire document by giving one of the options t or b to the \documentclass. For instance:

\documentclass[t]{beamer} 

will cause the contents of all slides to be top-aligned. You can override this for individual slides by using the c or b options with \begin{frame}.