# Tagged Questions

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

8k 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. ...
299 views

### Format math definition

 A = \{ x_{1}y_{1}z_{1}...x_{k}y_{k}z_{k} : x_{i}, y_{i}, z_{i} \in \{0, 1\}, k \geq 1, \text{ and } x < y < z \text{ where } x = x_{1}...x_{k}, y = y_{1}...y_{k}, \text{ and } z = ...
2k views

### Aligning polynomial terms

In LaTeX align, I'm struggling to align polynomial terms and assume there's an easy way to do it. But I cannot find the simple/elegant solution. What I would like is something like this: x1 + x2 ...
598 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 & ...
39k views

### How can I use an align environment flush left?

Is there a way possible to imitate the align environment for math mode commands, without having all writing being placed toward the center on the output page? MWE: \documentclass{article} ...
572 views

### Adjust vspace between multiple align environments

I am using some independant align environments directly one after the other one and it produces some nasty space between them. Is there any workaround to shrink the size of the space a little bit? ...
506 views

### Format mathematical definitions

I want to define a list of definitions. This is what I have: \begin{align*} Let & L_{1} = (Q_{1},\sum,\delta_{1},q_{1},F_{1}), and \\ & L_{2} = (Q_{2},\sum,\delta_{1},q_{2},F_{2}). ...
300 views

### Remember position of equal sign from one align environment to the next

As you know, the align-environment puts all positions marked with & (normally the equals sign) exactly beneath each other. I now want to save the position LaTeX calculates for & and use it ...
2k 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. ...
266 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 ============= ...
28k 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 ...
2k 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 ...
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, ...
531 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} ...
1k 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 ...
296 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 ...
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 ...
806 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 \\ ...
889 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} ...
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 ...
11k 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;& ...
144 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. ...
345 views

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 ...
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 ...
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} ...
688 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 ...
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 ...
69k 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}
322 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 ...
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 \\ ...
289 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 ...
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 ...
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" ...
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 ...
478 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},\\ ...
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 ...
462 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 ...
384 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 ...
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. ...
3k 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 ...
404 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*} ...