I’m trying out MathJax for displaying math formulas on the web. The formula is written using standard LaTeX. Here is an example:
Bayes’ Theorem
I have to admit, it’s much better than anything I could do with HTML. I’ll have to work on the vertical line in the conditional probabilities. It needs just a bit more space to be easily legible.
UPDATE
Davide Cervone suggested below that I use \mid instead of \vert. Here’s how it looks with \mid:
Bayes’ Theorem
For comparison, I rendered both formulas with the application LaTeXiT and saved them as png files.
Here is the formula using \mid:

Here’s the same formula using \vert:

I think I prefer \vert In LaTeX, notice that there is some space between the vertical line and the letters next to it, but not too much space. When MathJax renders the same formula, that space is removed by the extra slant to the letters. In other posts, I’ve taken out the extra slant using \textrm, but that’s not very convenient.
Using \mid for MathJax looks like a good solution. It’s easy enough to change occurences of “\vert” to “\mid” with a quick find and replace.