Generaloverfull hboxes in tableofcontents

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
taraAthan
Posts: 1
Joined: Tue Sep 16, 2008 2:11 am

overfull hboxes in tableofcontents

Post by taraAthan »

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

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

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

Post by Stefan Kottwitz »

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
LaTeX.org admin
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

overfull hboxes in tableofcontents

Post by gmedina »

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.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Post Reply