{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

7
votes
1answer
862 views

How to get width of equation

If I want to know the width of a text I use \settowidth{\MyLength}{bla}. Is there something similar for equations? More specifically I have \begin{align} a & b & c & d\\ c & d ...
7
votes
1answer
99 views

Box some equations inside align

I'm trying to make something like this: But I have just can't figure out how. I have tried with empheq and tikz, but I can't get it to work with only some boxes inside align. I have also tried with ...
7
votes
2answers
649 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 \\ ...
6
votes
3answers
201 views

align* not aligning properly with \sqrt

Using this, everything is aligned properly: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align*} 16x^2&=144&\text{| }&\text{sqrt}\\ 4x&=12&\text{| ...
6
votes
3answers
1k views

alignat makes 3 good alignments and 1 bad

I'm having a problem with the alignat environment. This code: \begin{alignat*}{9} &X_{12}&+X_{13}& & & & & & & &=1 ...
6
votes
2answers
7k views

Are \choose and \align incompatible?

I ran across a strange warning when trying to use the math command \choose inside the amsmath package's \align* environment: \documentclass{article} \usepackage{amsmath} \begin{document} ...
6
votes
3answers
230 views

why does something disappear in the aligned environment?

I noticed a strange behaviour with the aligned environment: \begin{equation}\label{eq:direct_limit} \begin{aligned} [x] + [y] & := [\eta_{ik}(x) + \eta_{jk}(y)],\\ [x] \cdot r & := [x \cdot ...
6
votes
4answers
346 views

How can I note transformation step?

I currently have this: with this code: \begin{align} 0 &\stackrel{!}{=} (d_{P,f}^2)'\\ &= -2 x_p + 2x -2y_p f'(x) + \left (f(x)^2 \right )'\\ ...
6
votes
3answers
335 views

How can I align two split environments at the equal signs?

\documentclass{scrartcl} \usepackage[latin1]{inputenc} \usepackage[T1]{fontenc} \usepackage[english]{babel} \usepackage{amsmath, amsthm, amssymb} \usepackage{mathtools} \begin{document} ...
6
votes
4answers
222 views

Alignment in matrix (bmatrix)

Here is a MWE: \documentclass[12pt,a4paper]{article} \usepackage{amsmath} \begin{document} The reparameterisation is \begin{equation} \label{eqn:linear_ssK3} \begin{matrix} s & = ...
6
votes
4answers
539 views

Aligning of equations within derivations

Okay, so I have the following derivation so far in my latex document: \documentclass[a4paper,oneside,11pt]{report} \usepackage[english]{babel} %francais, polish, spanish, ... ...
6
votes
2answers
158 views

problem with align

i'm trying to typeset someting like this: \begin{align} f_{**p}(X_p,Y_p) = X_p(Y(f)) = \sum_{i,j = 1} ^n \alpha_i \beta_j E_{pi}(E_j(f)) f \end{align} short remark \begin{align} E_{pi}(E_j(f)) ...
6
votes
2answers
1k 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 ...
6
votes
6answers
2k views

An enumeration of equations with aligned equal signs

I'd like to have something like the following: \begin{enumerate} \item $1 + 1 = 2$ \item $1 = 2 - 1$ \end{enumerate} The thing is, I'd also like the equals signs to be aligned. But I'd like the ...
6
votes
2answers
11k views

Align multiline equation with expression after equal sign

I am trying to align a multiline equation using array within the equation but it turns out it doesn't do very well. The code I am using is as follows: \begin{equation}\ \begin{array}{lcl} ...
6
votes
4answers
2k views

Centering equations within alignat command

I want to centre the formula inside the equals. So far I have \begin{alignat*}{2} v_2(16)&=\frac{2}{5}[v_3(32)+v_3(8)] &&= 0, \\ v_2(4)&=\frac{2}{5}[v_3(8)+v_3(2)] &&= ...
6
votes
2answers
175 views

Alignment between material inside and outside a cases environment

In the code below, I'd like to make the i=0,\ldots,n. line up, in the output, with the cases in the first part of the definition. Ideally, the full-stop would align with the semicolons and comma. ...
6
votes
1answer
371 views

How to align a set of my equations?

I just wan't to align the equation like this example (Of course, I can't align these equations on the web page): ∵△ABC ≌ △A′B′C′ ∴∠ABC = ∠A′B′C′ ∠ACB = ∠A′C′B′ ∠BAC = ∠B′A′C′ If I use &, ...
6
votes
2answers
209 views

How to best typeset this long matrix multiplication?

I have a quite large matrix multiplication: \begin{align*} \mathrm{Var}(\alpha)&\approx \begin{pmatrix}\sqrt{1+\pi^{2}}\exp(-\delta^{*}+\zeta^{*}) ...
6
votes
4answers
166 views

How can I nicely align a single split equation?

I'd like to align my equation to that it (and its label) fit on three lines. MWE \documentclass[11pt]{article} \usepackage{amsmath} \usepackage{amssymb} \usepackage{xfrac} \usepackage{transparent} ...
6
votes
2answers
4k views

Argument of align has an extra '}'

Okay, this was compiling just fine yesterday. I've since been making some changes, and now get the following error: ! Argument of \align has an extra }. <inserted text> \par l.85 f(t) = ...
6
votes
3answers
2k 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. ...
6
votes
2answers
190 views

Align the n's in the equation

In the following code, how do I align the n's? Here is the MWE: \documentclass[12pt]{article} \usepackage{amsmath} \begin{document} \begin{align} n \propto exp(-U/kT) \notag \\ \Rightarrow \quad n ...
6
votes
2answers
910 views

Why does aligning equations not work here?

\documentclass{minimal} \usepackage{amsmath} \newcommand*{\op}[1]{\operatorname{#1}} \begin{document} \begin{align*} \noalign{$\quad \op{f} * \op{r} = \op{c}_{\op{f}*\op{r}} (x_1,...,x_k) = ...
6
votes
4answers
925 views

Resetting alignment in the align environment

I have a few aligned lists of coefficients. One set of coefficients has three columns and the other has four. At the moment I display them with two align environments: \begin{align} \gamma_1 ...
6
votes
3answers
201 views

How to align 'parts' of these equations?

I have a set of equations given by the following code: \begin{equation} \label{eqn:eraserStart} \max \, d \end{equation} \begin{equation} a_t \in \{0,1\} \, \forall t \in T \end{equation} ...
6
votes
3answers
198 views

Specify alignment per column in align equation

Using the following mwe i have not yet found a way to align the formulas correctly. \documentclass{article} \usepackage{mathtools} % extends amsmath and fixes some of its quirks ...
6
votes
1answer
460 views

Footnote from intertext

I want to be able to send footnotes from intertexts I use within align. Is there an easy way to accomplish this (say using a package)? For example, I am a little teapot \begin{align} this ...
6
votes
2answers
69 views

align: using aligned within align troubles

I would like the first two pieces in align look as though they are the only two items in the align environment and the rest to align at the equals signs and separated by some space for the different ...
6
votes
2answers
149 views

Align equations over multiple sections

Is there a way to make the math mode "align" work over multiple sections? Here is the code example: section*{Polynomials} Do the following polynomial devisions \begin{align} &(x^7 - x^4 - 21x^2 + ...
6
votes
2answers
167 views

Multiple \cline{x-y} in align environment for subtracting equations

I'm trying to make a solution sheet for a student of mine and want to write it in a similar way as I would do when writing per hand. In this case I wanted to have 4 columns of equations (I know that ...
6
votes
2answers
596 views

Subequation aligning using matrix

When I use multiple matrix equations in subequation, I am doing it as in the code snippet. However, when I want to align the equations with respect to equal sign, = (commented in the code), I am ...
6
votes
2answers
97 views

Is there a more idiomatic way of achieving this?

I've recently decided to use LaTeX as my primary document processor, I want to know can I achieve the effect of this more idiomatically: \documentclass{article} \usepackage{amsthm} ...
6
votes
3answers
914 views

Left-align all equations in a block

align environment without any explicit alignments points (given by &) right justifies the equations in the block. They can be left justified by putting & at the beginning of each equation. Is ...
6
votes
2answers
152 views

Formatting inside a table

\documentclass{article} \usepackage{float} \usepackage{mathtools} \newcommand{\unit}[1]{\hat{\mathbf{#1}}} \begin{document} \begin{table}[H] \centering \begin{alignat*}{4} ...
6
votes
2answers
1k views

How to edit the length of a color box?

I've typed my Resume and Im using a color box, with a line underneath it. However the grey colored box doesn't reach the full length of the page width. \documentclass[letterpaper,11pt]{article} ...
6
votes
4answers
128 views

Alternative to aligned environment for enumerate

I'm using the aligned environment within an itemize environment. I need the aligned environment so the label for the \item will be on the same line as the equation. For example: \begin{enumerate} ...
6
votes
2answers
11k views

Aligning using flushleft and flushright

I am trying to create one column to the left side by side with another column to the right. The column to the left is labeled "Examples of like terms:" and the column to the right is labeled "Examples ...
6
votes
1answer
229 views

Breaking equation in align enviroment to put textwidth matrix in separate line

I have to put a textwidth pmatrix into an align environment. When using split, it destroys the centered alignment of the other equation. Pseudocode: \begin{align} \vec{a} &= \vec{b} + \vec{c} ...
6
votes
2answers
2k views

Alignment across nested aligned environments

I have a list of equations with annotations like the one below: \documentclass{scrartcl} \usepackage{amsmath} \begin{document} \begin{align} aaaa &= 1 &&\text{for $X$} \\ bbbb &= ...
6
votes
2answers
3k views

Enumerate inside align

How can I get an enumerate inside an align environment? I want something like this: %... \begin{enumerate} \item test123 \begin{align*} \item x^2 & \text{ bla}\\ \item x^3 & \text{ bla2}\\ ...
6
votes
3answers
648 views

Suggestions for splitting a large fractional equation?

I have seen a number of questions detailing specific means for how to break down a given equation, however I am more interested in the design at this point. That is, I'm not sure what part of this ...
6
votes
1answer
118 views

Long formula in align environment

Usually, if I have a very long formula, I will use two lines in the align environment and \qquad to space things out nicely. For example, \begin{align*} % First line \rho\left(\frac{\partial ...
6
votes
3answers
3k views

\underbrace and align environment

I want to typeset a proof and want to emphasize what I do in each step e.g. by underbracing an equal-sign when I substitute a variable. In addition I also want to align equal-signs in every line. ...
6
votes
3answers
692 views

Optional argument to an environment inside align

I have lots of matrices so I want to define a mat environment. I sometimes need the matrix to have right-aligned columns so I am using mathtools and I want to have an optional argument that is ...
6
votes
1answer
923 views

Turn off numbering on unused equations [duplicate]

Possible Duplicate: How do I number equations only if they are referred to in the text? While I am writing a document, I like to use align rather than align* and label them for all ...
6
votes
2answers
67 views

Relational Operator spacing problem with alignat

I have not asked a really embarrassing question in a while, so thought it was time :-). I am stumped as to why the spacing around the = on the third line is incorrect: Notes: I realize I am ...
6
votes
2answers
158 views

Simplifying macro for the align* environment for two column equations

The align* environment provides for a two column layout of equations, similar to the eqnarray* environment. \begin{align*} [left side of the first column] &= [first line of the first ...
6
votes
2answers
108 views

replacing eqnarray when several alignment tabs are present

I have three mathematical equations which I would like to have typeset in one block such that they are aligned at the equality sign = and the following comment. Up until now, I've been using eqnarray ...
6
votes
1answer
114 views

Environment definition gives an error

\documentclass{scrreprt} \usepackage{fontspec} \setmainfont{Linux Libertine O} \usepackage{graphicx} \usepackage{polyglossia} \setdefaultlanguage[babelshorthands=true]{german} % align in enumerate ...