| 16 | |

| 17 | 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: |

| 18 | |

| 19 | {{{ |

| 20 | [[formula(\mat{R'\\G'\\B'} = \mathbf{A} \mat{R\\G\\B} + \mathbf{x})]] |

| 21 | }}} |

| 22 | |

| 23 | which will produce the following formula: |

| 24 | |

| 25 | [[Image(matrixequation.png)]] |

| 26 | |

| 27 | For 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 | |

| 43 | and no formula will be displayed. |

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 | | |