Alerting current item
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
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}
I've backed out the partial fixes here: best to look at this again after the urgent update for another bug.
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?
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}
