Re: Carrying page numbering from one invocation of Pdf(la)tex to another
- From: john@xxxxxxxxxxxxxxxx
- Date: 31 Aug 2006 12:34:15 -0700
anarcissie@xxxxxxxxx wrote:
I am documenting a rather large piece of software. Due to a
top-down approach, ongoing change and development and so
forth the documentation consists of more than two hundred
separate .tex files (and counting). There are two kinds of output,
HTML and PDF. Each .tex file at present produces one HTML
page and one PDF article (set of pages). Navigation in the HTML
is adequately handled by a hierarchical site map, links, search
functions, etc. The PDF output, on the other hand, is theoretically
destined to wind up as paper. For this reason, I would like to
provide page numbering across the entire "printed" output which
would make possible a meaningful table of contents and index.
The pages could be numbered sequentially throughout the whole
set of files, e.g. the page numbering of the tenth article could
start where the ninth left off, or perhaps better, a compound page
numbering scheme could be used, where page numbers of the
tenth article would be 10-1, 10-2, 10-3, etc.
To do the above I think i need to be able to introduce at least an
article number and possibly a page number on the command line
which converts the .tex file to PDF. (I am currently using pdflatex
to do this on a Linux machine; it might also be done on a PC
but I prefer the former.) In the event I numbered all pages with a
plain sequential number, the first option above, I guess I would
also need to have the converting program return the page count.
However, I prefer the compound page number option.
My questions are:
1. Can I set up a compound page number? The documentation
I have seen so far allows for Arabic and Roman numerals, but
doesn't say anything about more complex schemes.
2. What is the best way of introducing the page number or
article number from the command line? (I expect to have a
script running a series of invocations of pdflatex.) Even
using the compound page numbering scheme, I would prefer
not to lock articles to specific numbers since new material
may have to be introduced in the middle of existing material.
3. Is there an easy way for an invoking script to obtain the
number of pages produced by an invocation of pdflatex? (For
instance, could it get the information from pdflatex's stdout?)
Thanks for any pointers or suggestions....
If there is uniformity in the basics then a single LaTeX file could
\input each article
(stripped of any front end material and \end{document}) and create the
combined document properly paginated.
If individual pdfs and/or html outputs were needed a stub file with
just the
front end requirements could contain a single \input statement for
that file.
I don' knw the details of your app so I can't comment further. I know
I could make the above scheme work in plain pdftex or Context and I see
no inherent reason why it would not work for
LaTeX.
Multiple calls to LaTeX via a script should not be needed.
John Culleton
.
- References:
- Carrying page numbering from one invocation of Pdf(la)tex to another
- From: anarcissie
- Carrying page numbering from one invocation of Pdf(la)tex to another
- Prev by Date: Re: Adobe Garamond Pro
- Next by Date: Commercial TeX Distro for Mac OS X.
- Previous by thread: Carrying page numbering from one invocation of Pdf(la)tex to another
- Next by thread: Commercial TeX Distro for Mac OS X.
- Index(es):
Relevant Pages
|