Closed achall36 closed 4 years ago
Hi Andy,
I could reproduce the problem you mentioned.
What is the desired rendering result? Should I resize the equation-block to fit the page body width?
I applied @content-width="scall-down-to-fit" to fo:instream-foreign-object. However the formatting result did not changed.
This may be the problem of AH Formatter itself.
Thanks for looking into this. Here's an example of how I would like to have this equation sized and located in the AH PDF transformation. Please excuse the clumsy redactions!
It looks like @content-width="scall-down-to-fit"
includes typo and maybe that is the reason it did not succeed?
Should it be @content-width="scale-down-to-fit"?
Yes, it was typo in this thread. In the actual XSL-FO file, I've coded as:
<fo:instream-foreign-object content-width="scale-down-to-fit">
<m:math xmlns:ditaarch="http://dita.oasis-open.org/architecture/2005/" xmlns:dita-ot="http://dita-ot.sourceforge.net/ns/201007/dita-ot">
<m:mstyle displaystyle="true">
<m:mrow>
<m:mrow>
...
I will submit the question about this problem to the AH Formatter product group next week.
I have the information from AH Formatter group member.
@content-width="scale-down-to-fit"
is specified on fo:instream-foreign-object.I have attached sample DITA example.
The formatting result:
This result may not satisfied one. However inserting <m:mspace linebreak="newline"/>
is only solution for this problem.
Thanks for looking into this @ToshihikoMakita!
Your example helped greatly.
I was able to reproduce it using the AH formatter evaluation version that I am testing.
I am referring to https://www.w3.org/TR/MathML3/chapter3.html#presm.linebreaking for guidance on where to insert the <m:mspace linebreak="newline"/>
elements.
Hello Makita-san
I had been delaying to submit this example for reasons I cannot disclose. I have made some changes to the initial equation to obfuscate it but these changes do not materially affect the equation for the sake of this issue.
Reference: https://groups.google.com/forum/#!topic/dita-ot-users/XyQNy0XdwRY
equation-example-wide.txt
This is a DITA XML file but I changed the file extension to .txt to attach the file.