Changes between Version 42 and Version 43 of TracMathPlugin


Ignore:
Timestamp:
Sep 12, 2016, 6:11:48 PM (8 months ago)
Author:
figaro
Comment:

Further cosmetic changes

Legend:

Unmodified
Added
Removed
Modified
  • TracMathPlugin

    v42 v43  
    11[[PageOutline(2-5,Contents,pullout)]]
    22
    3 = Support for LaTeX Math Formulas in Wiki Pages
     3= Support for LaTeX Math Formulas in wiki pages
    44
    55== Description
    66
    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/mt-math mt-math] to Trac.
     7This 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/mt-math mt-math] to Trac.
     8
     9Adding 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
     17would 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.
    824
    925See also: [[ListTagged(realm:wiki LaTeX)]]
     
    2844
    2945== Installation
     46
     47'''Requirements''': pdflatex and [http://www.ghostscript.com/ ghostscript], available as packages on most Linux distributions.
    3048
    3149Unpack your download. Go to the top level directory of !TracMath and type:
     
    6280}}}
    6381
    64 == Additional Requirements
    65 
    66 pdflatex and [http://www.ghostscript.com/ ghostscript], available as packages on most Linux distributions.
    67 
    6882If you encounter an error: "LaTeX Error: File preview.sty not found", install also packages: cm-super and texlive-latex-extra.
    69 
    70 == Example
    71 
    72 Adding the following lines in your wiki page or ticket description:
    73 
    74 {{{
    75 {{{
    76 #!latex
    77 $\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.
    8883
    8984== Release Notes