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

What if any difference is there between \tableofcontents and \tableofcontents{}?

I noticed that inserting a TOC in LyX uses the {} while the classicthesis template for LyX does not. Any reason?

share|improve this question
up vote 17 down vote accepted

There is no difference at all in any of the usual classes \tableofcontents doesn't take an argument so the {} just open and closes a group but otherwise does nothing.

Automated TeX generators tend to put {} after command names to avoid problems with following text.

\tableofcontentshello wouldn't work whereas \tableofcontents{}hello is OK. In this case though that isn't likely to be an issue as \tableofcontents is usually followed by a sectioning command or a blank line rather than text.

share|improve this answer
Thanks, that perfectly answer's my question and the reasoning makes a lot of sense. – Bryan P Sep 23 '12 at 13:42

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.