-
Notifications
You must be signed in to change notification settings - Fork 2
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
Force specific position of the limits for sum, product, integral, etc. #763
Comments
For limits and similar underscripts and overscripts in MathML (HTML), the global attribute So we have a suite of problems:
To start with (3): no. We will not introduce style commands to AsciiMath, they are utterly out of scope for it. The correct markup for the "are also used" line is to use MathML, not AsciiMath, to differentiate the two rendering styles. There are things that AsciiMath cannot and should not do, and this is one of them. So not:
but
(You get the MathML by converting a doc with the AsciiMath, and looking at the Semantic XML.) |
There is also a bug in Plurimath. The munderover operands, sum prod ^^^ vvv nnn uuu, are being rendered with msubsup, which means they can never be rendered with limits above and below. This is a bug: they should be rendered with munderover (or munder or mover, if an operand is missing). Whether munderover is rendered in normal or compact style is determined by the displaystyle operand. |
There remains the issue that DOC and HTML defaults are inconsistent. That is the result of two separate bugs:
|
I am currently testing it, will let you know once it is finalized.
Plurimath currently sets the displaystyle attribute by default to true. I will make the necessary code updates in a new pull request to provide an option for users to invoke the displaystyle attribute as needed. |
Changing Metanorma XML model to pass in mandatory |
As part of refactor, I need to know when Asciimath is to be converted to MathML whether it is displaystyle or not. I have allowed a text-based asciimath conversion in Html2Doc for Word docs, because the Word XML is not necessarily clean XML, and shouldn't go into Nokogiri. But Html2Doc has not received raw AsciiMath in years, all maths is converted to MathML in Semantic Metanorma XML. So that code needs to move into metanorma-standoc, and should not be triggered within html2doc. |
Input:
HTML is ok: PDF is ok: DOC is very far from OK: and that is pending plurimath/plurimath#173 (among other tickets, some of which may not yet have been authored.) Putting this ticket on hold, pending DOC resolution. |
No, will use ticket #796 instead to cover the failure of DOC to pay attention to displaystyle. |
ISO 80000-2 demonstrates different versions of the same entry for some math expressions, e.g.:
The limits are currently automatically generated by Metanorma as follows:
HTML:
DOC:
Could we enable forcing a specific position for the limits?
The text was updated successfully, but these errors were encountered: