atom feed28 messages in org.oasis-open.lists.docbook-appsRe: DOCBOOK-APPS: jadetex: page numbe...
FromSent OnAttachments
Jan ScheffczykJul 2, 2001 12:07 am 
Ian CastleJul 2, 2001 6:44 am 
Richard SharpeJul 2, 2001 8:54 am 
Richard SharpeJul 2, 2001 7:13 pm 
Sebastian RahtzJul 3, 2001 4:15 am 
Richard SharpeJul 3, 2001 4:54 am 
Bob McIlvrideJul 4, 2001 8:55 am 
Norman WalshJul 5, 2001 10:53 am 
Norman WalshJul 5, 2001 10:53 am 
Bob McIlvrideJul 6, 2001 8:36 am 
Ian CastleJul 9, 2001 6:26 am 
Ian CastleJul 9, 2001 6:31 am 
Richard SharpeJul 9, 2001 6:49 am 
Ian CastleJul 9, 2001 10:14 am 
Sebastian RahtzJul 11, 2001 7:00 pm 
Joe CooperJul 11, 2001 11:03 pm 
Kevin DunnJul 12, 2001 2:14 pm 
Ian CastleJul 12, 2001 11:50 pm 
Joe CooperJul 13, 2001 12:22 am 
Richard SharpeJul 13, 2001 12:38 am 
Juan R. MigoyaJul 13, 2001 1:16 am 
Kevin DunnJul 13, 2001 1:46 am 
Joe CooperJul 13, 2001 2:01 am 
Ian CastleJul 13, 2001 3:11 am 
Juan R. MigoyaJul 13, 2001 3:50 am 
Sebastian RahtzJul 13, 2001 3:50 am 
Richard SharpeJul 13, 2001 5:49 am 
Juan R. MigoyaJul 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!