Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add boldfaced "Key" title in the table footer when %key is used #1162

Closed
anermina opened this issue Apr 23, 2024 · 5 comments
Closed

Add boldfaced "Key" title in the table footer when %key is used #1162

anermina opened this issue Apr 23, 2024 · 5 comments
Assignees

Comments

@anermina
Copy link

According to ISO's guidelines given in metanorma/mn-samples-iso#96 (comment) regarding the key element in the table footer, the key section should be preceded by a “Key” title in bold, as shown in the example below.

IMG_4572

Currently, Metanorma generates the key section as below
image
when the following markup is used.

NOTE: Ce tableau est basé sur l'<<ISO7301,table=1>>.

NOTE: Certains contrats commerciaux peuvent exiger des complémentaires à celles fournies dans le présent tableau.

NOTE: Seul le riz (cargo) rouge entièrement décortiqué est pris en considération dans le présent tableau.

[%key]
N/A:: N'est pas applicable.
@opoudjis
Copy link
Contributor

To move table key around properly in Word postprocessing, which is not currently happening, need to wrap it in div[@class = 'figdl'], treating it the same as figure keys are already being treated.

@opoudjis
Copy link
Contributor

opoudjis commented Apr 24, 2024

I'm marking up this key title as the title of a definition list, which is ListTitle; but ListTitle is centered, and this Key title is not. Ugh. Will override in postprocessing for definition list titles which are table keys.

@opoudjis
Copy link
Contributor

Need to keep definition list, preceding title paragraph and following notes together in a div in rendering in HTML and DOC output, since they are going to be treated as a unit.

@opoudjis
Copy link
Contributor

Will finish tomorrow

@opoudjis
Copy link
Contributor

opoudjis commented May 6, 2024

Extend the wrapping in div to ol and ul. Disruptive change, but future-proofs list rendering.

opoudjis added a commit to metanorma/isodoc that referenced this issue May 6, 2024
opoudjis added a commit to metanorma/metanorma-ietf that referenced this issue May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

No branches or pull requests

2 participants