Starting 3 June 2011 Wikidot uses MathJax as the math processing engine for LaTeX-style equations. The wiki syntax for math remains unchanged, however the math equations are no longer processed on the server and served as .png images, but rather parsed in the browser itself.
MathJax provides great compatibility with LaTeX, but is more strict. What seems to be a warning for LaTeX, is often an error in MathJax.
Here are tips if your equations do not work as expected
Syntax errors
- Equations that fail parsing completely [Math Processing Error] most likely contain syntax errors.
- Make sure you close parenthesis correctly, e.g. this code will not work without the closing \right.:
|
(1)
\begin{eqnarray} f(x) = \left\{ \begin{array}{ll} x & x \geq 0 \\ 0 & x < 0 \end{array} \right. \end{eqnarray}
|
- Double super- or subscript do not work. An expression like C_5 H_1_0 will fail. Use C_5 H_{10} instead. It's clearer anyway.
- Do not use newlines (\\) within equation environment where they have no meaning.
They do work fine within eqnarray though: use [[math type="eqnarray"]].
Unsupported symbols
- \bm (bold math) is not supported, use \boldsymbol instead.
- \framebox is not supported, use \boxed and \mbox instead.
[[$ \framebox{some text} $]] would be the same as [[$ \boxed{\mbox{some text}} $]]: $\boxed{\mbox{some text}}$ - \color does not work like a switch.
To color an expression, use \color{green}{qwerty} instead of {\color{green} qwerty}. - \hline is not supported everywhere. Do not use it where not applicable.
Wikidot can produce horizontal lines without math, just use ----. - Expressions in red (as in $\sin x \cdot \cosx$) mean that they are unknown or unsupported by MathJax.
Previously such expressions just produced silent warnings and were skipped from output. With MathJax they are clearly marked, so you can see what causes the problem and fix it. Here the mistake is a missing space between \cos and x. - Sometimes an extra pair of braces is required, e.g. \sqrt\frac{y}{x} will not work, while \sqrt{\frac{y}{x}} will.
Still have problems?
First, check out the Wiki syntax documentation: Math.
If you still have problems, we will gladly help you with transition to MathJax. Please add a comment to this page if you need assistance with your equations.
I find that my displayed equations are numbered consecutively from (1) on each of my pages under wikidot. How do I create a displayed equation without number? In LaTeX one would use the equation* environment instead of the equation environment, or one would use the \nonumber command within the equation environment. I can't get this to work in my wikidot pages.
Somewhat related, how do I find out precisely which version of MathJax is used in my wikidot pages. (I haven't customized it in any way.)
Hi:
I wonder how can I manage to get a particular LaTeX environment to be supported in my site.
When I looked in the Math Format section of Wiki Syntax help page, I found this:
I particularly need the tabular environment.
Bas Braams (7 Jan 2012), place this code onto the page to hide the numbers for all equations on that page:
If you'd like to only hide the number for one equation I can help you with that as well, but it's slightly more complicated.
Coordinador (1 Apr 2012), please re-post your suggestion at http://feedback.wikidot.com and the Wikidot development team will consider it.
Shane Smith ★ Website: Wikidot Development & Programming.
STE Wikidot Editor: Windows & Mac OS X. ★ Try it for free!.
I'm also on Twitter, follow me there! ;-)
Thanks for your suggestion, Shane. As I was following it, I came across the answer to a similar request previously made. The request was rejected on the following grounds:
http://feedback.wikidot.com/bug:485/comments/show#post-1267192
Coordinador,
Perhaps look at this: http://meta.math.stackexchange.com/questions/2016/tabular-in-mathjax
Two suggestions come to mind:
Let me know if you need some help with the Wikidot tables. I haven't used MathJax so I can't help you with the first one.
Shane Smith ★ Website: Wikidot Development & Programming.
STE Wikidot Editor: Windows & Mac OS X. ★ Try it for free!.
I'm also on Twitter, follow me there! ;-)
leiger:
Thanks for the reference and your kind offer. I followed the link, only to find that LaTeX's tabular environment is indeed left unsupported by MathJax, on the grounds that HTML does tables good enough and that supporting them in MathJax would be redundant.
Hence, I tried you two suggestions.
What I want to produce is a simple short horizontal line, like the one used to represent basic arithmetic operation like additions, subtractions, multiplications, etc.
LaTeX represents it with a single line of code:
Wikidot has three different way to do it. None of them quite satisfactory as you can see:
1. Horizontal line command.
I placed six ndashes like this ------ between my formulas, and got this:
$(A \supset \lnot B)$
$(B \supset \lnot A)$
Code is at its simplest, but the line is way too long.
2. Simple tables with and without horizontal line.
2.1 Without horizontal line:
Can't remove vertical lines and horizontal lines at the top and bottom. Code is simple enough.
2.2 With a line compressing nothing else than the aforementioned horizontal line
Code is still quite simple, but the horizontal line is way too short.
3. Advanced tables, with and without Wikidot's horizontal line.
3.1 Without using Wikidot's horizontal line.
Code is burdensome. Can't remove the horizontal line at the bottom nor two vertical lines on the sides of the conclusion.
3.2 Along with Wikidot's horizontal line.
Code is burdensome, the unnecessary lines (vertical and at the bottom) are removed, but the intended horizontal line separating the conclusion is way too short and centered (instead of left aligned).
In all, none of the workarounds I could think of can produce a simple, short horizontal line that is used in arithmetics and logic.
I thank you for the suggestions anyway. ;)
Does this work? It is a slight modification to your 3.1 example:
Essentially, change this:
border: 1px solid black;
to this:
border-top: 1px solid black;
Shane Smith ★ Website: Wikidot Development & Programming.
STE Wikidot Editor: Windows & Mac OS X. ★ Try it for free!.
I'm also on Twitter, follow me there! ;-)
It works indeed!
Thank you very much, leiger. Awsome!