Moonic's notes


Sunday, December 04, 2005

LaTeX tip #3

One very useful tool in displaying equations well is eqnarray, which allows you to neatly align a string of equations:

\documentclass[11pt]{article}
\begin{document}
\begin{eqnarray*}
2x^2 + 3(x-1)(x-2)&=&2x^2 + 3(x^2-3x+2)\&=& 2x^2 + 3x^2 - 9x + 6\&=& 5x^2 - 9x + 6
\end{eqnarray*}
\end{document}

The * after eqnarray prevents line numbers from popping up after each line.

More on the same topic: Math in LaTeX

0 Comments:

Post a Comment

<< Home