[texhax] Incorrect Chapter Labels

Scott Ballantyne sdb at ssr.com
Mon Apr 12 02:19:58 CEST 2010


I have a large book (175+ pages) and need to provide the complete book
as well as each chapter in PDF files.

I have been following the directions in the TeX faq for using include
and includeonly to generate these files. I have main files for each
chapter

{preamble}

\includeonly{chapter1}

\begin{document}
\include{chapter1}
\include{chapter2}

etc

\end{document

and a main file which produces the entire book, which doesn't have
\theincludeonly directive. This is the only difference between the
driver files.

The chapter files are in a subdirectory called TeX.

While this appears to work, I noticed that the chapter references are
incorrect in the individual files (although they are correct in the
full book).

Can someone tell me what I am doing wrong, or suggest a fix?

Thank you,
Scott






More information about the texhax mailing list