{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
728 views

Adding text over matrix in LaTeX

I am trying to accomplish this in LaTeX. j ⎡a b c⎤ |d e f| ⎣h i j⎦ so that the "j" is aligned with the center of the matrix. It seems like I can't use the \begin{align} ...
7
votes
2answers
5k views

Combine itemize/enumerate list and align environment

I have 2 parts (i) and (ii) that I am trying to write out, but I can't seem to get the (i) and (ii) it look nicely, i.e. itemised. I tried using the \begin{enumerate} command but it doesnt seem to ...
10
votes
1answer
428 views

What would be the appropriate technique for typesetting a “where” list of variable specifications after an equation?

I'm often finding I need to lay out an equation in a manner resembling the following source: \begin{align*} x = y + z \end{align*} where $y = $ the value of $y$; $z = $ the value of $z$. ...
12
votes
3answers
21k views

Two sets of aligned equations in two columns?

Say I have a set of equations: (1) \begin{align} wx&=u\\ wy&=v\\ w&=10 \end{align} (2) \begin{align} x&=u/w\\ y&=v/w\\ \end{align} How can I do the following: put (1) and ...
8
votes
3answers
719 views

Aligning different parts of an equation with certain spots in the line above

I am trying to get certain parts in the second line of an equation to line up with certain parts in the first line. For example, X=AAA+BBB+CCC = a + b + c where here I am wanting the lower-case ...
5
votes
1answer
1k views

Align environment: take exact control of tab position

I was wondering if it is possible to take control of the exact position of the tab in an align environment. Like so: \begin{align}[2cm] A &= x^3 + 14789\\ B &= f^6 \end{align} Which should then ...
19
votes
6answers
6k views

Multiline equation with LHS alone on first line?

I would like my multiline equations to look like this: Left-hand-side of my equation = right-hand-side number 1 = right-hand-side number 2 = etc. I know there is a simple way to do ...
24
votes
6answers
66k views

How to align a set of multiline equations

I am trying to align a set of long equations, that are themselves align environments as most of them are spreading on multiple lines. Currently I just have a sequence of align environments, with ...
4
votes
1answer
502 views

Align equation with a better method than {split}?

I've got the following code that I'm using and wondered if there was a way to get the minus sign (-) of the third term to align with the minus sign of the second term, or if there was a nicer way to ...
8
votes
2answers
8k views

Horizontal spacing after equation

I have the following snipped in my LaTeX document: \begin{align} \sum_{j=1}^{m}x_{ij} &= 1 \text{ for } i = 1,2,...,n \sum_{i \in P_k}x_{ij} &\leq 1 \text{ for } j = 1,2,...,m \text{; } ...
6
votes
2answers
4k 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}\\ ...
19
votes
1answer
11k views

Multiple Alignment in equations

The following equations need to be aligned in two spots. If I use the align* environment then the second column of alignment is pushed to the right edge of the page. I googled this and saw that ...
9
votes
5answers
3k views

How to subtract two equations?

I am trying to subtract one equation from another but I can't get it to display the way that I want. This is what I have right now. \begin{align*} &y&=2x+5\\ -&&\\ ...
6
votes
3answers
709 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 ...
48
votes
3answers
41k views

align* but show one equation number at the end

I am using align*, but I still need an equation number. I know one solution is to use align and add \nonumber to all lines but the last. Is there a 'lazy' way to do it? I searched a little and found ...
4
votes
3answers
416 views

How to right-side annotate a bracketed-together set of items in cases environment?

How to right-side annotate a bracketed-together set of items in the align environment, cases sub-environment? E.g. how to put an annotation such as "(Fermat)" where the following code would put a ...
3
votes
1answer
247 views

How to position “=” mid-line inside a '\raisebox' and then `align` using `&=` with expression below?

In order to get a full stop at the bottom, rather than mid-line, after an aligned matrix expression, I have raised the expression using a raisebox, and adjusted space using `vspace'. This is now ...
2
votes
2answers
200 views

Can I not use the align & operator within a \frac?

This code is causing LaTeX to throw an error: Missing } inserted. It appears to be because I put a & inside a \frac command (on line 4). I feel as though it should be possible to accomplish my ...
13
votes
4answers
4k views

Align left-aligned formula at two points

I would like to get this WITHOUT using tables, because in my real equations there are fractions included that are scaled down in tables a+b+c=1 y =2 My code looks as follows: \begin{align*} ...
9
votes
1answer
412 views

In align environment, put word at left margin and still align equations with &?

In an align environment, how can I put a word such as "Now" or "And" at the left margin and still align equations on that line and subsequent lines with &?
9
votes
2answers
8k views

overset text over equal sign in in an Align environment

Look at the following example \begin{align} & x \\ \overset{\text{some long explanation}}= & foo \\ & = bar \end{align} what is the best way to get the equal signs ...
4
votes
1answer
838 views

Equation Labeling and xypic

Suppose I have the following TeX code for a diagram using xymatrix: \begin{align}\label{diagram} \xymatrix{ C\ar[r] & D &\\ B\ar[u] & & \\ A\ar[u] & &} \end{align} This ...
8
votes
2answers
3k views

How to reduce hspace between columns in align environment

With the following MWE, I have 2 columns: \documentclass[12pt, a4paper]{scrartcl} \usepackage{amsmath} \begin{document} \begin{align*} 4 &= 4 && \text{yes}\\ 0 &= 0 && ...
6
votes
1answer
6k views

Different spacing around equation and align

In my document, I use align and equation, depending on the length of the equation. They are spaced differently, as you can see on the picture below. I read that comments in the empty lines would ...
6
votes
3answers
806 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 ...
5
votes
1answer
884 views

How to redefine \label command in align environment

I have a problem with the redefinition of \label inside of the align environment. The goal is to allow a different behavior of the label command inside of the align environment than outside of it ...
14
votes
4answers
2k views

Best Pattern For Adding Commentary in align Environment? [duplicate]

I've been using the align environment to line up equations in proofs/explanations/etc and I like to place parenthetical commentary for each step, similar to the code below: \documentclass{article} ...
6
votes
4answers
1k 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 ...
9
votes
2answers
2k views

Compact collapsing of equations and paragraphs

I want to duplicate the compact look of G. K. Batchelor's fluid dynamics book. Where a paragraph terminates such that the mathematical expression can collapse up into the vertical space of the ...
8
votes
3answers
2k views

How to align piecewise functions?

I have two piecewise functions defined like this: \begin{align*} \left\{ \begin{array}{ll} i = x^2 + y^2 \\ j = a^2 + b^2 \\ \end{array} \right. \\ \left\{ ...
1
vote
1answer
6k views

Left-align {align} environment

I have a problem writing my report in LaTeX. I dearly need this block of equations to be aligned on the left side of the page, in fact I want all my equations to be left-aligned and have the option of ...
11
votes
3answers
1k views

How can I place a displaymath environment and an align* environment side by side?

I have a displaymath environment and an align* environment I would like to display next to each other. My idea was to wrap them in a tabular environment: \begin{tabular}{c c} \[ %math stuff ...
8
votes
1answer
2k views

Spurious space above align environment at top of page/minipage

It seems that the align environment adds additional vertical space if it starts at the top of a page or minipage. Below are two pages, and two minipages (on Page 1), where the first page/minipage has ...
10
votes
2answers
190 views

Different symbols in $…$ and align environments

Is there a way to force LaTeX to produce different symbols either in $...$ or \begin{align}...\end{align} environments? For example $ \mymacro $ should lead to A while \begin{align} \mymacro ...
24
votes
1answer
5k views

Flexible equation, align, multline environment

I'm looking for a command (say \foo{}) or pair of commands (say \foos, \fooe) that behave like: equation environment if there is no \\ nor & multline if there is a single \\ align if there are ...
3
votes
1answer
657 views

Align Environment and Spacing [duplicate]

Possible Duplicate: Blank lines in align environment When I put a blank line between a line of text and the align environment, it will add two blank lines instead. It seems that the align ...
10
votes
3answers
1k views

How can I number a few equations together

i would like to write few equations, but all the equations will get only once numbered and in the middle (right side) of the equations. e.q. if i write 3 equations, the number will be to the right of ...
1
vote
1answer
1k views

Strange Underfull \vbox problem [closed]

This is the code: \[ \left. \begin{aligned} K_1 \cos{\theta^{(1)}_4} - K_2 \cos{\theta^{(1)}_2} + K_3 & = \cos(\theta^{(1)}_4 - \theta^{(1)}_2) \\ K_1 \cos{\theta^{(2)}_4} - K_2 ...
5
votes
2answers
242 views

Applying breqn in bulk to typeset a math book for my kindle?

I'm trying to typeset this book for my Kindle: http://linear.ups.edu/ Unfortunately some of the equations result in overfull hboxes, and I can't read them. Though I've managed to manually convert ...
14
votes
1answer
11k views

Change font size of an align environment

In a document, I'd like to change the font size of a single align environment (not globally throughout the document). What is the proper way to do this? I've been using Preceding paragraph. {\tiny ...
12
votes
4answers
6k views

Aligning plain `align` and `cases`?

The cases environment works very well for enumerating cases within a large left bracket. I'd like to be able to combine it with the align environment so that equals-signs and conditions also line up: ...
6
votes
1answer
1k 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 ...
1
vote
1answer
2k views

split and intertext

I was wondering if there is a way of introducing intertext within a split environment. I would like to be able to write something like \documentclass{article}[10pt] \usepackage{amsmath, hyperref, ...
6
votes
1answer
2k views

Emulate \hfill in LaTeX equations?

I have a set of equations, where each line consists of a formula and an explanation (info about indices). Now, let's say the structure looks like this: \newcommand{\lw}{\linewidth} \begin{align*} ...
13
votes
2answers
3k views

inserting sentences between subequations

My apologies for asking so many questions here. I want to introduce a sentence in between 2 subequations which is not in math mode. Here is the code that I am using: ...
7
votes
2answers
311 views

How to stop fractions in display equations from running into each other?

Is there some standard way to create multiple display equations like the following without having to use: \renewcommand*{\arraystretch}{2} (so that the two rows in the second equation don't get ...
9
votes
4answers
14k views

side-by-side equations, with equation numbers for each

The align command from amsmath allows me to put two equations side-by-side: \begin{align} x = y && a = b \end{align} Unfortunately for my purposes, this shows both equations under one ...
5
votes
1answer
737 views

Use displaymath shorthand \[ \] for align and other amsmath environments

This question is closely related to this one: Using the displaymath shorthand \[ \] for equation or align instead. I use Multimarkdown (MMD) to generate my LaTeX documents. MMD uses the escape ...
3
votes
1answer
4k views

How can I use an align environment flush right?

Is there an option analogous within the align environment to the left align for right align, i.e. fralign. MWE: \documentclass{article} \usepackage[fleqn]{amsmath} % Instead have [freqn]. ...
3
votes
1answer
2k views

Strange behavior by \qedhere in align environment without alignment mark (&)

I noticed some strange behavior in the align* (or just align) environment. The code \begin{proof} \begin{align*} C=1 \qedhere \end{align*} \end{proof}` puts overlaps the tombstone with the ...