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: Ian Castle <ian dot castle at coldcomfortfarm dot net>
- To: DSSSL mailing list <dssslist at lists dot mulberrytech dot com>
- Cc: docbook at lists dot oasis-open dot org
- Date: Sat, 18 Jan 2003 17:38:50 +0000
- Subject: DOCBOOK: Re: (dsssl) put the last page number
- References: <3E0445DC00019C42@hudson.vtr.net>
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.
There are two approaches you could take
1) Pass in a value with "-V" on the openjade command line. Obviously,
you would have to generate the output first... Then work out the number
of pages.. Then generate it all again using the supplied value. It might
be possible to automate this with judicious use of "grep" or similar on
the postscript or PDF output.
2) Work out an appropriate TeX sequence (if one exists - I'm
speculating) and emit this as literal text.
On Fri, 2003-01-17 at 19:57, pividal@vtr.net wrote:
> how i put the last page number in an artice for doing something like "page
> nn of total-pages")
> in a footer
>
> -can i put the automatic date??
>
>
>
>
> DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist