Forum How do I...?

Insert text "Continued"

Balaa
Hi,

How Can I insert text "Continued" at bottom of table when table span over multiple pages using CSS properties.

Thanks,
Bala
mikeday
This is almost impossible with regular CSS, unfortunately. :(

We are investigating CSS extensions to do this for future Prince releases.
Balaa
Is there any possibilities to try with Javascript DOM
mikeday
Very difficult, as JavaScript only executes before and after layout, but not during layout. You would need to run Prince, call JavaScript at the end (using the oncomplete event handler), check the box tree to see if a table broke across two pages or not, and if it did reformat the document with modified CSS so that the "Continued" text is visible.
mn4367
I think I remember something which used a second table caption element and then prince-caption-page to achieve this. This enabled a table caption for the first page and a different table caption for every subsequent page. Or have I misunderstood something?
mikeday
Yes that is available, but it will displayed "Continued" at the bottom of the first page even for tables which don't have a second page, unfortunately.
Balaa
Thanks, But, the actual requirement is to add text "Continued" for longer tables (ie. tables flow to next page). (see the screen shot.)
  1. Tables.png103.9 kB
mikeday
The "Continued" at the top of the following pages can be done with caption, but the "Continued" at the bottom of the first page can only be done via the complicated JavaScript trickery I mentioned earlier.

We hope to add a better way of doing this in the future.
Balaa
The above point is a bottle-neck for us. Please let us know your tentative timeline for this update.
mikeday
We will need to check the roadmap and get back to you. Our current focus is preparing Prince 11.
Balaa
Thanks Mike,


Balaa
Is this updated in Prince 11?
mikeday
No, not yet.
Balaa
Thanks, Mike. Looking forward to hearing this update.