I’ve completely rewritten my write maths, see maths library to be a little jQuery plugin that attaches itself to editable areas on pages, like contenteditable
elements, textareas, and input boxes. When your cursor is inside some LaTeX, a little preview box appears just above it with the LaTeX rendered through MathJax. I’ve made a demo page on GitHub, and the code itself is available there too. It also works in TinyMCE, if you’re into that sort of thing.
The first I thing I did with it was to write a WordPress plugin which applies the plugin to the comment boxes underneath posts (source code). I’ve installed it on this site and The Aperiodical, so you can use LaTeX with confidence, knowing that it’ll appear how you want on the page. Please try it in the comments box below!
Awesome work!! $\frac{b \pm \sqrt{b^2+4ac}}{2a}$
Thanks!!!
June 28, 2012 @ 8:16 am
$x^2$
August 2, 2012 @ 4:22 am
That is great! Let me test:
$\sqrt{3x1}+(1+x)^2$
It would be cool to integrate with Aloha Editor in some way. The problem is how to define the workflow, but looks very cool…
August 6, 2012 @ 4:01 pm
\lim_{n\rightarrow \infty}\sum_{i=0}^n \frac{1}{p_i}
September 14, 2012 @ 2:52 pm
$ \lim_{n\rightarrow \infty}\sum_{i=0}^n \frac{1}{p_i} $
September 14, 2012 @ 2:53 pm
Not bad if I can write Einstein’s equation!
$E=mc^2$
November 14, 2012 @ 7:59 am
Hi, great works.
May I have the link to the code where you integrate writemaths with wysiwyg editor? I cannot get it to work. Thanks for your help
February 11, 2013 @ 2:06 pm
Do you mean in WordPress? I haven’t got it to work in WordPress’s wysiwyg editor.
February 12, 2013 @ 3:24 pm
Are you able to get it work on any wysiwyg editor?
February 19, 2013 @ 12:35 pm
Can you give me a link of demo to use it in Tinymce?
February 14, 2013 @ 6:30 pm
$\sum_{m=1}^\infty\sum_{n=1}^\infty\frac{m^2\,n}
{3^m\left(m\,3^n+n\,3^m\right)}$
Great work !
February 19, 2013 @ 10:17 am
$iint _{ 2 }^{ 4 }{ x{ y }^{ 2 } } .dz$
March 23, 2013 @ 6:18 pm
\iint _{ 2 }^{ 4 }{ x{ y }^{ 2 } } .dz
March 23, 2013 @ 6:19 pm
\[e^{\pi i} + 1 = 0\]
April 16, 2013 @ 3:06 pm
This is cool!
x^2
May 13, 2013 @ 7:51 pm
Again with dollar signs
$x^2$
May 13, 2013 @ 7:51 pm
$x^2$
May 20, 2013 @ 1:29 pm
$x^3+x^2+sqrt(4)$
July 9, 2013 @ 7:50 pm
\[ 1 + \frac{q^2}{(1q)}+\frac{q^6}{(1q)(1q^2)}+\cdots =
\prod_{j=0}^{\infty}\frac{1}{(1q^{5j+2})(1q^{5j+3})},
\quad\quad \text{for $q<1$}. \]
cool man..
August 31, 2013 @ 9:03 pm
$x=\frac{b \pm \sqrt{b^2 – 4ac}}{2a}$
September 2, 2013 @ 8:29 pm
$I=\frac{1^3}{2}mR^2=\frac{1}{2}.1.(0,2)^2=0,02 kg.m^2$
September 2, 2013 @ 11:18 pm
$a^2 + b^2 = c^2$
September 16, 2013 @ 6:52 pm
Let $a = n_1p_j$ where $p_j \in \{2, 3, 5, 7, \ldots\},$ so $a \in {P_n}_1.$ Let $b = n_2p_k$ where $p_k \in \{2, 3, 5, 7, \ldots\},$ so $b \in {P_n}_2.$
Now assume that ${P_n}_1 \cap {P_n}_2$ is nonempty. Then there exists some $n_1$ and $n_2$ such that for some $p_j$ and $p_k$ such that $a = b$. Thus we have $n_1p_j = n_2p_k$.
Note that $p_kp_j = p_kp_j$ is clearly true, and multiplying both sides of the equation by some integer $m$ gives us $mp_kp_j = mp_kp_j$.
So let $n_1 = mp_k$ and $n_2 = mp_j$, which implies $n_1p_j = n_2p_k$, and thus $a = b$ as desired. This means that ${P_n}_1 \cap {P_n}_2$ is guaranteed to be nonempty if we can divide any common factors from $n_1$ and $n_2$ and be left with only prime numbers.
(A) is out as $1$ is not prime. (B) is is out because if we divide $7$ and $21$ by their common factor $7$, we are left with $1$ and $7$, and $1$ is not prime. (D) is out because $24/4 = 6$ which is not prime. (E) is out because $5/5 =1$ is not prime. (C) is correct as $12/4 = 3$ and $20/4 = 5$, which are both prime.
October 3, 2013 @ 5:56 am
$$ sqrt(4) $$
December 11, 2013 @ 8:03 am
$ sqrt(4) $
December 11, 2013 @ 8:04 am
\(J_\alpha(x) = \sum\limits_{m=0}^\infty \frac{(1)^m}{m! \, \Gamma(m + \alpha + 1)}{\left({\frac{x}{2}}\right)}^{2 m + \alpha}\)
April 26, 2014 @ 1:36 am
Amazing !
$$ \frac{\partial f}{\partial t} = \frac{\partial ^{2} f}{\partial x^{2}} $$
I will try to install it on my own wordpress. Thanks a lot !
June 28, 2014 @ 9:21 pm
$a^2+b^4
July 8, 2014 @ 9:20 am
