Changes between Version 19 and Version 20 of LatexFormulaMacro


Ignore:
Timestamp:
Oct 2, 2016, 4:41:57 PM (5 years ago)
Author:
figaro
Comment:

Moved example to functional description

Legend:

Unmodified
Added
Removed
Modified
  • LatexFormulaMacro

    v19 v20  
    1414  1. Run dvips on .dvi file to produce .eps file.
    1515  1. Run convert on .eps file to produce .jpg file.
     16
     17By default, the Latex code is rendered in math mode. This allows for quick math expressions. There is also a built-in macro called "mat" which is used for formatting matrices, like this:
     18
     19{{{
     20[[formula(\mat{R'\\G'\\B'} = \mathbf{A} \mat{R\\G\\B} + \mathbf{x})]]
     21}}}
     22
     23which will produce the following formula:
     24
     25[[Image(matrixequation.png)]]
     26
     27For more complicated usage, use the !{{{ ... }}} format and the "nomode" command to disable the display-math mode:
     28
     29{{{
     30  {{{
     31  #!formula
     32  #nomode
     33   A more complicated equation should be typeset in {\em displayed math\/} mode,
     34   like this:
     35   \[
     36   z \left( 1 \ +\ \sqrt{\omega_{i+1} + \zeta -\frac{x+1}{\Theta +1} y + 1}
     37   \ \right)
     38   \ \ \ =\ \ \ 1
     39   \]
     40  }}}
     41}}}
     42
     43and no formula will be displayed.
    1644
    1745See also tagged:LaTeX
     
    4573General instructions on installing Trac plugins can be found on the [TracPlugins#InstallingaTracplugin TracPlugins] page.
    4674
    47 == Example
    48 
    49 By default, the Latex code is rendered in math mode. This allows for quick math expressions. There is also a built-in macro called "mat" which is used for formatting matrices, like this:
    50 
    51 {{{
    52 [[formula(\mat{R'\\G'\\B'} = \mathbf{A} \mat{R\\G\\B} + \mathbf{x})]]
    53 }}}
    54 
    55 which will produce the following formula:
    56 
    57 [[Image(matrixequation.png)]]
    58 
    59 For more complicated usage, use the !{{{ ... }}} format and the "nomode" command to disable the display-math mode:
    60 
    61 {{{
    62   {{{
    63   #!formula
    64   #nomode
    65    A more complicated equation should be typeset in {\em displayed math\/} mode,
    66    like this:
    67    \[
    68    z \left( 1 \ +\ \sqrt{\omega_{i+1} + \zeta -\frac{x+1}{\Theta +1} y + 1}
    69    \ \right)
    70    \ \ \ =\ \ \ 1
    71    \]
    72   }}}
    73 }}}
    74 
    75 and no formula will be displayed.
    76 
    7775== Recent Changes
    7876