Version 3 (modified by Adrian Fritz, 6 years ago) (diff)

TracMathJaxPlugin

Description

A plugin for rendering math in Trac using MathJax. Unlike the TracMathPlugin, this plugin performs all rendering on the client side using web fonts.

For the latest changes, check out the source using Hg, or browse it on Bitbucket.

 $python setup.py bdist_egg  This should create an egg file under the dist subdirectory of your current directory. Copy the egg to the plugins directory of your trac project. If you have any difficulties installing consult these trac plugin installation steps. Next, download a copy of MathJax and install it on your server to a location readable by the web server. To activate the component, edit your project's trac.ini file to include:  [components] tracmathjax.* = enabled  Also create a new section called [tracmathjax] and configure the path to where you unpacked MathJax: [tracmathjax] mathjax_path = /path/to/mathjax  For additional customization of the display output, see the MathJax documentation. Bugs/Feature Requests Existing bugs and feature requests for TracMathJaxPlugin are here. If you have any issues, create a new ticket. Example To display math inline, enter LaTeX equation in between a pair of $$ and $$ brackets: Here is an inline equation: $$y = x^2$$  To display a block of math, either enter it between a pair of $$ characters: Here is a block equation:$$ y = x^2$\$


or use the latex processor:

{{{
#!latex
y = x ^ 2
}}}


Release Notes

0.1

• Initial release

Author/Contributors

Author: kisielk
Maintainer: kisielk
Contributors:
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 1, "mathjax_display_tex": 2, "mathjax_asciimath": 1, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.23456664383411407, "perplexity": 16385.816345258725}, "config": {"markdown_headings": false, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2017-13/segments/1490218190134.67/warc/CC-MAIN-20170322212950-00363-ip-10-233-31-227.ec2.internal.warc.gz"}