Version 2 (modified by 15 years ago) (diff) | ,
---|
Displaying a formula
To allow to the formula exhibition using the syntax Latex, was installed the macro latex-math. To use it, it uses the following syntax:
Para permitir a exibição de fórmulas usando a sintaxe LaTeX, foi instalada a macro latex-math. Para utilizá-la, use a seguinte sintaxe:
[[latex-math(formula)]]
Examples:
Exemplos:
[[latex-math(x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}})]]
it produces the following result:
produz o seguinte resultado:
latex-math(x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}})?
[[latex-math(K = \frac{12 \sum_{i=1}^g n_i(\bar{r}_{i\cdot} - \bar{r})^2}{N(N+1)})]]
it produces the following result:
produz o seguinte resultado:
latex-math(K = \frac{12 \sum_{i=1}^g n_i(\bar{r}_{i\cdot} - \bar{r})^2}{N(N+1)})?
For more complex formulas it uses the following syntax:
Para fórmulas mais complexas use a seguinte sintaxe:
{{{ #!latex-math . . . }}}
Example:
Exemplo:
{{{ #!latex-math \delta_k = \left\{ \begin{array}{ll} 1 & \textrm{se } k=0 \\ 0 & \textrm{se } k\neq 0 \end{array} \right. \to Z(\delta_k)=\Delta(z)=1 }}}
it produces the following result:
produz o seguinte resultado:
Other examples can be gotten from the page http://meta.wikimedia.org/wiki/Help:Formula, substituting itself
Outros exemplos podem ser obtidos a partir da página http://meta.wikimedia.org/wiki/Help:Formula, substituindo-se
<math>...</math>
by
por
[[latex-math(...)]]