Questions tagged [align]

{align} is an environment provided by math packages that permits multiple related equations to be aligned at a common reference point, usually a sign of relation. For general questions about aligning document elements, use {horizontal-alignment} or {vertical-alignment} instead.

The align environment is provided by packages such as amsmath and mathtools. The alignment reference point is indicated by &, which should be placed just before the sign of relation or operation in order to obtain proper spacing. The end of all lines except the last is indicated by \\. The related environment alignat allows horizontal space between equations on the same line to be explicitly specified. Both align and alignat produce equation numbers on each line; numbers can be omitted from individual lines with \notag or \nonumber. Starred versions without numbering are provided as well.

The sub-environments aligned and alignedat are building blocks to be used when the aligned component is only part of a longer multi-line structure. The width of each component is only as large as necessary, so that it can, for example, be set within delimiters.

Use of these environments is described in the amsmath users guide, which on a TeX Live system can be accessed by texdoc amsmath.

For general questions about aligning document elements, use or instead.

4048 questions
92
votes
3 answers

Multiple alignment

In the following piece of code \begin{align*} [x \mapsto s]x &= s \\ [x \mapsto s]y &= y \qquad \text{als } y\neq x \\ [x \mapsto s](\la{y}t_1) &= \la{y}[x \mapsto s]t_1 \qquad \text{als } y \neq x \text{ en } y \not \in FV(s) \\ [x \mapsto s](t_1…
codd
  • 1,239
41
votes
5 answers

How to correctly format (and align) a LaTeX proof?

I'm new to LaTeX and I'm trying to figure out how to correctly format a proof. Can someone show me a basic template for how to do this? The part I am having the most trouble with is creating new columns and customizing alignment... for instance,…
Alex Lockwood
  • 731
  • 1
  • 8
  • 16
25
votes
6 answers

\overset and align environment: how to get correct alignment?

I'm using the align environment together with the \overset command to put some text over a relation symbol. Here is my…
Rackbox
  • 927
23
votes
6 answers

How can you draw a horizontal line inside an align environment?

I need to draw a horizontal line inside an align environment. E.g., in the following MWE, I need that a line separates the third row. \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align*} x &= 1\\ y & = 2 \\ …
hola
  • 4,026
  • 3
  • 35
  • 72
18
votes
2 answers

Enumerate formulas

I'm writing a math paper in LaTeX and for math formulas I'm just using $$math formula$$. Is is possible to numerate formulas? Or do I have to you use some specific commands such as align?
yoanab
  • 341
18
votes
2 answers

How do I put a side brace around several lines in the align* environment?

I would like to put a side brace around several lines in the align* environment, as shown in the comments in the code below: \begin{align*} left side & = right side \\ left side & = right side \\ % } left side & = right side \\ % …
Will
  • 3,681
  • 4
  • 23
  • 24
18
votes
2 answers

Left-aligned equations

My problems are: 1 the equations in the align environment should be left-aligned (not centered) 2 there should be no vertical space before the align…
columkle
  • 181
17
votes
1 answer

Align-environment: Align on the left side

Why doesn't the following code align the two equations in the middle? It does only if I remove the alignment on the left. \begin{align*} &ABC &= ABC - AB\\ &ABCD &= ABC - ABCDEFG \end{align*}
Rocreex
  • 173
17
votes
4 answers

How to align 'implies that' symbols neatly in equation array

The following is an equation array I have: \begin{eqnarray} \Rightarrow\eta_t &=& \eta_x(\omega \eta-(\varphi_x)_s) + (\varphi_y)_s\notag\\ \Rightarrow\eta_t\,(\varphi_y)_s &=& \eta_x(\omega \eta-(\varphi_x)_s)(\varphi_y)_s + …
user46930
  • 305
14
votes
3 answers

Phantom and Align Environment

Is there any way to 'phantom' text within the align environment? I have the following code: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align*} \phantom { a & = b \\ & = c } \end{align*} \end{document} Apparently, if there…
jrand
  • 757
14
votes
4 answers

Align left-aligned formula at two points

I would like to get this WITHOUT using tables, because in my real equations there are fractions included that are scaled down in tables a+b+c=1 y =2 My code looks as follows: \begin{align*} &a+b+c&=1\\ &y &=2 \end{align*} But it doesn't…
13
votes
2 answers

Paragraph ended before \align was complete

\documentclass{article} \usepackage{amsmath} \usepackage{fancyhdr} \usepackage{amssymb} \pagestyle{fancy} \rhead{Homework for Stats Chapter 4\textbackslash Lab} \cfoot{Page…
12
votes
3 answers

Aligning three columns of equations

I am trying to create a list like below, but I can't seem to to align the three columns of equations and when I do I get something like Here is my code: $\begin{array}{ccc} x_8 = 93 \quad y_8 = 64 \quad z_8 = 61\\ x_7 = 186 \quad y_7 = 32 \quad…
11
votes
3 answers

Alternative to IEEEeqnarray

By recommendation from The Not So Short Introduction to LaTeX, I have been using the IEEEeqnarray environment a lot, since it solved many of the rather annoying problems related to the alignenvironment. But because of its limited documentation and…
Gaussler
  • 12,801
11
votes
5 answers

How to make a multiply equation?

I need to make a equation like this 1011 (this is 11 in decimal) x 1110 (this is 14 in decimal) ====== 0000 (this is 1011 x 0) 1011 (this is 1011 x 1, shifted one position to the left) 1011 (this is 1011 x…
1
2 3
30 31