"Jeremy C. Reed" <[EMAIL PROTECTED]> writes:

Hi Jeremy,

I'm sending this to the list too in case other people might benifit
From it.

> My table of contents has entries where the section number goes close to my 
> section name. For example:
>
> 19.8. pfsync Example . . . . . . . . . . . . . . . . . . . . . . . 130
> 19.9. Combining CARP and pfsync For Failover . . . . . . . . . . . 130
> 19.10.Operational Issues . . . . . . . . . . . . . . . . . . . . . 132
> 19.11.Other References . . . . . . . . . . . . . . . . . . . . . . 134

The tocloft package makes it easy to change the lengths governing
this.  Try adding the following to your preamble:

\usepackage{tocloft}

\addtolength{\cftsecnumwidth}{1em}

\addtolength{\cftsubsecindent}{1em}
\addtolength{\cftsubsecnumwidth}{1em}


The two lengths ending with numwidth control the width of the
(sub)section numbers.  Similarly for \cftchapnumwidth if you need it.
I've increased the \...indent length too, so that the subsection
numbers are aligned with the beginning of the section texts in the
same way as standard LaTeX has it setup.

The manual explains these and many many more parameters for you to
fiddle with:

  http://www.tex.ac.uk/tex-archive/macros/latex/contrib/tocloft/tocloft.pdf

The TeX FAQ has an entry about your exact problem, and pointed to the
tocloft package:

  http://www.tex.ac.uk/cgi-bin/texfaq2html?label=tocloftwrong
  http://www.tex.ac.uk/cgi-bin/texfaq2html?label=tocloft


-- 
Martin Geisler                                     GnuPG Key: 0x7E45DD38

PHP Exif Library      |  PHP Weather             |  PHP Shell
http://pel.sf.net/    |  http://phpweather.net/  |  http://mgeisler.net/
Read/write Exif data  |  Show current weather    |  A shell in a browser

Attachment: pgp5fJ4vfAAvz.pgp
Description: PGP signature

Reply via email to