Lesson Nine - LaTeX Lessons - Resources - Mathematics and Statistics - University of Canterbury - New Zealand

LaTeX Lessons

Lesson Nine: Writing Mathematics

Mathematics must always be enclosed within either two $ or between \( and \), or between \[ and \] or between two $$, or within an eqnarray or equation environment. To enclose text within mathematics you must use a \mbox statement.

\documentclass[12pt]{article}
\begin{document}
When looking at $\alpha$ or $\beta^2$ one
frequently find that the coefficient
\( \chi-\frac{1}{2} \) results in
\[ \bar{x}=\sum_{i=1}^n x_i \]
$$ \frac{\partial y}{\partial x}=y $$
and with the equation
\begin{eqnarray}
\frac{\partial y}{\partial x} & = & \lambda
\end{eqnarray}
\begin{equation}
y=\frac{e^{-y/2}}{\sqrt{2*\pi}}
\end{equation}
\end{document}

Download: latsam9.tex

This would produce...

output from above example
Figure 9.1 - Output from above example

End of lesson 9.


Next >>