[Tex/LaTex] Beamer ToC Advanced Overlays

beamerformattingtable of contents

I want to have a Table of Contents in my Beamer presentation, but I want it to be laid out in an apparently particular way. For the first section, what I want is an overlay for each section (I currently have 3) with the nth section "shown" and the others shaded. At the start of the other sections, I just want to show that section and have the others shaded. Those last ones I can do (I just can't use \AtBeginSection since my first section will be different) and looking at this post got me halfway to where I want, but I want to be able to make the other sections shaded again. My code present looks something like the following:

\documentclass[pdf,usenames,dvipsnames]{beamer}
\usepackage{graphicx}
...
\begin{document}
\section{Section 1}
    \setbeamercovered{still covered={\opaqueness<1->{20}},again covered={\opaqueness<1->{20}}}
    \begin{frame}{Table of Contents}
        \tableofcontents[pausesections]
    \end{frame}
    \setbeamercovered{invisible}
    \subsection{Subsection 1a}
     ...
\section{Section 2}
    \begin{frame}{Table of Contents}
        \tableofcontents[currentsection]
    \end{frame}
    \subsection{Subsection 2a}
    ...
\section{Section 3}
    \begin{frame}{Table of Contents}
        \tableofcontents[currentsection]
    \end{frame}
    \subsection{Subsection 3a}
     ...
\end{document}

Best Answer

You can specify the appearance of the table of contents with the sectionstyle and subsectionsectionstyle commands.

In your particular case you can use \tableofcontents[pausesections] for the first section (as you did before) and \tableofcontents[sectionstyle=show/shaded, subsectionstyle=show/show/shaded] for the following sections.

The full MWE look like:

\documentclass[pdf,usenames,dvipsnames]{beamer}

\setbeamercovered{transparent}

\begin{document}
\section{Section 1}
    \begin{frame}{Table of Contents}
        \tableofcontents[pausesections]
    \end{frame}
    \subsection{Subsection 1a}

\section{Section 2}
    \begin{frame}{Table of Contents}
        \tableofcontents[sectionstyle=show/shaded, subsectionstyle=show/show/shaded]
    \end{frame}
    \subsection{Subsection 2a}

\section{Section 3}
    \begin{frame}{Table of Contents}
        \tableofcontents[sectionstyle=show/shaded, subsectionstyle=show/show/shaded]
    \end{frame}
    \subsection{Subsection 3a}

\end{document}