{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

6
votes
1answer
308 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
3k 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
1k 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
174 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
279 views

Aberrant vertical spacing with {align} and friends?

Consider documents with the following preamble: \documentclass[12pt]{article} \usepackage{amsmath} Question #1. Why do we get bad alignment with the following code? \noindent ...
6
votes
2answers
614 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
817 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
2answers
4k 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 ...
6
votes
3answers
185 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
188 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
2answers
92 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
210 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
93 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
2answers
137 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
853 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
1answer
335 views

\marginpar and \begin{align}

I want to use \marginpar directly beside a formula within a \begin{align} statement. I tried: \begin{align} E^2 \end{align} \marginpar{Not correct} but the 'Not correct' statement is written ...
6
votes
1answer
404 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
4answers
89 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
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
3answers
587 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
2answers
5k 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 ...
6
votes
3answers
89 views

Aligning vdots with terms in a system of equations

I am attempting to write a system of linear equations that looks like this: A_{11}x_1 + A_{12}x_2 + \cdots + A_{1n}x_n = y_1 A_{21}x_1 + A_{22}x_2 + \cdots + A_{2n}x_n = y_2 \vdots \vdots ...
6
votes
1answer
106 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
2k 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
1answer
206 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
3answers
613 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
797 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
55 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
92 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
87 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 ...
6
votes
1answer
381 views

Subequations inside align result in too wide equation

I want to create subequations and allign them such that nice 'inquality constraints' arise. My current code: \begin{subequations} \begin{align} a & \le b & \le c \label{eq:constr1}\\ d & ...
6
votes
2answers
1k views

Underlining an equation in an align block

I'm trying to set up a system of equations and want to underline the last equation, but can't figure it out. Here's what I have: \begin{alignat*}{4} &F_n &- mg &- F_a\sin 32^\circ &= ...
6
votes
1answer
345 views

Scaling down all the equations using one single command?

I am about to submit an article with lots of equations in there (defined in both equation and align environments and I also have lots of inline math of course). There is a maximum page limit for the ...
6
votes
2answers
2k views

Spacing of \multline inside align (i.e. \multlined)

Related with How can I use multline within an align environment?. Consider this document: \documentclass{minimal} \usepackage{amsmath,mathtools} \begin{document} \begin{align*} & ...
6
votes
2answers
83 views

Edit marginpar command through whole document

I'm finding myself doing the following on every margin paragraph: \marginpar{\raggedright \scriptsize <content here>} Is there a way to set the align and script size for every margin ...
6
votes
1answer
240 views

How to center align part of an equation within alignat?

I'm using the environment alignat to align my set of of equations at two different points. Now, I dot not only want to align it these two points, but also want to have everything in between these ...
6
votes
1answer
255 views

Will todonotes work inside an align environment?

Is it possible to use todonotes inside an align environment, e.g.: \documentclass{report} \usepackage{amssymb,amsmath} \usepackage{todonotes} \begin{document} \begin{align} a^2&=b^2+c^2 ...
6
votes
2answers
6k 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
1k views

More sophisticated page breaks within aligned equations

This is my current method of allowing page breaks between my aligned equations {\allowdisplaybreaks \begin{align*} left &= right1 \\ &= right2. \end{align*}} It works, but it doesn't ...
6
votes
1answer
855 views

How to remove parenthesis in an equation number created by \tag?

This is probably simple, but I can't figure it out. How can I remove the parentheses around a \tag in an align equation? I would like the second line (and only that) to contain [2] instead of ([2]). A ...
6
votes
1answer
227 views

Reference equation in align* environment with cleveref

In order to control equations numbering I use the Align* environment where I put \numberthis at the end of the equation that I want to number. After, I label the numbered equation but when I want to ...
6
votes
1answer
57 views

How many times is “align” processed?

Consider the following MWE which writes the word "Cat" to a file. \documentclass{article} \usepackage{amsmath} \begin{document} \newwrite\datei \immediate\openout\datei=Beispiel.txt \begin{align*} ...
6
votes
2answers
93 views

How to set some lines right aligned in the align enviroments?

I have try some code like this: \begin{align*} Q(R)&=\bi(R,R)\\ &=\bi(R_I+R_{\Rico}+R_W,R_I+R_{\Rico}+R_W)\\ &=\bi(R_I,R_I)+2\bi(R_I,R_{\Rico})+2\bi(R_I,R_W)\\ ...
6
votes
1answer
724 views

Left-aligning equations

How do I left-align selective equation blocks, i.e. not centered ? I know how to do it for ALL equation blocks in the document setting \usepackage[fleqn]{amsmath} \setlength{\mathindent}{0pt} in ...
6
votes
1answer
4k 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 ...
6
votes
1answer
100 views

How can I split and align this series of equations?

I know this is an issue that comes up frequently, but I keep running into issues using all the suggested examples (breqn, amsmath; split, align, etc). Here's what I have: ...
6
votes
1answer
94 views

Aligning and centering a lstlisting with two columns on a page

Consider the following code taken from here to produce a fancy listing : % PACKAGES \documentclass[11pt,a4paper]{book} \usepackage[top=1in, bottom=1in, left=1in, right=1in]{geometry} ...
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*} ...
6
votes
2answers
64 views

Place table based on position of column break

I have a table with two columns of different widths. I want to place my table in my page such that the line between the two columns falls on the center of the page. If the columns were the same size ...
5
votes
3answers
256 views

About alignment of mathematics formulas

How can I implement the alignment like in the following image? Because the usual \begin{align*} and \end{align*} command can not work, so I hope you can help me! Thanks! Wait for your elegant ...