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.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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).

\begin{align*} % align* produces unnumbered equations
& x_1 + x_2 + x_3\\
& x_2 + x_4 + x_5

enter image description here

share|improve this answer

Your Answer


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.