[Tex/LaTex] Beamer Block: White Space When Using Math

beamermath-modespacing

I want to reduce the white space (above and below) when I insert an equation environment in a beamer block.

\documentclass{beamer}
\usetheme{Antibes}
\usepackage{amsmath}

\begin{document}

\begin{frame}

\begin{block}{Separation of variables}
\setlength\abovedisplayskip{0pt}
\begin{equation}
1 + 2 = 3
\end{equation}
\end{block}

\end{frame}

\end{document}

enter image description here

I searched the web of course but the solutions I found do not seem to work (like \setlength\abovedisplayskip{0pt}).

What I found and should have worked:

Best Answer

A displayed equation should never be at the top of anything. The problem is that a paragraph is started and then the equation is typeset.

\documentclass{beamer}
\usetheme{Antibes}
\usepackage{amsmath}

\begin{document}

\begin{frame}

\begin{block}{Separation of variables}
\vspace*{-\baselineskip}\setlength\belowdisplayshortskip{0pt}
\begin{equation}
1 + 2 = 3
\end{equation}
\end{block}

\begin{block}{Separation of variables}
Some text
\end{block}

\end{frame}

\end{document}

enter image description here