I have a book with 15 chapters and a table of contents. I have been asked to repackage it as two separate volumes, one including Chapters 0-9 and the second including Chapters 9-14 (yes, Chapter 9 is in both volumes). I would like the page numbering in volume II to continue from volume I, and I would like the TOC for each volume to contain only the items that are actually in that volume.
This seems fairly easy, except that I don't know how to make the page numbering in volume II start in the right place without including the aux files from volume I, thereby putting those in the volume II TOC as well.
I'm sure this is a simple problem, but I can't find any help on google (or here). I am using the book document class, and it's probably too late to change to memoir.
Best Answer
Here are two answers. (You've already said you don't like the second one; I'm leaving it because someone might find it useful some day.)
First:
With this
TeX
sourcerun
pdflatex
several times (to stabilize all references). Here isbook.toc
:Edit that file, to remove the first two lines (all the references to Chapter one). Then rerun
pdflatex
once.This works for me on Windows 7,
since
pdflatex
hasn't noticed that thetoc
file is out of date.You could automate this workflow with a shell script or batch file, using
perl
orpython
orawk
to edit thetoc
.Second: pagination is right but lots of other things need fixing - headers, chapter counters, references ... . I don't know how.
toggle the toggle