I'm working on a book in which page numbers (
I have 24 pages of front matter numbered in roman numerals, about 800 pages of main text, and then another 400 pages of "Supplement" which are numbered
S400. I want to extract pages 345 to 380 (a chapter) for review, but I can't seem to figure out how to do it using TeXlive on Debian Linux:
If I use
dvips, I get not only pages 345 to 380, but also pages S345 to S380.
If I use
-i (@1)345..(@1)380, the resulting
.dvifile is not convertible to PDF (conversion fails with an undefined identifier in the PostScript, might be
How can I extract the pages I want? Is there a trick using
\count1 that might help? I'd really like to avoid crawling
.aux files and calculating absolute page numbers.
ETA: Doing it by hand by, say, using
xdvi or Evince to get the page numbers, is not an option I really wish to pursue. The point is to be able to get a previewed page range quickly---I'm mostly pulling these ranges from the chapter's table of contents. Doing the arithmetic in my head every time would make me crazy! (It's actually easier just to get the superfluous pages and then remove them using
pdftk. But I hope to do better.)