[texhax] Fwd: TOC entries

Lars Madsen daleif at imf.au.dk
Thu Oct 11 17:42:53 CEST 2007


Loeghmon T. Nejad :

> ---------- Forwarded message ----------
> From: Loeghmon T. Nejad <loeghmon at gmail.com>
> Date: Oct 10, 2007 1:02 PM
> Subject: TOC entries
> To: texhax at tug.org
>
>
> If I put, in Latex,
>
> \chapter{chap1}
> \include{chap1}
> \chapter{chap2}
> \include{chap2}
> .
> .
>
> in the root file, I get a nice TOC, but if I do,
>
> \chapter{chap1}
> some text
> some text
> some text
> \newpage
>
>
> \chapter{chap2}
> some text
> some text
> some text
> \newpage
>
> in separate files and put only \include{chap1}, \include{chap2}, . . .
> in the root file
> the TOC is not created or remains blank. Why? Thanks.
>

did you run LaTeX several times?

could you provide a full munimal example, i.e. a small file that we can 
use on our systems.

The situation you describe sounds quite odd. I for one would not recommend 
the use of

\chapter{xxx}
\include{chapxxx}

since \include forces a newpage



/daleif


More information about the texhax mailing list