This is the mail archive of the
docbook@lists.oasis-open.org
mailing list for the DocBook project.
Re: (dsssl) put the last page number
- From: Sebastian Rahtz <sebastian dot rahtz at computing-services dot oxford dot ac dot uk>
- To: dssslist at lists dot mulberrytech dot com
- Cc: docbook at lists dot oasis-open dot org
- Date: Sat, 18 Jan 2003 23:45:09 +0000
- Subject: DOCBOOK: Re: (dsssl) put the last page number
- Organization: Oxford University Computing Services
- References: <3E0445DC00019C42@hudson.vtr.net> <1042911531.1344.6.camel@kerberos>
On Sat, 2003-01-18 at 17:38, Ian Castle wrote:
> With OpenJade and the TeX backend, you can't know in advance how many
> pages there are... it is TeX that actually calculates the final
> pagination - and openjade has long finished by the time this is started.
....
> 2) Work out an appropriate TeX sequence (if one exists - I'm
> speculating) and emit this as literal text.
this is doable. LaTeX has a package "lastpage" which does it, by
sticking a label at the end of the document which can
produce the right page number on a second run. Plugging it
all into JadeTeX would be hairy, though. I'm not volunteering
to try.....
--
Sebastian Rahtz OUCS Information Manager
13 Banbury Road, Oxford OX2 6NN. Phone +44 1865 283431