wiki:TracMathJaxPlugin

Version 33 (modified by figaro, 3 years ago) (diff)

Add heading to standard section

Render mathematical expressions in Trac using ​MathJax

Notice: This plugin is unmaintained and available for adoption.

Description

This WikiProcessor uses the math keyword for LaTeX rendering, including TikZ. This plugin uses MathJax to display mathematical expressions. 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

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:

Attachments (2)

Download all attachments as: .zip