I would like to place two math lines in a beamer block, as two separately
centered lines.
I know that I could do this using two distinct equation environments, but it would be nicer to use a single environment like gather, or align (though align is not exactly what I want). When I do this (with gather), an ugly space appears at the top of the block, before the first equation. See below. How can I get rid of this space while still using gather or align (perhaps I should be using another environment altogether?)
\begin{block}{Separation of variables}
\begin{equation*}
\eps u'''' - (yu')' = \lambda u,
\end{equation*}
\begin{equation*}
u''(0)=u'''(0)=0 \quad \text{(Free),} \qquad u(1)=u''(1)=0 \quad\text{(Clamped)}
\end{equation*}
\end{block}
\begin{block}{Separation of variables}
\begin{gather*}
\eps u'''' - (yu')' = \lambda u,\\
u''(0)=u'''(0)=0 \quad \text{(Free),} \qquad u(1)=u''(1)=0 \quad\text{(Clamped)}
\end{gather*}
\end{block}
Gives me:

Any ideas?

\abovedisplayskipand friends are defined in files likesize10.clo,orsize12.clo, depending on the font size, so you cannot change their value in the preamble using a simple\setlength. However, you can use something like this in the preamble:\AtBeginDocument{\setlength\abovedisplayskip{0pt}}– Gonzalo Medina Sep 12 '11 at 22:36\abovedisplayskipto be zero only at the start of a Beamer block. – Luke Maurer Dec 07 '11 at 22:39\belowdisplayskip, as well as\afterdisplayshortskipandbelowdisplayshortskip. – Andrew Uzzell Sep 06 '12 at 10:10align*. Is there a way to put the\addtobeamertemplate{block begin}{\setlength\abovedisplayskip{0pt}}command directly inside the preambule ? – remjg Nov 08 '16 at 18:29