Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I want to have aligned equations going vertically down a page. How do I get this style?

Instead of the following:

\[
x_1 + x_2 + x_3


x_2 + x_4 + x_5
\]

What how should I do this?

share|improve this question
    
Use align environment. –  Peter Grill Oct 4 '12 at 18:41
    
Does this mean I have to type begin{equation}\end{equation} for each equation or can I type \\ when i want a new line? –  CodeKingPlusPlus Oct 4 '12 at 18:45
    
I tried using \begin{align} \end{align} and now tex won't compile. –  CodeKingPlusPlus Oct 4 '12 at 18:47
    
I am using amssym, amsmath, and amsthm –  CodeKingPlusPlus Oct 4 '12 at 18:48
    
AFAICT, there is no amssym package. Were you trying to load the amssymb pacakge? –  Mico Oct 4 '12 at 18:52

1 Answer 1

up vote 3 down vote accepted

To use the align environment, be sure to load the amsmath package in your document's preamble. In the example code below, the "equations" are aligned on the first character (as you didn't provide information on what other point they should be aligned).

\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{align*} % align* produces unnumbered equations
& x_1 + x_2 + x_3\\
& x_2 + x_4 + x_5
\end{align*}
\end{document}

enter image description here

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.