On 2011-12-03, Friedrich Romstedt wrote:
> Hello Guenter,

>>> 3)  Maths as PNGs (if not using JSMath, what is not an option for
>>> ebook readers) not properly aligned in inline text mostly.

>> Since version 0.8, Docutils supports math with MathML and HTML+CSS output
>> options in HTML. (I don't know how good these work in ePub, though.)

> OK, this is pretty cool.  Unfortunately the Wiki on mathweb.org
> referenced from
> http://docutils.sourceforge.net/docs/user/config.html#math-output
> seems nonfunctional (it tries to download the php script for me).

Fixed. Thanks for reporting.

> How would one enable MathML with Sphinx?

Use Docutils >= 0.8, the :math: directive but not the Sphinx math
extension. Watch for the differences and limitations
>> http://docutils.sourceforge.net/docs/ref/rst/directives.html#math

How to select MathML output for html, I don't know, but there should be
some way to pass configuration settings to Docutils.

> Still, I would rather stick to PNGs which are aligned properly
> (plastex?), for portability.  But it sounds good.

PNGs have the big disadvantage that you cannot copy/search/select the
content. Also, they do not scale (which is especially bad in an e-book).

Some e-book readers support SVG, so this may be an option. However,
converting LaTeX math output to SVG does not work well because the math
fonts have special, non-standard alignments. It will only work
satisfactorily with XeTeX or LuaTeX, the unicode-math package and
OpenType fonts.

However, the --math-output=HTML option should be scalable, searchable, and
portable - as long as the target device supports CSS2.

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