beamer icon indicating copy to clipboard operation
beamer copied to clipboard

Alerting current item

Open josephwright opened this issue 13 years ago • 4 comments

Originally reported by: mike_km (Bitbucket: mike_km, GitHub: Unknown)


Hello,

when using \setbeamercovered{transparent}, and writing

\begin{itemize}[+-| alert@+]
\item item 1
    \begin{itemize}
    \item item1.1
    \item item1.2
    \end{itemize}
\item item2
\end{itemize}

items 1.1 and 1.2 are highlighted together with item 1.

Some people might consider this a feature, but I tend to see this as a bug. At least after reading the manual one would not expect this behavior.

Bye, Mike


  • Bitbucket: https://bitbucket.org/rivanvx/beamer/issue/138

josephwright avatar Jun 19 '11 02:06 josephwright

Original comment by Joseph Wright (Bitbucket: josephwright, GitHub: josephwright):


Complete example showing incorrect behaviour:

\documentclass{beamer}
\setbeamercovered{transparent}
\begin{document}
\begin{frame}
\begin{itemize}[<+-| alert@+>]
\item item 1
    \begin{itemize}
    \item item1.1
    \item item1.2
    \end{itemize}
\item item2
\end{itemize}
\end{frame}

\end{document}

josephwright avatar Sep 11 '11 06:09 josephwright

I've backed out the partial fixes here: best to look at this again after the urgent update for another bug.

josephwright avatar Jan 05 '17 08:01 josephwright

This issue is harder than I previously thought. An \item starts up an actionenv environment, which is closed by the next \item on the same level or \endtrivlist. The sublist is totally contained in this level of environment. Can we find a way to end up actionenv once a sublist is followed by an \item?

louisstuart96 avatar Nov 14 '17 04:11 louisstuart96

A quick workaround:

\documentclass{beamer}
\setbeamercovered{transparent}

\newenvironment{myalertenv}{\only{\setbeamercolor{itemize \beameritemnestingprefix item}{fg=alerted text.fg}\color{alerted text.fg}}}{}

\begin{document}
\begin{frame}
\begin{itemize}[<+-| myalert@+>]
\item item 1
    \begin{itemize}
    \item item1.1
    \item item1.2
    \end{itemize}
\item item2
\end{itemize}
\end{frame}

\end{document}

document

samcarter avatar Dec 06 '21 12:12 samcarter