Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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

1 Answer 1

up vote 16 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

 
discard

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.