1

I am trying to remove space when using \only in that particular slide, because it will produce a warning of overfull hbox.

Please consider this MWE:

\documentclass{beamer}

\usetheme{Copenhagen}

\begin{document}

\begin{frame}
\begin{block}{}
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut puruselit, vestibulum ut, placerat ac, adipiscing vitae, felis. Curabiturdictum gravida mauris. Nam arcu libero, nonummy eget, consectetuer id, vulputate a, magna. Donec vehicula augue euneque. Pellentesque habitant morbi tristique senectus et netus etmalesuada fames ac turpis egestas. Mauris ut leo. Cras viverrametus rhoncus sem. Nulla et lectus vestibulum urna fringillaultrices. Phasellus eu tellus sit amet tortor gravida placerat.Integer sapien est, iaculis in, pretium quis, viverra ac, nunc.

\begin{enumerate}[<+->]
    \item
    \begin{itemize}[<+->]
        \item In the 4th slide, it should not include the following item space:
        \begin{align*}
            a(x+1)^2-3x\uncover<+->{&=ax^2+2ax+a-3x=ax^2+x+1\\}
            \only<4>{&\implies ax^2+(2a-3)x+a=ax^2+x+1\\}
            \uncover<+->{&\implies\left\lbrace\begin{aligned}&a=a\\&2a-3=1\\&a=1\end{aligned}\right.}
        \end{align*}
        \item More text here.
    \end{itemize}
\end{enumerate}
\end{block}
\end{frame}
 
\end{document}

Look at the end of the 4th slide:

The problem

After the big left brace, there is an extra blue space because of the following \item More text here.

Is there any way to remove that extra space? The final output should look like:

What I want

I want solutions including the (probably) correct use of \only, \uncover, relative syntax etc.

3
  • 1
    You like the beamer package 😄😄😄. – Sebastiano Jul 22 '20 at 22:15
  • 1
    @Sebastiano this quarantine puts me a high pressure on my shoulders... 🙄🤣🤣 – manooooh Jul 22 '20 at 22:32
  • 1
    No, don't think about the pressure on your shoulders. – Sebastiano Jul 22 '20 at 22:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.