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

RefTeX/AucTeX allow to display the maximum level of toc entries displayed in the ‘toc’ buffer.

Is it also possible to hide(collapse)/show(expand) individual chapters and sections in the ‘toc’ buffer?

Many thanks in advance!

share|improve this question

In the *RefTeX Select* buffer you can type C-h m to see all the keybindings in effect for the mode. From reading the keys available there doesn't appear to be a way. In fact, I don't even see a way to skip to the next heading of the same level. That seems quite useful, and probably not hard. I'll put it on my list of things to do someday. Hiding may be harder, I don't know.

You can set the maximum level with t. For example 2 t will only show the highest 2 levels. Just t will show all levels. This isn't specific to one chapter, but it may be useful. Another possibly useful command is z to jump to a given section. So 3 z will jump to chapter 3. Unfortunately it only works for the top level.

share|improve this answer

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.