6

I am trying to use alert within the AMS-math align environment, so that sets of equations uncover sequentially and are highlighted. I would expect something like this to work:

\begin{align}
\alert<1>{a &= b+c} \\
\alert<1>{a &= b+c} \\ \pause
\alert<2>{a &= b+c} \\
\alert<2>{a &= b+c} \\
\end{align}

by highlighting the first two equations in the first slide and the next two in the next slide. I am doing something wrong? Or is there a different way to get this to work?

5

It's explained in the Beamer manual, section 23.4:

\documentclass{beamer}
\begin{document}
\begin{frame}
\begin{align}
\uncover<1->{\alert<1>{a} &\alert<1>{= b+c} \\}
\uncover<1->{\alert<1>{a} &\alert<1>{= b+c} \\}
\uncover<2->{\alert<2>{a} &\alert<2>{= b+c} \\}
\uncover<2->{\alert<2>{a} &\alert<2>{= b+c} \\}
\notag
\end{align}
\end{frame}
\end{document}

This leaves a vertical space at the end of the display, a \vspace{-1.2\baselineskip} or so can remove it.

You can't say \alert<1>{a&=b+c} because this confuses the align scanning mechanism.

  • Thanks! This is great. Do you know if there is a more streamlined way of doing this? Or maybe a way to automate this process? – tchakravarty Nov 28 '11 at 12:15
  • Is there anything like \alert just with different color? Something like \exmple or anything like that? – Royi Jun 10 '17 at 12:29

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.