-
Notifications
You must be signed in to change notification settings - Fork 0
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
plateau: ordered list in PDF being rendered differently in viewer #41
Comments
Plateau follows JIS list item labeling. The PDF is correct here. |
thanks @ronaldtse; additionally this main issue also occurs in the viewer version of Plateau doc01 (sources/001-v5) |
The issue is programmatic so both documents will exhibit the same behavior. I believe the best way to handle is have the list label progression definition embedded in the XML source as presentational elements. Ping @opoudjis |
Ping @opoudjis to ensure that list labels are included inside MN XML. |
They already are.
generates in Presentation XML:
Note the |
@opoudjis there is |
As metanorma/metanorma-iso#319 https://github.com/metanorma/metanorma-iso/blob/main/lib/isodoc/iso/html/style-iso.scss will show, changing the rendering in HTML of a ordered list label is convoluted. The only way this is going to be realisable at all is by providing a separate value for the rendering template: the label needs to be kept alone as a value, which would be the input into any CSS counter, and then styled by the template:
The CSS would need to be I will add a label-template attribute to ol/li, which by default will be "%." and in this instance will be "%)". |
Thanks @opoudjis. An additional question: would it be better if we can declare the list styling definitions governing the entire document, and referring to them with names? |
in Plateau doc02 (sources/002-v5) an ordered list in the PDF is rendering as a) b) c) is being rendered in the viewer as 1) 2) 3)
correctly ordered list from the PDF
the same ordered list in the viewer
The text was updated successfully, but these errors were encountered: