[texhax] Resetting \labelsep

Lars Madsen daleif at math.au.dk
Wed Jul 29 10:49:20 CEST 2015

\labelsep has nothing to do with this.

See the tocloft package it alls explains how the structure of the TOC works,

The section number is typeset in a box of a certain size. Your doc is longer than the default size for this box, so it just has to be reset.

All is explained in the tocloft manual.

/Lars Madsen
Institut for Matematik / Department of Mathematics
Aarhus Universitet / Aarhus University
Mere info: http://au.dk/daleif@math / More information: http://au.dk/en/daleif@math

From: texhax [texhax-bounces at tug.org] on behalf of Simmie, John [john.simmie at nuigalway.ie]
Sent: 29 July 2015 10:36
To: texhax at tug.org
Subject: [texhax] Resetting \labelsep

I have a very large document in which the table of contents messes up after the first 99 \sections
With the section number crashing into the section heading

Redefining via \setlength{\labelsep}{36pt} in the preamble does not work

Standard enough format for the document

\usepackage{fancyhdr}% http://ctan.org/pkg/fancyhdr
\usepackage{lastpage}% http://ctan.org/pkg/lastpage
\pagestyle{fancy}% Set default page style to fancy
\renewcommand{\headrulewidth}{0pt}% Remove header rule
\fancyhead{}% Remove all header contents
\cfoot{Page \thepage\ of \pageref{LastPage}}% Page X of Y in the footer (centered)

The \thebibliography environment can be customised via \begin{\thebibliography}{99}
But the TOC ?

Prof. John M. Simmie::Combustion Chemistry Centre
                         NUI Galway::Ireland
                   Mo shùile togam suas

TeX FAQ: http://www.tex.ac.uk/faq
Mailing list archives: http://tug.org/pipermail/texhax/
More links: http://tug.org/begin.html

Automated subscription management: http://tug.org/mailman/listinfo/texhax
Human mailing list managers: postmaster at tug.org

More information about the texhax mailing list