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
Export MathML in ODT as LaTeX #5602
Comments
BTW, this is the output when exporting as docx:
Much better! |
I don't think the Odt reader currently parses math elements. Note, however, that we'd only be able to parse presentation mathml, not semantic mathml (you use the 'semantics' tag here). |
I barely understand mathml, let alone what semantic/presentation tags are. I can say that it works fine with docx though, so if you're doing the "presentation" stuff there I assume it should work here too. |
Maybe I should have mentioned that equations are represented as mathml in docx too. I have verified this. I don't know about the semantic/presentation thing though. |
Might work with #5606... |
@memeplex No, docx doesn't use mathml. It uses a different, XML-based math format. texmath and pandoc can convert between these. |
Thanks! |
Sorry, it was claimed in the PR that it fixed this issue, but it doesn't. |
I have created the attached and zipped odt by exporting it from google docs. The text is just "Hi x^2" where x^2 is an squared x as an equation. Converting it to markdown using pandoc gives:
Inside the odt
Object 2/content.xml
is:that is, the equation was exported as MathML, not as an image. Now, I would have expected this to be exported as LaTeX in the markdown output.
Am I missing something?
Pandoc version: 2.2.1
Prueba.zip
The text was updated successfully, but these errors were encountered: