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

learn more… | top users | synonyms

2
votes
1answer
1k views

Define a custom align, and align* environment

I would like to redefine both the align and \align* environments such that the first line is shifted up to line up with the list identifier. I attempted to adapt the solution provided at Starred ...
2
votes
3answers
9k views

how to insert multi line equation in the tabular environment?

How can insert multi line equation in the tabular environment? For example see the following code that can show my request. \begin{tabular}{rrr} &a &b\\ &u=\begin{cases} 0;& ...
8
votes
1answer
142 views

Why does the `&` reset grouping?

In this answer, I used \tikzmark to mark the extent of a typeset piece of text, so I could draw changebars next to it. But it initially seemed that the changebars "disappear" with math-mode content. ...
2
votes
1answer
318 views

Increasing spacing between the rows of a table containing both equations and words

Below is some code I am working with. \begin{tabular}{l|m{4.75in}} Equation 1 & $y^{10} + x^{6} + 7x^{3} + 6y^{11}$\\\hline Equation 2 & $\begin{alignedat}{1}(n + 1)^{2}u_{n + 3} &+ ...
5
votes
2answers
334 views

Size of the delimiters when the equation is split in an align environment.

The following code does not work: \begin{align*} \left \| x \mapsto \sup_{(y, t) \in \Gamma_x^{(A, a)}(\gamma)} & \int_{\R^d} M_{t^2}(y, z) 1_{N_\tau^c}(y, z) |f(z)| \, \d z \right ...
1
vote
1answer
429 views

Eqn numbers in aligned environment

I want to write an equation with multiple cases, but that needs multiple aligned columns within each case. I also want a left brace (of my choosing) on the left. Something like this works: ...
10
votes
2answers
4k views

Horizontal Line Separating Steps in Aligned Equation

I have an equation that I'm trying to display with horizontal line separation. The result I'm looking for is similar to this question, but I'm not sure how to apply it to my equation (below). ...
10
votes
2answers
3k views

How to position text on top of a node?

How to position text on top of a node? \documentclass{report} \usepackage{tikz} \usetikzlibrary{positioning} \begin{document} \tikzset{every node/.style={rounded corners,minimum height=5cm}} ...
5
votes
2answers
3k views

Referencing within an align environment

The following LaTeX document: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align} E=mc^2 \\ \nonumber E=mc^2 \label{eq1} \end{align} ref \ref{eq1} \end{document} Does ...
4
votes
2answers
401 views

How to expand summation notation on both sides of equal sign

I think you get what I am trying to do, but I dont know how to align the equal signs the entire way down and still have the vertical ellipses. Assume $\displaystyle \sum_{i=1}^{n}\alpha ...
5
votes
2answers
1k 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 ...
2
votes
1answer
2k views

Aligning nodes with TikZ

Consider this: There are several problems: The \exists operator is not horizontaly aligned with the following node (a,b). There is too little space between foobar and the node below it and ...
1
vote
2answers
1k views

How can I use alignedat in subequations?

I have a set of equations inside a subequations environment. Update: I use a macro to generate long subsubscripts in \rm. \newcommand{\foobar}{\rm foobar} \begin{subequations} \begin{alignat}{5} ...
5
votes
1answer
628 views

CurVe document class: alignment issue with subrubrics

I have the following issue with the alignment of subrubric titles in a résumé written with the CurVe class by Didier Verna. When the rubric & subrubric titles are aligned left via options in the ...
4
votes
1answer
991 views

I used eqnarray ignorantly and now must change all to align.. any solutions?

Other than manually going over all the dozen plus instances where I ignorantly used eqnarray must all be changed to align. I first tried doing a finad replace all and replaced align, and then, for ...
27
votes
3answers
45k 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}
2
votes
2answers
297 views

Macro behaviour different inside tabular environment

I have a lot of problems lately with macros expanding (or not expanding) at unexpected times, so thought I was having a related problem here. But, in this case, things are working as I want outside of ...
14
votes
1answer
1k views

How can I typeset LaTeX math proofs with long lines?

I usually typeset math proofs in LaTeX by using the align environment. For instance, \documentclass{article} \usepackage{amsmath,mathtools} \begin{document} \begin{align} & x^2 \\ &= x*x \\ ...
2
votes
3answers
278 views

How to align some lines under {align*}

I usually use \begin{align*} and \end{align*} to align some texts. Here is a special case I would like to realize: abcdefghijklmn hijklmn opqrstuvwxyz hijklmn There are 2 rules: 1) I want to ...
1
vote
2answers
1k views

Right Align Equation Number with hfill in Custom Environment

I have a couple of custom environments that I want to be able to use \hfill to right align the last column (similar to what {align} environment does with equation labels}. I attempted to use \hfill ...
2
votes
2answers
1k views

alignment of text between 2 lines in align*

I have this: \begin{align*} &f(1) = -11 & &\mbox{while q satisfies} &q(1) = 11,\\ &f(-2) = 20 & &\mbox{} &q(-1) = 20 \end{align*} which puts the text "while" ...
6
votes
1answer
4k views

Using align in beamer with overlays

How can I get the align environment to play nicely with beamer overlays? As a simple example I would like \begin{align*} a = \frac{bc}{c} \end{align*} on the first overlay and then ...
1
vote
1answer
451 views

Alignat issue - extra space in one line

My code looks like this: \begin{alignat}{2} \theta^2&\equiv\frac{2m a^2\epsilon}{\hbar^2},\ \lambda&\equiv&\theta^{\frac{2p}{p+1}}\frac{E}{\epsilon},\\ ...
4
votes
1answer
1k views

Hyperref and nonumber/notag in equations:

When compiling my text document, I get the following warning: [5] [6] [7pdfTeX warning (ext4): destination with the same identifier (name{equ ation.2.0.10}) has been already used, duplicate ignored ...
5
votes
2answers
339 views

How to produce aligned math with an extra symbol on the left.

In school, our teacher requires us to put a ⇔ sign on the left of our equations, when we do a tranformation on the equation. Usually, I use an align context to format multiple transformations of an ...
0
votes
0answers
383 views

Multi-column formulas using align [duplicate]

Possible Duplicate: Two column align environment with one line spanning both columns I am new to the amsmath package, and I am using alignat to write a long proof, composed of a number of ...
13
votes
2answers
3k 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. ...
0
votes
2answers
2k views

The argument of foo has an extra }.

I'm trying to write a command that does, effectively, an \fbox in something like an align environment. The following code works: \usepackage{etextools} \makeatletter ...
3
votes
2answers
376 views

Macro to allow for alignment points within its argument

I would like to have a macro that allows for alignment points inside it. As a specific example, I would like to be able to say: \begin{align*} a &= b\\ \bracr{c &= d} \end{align*} ...
10
votes
1answer
9k views

amsmath align environment: row spacing

How can I stretch the spacing between consecutive lines in an align* environment? I have a few lines with \fracs in which both the numerator and the denominator consist of textual phrases, not math ...
16
votes
3answers
26k 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*} ...
1
vote
1answer
160 views

alignment in align-env: what is aligned in what way?

In this example: \begin{align*} & \lim( \neg ( \Sigma^* a_1 \Sigma^* a_2 \dotsb a_n \Sigma^* ) ) & = & \{ \alpha \in \Sigma^\omega | \exists^\omega n : \alpha [0,n] \notin \Sigma^* a_1 ...
1
vote
1answer
303 views

combine several align-environments

I want to combine several align-environments but reset the alignment at some point. Esp., I want to combine these: \begin{align*} & \lim(\emptyset) = \ext(\emptyset), \lim(\Sigma^* a_1 \Sigma^* ...
20
votes
2answers
6k 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 ...
46
votes
3answers
20k views

How to get only one vertically centered equation number in align environment with two equations

What I have are two equations with align and I want one single equation number to refer to this system of equations. To illustrate, I have \begin{align} dr_t &= \kappa ( \theta - r_t ) dt + ...
9
votes
2answers
3k 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 ...
7
votes
1answer
727 views

How can I use cross-references and hyperlinks to parts of an align environment?

I'm writing an exercise book, and in some exercises I'll have several numbered equations in an align environment, e.g., (1) x^2+x+1=0, (2) ax^3+2x=0, (3) x^5=2i, (4) x^4=-i, (5) x-1/x=2, (6) ...
18
votes
2answers
6k 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 ...
11
votes
3answers
3k 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 ...
11
votes
6answers
605 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\\ ...
11
votes
1answer
2k 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 ...
21
votes
4answers
1k 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 ...
7
votes
2answers
2k 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? ...
6
votes
3answers
1k 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. ...
15
votes
5answers
6k 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 ...
15
votes
3answers
1k 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 ...
8
votes
1answer
8k 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= ...
10
votes
5answers
10k 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} ...
5
votes
1answer
5k 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 ...
8
votes
1answer
1k 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?