Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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?

share|improve this question
    
So you want the text to appear just below the \frametitle, and then the equation is vertically centred on the slide? The simple frame: \begin{frame} \frametitle{Frame title} Here is some text \[ f(x) = ax^2 + bx + c \] \end{frame} produces a centred equation and text immediately above it. –  Werner Sep 26 '12 at 19:18
add comment

1 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?

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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