[Tex/LaTex] Beamer: Highlighting subsubsections in TOC

beamersectioningtable of contents

I borrowed the following code from this answer (provided by @Gonzalo) to my earlier question and now I want to show highlighted subsubsections as sections and subsections. Any help will be highly appreciated. Thanks in advance for your help.

\documentclass[unknownkeysallowed, compress]{beamer}
%\documentclass[compress]{beamer}
\usetheme{Warsaw}
\usepackage{multicol}

\colorlet{mycolor}{orange!80!black}% change this color to suit your needs

\title[Intro]{Introduction}
\author{The Author}

\AtBeginSection[]{
  \setbeamercolor{section in toc shaded}{use=structure,fg=structure.fg}
  \setbeamercolor{section in toc}{fg=mycolor}
  \setbeamercolor{subsection in toc shaded}{fg=black}
  \setbeamercolor{subsection in toc}{fg=mycolor}
  \setbeamercolor{subsubsection in toc shaded}{fg=black}
  \setbeamercolor{subsubsection in toc}{fg=mycolor}
  \frame<beamer>{\begin{multicols}{2}
  \frametitle{Outline}
  \setcounter{tocdepth}{3}  
  \tableofcontents[currentsection]
\end{multicols} 
 }
}

\begin{document}

\begin{frame}
\maketitle
\end{frame}


\section[Tool]{Tool}

\begin{frame}
 Test2
\end{frame}

\section[Tools]{Automation and Scripting}
\subsection{Overview}
\subsubsection{Rscript}

\begin{frame}
 Test
\end{frame}


\section*{References}
\begin{frame}
 Ref
\end{frame}


\end{document}

Edited

At the start of a new section I want to show highlighted current section, its subsections and its subsubsections. However the other sections, subsections and subsubsections should be dim. Thanks

enter image description here

Best Answer

You can change the way subsubsections are shown in the ToCs by setting the subsubsectionstyle key; for example:

subsubsectionstyle={show/show/show/show}

The first part gives the style for the current subsubsection; the second one, for other subsubsections in current subsection, the third specification controls the appearance of subsubsections in other subsections in current section and the last one gives the style for subsubsections in other subsections in other sections.

For the desired specification in the updated question, you can use

  \tableofcontents[
    sectionstyle=show/shaded,
    subsectionstyle=show/show/shaded,
    subsubsectionstyle=show/show/show/shaded
    ]

A complete example:

\documentclass[unknownkeysallowed, compress]{beamer}
%\documentclass[compress]{beamer}
\usetheme{Warsaw}
\usepackage{multicol}

\colorlet{mycolor}{orange!80!black}% change this color to suit your needs

\title[Intro]{Introduction}
\author{The Author}

\AtBeginSection[]{
  \setbeamercolor{section in toc shaded}{use=structure,fg=structure.fg}
  \setbeamercolor{section in toc}{fg=mycolor}
  \setbeamercolor{subsection in toc shaded}{fg=black}
  \setbeamercolor{subsection in toc}{fg=mycolor}
  \setbeamercolor{subsubsection in toc shaded}{fg=black}
  \setbeamercolor{subsubsection in toc}{fg=mycolor}
  \frame<beamer>{\begin{multicols}{2}
  \frametitle{Outline}
  \setcounter{tocdepth}{3}  
  \tableofcontents[
    sectionstyle=show/shaded,
    subsectionstyle=show/show/shaded,
    subsubsectionstyle=show/show/show/shaded
    ]
\end{multicols} 
 }
}

\begin{document}

\begin{frame}
\maketitle
\end{frame}


\section[Tool]{Tool}

\begin{frame}
 Test2
\end{frame}

\section[Tools]{Automation and Scripting}
\subsection{Overview}
\subsubsection{Rscript}

\begin{frame}
 Test
\end{frame}


\section*{References}
\begin{frame}
 Ref
\end{frame}


\end{document}

The partial ToC at the beginning of the first section:

enter image description here

The partial ToC at the beginning of the second section:

enter image description here