wiki:TracMathJaxPlugin

Render mathematical expressions in Trac using MathJax

Notice: This plugin is unmaintained and available for adoption.

Description

This plugin uses ​MathJax to display mathematical expressions on Trac wiki pages, tickets, milestones or blogs. MathJax is a cross-browser JavaScript library that displays mathematical notation in web browsers, using MathML, LaTeX and ASCIIMathML markup. MathJax is released as open-source software under the Apache License.

Usage of this plugin in your wiki is in the following ways:

  • inline, also known as macro
  • wiki-processor

This WikiProcessor uses the math keyword for LaTeX rendering, including ​TikZ.

Example of inline syntax:

[[math(f(z_{0})=\frac{1}{2\pi i}\int_{\left|z\right|=1}\frac{f(z)}{z-z_{0}}{\mathrm{d}z})]]

Example of wiki-processor:

{{{#!math
f(z_{0})=\frac{1}{2\pi i}\int_{\left|z\right|=1}\frac{f(z)}{z-z_{0}}{\mathrm{d}z}
}}}

Both of these examples produce the following result:

Cauchy integral formula

See also:

Bugs/Feature Requests

Please use ​GitHub for any issues you have.

Download

Download the zipped source from ​here.

The plugin is also available on ​PyPI.

Source

You can clone from ​here using git, or ​browse the source on GitHub.

Installation

Enter the following on the command line:

pip install MathJaxPlugin

For more information, please follow ​documentation on how to install Trac plugins.

Configuration

Depending on the version of MathJax you require you may have to update the MATHJAX_URL to the library, for example to ​https://cdnjs.com/libraries/mathjax.

Author/Contributors

Authors: kisielk, mitar
Maintainer: none (needsadoption)
Contributors:

Last modified 5 years ago Last modified on Feb 20, 2022, 9:13:45 AM

Attachments (2)

Download all attachments as: .zip