2

When I use \pause in \[ \] formula in the theorem environment, I get an unexpected extra space below the formula; see Theorem: Pause (formula). Now I remove it using \vspace{-0.60}cm, as in Theorem: Pause and Negative VSpace.

How to remove it without using \vspace?

\documentclass[beamer]{standalone}
\usetheme{CambridgeUS}

\begin{document}
\begin{frame}
  \begin{theorem}[No Pause]
    \[
      a + b = c
    \]
  \end{theorem}

  \begin{theorem}[Pause (formula)]
    \[
      a + b = \pause c
    \]
  \end{theorem}

  \begin{theorem}[Pause and Negative VSpace]
    \[
      a + b = \pause c
    \]
    \vspace{-0.60cm}
  \end{theorem}

  \begin{theorem}[Pause (text)]
    a + b = \pause c
  \end{theorem}
\end{frame}
\end{document}

beamer-pause-space

hengxin
  • 2,371

1 Answers1

3

I haven't traced fully and I'm not sure it's completely robust in all cases but you can keep the pause mechanics within the formula, so avoid starting a line after the display, by adding a group

enter image description here

\documentclass[beamer]{standalone}
\usetheme{CambridgeUS}

\begin{document}
\begin{frame}
  \begin{theorem}[No Pause]
    \[
      a + b = c
    \]
  \end{theorem}

  \begin{theorem}[Pause (formula)]
    \[
      {a + b = \pause c}
    \]
  \end{theorem}

  \begin{theorem}[Pause and Negative VSpace]
    \[
      a + b = \pause c
    \]
    \vspace{-0.60cm}
  \end{theorem}

  \begin{theorem}[Pause (text)]
    a + b = \pause c
  \end{theorem}
\end{frame}
\end{document}
David Carlisle
  • 757,742