LaTeX table of contents, list of figures/tables and some customizations – texblog - latex customize tableofcontents

Category

latex customize tableofcontents - Custom table of contents layout - TeX - LaTeX Stack Exchange


TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Custom table of contents layout. Ask Question Asked 7 years, 3 months ago. Create custom table of contents with \addcontentsline. Hot Network Questions. To create the table of contents is straightforward, the command \tableofcontents does the job: \ documentclass { article } \ usepackage [ utf8 ]{ inputenc } \ title { Sections and Chapters } \ author { Gubert Farnsworth } \ date { } \begin { document } \ maketitle \ tableofcontents \ section { Introduction } .

The font change causes a very subtle formatting problem in the Table of Contents page numbers: %% Because of the font change, the page number becomes too large for the %% horizontal space LaTeX reserves for it by default. Without the following %% redefines to fix it, this would cause the Chapter entry page numbers %% to extend a few points into the right margin. Apr 29, 2013 · I wrote a somewhat short post on list of figures and list of tables a few years ago. Nevertheless, it gets quite a bit of traffic, possibly due to the large number of comments. For that reason, I decided to put together another, more informative post on the same topic that includes table of contents.

LaTeX processes all source code sequentially, so when it first encounters the \tableofcontents command, it doesn't yet know anything about the chapters, sections etc. So the first time the document is LaTeXed the necessary information is written to the table of contents .toc) file (see §2.4. Auxiliary Files). To get an unnumbered chapter, section, sub-section, etc. add an asterisk before the opening curly brace. These will not go into the table of contents.