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
Alignment of equations in docx #2310
Comments
Can you send a docx file with the correct equation +++ tsuikitho [Jul 18 15 07:21 ]:
|
Generated from pandoc: By mml code Thank you |
It seems texmath converts both $ ghci
Prelude> import Text.TeXMath
Prelude Text.TeXMath> readTeX "\\begin{align*}a&=b\\end{align*}"
Right [EArray [AlignRight,AlignLeft] [[[EIdentifier "a"],[ESymbol Rel "=",EIdentifier "b"]]]]
Prelude Text.TeXMath> writeOMML DisplayInline [Text.TeXMath.Types.EArray [] []]
Element {elName = QName {qName = "oMath", qURI = Nothing, qPrefix = Just "m"}, ... |
So, maybe we need to add an EEqnArray element in texmath, +++ Ophir Lifshitz [Jul 22 15 13:45 ]:
|
The ooml generated by texmath (and used by pandoc in the docx) has:
My understanding is that this should cause the second column of the array to be left-justified. But for some reason it is centered in Word. If it were left-justified, the equation would look right. Anyone understand why it isn't? |
Move message to #2864. Sorry for noise. |
Hello, I don't know whether this is a bug related to pandoc. Please help me.
I write a txt file as follows:
Save it as test.txt.
then convert the file to docx by pandoc (1.15.0.6):
The equations can be displayed, but cannot be aligned correctly, see the following screen capture:
I am using word 2013 in windows 8.1.
The equations should be aligned with the "=" sign. But It seems that word treats the equations as a matrix with 4 entries.
When I convet the same latex code to mml in formula sheet (http://formulasheet.com/) and paste the mml code obtained into word, the equation can be displayed and aligned correctly:
For your reference, here is the mml code
Is this an issue related to pandoc? How to solve it? Thank you very much.
The text was updated successfully, but these errors were encountered: