On 2012-09-16, Daniele Zambelli wrote: > I'm writing a python programm to convert Open Document Format (ODT) > into Sphinx (ReST), I'm trying to improve the odt2rst: > http://code.google.com/p/odt2rst/
> I would like to manage the math equation, the ODT format for the math > equation is the MathML standard: http://www.w3.org/TR/MathML/ > I did not found any simple way to convert from the MathML format to > ReST/LaTex. > Do you know any tools that could be used to do this? > Do you have any hint to insert MathML into Sphinx/ReST document? The Docutils plan to support alternative input formats for `math markup`__ With MathML one of the input formats, you would be able to just insert the MathML source. The syntax will be something like:: .. math:: :input-format: MathML <math xmlns="http://www.w3.org/1998/Math/MathML" mode="display"> <mtable> <mtr> <mtd><mi>N</mi><mo>=</mo><mfrac> <mrow><mtext>number of apples</mtext></mrow> <mrow><mn>7</mn></mrow></mfrac></mtd></mtr></mtable></math> However, this would only help with HTML+MathML output, as long as there is no converter from MathML to LaTeX (unfortunately, I don't know of a suitable one). __ http://docutils.sourceforge.net/docs/dev/todo.html#math-markup Günter -- You received this message because you are subscribed to the Google Groups "sphinx-dev" group. To post to this group, send email to sphinx-dev@googlegroups.com. To unsubscribe from this group, send email to sphinx-dev+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sphinx-dev?hl=en.