Popular tips

How do you add front matter to a table of contents?

How do you add front matter to a table of contents?

The usual way to add something to the ToC is to use — attention — \addcontentsline 😉 If an ‘outstanding’ abstract should be typeset with a \section* or \chapter* structuring unit, it might look better to use chapter formatting for the ToC instead of the indented section usage.

Is the table of contents at the front?

Within an English-language book, the table of contents usually appears after the title page, copyright notices, and, in technical journals, the abstract; and before any lists of tables or figures, the foreword, and the preface.

How do I add a list of tables in a table of contents in LaTeX?

This answer depends on your document class and some related packages.

  1. If you are using a standard class you can use the package tocbibind.
  2. If you are using a KOMA-script class you can use the option listof=totoc .
  3. If you want to add the entry manual you can use the command \addcontentsline.

How do you create a table of contents in LaTeX?

A table of contents (ToC) is produced by inserting \tableofcontents at the appropriate place in your document. Note that you need at least two LaTeX runs to produce the ToC (LaTeX collects the data for the ToC in the first run and typesets it in the second run).

How to create a table of contents in latex?

\\listfigurename and \\listtablename produce the list headings. This way, toc entries are automatically updated, should the headings be changed for some reason. Adding the lists to toc before the actual command as well as them makes sure the page numbers are set correctly.

How to add page breaks in Latex table of contents?

The document-class option openright (requires twoside in report) always starts chapters on odd pages, which is when \\cleardoublepage comes in handy. It adds either one or two page-breaks depending on whether the content ends on an even or odd page.

Which is before or after the table of contents?

Table of contents is almost inevitably after the dedications, “about the xxx”, abstract, executive summary, etc. but before the “list of xxx”. List of figures is usually before list of tables. Main matter is the bulk of the book/article/whatever but the easiest to specify. Just like you have it. Just be consistent.

How do you add a section to a table of contents?

Sections, subsections and chapters are included in the table of contents. To manually add entries, for example when you want an unnumbered section, use the command addcontentsline as shown in the example. Change the title of the table of contents. The default title for the table of contents is “Contents”, this can be changed into whatever you need.