# Piecewise highlighting in beamer presentation with sub bullets

I want to piecewise highlight the items of an itemsize and gray out previous items. For this task, i use the following code:

\documentclass{beamer}

\setbeamercovered{invisible}
\setbeamercovered{again covered={\opaqueness<1->{30}}}

\usepackage[english]{babel}

\begin{document}

\begin{frame}

\begin{itemize}[<+>]
\item A
\item B
\item C
\begin{itemize}
\item CA
\item CB
\end{itemize}
\end{itemize}

\end{frame}

\end{document}


Now the problem is that CA and CB are not properly grayed out. I want to them to gray out as if they were items of the parent itemize.

• Welcome to TeX.se and thanks for posting a nice minimal example with your question! – Alan Munn Feb 20 '18 at 14:21

First Possibility:

\documentclass{beamer}

\setbeamercovered{invisible}
\setbeamercovered{again covered={\opaqueness<1->{30}}}

\usepackage[english]{babel}

\begin{document}

\begin{frame}

\begin{itemize}[<+>]
\item A
\item B
\item<.-> C
\begin{itemize}
\item CA
\item CB
\end{itemize}
\end{itemize}

\end{frame}

\end{document}


Second possibility:

\documentclass{beamer}

\setbeamercovered{invisible}
\setbeamercovered{again covered={\opaqueness<1->{30}}}

\begin{document}

\begin{frame}

\begin{itemize}[<+>]
\item A
\item B
\item C
\item<.->[]
\begin{itemize}
\item CA
\item CB
\end{itemize}
\end{itemize}

\end{frame}

\end{document}


• Is it also possible to gray out C while CA and CB are displayed? – K. Sama Feb 20 '18 at 14:23
• @K.Sama Please see my updated answer. – user36296 Feb 20 '18 at 14:43