-
-
Notifications
You must be signed in to change notification settings - Fork 68
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
please use █ instead of ■ when converting {aligned} into docx #209
Comments
Transferring to jgm/texmath which does our math conversion. Note: we don't use UnicodeMath; we use Word's XML representation of math. <m:oMathPara>
<m:oMathParaPr>
<m:jc m:val="center" />
</m:oMathParaPr>
<m:oMath>
<m:m>
<m:mPr>
<m:baseJc m:val="center" />
<m:plcHide m:val="1" />
<m:mcs>
<m:mc>
<m:mcPr>
<m:mcJc m:val="right" />
<m:count m:val="1" />
</m:mcPr>
</m:mc>
<m:mc>
<m:mcPr>
<m:mcJc m:val="left" />
<m:count m:val="1" />
</m:mcPr>
</m:mc>
<m:mc>
<m:mcPr>
<m:mcJc m:val="right" />
<m:count m:val="1" />
</m:mcPr>
</m:mc>
<m:mc>
<m:mcPr>
<m:mcJc m:val="left" />
<m:count m:val="1" />
</m:mcPr>
</m:mc>
</m:mcs>
</m:mPr>
<m:mr>
<m:e>
<m:r>
<m:t>1</m:t>
</m:r>
<m:r>
<m:rPr>
<m:sty m:val="p" />
</m:rPr>
<m:t>=</m:t>
</m:r>
</m:e>
<m:e>
<m:r>
<m:t>2</m:t>
</m:r>
</m:e>
<m:e />
<m:e>
<m:r>
<m:t>3</m:t>
</m:r>
</m:e>
</m:mr>
<m:mr>
<m:e>
<m:r>
<m:rPr>
<m:sty m:val="p" />
</m:rPr>
<m:t>=</m:t>
</m:r>
</m:e>
<m:e>
<m:r>
<m:t>4</m:t>
</m:r>
</m:e>
<m:e />
<m:e>
<m:r>
<m:t>5</m:t>
</m:r>
</m:e>
</m:mr>
</m:m>
</m:oMath>
</m:oMathPara> Please suggest more appropriate OMML. |
Sorry, I don't know what is OMML. |
No, the second is closer!
I advocate that ■ corresponds to |
I understand that format converting is not always perfect and exact. If the cost of modification is too high, please close this issue. |
I'll keep this open. It would not be a small change, because currently we don't have an AST element for aligned environments that is separate from that for matrices -- we use the same form for both. That's not ideal. |
I use pandoc 3.1.1 in Windows11. When converting
from LaTeX into docx, we get
in Word. we can see that you convert
{aligned}
to ■, which is wrong. The correct output is █.In UnicodeMath, ■
U+25A0
represents a matrix, █U+2588
represents an aligned structure.The text was updated successfully, but these errors were encountered: