metanorma / metanorma-iso

Metanorma processor for ISO standards
BSD 2-Clause "Simplified" License
13 stars 5 forks source link

PDF: full-page-width and column-width tables and figures #1111

Closed Intelligent2013 closed 5 months ago

Intelligent2013 commented 6 months ago

Source issues:

The documents contain tables and figures in full page width and column width:

Currently, BSI XSLT and metanorma-bsi support them already. Need extend to another XSLT.

Intelligent2013 commented 6 months ago

@opoudjis metanorma-bsi allows to set [width=text-width] and presentation XML contains the attribute width for figure:

<figure id="fig1" width="text-width">

(https://github.com/metanorma/metanorma.org/blob/doc20230209/author/bsi/topics/markup.adoc#figures)

I've tried to set [width=text-width] for ISO document:

[[figureA-1]]
.Split-it-right sample divider
[width=text-width]
image::images/a1.png[Alt1]

and the tag image has width="text-width", but not figure:

<figure id="figureA-1">
<name>Figure A.1 — Split-it-right sample divider</name>
<image src="data:image/png;base64,iVBOR..." mimetype="image/png" id="_4989f791-b93f-831b-5d40-402089695052" height="auto" width="text-width" alt="Alt1"/></figure>

Is there a way to move text-width to the figure?

opoudjis commented 5 months ago

I will make that a Metanorma-wide change.