Difference between revisions of "User:TW466/MathJaxTest"

$$\LaTeX$$ can be included in wiki articles by using $...$ tags.

For instance, the following line results in:

$x_{1,2} = \frac{-b \pm \sqrt{b^2 - 4 a c}}{2 a}$


$x_{1,2} = \frac{-b \pm \sqrt{b^2 - 4 a c}}{2 a}$

$$...$$ can also be used as maths delimiters, for instance: $$\nabla B = \nabla \cdot \vec Q$$ becomes $$\nabla B = \nabla \cdot \vec Q$$. <nowiki> tags don't escape them unfortunately (but do escape [itex] tags).

SimpleMathJax also supports <chem> tags, like so:

<chem>CO2 + C -> 2 CO</chem>


$\ce{CO2 + C -> 2 CO}$

Unfortunately, maths don't show up in editing previews. [itex]-enclosed maths show up in grey, but \(-enclosed maths aren't converted at all until the page is saved.