Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am preparing a Beamer slide with two simple equations. I wanna include this in a block as shown below.

\begin{block}{Equation}
\begin{align*}
r &= a + b \\
s &= c + d
\end{align*}
\end{block}

It looks alright, the only problem is that it wastes so much space above and below the equations. I tried vspace{-2cm} but it did not have any effect. Any other idea how I could reduce the empty area above and below the equations. Might it be possible that the block size is fixed and thats the problem why it takes so much space?

Many thanks for your help

share|improve this question

Setting \abovedisplayskip=0pt fixes the problem.

\begin{block}{Equation}
\abovedisplayskip=0pt
\begin{align*}
r &= a + b \\
s &= c + d
\end{align*}
\end{block}

Sources: One

share|improve this answer

Actually this is not a problem and moreover its the right way to do it. Beamer does not waste that space -- it simply centers everything vertically. Put something underneath and the equation will go higher. If you don't want to put anything below then you simply don't need that space. In that case it's better to center everything so it was symmetric and therefore more pleasing to the eye.

share|improve this answer

You must log in to answer this question.

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