LaTeX

I came across this wonderful blog post about writing equations in a wordpress.com blog. I also found this post on a program that converts .tex files into wordpress.com posts.

Sample techniques below:

Inline 

blah blah \int_{-\infty}^\infty e^{-x^2}\,dx=\sqrt\pi blah blah

In a Box

\int_{-\infty}^\infty e^{-x^2}\,dx=\sqrt\pi

Align Center

\displaystyle\int_{-\infty}^\infty e^{-x^2}\,dx=\sqrt\pi

Multiline

\setlength\arraycolsep{2pt}\begin{array}{rl}  \displaystyle\int_{-\infty}^\infty e^{-x^2}\,dx&\displaystyle=\sqrt\pi,\smallskip\\  \displaystyle\int_{-\infty}^\infty e^{-ax^2}\,dx&\displaystyle=\int_{-\infty}^\infty e^{-y^2}\frac{dy}{\sqrt a}\smallskip\\  &\displaystyle=\sqrt{\frac\pi a}  \end{array}

Equation Numbering

\displaystyle C(S,t)= S N(d_1) - N(d_2) K e^{-rt} (1)

Numbering applied to two rows

\setlength\arraycolsep{2pt}\begin{array}{rl}  \displaystyle d_1&\displaystyle=\frac{\ln(S/K) + (r + \sigma^2/2)(T - t)}{\sigma \sqrt{T - t}}\bigskip\\  \displaystyle d_2&\displaystyle=d_1 - \sigma \sqrt{T - t}  \end{array} (2)

-END-

Advertisements

Comments are closed.

Copyright © 2005-2014 whatheheckaboom.wordpress.com. All Rights Reserved.

Enter your email address to follow this blog and receive notifications of new posts by email.

Archives

Blog Stats

  • 509,870 hits
%d bloggers like this: