Too much space below displayed equation in itemization when using \uncover in the equation

Anonymous avatarAnonymous created an issue

When a displayed equation (or, more usefully, parts of it) are revealed using \uncover, too much space is left below it before the next \item. Small example:

\documentclass{beamer} \usepackage[english]{babel}

\begin{document}

\begin{frame} \begin{itemize} \item asdga gdagag asdngda dga dad gaddsandsg adsg \item asdga gdagag asdngda dga dad gaddsandsg adsg \item [ x+y ] \item asdga gdagag asdngda dga dad gaddsandsg adsg \item asdga gdagag asdngda dga dad gaddsandsg adsg \item [ \uncover<1->{x+y} ] \item asdga gdagag asdngda dga dad gaddsandsg adsg \end{itemize} \end{frame}

\end{document}

The vertical space below the second displayed equation is considerably larger than the vertical space below the first one.

Comments (5)

  1. Martin Osborne

    I am the author of the previous post. I didn't intend to post anonymously. I also didn't understand how to show code nicely. Here is the code in my post:

    \documentclass{beamer}
    \usepackage[english]{babel}
    
    \begin{document}
    
    \begin{frame}
    \begin{itemize}
    \item asdga gdagag asdngda dga dad gaddsandsg adsg
    \item asdga gdagag asdngda dga dad gaddsandsg adsg
    \item
    \[
    x+y
    \]
    \item asdga gdagag asdngda dga dad gaddsandsg adsg
    \item asdga gdagag asdngda dga dad gaddsandsg adsg
    \item
    \[
    \uncover<1->{x+y}
    \]
    \item asdga gdagag asdngda dga dad gaddsandsg adsg
    \end{itemize} 
    \end{frame}
    
    \end{document}
    
  2. Joseph Wright

    The problem comes about because a special (whatsit) is needed to do the hiding, and the one at the end of the display environment interferes with spacing. There isn't a good solution to this with the LaTeX2e kernel: one of the big drivers for me working on LaTeX3! As such, I don't thing there is a good solution at the beamer end: WONTFIX more out of frustration than anything wrong with the report!

  3. Log in to comment
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.