beamer add tag
samcarter
How to alert only the current item without also alerting all subitems of it?

```
\documentclass{beamer}

\begin{document}
	
\begin{frame}
  \begin{itemize}
  \item<alert@1> test
  	\begin{itemize}
    \item test
      \begin{itemize}
      \item<alert@1> test
      \end{itemize}
    \end{itemize}
  \end{itemize}  
\end{frame}	
	
\end{document}
```

![Screenshot 2021-11-18 at 00.10.52.png](/image?hash=db7e22d7888b4287af2403b8180b3d58a7cb9e1bc0df56f658c9e14918d9e060)
Top Answer
samcarter
You can build a custom alert command which will only change the colour of the current item:

```
\documentclass{beamer}

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

\begin{document}
	
\begin{frame}
	\begin{itemize}
  \item<myalert@1> test
  	\begin{itemize}
    \item test
      \begin{itemize}
      \item<myalert@1> test
      \end{itemize}
    \end{itemize}
  \end{itemize}  
\end{frame}	
	
\end{document}
```

![Screenshot 2021-11-18 at 00.06.12.png](/image?hash=99b59d7af8818e59a152b146d0b97ea85c0cada48236990a7b14a98715908ff7)

This room is for discussion about this question.

Once logged in you can direct comments to any contributor here.

Enter question or answer id or url (and optionally further answer ids/urls from the same question) from

Separate each id/url with a space. No need to list your own answers; they will be imported automatically.