As of May 31, 2023, we have updated our Code of Conduct.

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.

Filter by
Sorted by
Tagged with
30 votes
3 answers
11k views

Alignment of equals sign in multiple align environments

I have multiple align environments in my document, separated by a small paragraph of text: \begin{align*} foo &= something very very long compared to the other align \end{align*} explanation ...
andri's user avatar
  • 535
10 votes
3 answers
5k views

Left-justify with align on "=" in align environment

I searched the tex.stackexchange archives for an answer to this question but couldn't find one. I assume it's a common question, however. I often want to align text similar to the poly environment in ...
emi's user avatar
  • 203
11 votes
6 answers
650 views

Suppressing = on a line in the align environment

How do I produce the following in align environment? \begin{eqnarray*}& & abcd \\ &=& defg\\ &=& hijk \end{eqnarray*} I try \begin{align*}& abcd \\ &= defg\\ &=...
TCL's user avatar
  • 1,080
21 votes
1 answer
12k 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 "...
Mathieu Larose's user avatar
35 votes
4 answers
7k 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 ...
Kristen's user avatar
  • 4,933
33 votes
2 answers
24k views

What's the difference between align and align*?

After some brief searching I can't find the difference between align and align*. Google summarily ignoring the * is making it harder I think. Can you tell me the difference between these two? ...
Harold's user avatar
  • 1,519
6 votes
3 answers
3k views

Using tables to typeset proof - how to align equal signs?

I'm a student teaching myself to use LaTeX (and related tools) to type up my homework. It's going great, and I'm already very happy with what I've been able to do so far. Though, I have questions. I'...
Harold's user avatar
  • 1,519
35 votes
7 answers
33k 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 and ...
Sophie Alpert's user avatar
20 votes
3 answers
5k views

How to make formulae take equal vertical space in the align environment?

Consider the following code: \begin{align} f_1(x) &= \frac{15x}{3} \\ f_2(x) &= 3x + 5 \\ f_3(x) &= 4x + 13 \end{align} This produces three lines where the first line takes up more ...
Björn Pollex's user avatar
19 votes
1 answer
44k views

aligning split equation

I am new to Latex ;) I split my equation like this: \begin{equation} \begin{split} \tilde{m}=P\tilde{M} \\ \quad = K(R^1R^2R^3t) \begin{pmatrix} X \\ Y \\ 0 \\ 1 \end{pmatrix} \\ \quad= K(...
nacho4d's user avatar
  • 10.9k
15 votes
5 answers
38k views

problem using option fleqn in amsmath package

I'm using the following code. What should I do if I don't want the fixed indent from the left margin of my page? ‎ \documentclass[‎fleqn,oneside‎]{article}‎ ‎\usepackage{amsmath}‎ .... \begin{align} ...
Mesar's user avatar
  • 805
6 votes
1 answer
8k views

How can I flush left text in the align environment?

I have the following code: \begin{align*} m^+\cdot k^+ &= m^+\cdot k+m^+ &\text{by M2}\\ &= m\cdot k+k+m^+ &\text{since $k\in B$}\\ &= m\cdot k+(k+m^+) \\ &= m\cdot k+(k^{+}+m)...
yunone's user avatar
  • 3,199
8 votes
1 answer
2k views

Is it possible to use \begin{align} in an inline math mode with \displaystyle?

Is it possible to use \begin{align} in an inline math mode with \displaystyle?
Second Person Shooter's user avatar
1 vote
1 answer
422 views

How to avoid `&` conflict when using `\begin{align}` in a tabular cell?

Minimal CODE \documentclass{article} \usepackage {% array, calc, amsmath, longtable, varwidth% } \newsavebox\TBox \newcolumntype{B}[1] {% @{}% >{\begin{lrbox}{\TBox}\...
Second Person Shooter's user avatar
5 votes
1 answer
1k views

Match spacing of align in array environment

To typeset some displayed equations, only the array environment was powerful enough. However, the spacing of the array environment doesn't match the spacing of the align environment. How do I set ...
bas's user avatar
  • 257
60 votes
3 answers
39k 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) \\ R(-...
mbauman's user avatar
  • 1,302
4 votes
2 answers
4k views

AMS align: left aligned text/math plus multicolumn alignment

This question is basically a combination of two previous posts: How can I add left aligned text to an equation? and AMS align / Align multiple “=”, too much space (the latter being my own question). ...
janitor048's user avatar
  • 1,038
18 votes
2 answers
9k 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 ...
janitor048's user avatar
  • 1,038
3 votes
0 answers
1k views

Can one make 3-column alignments with amsmath? [duplicate]

Possible Duplicate: Align two inequalities I'd like to make an {align} with three columns, with an [rcl] type alignment, to typeset something like a < b < c a < bb < c a < bbb &...
jvarilly's user avatar
  • 445
36 votes
5 answers
34k views

Problem with beamer's \pause in alignments

I have the following code, (edit:) now without aligned. \documentclass{beamer} \mode<presentation> { \setbeamercovered{transparent} } \begin{document} \begin{frame} \[ \begin{cases} %\...
Hendrik Vogt's user avatar
  • 37.3k
5 votes
3 answers
424 views

Equation tags for parts of alignments

Consider the following example: \documentclass{article} \usepackage{amsmath} \begin{document} \[ 1+2=3 \implies \left\{ \begin{aligned} &a+b=c, \\ &x=y+z. \end{aligned}...
Mariano Suárez-Álvarez's user avatar
9 votes
2 answers
632 views

amsmath align within list

In the code below, the equation within the itemize environment is too wide for the page, but I don't get an overfull hbox warning (which I find annoying because it's sometimes useful to know exactly ...
Ian Thompson's user avatar
  • 42.1k
21 votes
1 answer
15k views

How can I write multi line equations with alignment in inline math mode?

Is there any way to override the fact that certain environments in LaTeX are automatically "displayed"? One such example is the align* environment. I want to keep my aligned equations inline. So ...
Kristen's user avatar
  • 4,933
15 votes
3 answers
16k views

columns/alignment with itemize

I'm trying to make alignment points in a list environment. The following code gives me an error, but it almost compiles to what I want, just missing the bullet points. I must be misunderstanding ...
evencoil's user avatar
  • 431
4 votes
2 answers
1k views

Expand tabular/array to page width

I recently have had the need to make a math array or a tabular expand to fill the page width. The effect I am trying to achieve is that for one line on the page, half is aligned at the left, and the ...
user avatar
4 votes
2 answers
1k views

Centering a \noalign section

I'm trying to format a list of steps to solve a quadratic equation. I have it so that it is aligning correctly for each of the math steps, but now I want to add some headings. This is what I have so ...
Shane Fulmer's user avatar
22 votes
3 answers
21k views

AMS Split inside AMS Align

I'd like to have multiple lines inside a single align cell like so: \begin{alignat*}{1} = & \begin{split}x+\\ y\end{split} \end{alignat*} But I get an error like: \end{alignat*} \An extra &...
Gus's user avatar
  • 1,167
3 votes
1 answer
2k views

LyX AMS align environment justification/ horizontal alignment

I'd like to know how to justify individual columns in the AMS align environment. In the matrix environment, the Table toolbar buttons are active, but not inside the AMS align environment.
Gus's user avatar
  • 1,167
28 votes
1 answer
66k views

Aligning the right parts in multiple \begin{cases}

Is there an intelligent way to left-align the parts right of & of the two cases environments shown below (if x >= 0, otherwise, if y < 0, otherwise). I wonder if there is a better way than ...
u17's user avatar
  • 4,956
3 votes
1 answer
4k views

How can I create a multiline split inside of a radical inside of an array environment?

I have an align like this: \begin{align*} \sigma &= \sqrt{\sum_x \left[ (x-\mu_x)^2\mathbf{f}(x) \right] } = \sqrt{\frac{1}{10}\sum_x (x-\mu_x)^2 } \\ &= \sqrt{\frac{1}{10}( (0-.45)^2 + (...
Billy ONeal's user avatar
  • 10.2k
15 votes
1 answer
14k 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 \...
plc's user avatar
  • 398
15 votes
2 answers
36k views

Big \sum instead of small \sum in array environment

\begin{align*} \begin{array}{c} \min \: A = \min \: \sum_{i\in B} C_i \\ \\ \min \: D = \min \: \sum_{i\in B} \pi_i \cdot F_i \end{array} \end{align*} How can I get i \in B below the \sum symbol ...
u17's user avatar
  • 4,956
14 votes
1 answer
3k 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. ...
Malabarba's user avatar
  • 6,782
21 votes
2 answers
43k 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} &\...
Alessandro Cuttin's user avatar
8 votes
2 answers
1k views

Padded Left Align for Table Columns

I have a table whose column headings (centre aligned with \multicolumn{1}{c}{Foobar here}) are wider than the left-aligned data. This looks somewhat odd, as there are large right-margins in each ...
Freddie Witherden's user avatar
20 votes
3 answers
23k 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 ...
Torsten Schönfeld's user avatar
4 votes
2 answers
6k views

alignat problem

Whenever I try to use the alignat environment, it doesn't seem to work on my computer! I tried the following simple code (my file had \usepackage{amsmath}): \begin{alignat}{3} \min \quad x_1 ...
user avatar
47 votes
1 answer
84k 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 ...
masfenix's user avatar
  • 1,419
239 votes
5 answers
584k views

eqnarray vs align

Motivation 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. Question What is the difference ...
Larry Wang's user avatar
  • 3,425
19 votes
3 answers
11k views

Defining a command for amsmath's align environment

I'd like to define a shorthand command for \begin{align*} and \end{align*}. When I write \newcommand{\ba}{\begin{align*}} it works fine. But when I write \newcommand{\ea}{\end{align*}} LaTeX ...
Dmitry Vaintrob's user avatar

1
74 75 76 77
78