| From | Sent On | Attachments |
|---|---|---|
| Jan Scheffczyk | Jul 2, 2001 12:07 am | |
| Ian Castle | Jul 2, 2001 6:44 am | |
| Richard Sharpe | Jul 2, 2001 8:54 am | |
| Richard Sharpe | Jul 2, 2001 7:13 pm | |
| Sebastian Rahtz | Jul 3, 2001 4:15 am | |
| Richard Sharpe | Jul 3, 2001 4:54 am | |
| Bob McIlvride | Jul 4, 2001 8:55 am | |
| Norman Walsh | Jul 5, 2001 10:53 am | |
| Norman Walsh | Jul 5, 2001 10:53 am | |
| Bob McIlvride | Jul 6, 2001 8:36 am | |
| Ian Castle | Jul 9, 2001 6:26 am | |
| Ian Castle | Jul 9, 2001 6:31 am | |
| Richard Sharpe | Jul 9, 2001 6:49 am | |
| Ian Castle | Jul 9, 2001 10:14 am | |
| Sebastian Rahtz | Jul 11, 2001 7:00 pm | |
| Joe Cooper | Jul 11, 2001 11:03 pm | |
| Kevin Dunn | Jul 12, 2001 2:14 pm | |
| Ian Castle | Jul 12, 2001 11:50 pm | |
| Joe Cooper | Jul 13, 2001 12:22 am | |
| Richard Sharpe | Jul 13, 2001 12:38 am | |
| Juan R. Migoya | Jul 13, 2001 1:16 am | |
| Kevin Dunn | Jul 13, 2001 1:46 am | |
| Joe Cooper | Jul 13, 2001 2:01 am | |
| Ian Castle | Jul 13, 2001 3:11 am | |
| Juan R. Migoya | Jul 13, 2001 3:50 am | |
| Sebastian Rahtz | Jul 13, 2001 3:50 am | |
| Richard Sharpe | Jul 13, 2001 5:49 am | |
| Juan R. Migoya | Jul 14, 2001 3:44 am |
| Subject: | Re: DOCBOOK-APPS: jadetex: page numbering | |
|---|---|---|
| From: | Ian Castle (bb+l...@looksystems.co.uk) | |
| Date: | Jul 9, 2001 6:26:29 am | |
| List: | org.oasis-open.lists.docbook-apps | |
This is interesting.
I've not had time to look at it in detail... so this is just what I *think* is going on...
Firstly, it isn't a problem with jadetex.
The implementation of "PageNumberRestart" is very very simple. Think of it as a simple external function to DSSSL. If you want to restart the page number of this "component" to 1, the simply call the function in the stylesheet.
This is what the stylesheet does. At the beginning of the page sequence of a chapter, it says "if this is the first chapter, then reset the page number to 1). Other things being equal, then this is the only time in a <book> when this will be done.
However, if you have %page-number-restart% set to true, the every component will have its page number reset. Components are things like chapters, appendices, glossaries and references.
So, there is an underlying assumption in the DSSSL that a <book> consists of <chapters> and the first chapter starts at page 1. This falls down when you do not have chapters in the book.
So there are three things that you can do:
1) Include the <refentry> in a chapter. 2) Put the <refentry> in a <reference> and set %page-number-restart% to true 3) Add addition logic to the DSSSL - so as well as maintaining the internal variable %first-chapter% it maintains one called %first-reference% which is true for the scope of the first <reference> then embed the <refentry> in that.
You probably want either 1) or 3)....
Hope that helps.. [the main point is that it is a stylesheet issue rather than jadetex]
Bob McIlvride wrote:
Thanks for this, Ian. It solves most of our problems. Unfortunately it doesn't work in a book that is all refentries in refsections, at least, as far as we can see. We have to put two dummy chapters ahead of the refsections. Then it works OK. Maybe Sebastian has an idea for something more robust....
Cheerio!
Bob
--------------------------------------- Robert McIlvride (rob...@cogent.ca) Cogent Real-Time Systems (www.cogent.ca)





