1. Vedran Miletić
  2. beamer
Issue #225 resolved

\alert in Math mode fails with < sign

Anonymous created an issue

The minimal example

\documentclass{beamer}
\usepackage{amsmath}

\begin{document}
    \[
    g \alert{<} 1
    \]
\end{document}

fails with the error message

Runaway argument? \end {alertenv} 1 ] \end {document} ! File ended while scanning use of \beamer@altenvsort.

Adding a whitespace before the <, i.e.

\documentclass{beamer}
\usepackage{amsmath}

\begin{document}
    \[
    g \alert{ <} 1
    \]
\end{document}

solves the issue.

Comments (1)

  1. Log in to comment