{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 question about aligning document elements, use {horizontal-alignment} or {vertical-alignment} instead.
3
votes
1answer
1k 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
369 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 ...
4
votes
1answer
396 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 ...
12
votes
4answers
407 views
Best Pattern For Adding Commentary in align Environment?
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}
...
5
votes
4answers
357 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
802 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 ...
7
votes
3answers
751 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
2k 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 ...
8
votes
3answers
386 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 ...
7
votes
1answer
951 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 ...
9
votes
2answers
150 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 ...
15
votes
1answer
2k 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 ...
2
votes
1answer
326 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 ...
9
votes
3answers
314 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
201 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 ...
7
votes
1answer
3k 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
...
9
votes
4answers
2k 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:
...
5
votes
1answer
409 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
787 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
1k 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*}
...
11
votes
2answers
806 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
189 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 ...
7
votes
3answers
3k 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
391 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 ...
2
votes
1answer
2k 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].
...
1
vote
1answer
828 views
Strange behavior by \qedhere in align environment
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 ...
2
votes
2answers
108 views
How do I get what's been printed by {align}?
I was trying to figure out an automatic answer to Sharing alignment between equations in two different items by way of typesetting an {align} inside a \vbox and then using \unvbox and \lastbox ...
1
vote
2answers
92 views
How can I properly reference equations numbered by default in an align block?
I have two equations in an align block:
\begin{align}
4x-3y&=2\\
3x+2y&=1
\end{align}
Both of these equations are numbered (1) and (2) respectively. In a sentence beneath this align ...
1
vote
2answers
1k views
Narrower columns in align environment
How to set the column width in the align environment.
I've got a align environment to demonstrate how to do division by hand so the columns always contain only one number, but the columns are much ...
6
votes
6answers
981 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 ...
9
votes
3answers
876 views
Force line break inside a \lim argument in align environment
Inside an align environment I have a \lim with two variables which should be displayed in two lines:
\begin{align}
...
f & = \lim _ {a \rightarrow -\infty \linebreak b \rightarrow \infty} ... \\
...
3
votes
2answers
2k views
How to box two lines inside align*
I asked a similar question today except it was targeted at one particular line inside the align* environment. Now I want to enclose two lines. The failed attempt below makes my intention clear:
...
6
votes
2answers
1k views
\mbox does not draw a box inside align*
\mbox doesn't work inside align*:
\begin{document}
\usepackage{mhchem}
\begin{align*}
\ce{K_w} &= \ce{[H3O+][OH^-]} \\
-\log \ce{K_w} &= -\log ( \ce{[H3O+][OH^-]} ) \\
-\log ...
5
votes
1answer
3k views
Error in align environment - runaway argument? [duplicate]
Possible Duplicate:
Blank lines in align environment
\documentclass[12pt,a4paper]{article}
\usepackage[version=3]{mhchem}
\usepackage{siunitx}
\begin{document}
\begin{align*}
\ce{K_a} ...
2
votes
2answers
1k 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.
...
4
votes
3answers
163 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 = ...
13
votes
7answers
621 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 ...
2
votes
2answers
248 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 & ...
4
votes
3answers
8k 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}
...
3
votes
2answers
406 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?
...
1
vote
2answers
188 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}).
...
8
votes
3answers
179 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 ...
3
votes
2answers
644 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
207 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 =============
...
7
votes
4answers
4k 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 ...
3
votes
3answers
911 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 ...
8
votes
2answers
704 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, ...
7
votes
1answer
277 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
252 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 ...
