32

In a latex-beamer document i added the following TOC-Definition:

\AtBeginSubsection[]
{
   \begin{frame}
        \frametitle{Inhalts\"ubersicht}
        \tableofcontents[currentsection,currentsubsection]
   \end{frame}
}

Which produces a tree like this:

Section1
  SubSection1
Section1
  SubSection2
Section1
  SubSection3
Section2
  SubSection1
Section2
  SubSection2

Instead i would like it to look like this:

Section1
  SubSection1
  SubSection2
  SubSection3
Section2
  SubSection1
  SubSection2

How can i modify the TOC-Tree to make it look like i want?

Solved - MWE:

\tableofcontents[ 
    currentsubsection, 
    hideothersubsections, 
    sectionstyle=show/hide, 
    subsectionstyle=show/shaded, 
    ] 
  • 1
    Can you please add to your question a minimal working example (MWE) illustrating the problem? I ask you for this MWE because I did some tests and couln't reproduce the behaviour mentioned; in fact, what I got in my examples was exactly the desired output. – Gonzalo Medina Sep 16 '11 at 13:08
  • For those who wondering : this magic is explained in Beamer's manual, "10.5 Adding a Table of Contents", p. 98 (version 3.36). – Clément Jan 30 '17 at 1:56
27
\tableofcontents[ 
currentsubsection, 
hideothersubsections, 
sectionstyle=show/hide, 
subsectionstyle=show/shaded, 
] 

does what i want!

9

You can use the following code:

\AtBeginSection[]
{
\begin{frame}<beamer>{Table of Contents}
\tableofcontents[currentsection,currentsubsection, 
    hideothersubsections, 
    sectionstyle=show/shaded,
]
\end{frame}
}
8

You can use in your preamble

\AtBeginSection[]
{
  \begin{frame}
  \frametitle{Contents}
  \tiny{\tableofcontents[currentsection]}
  \end{frame}
}

Which produces something like that before every section

  • 4
    Nice theme, which one is it? – ppr Jun 26 '14 at 13:53
  • @ppr looks like a theme used at a specific institution, given the name in the right bottom: el.wikipedia.org/wiki/… – Schneider Dec 21 '16 at 15:43
  • @Thanos, all the subsections are highlighted at the same time, is there a way to highlight only one of the subsection? – sunxd Nov 5 '19 at 16:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.