metanorma / metanorma-iec

Metanorma for IEC documents
BSD 2-Clause "Simplified" License
1 stars 2 forks source link

Add table identifier for multi-page tables #199

Open anermina opened 1 year ago

anermina commented 1 year ago

Notation of the Table B.1 which spans to multiple pages doesn't repeat at each page. In the original document, every new page begins with the title "Table B.1 (x of y)", where x and y are indicators for the number of spanning pages.

Generated (left) vs. original (right): image

Related to https://github.com/metanorma/mn-samples-bsi/issues/218.

Intelligent2013 commented 1 year ago

where x and y are indicators for the number of spanning pages.

This feature is called 'relative page numbers' and supports by AH XSL-FO processor: https://www.antennahouse.com/hubfs/xsl-fo-sample/page-set/axf-origin-id-1.pdf?hsLang=en XSL-FO fragment with AH extension axf:origin-id:

This shows the table part number and the total number of parts:
<fo:page-number axf:origin-id="table-en"></fo:page-number>/<fo:page-number-citation-last ref-id="table-en" axf:origin-id="table-en"></fo:page-number-citation-last>

I'll try to investigate how to add similar to the Apache FOP. In the meantime I'll add the header: Table B.1 (continued).

Intelligent2013 commented 1 year ago

'Continued' header added: image