I am preparing a presentation with beamer. Before each new section I show the table of contents. I wonder how can I somehow highlight the line of the table of contents with corresponds to the new section to appear


To highlight the section of the next slides in a ToC you need to start the section officially using \section and then use \tableofcontents[currentsection] in a frame:


There is also other options to \tableofcontents[<option>], like currentsubsection and hideallsubsections as well, all of them simply change the sectionstyle, subsectionstyle and/or subsubsectionstyle.

They are all explain in the beamer manual, page 100pp. Here the important part:

sectionstyle=⟨style for current section⟩/⟨style for other sections⟩ specifies how sections should be displayed. Allowed ⟨styles⟩ are show, shaded, and hide. The first will show the section title normally, the second will show it in a semi-transparent way, and the third will completely suppress it. You can also omit the second style, in which case the first is used for all sections (this is not really useful).

subsectionstyle=⟨style for current subsection⟩/⟨style for other subsections in current section⟩/ ⟨style for subsections in other sections⟩ specifies how subsections should be displayed. The same styles as for the sectionstyle option may be given. You can omit the last style, in which case the second also applies to the last, and you can omit the last two, in which case the first applies to all.

  • 1
    great! can we also hide subsubsections? I tried it but does not work – Open the way Jul 5 '11 at 16:54
  • 7
    @flow: \tableofcontents[currentsection,hideallsubsections,subsubsectionstyle=hide] – Martin Scharrer Jul 5 '11 at 17:26
  • and sorry and last question, how can one highlight just subsection? – Open the way Jul 5 '11 at 17:28
  • @flow: You mean only the current subsection? – Martin Scharrer Jul 5 '11 at 17:36
  • 2
    Use currentsubsection instead or after currentsection. – Martin Scharrer Jul 5 '11 at 17:45

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.