Ceasar / Encyclopedia

Tool for keeping a hypermedia encyclopedia
MIT License
55 stars 7 forks source link

Improve LaTeX spport #62

Closed Ceasar closed 5 years ago

Ceasar commented 5 years ago

Currently LaTeX support (with the :math: directive) is limited to only some basic symbols. Complex symbols, and even simple ones like fractions, do not work.

It would be more useful, especially for more technical users, if we had better support for latex.

Ceasar commented 5 years ago

http://docutils.sourceforge.net/docs/ref/rst/directives.html#math

Support is limited to a subset of LaTeX math by the conversion required for many output formats. For HTML, the math_output configuration setting (or the corresponding --math-output command line option) select between alternative output formats with different subsets of supported elements. If a writer does not support math typesetting at all, the content is inserted verbatim.

Ceasar commented 5 years ago

http://docutils.sourceforge.net/docs/user/config.html#math-output

Looks like MathJax is the best option for supporting the mot LaTeX math commands.

Ceasar commented 5 years ago

Closed by https://github.com/Ceasar/Encyclopedia/commit/dd9607f4080b4f8c6f4a77c4ca763240725c0292