[Tex/LaTex] How to decrease the vertical spacing between formula and text in beamer

beamerspacing

Too much spacing between formula and text in beamer. When I insert the command \vspace{-0.5cm} before the formula, the spacing decreases. But the command \vspace{-0.5cm} after the formula has no effect on the spacing between the formula and the text after it. How to solve it?

Best Answer

You can influence the spacing with \abovedisplayshortskip and \belowdisplayshortskip. However the default spacing above the equations is already pretty tight, I would not decrease it further.

\documentclass{beamer}

\title{Title}

\begin{document}
\begin{frame}
text above 
\[
    \int_a^b f(x)\,dx= f(\xi)(b-a).
\] 
Text after
\end{frame}

\begin{frame}
\setlength{\abovedisplayshortskip}{-1pt}
\setlength{\belowdisplayshortskip}{0pt} 
text above 
\[
    \int_a^b f(x)\,dx= f(\xi)(b-a).
\]
Text after
\end{frame}
\end{document}
Related Question