LaTeXWe have added support for LaTeX formatting (backslash \ has to be escaped, so in your LaTeX code you have to replace \ with \\). There is no live preview. Users of NoScript and similar javascript blockers may need to whitelist mathjax.org It works like this:
Some examples:
$$P(A|B)= \frac{P(B|A)*P(A)}{P(B)}$$
$$\omega_0=\frac{1}{M}\sum{y_i} - \frac{\omega_1}{M}\sum{x_i}$$
$$\omega_1=\frac{M\sum{{x_i}{y_i}}-\sum{x_i}\sum{y_i}}{M\sum{x_i^2}-(\sum{x_i})^2}$$ Available symbols and codes are here: artofproblemsolving.com Sandbox to test and see how your code works: MathJax in Action This is awesome.
(25 Dec '11, 20:25)
gregmchapman ♦
Very useful!
Users of NoScript and similar javascript blockers may need to whitelist mathjax.org.
(25 Dec '11, 22:49)
jojo
Note that this apparently does not work in comments:
$$ P(A|B)= \frac{P(B|A)*P(A)}{P(B)} $$
I had been getting MathJax configuration messages recently, but don't seem to be today. @Gundega, was something fixed?
(25 Jan '12, 13:28)
rseiter ♦
@rseiter As you see, it does work in comments, it just doesn't work for the person who posted comment without refreshing the page (because commenting uses Ajax, and the MathJax works only onLoad, its not Live event).
And no, I havent done anything with MathJax, but the javascript itself is included from the author website, so maybe they released new version ?
(25 Jan '12, 14:17)
Gundega ♦♦
|
|
$$ P(Happy\ |\ Latex) = \frac{1}{\sqrt{\pi}} \int_{-\infty}^{\infty} e^{-x^2} dx $$ |
|
Hurray. Testing: $$ P(A|B) = \dfrac{P(B|A)P(A)}{P(B)}$$ it works! |
|
$$ X_{mas}=\sum{M}{er^2}{y_i}$$ |
|
this is a test $$ \bar X $$ Nooo, dont delete it, write something nice!
1
Can I use it in comments, too?
$$ \theta = {\underbrace{\left(X^TX + \lambda\begin{bmatrix} 0 &&&& \\ & 1 &&& \\ && 1 &&\\ &&& \ddots & \\ &&&& 1 \end{bmatrix}\right)}_{\mathrm{invertable}}}^{-1}X^Ty $$
It works in comments (despite what I said above ;-). As @Gundega noted, the person who posts the comment does not see the formatted version until they refresh.
Oh, blind me didn't read the comments, it seems ;)
And what about using it $ \sqrt{\mathrm{inline}} $? Doesn't work, what a pity.
That is odd given that the MathJax sandbox link @Gundega posted supports that syntax. Should this be considered an Aiqus bug?
1
@rseiter "it's not a bug, it's a feature" cough and not particularly Aiqus, but OSQA in general. Same reason you need to double escape \, OSQA engine does some fancy stuff with special characters.
1
What about $% E = m{c^2} $% ?
@Gundega, apologies if you already know all about this, but this post looked like it might be helpful (esp. the idea about changing the default inline character to $%
http://meta.osqa.net/questions/55/can-osqa-provide-latex-support
|