Typeset Mathematics using jsMath

By using Davide P. Cervon's  jsMath package, poorman's CMS can typeset Mathematics using TeX commands. Since most of us have experience with TeX, this system is ideal for us to incorporate short Math formula in your webpages. JsMath does a fairly good job on typesetting math expressions. However, it is a bit slow in rendering, and for best results, it requires you to install a set of TeX fonts on your computer.

To typeset a math formula, enter it just as you do in TeX, then mark it using style class math (from the style drop down menu). Your formula will be displayed nicely on your page. The formula will NOT be formated in the WYSIWYG editor. It will be displayed in red, in original TeX input form.  

\sin^2 x + \cos^2 x = 1

Here are some examples. fdsafdsafdsa

fds
afds
f  fds


The energy is H={a\over 2}(p_1^2+p_2^2) - {b\over 2} (q_1^2+q_2^2) + c(q_2p_1-q_1p_2)+{\text{ higher order terms}}


\left(\, \sum_{k=1}^n a_k b_k \right)^{\!\!2} \le \left(\, \sum_{k=1}^n a_k^2 \right) \left(\, \sum_{k=1}^n b_k^2 \right)



f(z)\cdot\mathop{\rm Ind}\nolimits_\gamma(z) = \frac{1}{2\pi i}\oint_\gamma\frac{f({\scriptstyle\xi})}{{\scriptstyle\xi}-z}\,d{\scriptstyle\xi}




\sin(\alpha+\beta)=\sin(\alpha)\cos(\beta)+\cos(\alpha)\sin(\beta)



\matrix{ &&&&&&0\cr &&&&&&\mapdown{}\cr \rule 0pt 1.1em .6em 0&\mapright{}&{\cal O}_C&\mapright\iota&\cal E& \mapright\rho&\cal L&\mapright{}&0\cr &&\Big\Vert&&\mapdown\phi&&\mapdown\psi\cr \rule 0pt 1.1em .6em 0&\mapright{}&{\cal O}_C&\mapright{}&\pi_*{\cal O}_D& \mapright\delta&R^1f_*{\cal O}_V(-D)&\mapright{}&0\cr &&&&&&\mapdown{\theta_i\otimes\gamma^{-1}}\cr \rule 0pt 1.1em .6em &&&&&&\hidewidth R^1f_*\bigl({\cal O}_V(-iM)\bigr)\otimes\gamma^{-1}\hidewidth\cr &&&&&&\mapdown{}\cr &&&&&&0 }


\mathop{\rm grd} \phi(z) = \left(a+\frac{2d}{\pi}\right) v_\infty\, \overline{f'(z)} = v_\infty \left[ \pi a + \frac{2d}{\pi a + 2dw^{-1/2}(w-1)^{1/2}} \right]^-


-\sum^n_{m=1} \left(\,\sum^\infty_{k=1} \frac{ h^{k-1} }{\left(w_m-z_0\right)^2} \right) = \sum^\infty_{k=1} s_k\, h^{k-1}