TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question
up vote 28 down vote accepted

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.

share|improve this answer
great! can we also hide subsubsections? I tried it but does not work – flow Jul 5 '11 at 16:54
@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? – flow Jul 5 '11 at 17:28
@flow: You mean only the current subsection? – Martin Scharrer Jul 5 '11 at 17:36
Use currentsubsection instead or after currentsection. – Martin Scharrer Jul 5 '11 at 17:45

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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