On Sat, 29 Oct 2011 13:03:51 -0700 (PDT)
jireva <[email protected]> wrote:

> Docutils math directives (http://docutils.sourceforge.net/docs/ref/rst/
> directives.html#math) render as literal LaTeX code which should be a
> fall back (see: 
> http://docutils.sourceforge.net/docs/user/config.html#math-output).
> 
> The MathJax output works very nicely, and MathML works too (though it
> has some limitations).  Would it be possible to use one of these
> instead of the literal latex?  *Can* Qt render MathML or MathJax?

Can you run this script

import docutils
print (docutils.__file__)
print (docutils.__version__)

from both Leo and an regular python shell (`python` or `ipython`)?

Are the results identical?

Also run, from the command line,

rst2html --version

How does that compare with the above results.

I'm assuming MathJax / MathML is working for you when you run rst2html
on the file (the same one you're editing with Leo) from the command
line.  If that's true, it's interesting to compare the versions
involved.  For me `rst2html --version` gives 0.9 whereas the python
imports show 0.8.

If MathJax / MathML is *not* working for you from the command line, I'd
try fixing that first.

Cheers -Terry

> ps.
> I tried going into the viewrendered plugin and adding a
> ``settings_overrides={'math_output': 'MathJax'}`` argument to the call
> to docutils ``publish_string``.  It didn't work.
> 

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en.

Reply via email to