On 2012-09-12, Boris Kheyfets wrote:

> I want to use epub builder with math.

> I found that mathjax currently is not supported by epub. So I swithed to 
> pngmath. 

> But it doesn't render mathjax's unicode greek letter I like to use. It 
> there a work around?

Does this mean you want to use Greek Unicode characters instead of \alpha
... \omega in the source?

> I tried to make epub builder use xelatex to build the images of formulas -- 
> but I couldn't find where the latex is called in the epub builder source 
> code.

I can't help with Sphinx formatting, but mind, that also xelatex does not
process non-ASCII characters in mathematical mode unless you also use the
package unicode-math.

OTOH, the Docutils latex writer transforms Unicode characters to their
(La)TeX equivalent in mathematical mode via the call::

          math_code = node.astext().translate(unichar2tex.uni2tex_table)

where the translation dictionary unichar2tex.uni2tex_table is defined in the
docutils.utils.math sub-package. Maybe this can be ported to the Sphinx
maths extension.

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.

Reply via email to