{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 question about aligning document elements, use {horizontal-alignment} or {vertical-alignment} instead.
38
votes
4answers
19k views
eqnarray vs align
I want to include a list of related equations, say, for a proof, in my LaTeX document. As far as I know, I have two good options, eqnarray and align. What is the difference between them, and how do I ...
15
votes
4answers
533 views
How can I break an align environment for a paragraph?
I would like to have two displayed equations, broken by a short paragraph, but with aligned equal signs (as if using the align environment). Is there some way to "break" the align environment ...
20
votes
3answers
5k views
How to get only one vertically centered equation number in align environment with two equations
sorry if this has been answered before, I couldn't find anything through search. I'm sure its a common problem though.
What I have are two equations with align and I want one single equation number ...
13
votes
3answers
4k views
Aligning across 'aligned' equation blocks
I'd like to format two groups of equations such that all their equal signs line up and such that I can put a big brace to the right of each block to annotate that block. The last part is easily ...
18
votes
2answers
4k views
Highlight an equation within an align environment
I would like to define a command that puts a red box around an equation with yellow highlighting. I have the basics working pretty well. What I am unable to figure out is:
How to keep the alignment ...
10
votes
5answers
3k views
Vertical alignment of align* in enumerate
Related (but not the same):
Align number from enumerate with equation
Displaying an equation in a list
Earlier today I asked a question about aligning equations in an enumerate environment ...
9
votes
3answers
333 views
How can I number a few equations together
i would like to write few equations, but all the equations will get only once numbered and in the middle (right side) of the equations. e.q. if i write 3 equations, the number will be to the right of ...
7
votes
1answer
772 views
Blank lines in align environment
Is there a way to insert a blank line between two equations in
align environment?
From what I understand a blank line is interpreted as \par and
\par is not allowed in align. Can I disable this ...
16
votes
2answers
6k views
align* but show one equation number at the end
I am using align*, but I still need an equation number. I know one solution is to use align and add \nonumber to all lines but the last. Is there a 'lazy' way to do it?
I searched a little and found ...
17
votes
3answers
2k views
Centering \vdots in a system of many equations
I have a system of equations with an arbitrary number of equations (k). I'd like to use \vdots to compactly describe the system, like so:
\begin{align*}
R(-1) &= \sum_{i=1}^m A(i)R(i-1) \\
...
11
votes
1answer
5k views
How can I add left aligned text to an equation?
I have a document I am trying to copy to learn TeX. Here is what I have encountered: How can I have the "or" in the equation. This is what I have right now:
\[ f = ma; \]
But $a$ is the change in ...
8
votes
1answer
873 views
How to organize labels when there are too many equations?
I'm writing a moderately long text using LaTeX, and it's great to be able to organize chapters, sections, appendices, and everything else almost automatically. One thing has been bothering me though. ...
9
votes
2answers
1k views
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 & = ...
9
votes
3answers
924 views
Force line break inside a \lim argument in align environment
Inside an align environment I have a \lim with two variables which should be displayed in two lines:
\begin{align}
...
f & = \lim _ {a \rightarrow -\infty \linebreak b \rightarrow \infty} ... \\
...
9
votes
3answers
8k views
Show equation number only once in align environment
I want the equation number to be shown only at the last line, or better, somewhere in the middle of all. So instead of (1), (2), ... only (1).
I use \begin{align} ... \end{align}
9
votes
2answers
3k views
A lateral brace to group a set of equations with labels
I have a set of equations that I'd like to display together (as an example, the Maxwell's equations).
Requirement #1: I'd like to have them labelled like in an align environment
\begin{align}
...
6
votes
1answer
2k views
Remove vertical space around align
I need to display math in my report, but is it possible to remove the vertical space around align*?
A little example is the following (where I just want the align* to have the same vertical space as ...
4
votes
1answer
35k views
How to left align a set of equations.
I wanted to left align a set of equations. I've tried the solution provided in
aligning to the left.
It worked. But, I wanted to have a single equation number for the entire flalign in order to refer ...
11
votes
2answers
871 views
inserting sentences between subequations
My apologies for asking so many questions here. I want to introduce a sentence in between 2 subequations which is not in math mode. Here is the code that I am using:
...
9
votes
2answers
223 views
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?
7
votes
1answer
1k views
Spurious space above align environment at top of page/minipage
It seems that the align environment adds additional vertical space if it starts at the top of a page or minipage. Below are two pages, and two minipages (on Page 1), where the first page/minipage has ...
6
votes
1answer
159 views
Selective numbering of equations with align
I have an align environment with 5 equations. I want 3 of them numbered, and the other 2 not numbered. I understand that there's other posts on the issue of selective numbering of those equations that ...
13
votes
3answers
11k views
Use flalign or alignat or align or similar environment to align to the left
The following is a small example to use flalign environment to generate equation.
\documentclass{article}
\usepackage{amsmath}
\usepackage{txfonts}
\begin{document}
The formula is:
\begin{flalign*}
...
10
votes
1answer
2k views
AMS align / Align multiple “=”, too much space
I asked this question at stackoverflow and have been kindly redirected here.
I'd like to align some equations in Latex using the AMS packages. Each equation has two equal signs that need to be ...
7
votes
4answers
5k views
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 ...
9
votes
1answer
6k views
Aligning equations with text with alignat
I'm trying to add this expression to my work:
I understand that the best way to achieve this is using the alignat environment within the amsmath package, so I tried the following:
...
8
votes
2answers
2k views
Mix align and enumerate
Is it possible to mix align* and enumerate, for example I want to TeX something like this (item a) and d), b) and e) and c) and f) should be aligned)
a) x^2 + y^2 = 1 b) a + b = c c) r-x = y+z
d) f ...
6
votes
1answer
4k views
Vertical space before and after align environment
I am wondering if it is possible in LaTeX to generally adjust the spacing before and after math in the align environment from amsmath.
From the Mathmode-guide (by Herbert Voss) I gather that ...
4
votes
1answer
196 views
aligning equals as well as plus signs
From this question we know that aligning the equal signs in
A = B = C
D = E = F
is done by using alignat, not align.
If we have instead
A = W + M = C
B = i + \iota = D
how can the equal signs ...
4
votes
3answers
957 views
Overbrace in amsmath align environment
I have the following rather large equation.
\begin{alignat*}{16}
1 &= &&b_m && &c_n + &b_m && &c_{n-1} &&R_L + &b_m ...
5
votes
2answers
703 views
Spacing of \multline inside align (i.e. \multlined)
Related with How can I use multline within an align environment?.
Consider this document:
\documentclass{minimal}
\usepackage{amsmath,mathtools}
\begin{document}
\begin{align*}
& ...
4
votes
2answers
760 views
Using tikz command inside tikzpicture environment (alignment problem)
This is a followup question to Expandable nested boxes with TikZ.
When using the \tikz command inside the tikzpicture environment, the positioning of the contents is altered.
Here are the two ...
3
votes
2answers
680 views
Force aligned equation (all the way) to the left?
How do I force the following aligned output all the way to the upper left (right next to the enumerated list item)? I still want the 2nd and 3rd lines to be aligned with it's above equal sign.
...
2
votes
2answers
254 views
Equation Alignment With Steps
I'm trying to show all of the steps for solving a linear equation like this:
\begin{aligned}
-4(6x - 5) & = 188 \\
(-4*6x)+(-4*-5) & \\
-24x + 20 & = 188 \\
-20 & = -20 \\
-24x & ...
14
votes
1answer
685 views
Automatic line break in alignat
Consider the following example from http://tex.stackexchange.com/a/12782/4011
\documentclass{article}
\usepackage{amsmath}
\newcounter{eqn}
\renewcommand*{\theeqn}{\alph{eqn})}
...
12
votes
4answers
313 views
How do I get this strange alignment?
I would like to get a nonstandard alignment in the following code:
\begin{align}
\text{First left hand side} & = \text{First right hand side} \\
\text{Second left hand side} & = ...
7
votes
1answer
122 views
What's the right space to right the alignment of a right aligned align environment?
As Hilbert would have put it, had he lived in the TeX-era:
No one shall expel us from the Paradise that AMS has created.
and one aspect of that paradise is release from the tyranny of eqnarray ...
7
votes
3answers
3k views
side-by-side equations, with equation numbers for each
The align command from amsmath allows me to put two equations side-by-side:
\begin{align}
x = y && a = b
\end{align}
Unfortunately for my purposes, this shows both equations under one ...
3
votes
1answer
1k views
Different spacing around equation and align
In my document, I use align and equation, depending on the length of the equation. They are spaced differently, as you can see on the picture below.
I read that comments in the empty lines would ...
2
votes
1answer
88 views
Custom glossary environment improvement
This is a followup question about the code provided by Nicola Talbot in this question: Automated generation of equation key
TL;DR: Defines new environment alignglos which can be used to wrap ...
12
votes
1answer
167 views
Align to center
I want to align some equations to the equal signs, so I wrote this:
\begin{align}
-3z &=-9\\
z &= 3\\
-3y-3*3 &= 3\\
y &=-4\\
...
12
votes
6answers
2k views
Multiline equation with LHS alone on first line?
I would like my multiline equations to look like this:
Left-hand-side of my equation
= right-hand-side number 1
= right-hand-side number 2
= etc.
I know there is a simple way to do ...
11
votes
4answers
398 views
Make align* number the last equation
I am using the align* environment to write equations expanding several lines. I would like to define a command sequence in the preamble, such that the last equation of this block will always be ...
8
votes
2answers
2k views
Two column align environment with one line spanning both columns
Is there a good/correct way of making an align environment with one line spanning multiple columns?
At the moment I'm using a hack like the following, but I feel that it's probably not the best way.
...
6
votes
2answers
170 views
Aberrant vertical spacing with {align} and friends?
Consider documents with the following preamble:
\documentclass[12pt]{article}
\usepackage{amsmath}
Question #1.
Why do we get bad alignment with the following code?
\noindent
...
5
votes
2answers
313 views
Highlight an equation within an align environment with color option
I'd really like to do exactly what's being asked for in this question: Highlight an equation within an align environment, but with the ability to change the color when I call it, so that I could have ...
2
votes
2answers
1k views
How can I use multline within an align environment?
I've been looking around and I know that there are possibilities to mimic the multline environment within the gather or align environments, or by using multlined but not in a way that I like, I think.
...
2
votes
2answers
2k views
AMS align: Left aligned text/math plus multicolumn align
This question is basically a combination of two previous posts: Adding left aligned text to an equation. and AMS align / Align multiple “=”, too much space (the latter being my own question).
What I ...
1
vote
1answer
101 views
some \newcommand instructions not working
I have created some new short command using \newcommand in the following example:
\documentclass[12pt,twoside,a4paper]{book}
\usepackage{enumerate,amsmath}
\newcommand{\ba}{\begin{array}} ...
0
votes
1answer
81 views
Error message because of eqnarray, footnotes, tables or caption?
I know this is not a minimal example, but I have to have this much code, in order to create my error. I had this error already several times and I cannot get rid of it?! I don't know where the problem ...
