I am updating a document that someone else created. The table of contents had a lot of overfull hboxes in it, and didn't look very good. I managed to get rid of a lot of them by using this in the style file
\renewcommand{\@pnumwidth}{1.75em}
but there are a few left that are caused by the section number being too long (i.e. C.10.).
What is the parameter to modify to increase the box for the section number? (I tried guessing:
snumwidth, secnumwidth, but no luck)
Thanks, Tara
General ⇒ overfull hboxes in tableofcontents
NEW: TikZ book now 40% off at Amazon.com for a short time.

- Stefan Kottwitz
- Site Admin
- Posts: 10345
- Joined: Mon Mar 10, 2008 9:44 pm
overfull hboxes in tableofcontents
Hi Tara,
welcome to the board!
Have a look at the document class file you are using, the macro \l@section should be responsible for displaying the section entries in the toc.
In general one could use the tocloft package to solve such problems.
Stefan
welcome to the board!
Have a look at the document class file you are using, the macro \l@section should be responsible for displaying the section entries in the toc.
In general one could use the tocloft package to solve such problems.
Stefan
LaTeX.org admin
overfull hboxes in tableofcontents
Hi Tara,
as Stefan_K mentioned, using a package to change the ToC (or the LoF, or the LoT) can save you a lot of time. An alternative to tocloft can be the titletoc package.
as Stefan_K mentioned, using a package to change the ToC (or the LoF, or the LoT) can save you a lot of time. An alternative to tocloft can be the titletoc package.
1,1,2,3,5,8,13,21,34,55,89,144,233,...