[Tex/LaTex] Centering an equation vertically

beamerequationspositioning

I would like to put an equation at the center of a page in beamer (viewing the page from top to bottom rather than left to right – I already know how to center an equation going from left to right). I would also like to have some text above the equation. How can I do both at once?

Best Answer

beamer frames are vertically centered by default unless you have \documentclass[t]{beamer} or \begin{frame}[t].
You can use \vfil and \vfill to accomplish a vertically centered equation and some text that is vertically centered between the top and the equation.

Code

\documentclass{beamer}
%\usepackage{lua-visual-debug} % used to show output debug
\begin{document}
\begin{frame}{Title}
Text over equation
\vfill
\(equatio^n\)
\vfill
\end{frame}
\end{document}

Output

output without lua-visual-debug output with lua-visual-debug

Is this what you want?

Related Question