= TracMathJaxPlugin = [[PageOutline(2-5,Contents,pullout)]] == Description == A plugin for rendering math in Trac using [http://www.mathjax.org MathJax]. Unlike the TracMathPlugin, this plugin performs all rendering on the client side using web fonts. See also: TracMathPlugin, LatexFormulaMacro, Trac2LatexPlugin, LatexMacro == Download and Source == Download the 0.3 release in [https://bitbucket.org/kisielk/tracmathjaxplugin/get/0.3.zip zip], [https://bitbucket.org/kisielk/tracmathjaxplugin/get/0.3.tar.gz gz], or [https://bitbucket.org/kisielk/tracmathjaxplugin/get/0.3.tar.bz2 bz2] format. For the latest changes, check out the source [https://bitbucket.org/kisielk/tracmathjaxplugin using Hg], or [https://bitbucket.org/kisielk/tracmathjaxplugin/src browse it on Bitbucket]. == Installation == Unpack your download. Go to the top level directory of !TracMathJax and type: {{{ #!sh $ 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 [t:wiki:TracPlugins trac plugin installation steps]. Next, download a copy of [http://www.mathjax.org MathJax] and unpack it on your server to a location readable by the web server. === Configuration === To activate the component, edit your project's `trac.ini` file to include: {{{ #!ini [components] tracmathjax.* = enabled }}} For additional customization of the display output, see the [http://www.mathjax.org/resources/docs/ MathJax documentation]. == Bugs/Feature Requests == Existing bugs and feature requests for TracMathJaxPlugin are [report:9?COMPONENT=TracMathJaxPlugin here]. If you have any issues, create a [http://trac-hacks.org/newticket?component=TracMathJaxPlugin&owner=kisielk 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.3 === * Use the MathJax CDN to serve MathJax === 0.2 === * Fixed bugs with inline macro syntax (#8500) === 0.1 === * Initial release == Author/Contributors == '''Author:''' [wiki:kisielk] [[BR]] '''Maintainer:''' [wiki:kisielk] [[BR]] '''Contributors:'''