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

Generating brackets in PDF #107

Closed
anermina opened this issue Mar 20, 2021 · 5 comments
Closed

Generating brackets in PDF #107

anermina opened this issue Mar 20, 2021 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@anermina
Copy link
Contributor

anermina commented Mar 20, 2021

Brackets are not generated in PDF for the following type of expression: stem:[2.3 ("unitsml(cm)")^3].

In HTML, there is a regular mfenced expression, but it seems to be ignored in PDF:

<mo>=</mo><mn>2.3</mn><msup><mrow><mfenced open="(" close=")"><mrow><mrow xref="U_cm"><mi mathvariant="normal">cm</mi></mrow>
</mrow></mfenced>

Original (left) vs. generated (right) PDF:
image

HTML output:
image

@anermina anermina added the bug Something isn't working label Mar 20, 2021
@Intelligent2013
Copy link
Contributor

@anermina could you attach a file si-brochure-fr.presentation.xml, please?

@anermina
Copy link
Contributor Author

Sure, it is attached. The same happens in EN version, so I'm attaching English and collection presentation XMLs as well.
presentation-xml.zip

@Intelligent2013
Copy link
Contributor

This issue is a side effect of solution for issue #69.
I'll try to find more robust solution.

Intelligent2013 added a commit to metanorma/mn-native-pdf that referenced this issue Mar 20, 2021
@Intelligent2013
Copy link
Contributor

Fixed:
изображение

@anermina
Copy link
Contributor Author

Looks good now! Thanks @Intelligent2013 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants