Generate a table of contents in LaTeX
Hi Tom — very useful article! What package or documentclass do you use? Use the following code right before producing the actual list to get the page number right. Hi Barbara, Use the tocloft package to set these values as follows: The minimal example only covers numbered parts. The toc now looks like:. But what you can do is manually redefine how ToC entries are typeset.
10 ways to customize toc/lof/lot – texblog
Views Read Edit View history. By default, chaptered document classes use 2. Just by just looking at your code, what you can try is to add one more line for section , identical to the definitions for subsection and subsubsection you already have. How can i make them colored. The indentation you see in my example is the normal behavior of TOC.
10 ways to customize toc/lof/lot
Description: I want like this: Hi Alain, I did not test this, but something along the lines of the code below should do the trick. If you do not make use of chapters, it is barely useful to use the book class. April at 9: Hi there, I removed your code, because it was impossible to debug.