# MathJax

MathJax in Wikispaces Wikis
• This wiki is MathJax enabled
If you are a member, open a new page and then watch this screencast to learn how to insert an MathJax equation

• How to enable your wiki for MathJax
This wiki is on Plus plan (what you get free as K-12 educator). You can check your plan by clicking on Manage Wiki. With the Plus plan, you can edit the theme. However, the first time you edit the theme, it will NOT default to the default theme. So be prepared to "fix up" your theme (colors and stuff).

In "My Theme", just before the end </head> tag, I added the code:
Go to Manage Wiki, Look and Feel, Themes and Colors, Edit (presumes you have ALREADY edited this - that is, you have already changed the theme on your wiki).
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: {inlineMath: [['$','$'], ['\$','\$']]}
});
</script>
<script type="text/javascript"
src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
• Easiest way to use MathJax on a wikispaces page:
Below you see 3 MathJax equations - the first 2 are inline (within the sentence); the 3rd is centered.

When $a \ne 0$, there are two solutions to $ax^2 + bx + c = 0$ and they are $x = \frac {-b \pm \sqrt{b^2-4ac} } {2a}$

To get this, simply open a Widget -> Other HTML and copy & paste the following into the field. Hit save (and then save the page).
When $a \ne 0$, there are two solutions to $ax^2 + bx + c = 0$ and they are $x = \frac {-b \pm \sqrt{b^2-4ac} } {2a}$
Here is a page where I put all of the equations in html (using same format as above) and then I could color them. Join the wiki and open the page for editing and open the 2nd widget.

To get this, simply open a Widget -> Other HTML and copy & paste the following into the field. Hit save (and then save the page).
When $a \ne 0$, there are two solutions to $ax^2 + bx + c = 0$ and they are $x = \frac {-b \pm \sqrt{b^2-4ac} } {2a}$
Here is a page where I put all of the equations in html (using same format as above) and then I could color them. Join the wiki and open the page for editing and open the 2nd widget.

Important on Oct 20, 2011: You cannot edit a wikipage with MathJax formulas directly entered into the page without re-entering them. Just opening and saving the page trashes the equations. I will write to wikispaces about this. Thanks to rstyson for noticing this!
So if you like to edit your pages, I strongly suggest you use Widget -> Other html

If you don't know LaTeX, this code can easily be obtained by typing the equation using MathType and then Copy+Paste (set MathType translator for MathJax LaTeX). For inline change the first and last 2 symbols to dollar signs. (I think there is a free Equation Editor Translator available from DesignScience.)