| 1 | = Exibindo uma Fórmula = |
| 2 | |
| 3 | Para permitir a exibição de fórmulas usando a sintaxe [http://pt.wikipedia.org/wiki/LaTeX LaTeX], foi instalada a macro [https://svn.truelite.it/packages/wiki/TrueliteTracUtils#latexmath latex-math]. Para utilizá-la, use a seguinte sintaxe: |
| 4 | |
| 5 | {{{ |
| 6 | [[latex-math(insira a sua fórmula aqui)]] |
| 7 | }}} |
| 8 | |
| 9 | Exemplos: |
| 10 | |
| 11 | {{{ |
| 12 | [[latex-math(x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}})]] |
| 13 | }}} |
| 14 | |
| 15 | produz o seguinte resultado: |
| 16 | |
| 17 | [[latex-math(x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}})]] |
| 18 | |
| 19 | {{{ |
| 20 | [[latex-math(K = \frac{12 \sum_{i=1}^g n_i(\bar{r}_{i\cdot} - \bar{r})^2}{N(N+1)})]] |
| 21 | }}} |
| 22 | |
| 23 | produz o seguinte resultado: |
| 24 | |
| 25 | [[latex-math(K = \frac{12 \sum_{i=1}^g n_i(\bar{r}_{i\cdot} - \bar{r})^2}{N(N+1)})]] |
| 26 | |
| 27 | Para fórmulas mais complexas use a seguinte sintaxe: |
| 28 | |
| 29 | {{{ |
| 30 | {{{ |
| 31 | #!latex-math |
| 32 | . |
| 33 | . |
| 34 | . |
| 35 | }}} |
| 36 | }}} |
| 37 | |
| 38 | Exemplo: |
| 39 | |
| 40 | {{{ |
| 41 | {{{ |
| 42 | #!latex-math |
| 43 | \delta_k = \left\{ |
| 44 | \begin{array}{ll} |
| 45 | 1 & \textrm{se } k=0 \\ |
| 46 | 0 & \textrm{se } k\neq 0 |
| 47 | \end{array} |
| 48 | \right. |
| 49 | \to |
| 50 | Z(\delta_k)=\Delta(z)=1 |
| 51 | }}} |
| 52 | }}} |
| 53 | |
| 54 | produz o seguinte resultado: |
| 55 | |
| 56 | {{{ |
| 57 | #!latex-math |
| 58 | \delta_k = \left\{ |
| 59 | \begin{array}{ll} |
| 60 | 1 & \textrm{se } k=0 \\ |
| 61 | 0 & \textrm{se } k\neq 0 |
| 62 | \end{array} |
| 63 | \right. |
| 64 | \to |
| 65 | Z(\delta_k)=\Delta(z)=1 |
| 66 | }}} |
| 67 | |
| 68 | Outros exemplos podem ser obtidos a partir da página [http://meta.wikimedia.org/wiki/Help:Formula], substituindo-se |
| 69 | {{{ |
| 70 | <math>...</math> |
| 71 | }}} |
| 72 | por |
| 73 | {{{ |
| 74 | [[latex-math(...)]] |
| 75 | }}} |