## #87 Support for more latex math symbols

closed-fixed
nobody
None
5
2011-11-08
2011-11-04
Stefan Seefeld
No

The math support in docutils is a little lacking (and inconsistent). Using the following in ReST:

j = 1, 2, …, N-1

will raise an error: the parser correctly recognizes the ellipses, mapping them to 'ldots'. However, the mathml generator then doesn't recognize that symbol and throws an error. The attached patch defines the back mapping from 'ldots' to ' …' to fix this.

I took the opportunity to also add support for \gets and \to at the same time (which are aliases to \leftarrow and \rightarrow.

## Discussion

• Stefan Seefeld
2011-11-04

the patch

Attachments

• Günter Milde
2011-11-08

• status: open --> closed-fixed

• Günter Milde
2011-11-08

Thanks for the patch.

I took the chance to add support for a large set of commands matching Unicode characters
via a helper module generated from the "unimathchars" database
http://milde.users.sourceforge.net/LUCR/Math/ .

Math support in formats other than LaTeX is inconsistent, as it largely depends on third party software
(except for the unfinished latex2mathml module).
Currently, the most complete solution for HTML output is MathJax.