Anonymous

Changes

From CUGC Wiki

User:TW466/MathJaxTest

397 bytes added, 15:44, 12 March 2019
Add explanation.
$\(\LaTeX$ \) can be included in wiki articles by using <tt><nowiki><math>...</math></nowiki></tt> tags.
For instance, the following line results in:
<math>x_{1,2} = \frac{-b \pm \sqrt{b^2 - 4 a c}}{2 a}</math>
<nowikitt>$...$\</nowikispan> and <nowiki/span>\( ... \<span></span>)</nowikitt> can also be used as maths delimiters, for instance: $<tt>\<span></span>( \nabla \vec B = \nabla \cdot Q$ or \<span></span>)</tt>becomes \( 0 \nabla \vec B = a x^2 + b x + c \nabla \cdot Q \).<nowiki><nowiki></nowiki> tags don't escape them unfortunately (but do escape <nowiki><math></nowiki> tags).
[https://www.mediawiki.org/wiki/Extension:SimpleMathJax SimpleMathJax] also supports [https://mhchem.github.io/MathJax-mhchem/ <nowiki><chem></nowiki> tags], like so:
<nowiki><chem>CO2 + C -> 2 CO</chem></nowiki>
<chem>CO2 + C -> 2 CO</chem>
 
Unfortunately, maths don't show up in editing previews. <nowiki><math></nowiki>-enclosed maths show up in grey, but \<span></span>(-enclosed maths aren't converted at all until the page is saved.