Re: Carrying page numbering from one invocation of Pdf(la)tex to another




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

.



Relevant Pages

  • Re: Carrying page numbering from one invocation of Pdf(la)tex to another
    ... forth the documentation consists of more than two hundred ... HTML and PDF. ... Each .tex file at present produces one HTML ... I prefer the compound page number option. ...
    (comp.text.tex)
  • Carrying page numbering from one invocation of Pdf(la)tex to another
    ... forth the documentation consists of more than two hundred ... HTML and PDF. ... numbering scheme could be used, ... I prefer the compound page number option. ...
    (comp.text.tex)
  • Re: new to ubuntu; have a few questions
    ... This is an ACPI-related error (the Root System Description Pointer ... This depends on what you need a PDF editor for. ... For learning suggestions with Linux, it is somewhat dependent on what ... The official documentation covers normal ...
    (Ubuntu)
  • Re: [OT] Links to PDF manual
    ... wanted it in Tex format; I explained that I no longer programmed in punched cards, ... PDF, however, is largely user-hostile in terms of documentation. ... PDF files are designed to give the same physical appearance on every device, ...
    (microsoft.public.vc.mfc)
  • Re: Where is the definition or documentation of PDF "default user space units"?
    ... documentation, I found very terse mention of "default user space ... all my perl scripts that make PDF files use ... about use of PDF::API2, and related packages, than it is about the PDF ... you can scale the coordinate system to inches ...
    (comp.lang.perl.misc)