Changes between Version 42 and Version 43 of TracMathPlugin
 Timestamp:
 Sep 12, 2016, 6:11:48 PM (11 months ago)
Legend:
 Unmodified
 Added
 Removed
 Modified

TracMathPlugin
v42 v43 1 1 [[PageOutline(25,Contents,pullout)]] 2 2 3 = Support for LaTeX Math Formulas in Wiki Pages3 = Support for LaTeX Math Formulas in wiki pages 4 4 5 5 == Description 6 6 7 This is a processor that allows you to embed mathematical equations in wiki pages. It is basically a port of [http://www.amk.ca/python/code/mtmath mtmath] to Trac. 7 This is a processor that allows you to embed mathematical equations in Trac wiki pages. It is basically a port of [http://www.amk.ca/python/code/mtmath mtmath] to Trac. 8 9 Adding the following lines in your wiki page or ticket description: 10 11 {{{ 12 {{{#!latex 13 $\mbox{Var}[\tau(X_p,X_d)]=\mbox{Var}[E(\tau(X_p,X_d)X_p)]+E[\mbox{Var}(\tau(X_p,X_d)X_p)]$ 14 }}} 15 }}} 16 17 would produce something akin to: 18 19 [[Image(test1.png)]] 20 21 '''Other features:''' 22 * links for any `\label{}` that appears, eg `\label{eq1}` will allow you link to the output image via `SomeWikiPage#eq1`. 23 * you can use the '$' latex syntax instead, provided `use_dollars` is enabled in your configuration. 8 24 9 25 See also: [[ListTagged(realm:wiki LaTeX)]] … … 28 44 29 45 == Installation 46 47 '''Requirements''': pdflatex and [http://www.ghostscript.com/ ghostscript], available as packages on most Linux distributions. 30 48 31 49 Unpack your download. Go to the top level directory of !TracMath and type: … … 62 80 }}} 63 81 64 == Additional Requirements65 66 pdflatex and [http://www.ghostscript.com/ ghostscript], available as packages on most Linux distributions.67 68 82 If you encounter an error: "LaTeX Error: File preview.sty not found", install also packages: cmsuper and texlivelatexextra. 69 70 == Example71 72 Adding the following lines in your wiki page or ticket description:73 74 {{{75 {{{76 #!latex77 $\mbox{Var}[\tau(X_p,X_d)] = \mbox{Var}[E(\tau(X_p,X_d)X_p)] E[\mbox{Var}(\tau(X_p,X_d)X_p)]$78 }}}79 }}}80 81 would produce something akin to:82 83 [[Image(test1.png)]]84 85 '''Other features:'''86 * links for any `\label{}` that appears, eg `\label{eq1}` will allow you link to the output image via `SomeWikiPage#eq1`.87 * can use '$' latex syntax instead, provided `use_dollars` is enabled in config.88 83 89 84 == Release Notes