[pdftex] How to produce individual pdf chapters...

Jaime E . Villate villate at fe.up.pt
Thu Mar 15 15:36:39 CET 2001


On Thu, Mar 15, 2001 at 02:21:02PM +0100, Irene Sendiña Nadal wrote:
>     Is it possible from a main file (with the several
> \include{chapter1}...)
> to obtain separate chapters in individual pdf files when you compile
> with pdflatex?.
Sure, that's a LaTeX, rather than pdflatex issue. I do it this way:

typein[\chaps]{Which sections (or all)?}
\ifthenelse{\equal{\chaps}{all}}{}{\includeonly{\chaps}}

\begin{document}
\include{chap1}
\include{chap2}
\include{chap3}
...

when I process the file with pdflatex, I answer to the prompt "\chaps=" with
the list of chapters that I want to process and pdftex produces a pdf file of
those chapters.
I hope this helps.

Jaime Villate



More information about the pdftex mailing list