{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

3
votes
2answers
1k 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. ...
4
votes
3answers
257 views

Why does a defined command appear differently in the align environment?

In the LaTeX document shown below, my definition \comp does not show correctly in the align environment. Why it is this the case? ========== Begin LaTeX scripts ============= ...
13
votes
4answers
23k 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 ...
4
votes
3answers
1k 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 ...
11
votes
2answers
3k views

In align environment, how can you label some (but not all) of the equations?

I know that the align environment labels all the lines, while the align* environment labels none of the lines. Is there a way to have the align environment label only some of the lines? For example, ...
8
votes
1answer
513 views

Spurious horizontal space in the aligned environment

If you compile what's below, you'll observe a slight horizontal misalignment between the equations of aligned versus align. Is there a way to avoid that? \documentclass[fleqn]{book} ...
4
votes
1answer
960 views

How to get aligned equations to have particular color and not equation numbers

I need to have fews equations aligned by =. These equations are to be displayed in particular color but not the equation numbers. a = {1,2}, (1) b = {4,8}, (2) The two ...
3
votes
2answers
290 views

How to align a long math line without centering text?

This is not an equation, it's just a long math line. I want to break it into lines with right alignment. I tried several solutions including align, multline, but somehow I can't get it to work ...
9
votes
1answer
1k views

\overbrace split accross multiple lines

Is there a way to split the overbrace so that it appears in two halves over a multi-line equation. Something like /-----------Overbrace Label---- Equation over which to place ...
7
votes
2answers
747 views

Centering the align environment on the middle column

I have a set of aligned equations that I would like to provide an \implies for down the left hand side. I used this originally: \begin{align} (x-1)^2 &= -1 \\ x-1 &= \pm i \\ ...
1
vote
1answer
842 views

Splitting a group of long equations in LaTeX

I have 3 equations which are long. These equations should be subequations and should be split and aligned. They should be given labels as well. I am attaching the code below. \begin{subequations} ...
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
10k 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
330 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
337 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
434 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
5k 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
5k 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
423 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
648 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
1k 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 ...
35
votes
3answers
53k 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
304 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
284 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
2k 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
5k 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
467 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
366 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
4k 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
390 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*} ...
12
votes
1answer
11k 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
29k 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
316 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
7k 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 ...
49
votes
3answers
24k 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
4k 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
739 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) ...
19
votes
2answers
7k 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
4k 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 ...