I tried: it doesn't work:

I've made a file docutils.conf in the root dir of the doc

[html4css1 writer]
math-output=MathML 

and in the html it gives -- I see that the math isn't converted to mathml.

With great respect,
Boris.

On Monday, March 11, 2013 12:21:37 AM UTC+4, Guenter Milde wrote:
>
> On 2013-03-10, Boris Kheyfets wrote: 
>
> >> Since Docutils Release 0.8 (2011-07-07) 
> >> mathematical formulas are supported without need for an extension. 
> >> The --math-output=mathml setting supports a subset of LaTeX math syntax 
> >> (including the above examples). 
>
> > ... It works if I compile with 
>
> > rst2html.py --math-output=mathml 
>
> >  -- but I can't get sphinx to output mathml. As far as I know sphinx 
> > doesn't use rst2html.py 
>
> Both sphinx and rst2html.py use the same HTML writer which is part of 
> Docutils 
> via the Docutils API (publish_...). 
>
> Without loading a Sphinx math extension, the Docutils version of the 
> math directive should be used - either MathJax or, with a current daily 
> snapshot (Docutils 0.11 [repository]) HTML+CSS. 
>
> I don't know how to configure Docutils when used from Sphinx. It may be 
> that the default configuration files are not used. However, it may be 
> worth a try to edit one of the `configuration files`__ and include 
>
>   math-output=MathML 
>
> in the [HTML4css1 writer] section. This should do the trick. 
>
>   With the "html4css1" writer, the resulting HTML document does not 
>   validate, as there is no DTD for MathML + XHTML Transitional. However, 
>   MathML-enabled browsers will render it fine. 
>
> Günter 
>
>
> __ 
> http://docutils.sourceforge.net/docs/user/config.html#configuration-files 
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sphinx-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to