Thursday, July 9, 2009

Latex Samples

Here is an inline math $\sum_{i=1}^nx_iy_i$ and $\displaystyle \sum_i^n a_i$ this is a display math $$\sum_{i=1}^nx_iy_i$$. You can hover your mouse over the math symbols to see the corresponding latex code.
\[\sum_{i=1}^n a^2+b^2\]
If you dont't like the border around the image, go to the dashboard---> layout ---> edit html and look at the following code

.post img {
border:1px solid #CCCCCC;

and remove the second line (border:... etc) or replace 1px into 0px.

Here are more examples:


Multiline Equation
$\begin{aligned}x^2+4x-21&=0\\x^2+4x&=25\\x^2+4x+4&=21+4\\(x+2)^2&=25\\x+2&=\pm 5\\x&=-2\pm 5\end{aligned}$

Commutative Diagram

With Color