I have a similar problem as wilby's in an Annual Report i'm working on:
There is a 30-some-page section of notes to the financial statements, with deeply nested numbering structure (e.g.
Note 4.3.2.1 – Impaired loans and advances an non-trading investments).
If a note is broken over two pages, there (legally!) needs to be a mention on the following page :
Note 4.3.2.1 … (continued)I have seen reports where the whole numbering tree is mentioned:
Note 4… Bla (continued)Note 4.3… Bla foo (continued)Note 4.3.2… Bla foo bar (continued)Note 4.3.2.1… Bla foo bar whatever (continued)"
I have tried cheating on this by using something like the following construction, but it's not *quite* working the way it needs to.
.noteTitle { string-set: noteHeader content() }
@page Notes {
@top-left {
content: "Notes to the financial statements: " string(noteHeader);
}
}
I'll try working with the "prince-caption-page: following" property to see if I can improvise something.
I'll also put some though into the matter, and also try to collect a few examples of applications and strage edge cases. Conceptually, this situation is also complicated by CSS's lack of a 'previous' or 'parent' selector (the opposite of the 'child' and 'adjacent' selector).
IMO this is a job for javascript/jquery, but there would need to be some way of detecting page breaks to act on them…