{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

8
votes
2answers
311 views

How to align multiple symbols for a long equation?

\documentclass[11pt]{article} \usepackage{xfrac, array, tabu, multirow, graphicx, setspace, dcolumn, tikz} \usepackage[fleqn]{mathtools} %the argument for d specifies the maximum number of decimal ...
9
votes
1answer
208 views

How can I align the terms of this equation nicely?

I have the following alignat segment: \begin{alignat*}{3} \text{max}_{\underline{\lambda}} \text{min}_{\underline{x}} \quad & \underline{c}^T \underline{x} + \underline{\lambda}^T(\underline{d} ...
8
votes
2answers
7k views

Too much white space when using the align-environment

Consider the following example: \documentclass{article} \usepackage{amsmath,amssymb} \begin{document} \begin{align} \prod a+bm && \text{is a square in} && \mathbb{R}\\ ...
3
votes
1answer
12k views

What is “! paragraph ended before \align was complete”?

The following is the piece of code that was working right before I made a few small minor changes. \begin{align} \langle \prod_{i=1}^{n} \delta_i ^{n_i} y^{m_i}_i \rangle = \sum _ {a_{i=1...n} = ...
0
votes
2answers
158 views

Begin Align - Text Gaps

I have a quick question about blocks of the following type: \begin{align*} CODE HERE \end{align*} After any one of these blocks I always get this huge gap. In the uncompiled document I have one ...
2
votes
1answer
250 views

Vertical alignment of text around a symbol in table

Is there a way to organize the vertical alignment in table around a particular symbol. For example in the below code \begin{table} \begin{center} \begin{tabular}{ *{1}{c}} a = b + c \\ a + ...
4
votes
1answer
72 views

Alignment in math environment

Consider the following piece of code \documentclass[twocolumn]{article} \usepackage{amsmath} \begin{document} \begin{align*} A_i &= B_i + C_i\\ &= D_i + E_i+F_i + G_i + H_i\\ &= I_i + ...
3
votes
1answer
181 views

\intertext doesn't play nice with \paragraph

I have the following test case: \documentclass[12pt]{article} \usepackage{amsmath} \begin{document} \section{Test} \paragraph{Group A:} \begin{align*} E &= mc^2\\ E ...
2
votes
1answer
359 views

Aligning equations

This is very similar to a lot of other questions but I haven't found one that EXACTLY replicates the problem I'm having. I have the following: \begin{align*} &\text{minimize} &R_k + ...
3
votes
3answers
277 views

Free cell alignment in a table

I want to use the package tabu which I've heard is the latest and greatest package for creating tables to generate a table that looks like this: ------------------------------------- |A | ...
5
votes
1answer
106 views

Where is this whitespace coming from in align*?

I am trying to align 2 simple equations using the align* environment: \begin{align*} \phi(\gedge{\tilde{v}_{i_1}}{\tilde{u}_i}) & = \phi(\gedge{\tilde{v}_{i_2}}{\tilde{u}_i}) & = \gedge{v}{u} ...
1
vote
1answer
693 views

Missing $ Error in aligned equations

I think here's the problematic code The series expansion of $e^z$ is given by \[ e^z = \displaystyle \sum^{\infty}_{n=0} \dfrac{z^n}{n!}\] Then we can write the given function as \begin*{align} ...
10
votes
1answer
855 views

align also ylabels in a TikZ matrix

I am aligning many pgfplots with the TikZ \matrix. The axes are automatically aligned correctly. How can I also align the ylabels automatically (because I am changing plotted data very often)? ...
3
votes
1answer
465 views

Align all equal signs in the document

Is there a way to align all the equal signs in all equations all over the document? I write a theses (scrbook) and like all equal signs to line up. At least in a chapter if not possible for the whole ...
1
vote
2answers
1k views

Missing } when using \begin{align*}

I have scoured my code and tried it out without the alignment. There is nothing i can see wrong with the code, but when I try to use align or eqnarray, I always get some error message. Here's the code ...
6
votes
2answers
262 views

Conditional linebreak in align environment

I have a large document to typeset in two different page formats. Some of the equation lines are too long in the small format so I wanted to break some equation lines conditioned on whether the macro ...
9
votes
2answers
13k views

align inside of tabular

Today I failed using an align-environment inside of a tabular-environment. Consider the following example: \documentclass[12pt]{scrbook} \usepackage[english]{babel} \usepackage[utf8]{inputenc} ...
8
votes
2answers
404 views

Delimitershortfall in align environment

Can you explain why the \delimitershortfall cannot be modified inside a align environment? This is a MWE: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation} ...
2
votes
1answer
16k views

Subequations and align environment

I am trying to use subequations with a complicated alignment. The alignment in the MWE is not satisfactory. I am seeking for a solution where I can specify lrc such as in array, but subequations ...
4
votes
2answers
289 views

Alignment with brackets

I am having problem in the align environment when I have brackets. Here is my example. \begin{align} A& = B~~~&+c~~-D\\ E& = F&+G-H \end{align} However, a similar problem I have ...
1
vote
1answer
193 views

Only one equation number with math-vfill-tombstone symbol

Maybe what I want is sinful, but let me explain: I use aligned* environments, because I usually don't need equation numbers. When I need one, I use \addtocounter{equation}{1}\tag{\theequation} from ...
0
votes
1answer
628 views

Collectively aligning multiple align environments [duplicate]

I am using amsmath, and I want to be able to break a mathematical derivation into multiple align environments while maintaining their collective alignment. In particular, I would like to horizontally ...
2
votes
3answers
836 views

How to align equations

I am trying to write a set of equations similar to some found in a book I am reading. Below is how the book has formatted the equations: and here is what I have so far: How can I align my ...
1
vote
1answer
3k views

Align values in bmatrix

Is it possible to renew the bmatrix environment to have alignment? I would like the following vectors to show aligned: \begin{bmatrix} -0.505 & \\ -0.141 & \\ 0.144 & \\ 0.839 & ...
3
votes
1answer
479 views

amsmath's intertext and labeling

I have an align environement with intertext: \usepackage{amsmath,mathtools} \begin{align*} x&=f(z)\cos\alpha\\ y&=f(z)\sin\alpha \shortintertext{with} f(z)&=\ldots \end{align*} However ...
1
vote
1answer
660 views

Equation align two column to one column with page width

I was trying to format the following expression using align. However, I need it in two column. Of all the equations, one is a long expression and Hence I added \rlap. The problem is the lengthy ...
2
votes
1answer
775 views

Argument of \text@ has an extra } \end{align*}

Good day, I am using the following code: \documentclass[]{report} \usepackage{amsmath} \usepackage{graphicx} \usepackage{breqn} \usepackage{hyperref} \usepackage{amstext} \hypersetup{linktocpage} ...
4
votes
1answer
933 views

Align summation symbols inside an align environment

I have the following piece of code: \documentclass[]{article} \usepackage{amssymb} \usepackage{mathtools} \usepackage{amsfonts} \begin{document} \begin{align*} A &= ...
3
votes
1answer
150 views

Aligned equation which can break through pages [duplicate]

I'm writing long sequences of aligned math equations, and LaTeX interprete them as single, unbreakable objects... which is Ok if the equation is nowhere near the end of the page. Q: Is there a way to ...
8
votes
1answer
14k views

Using the flush left align environment flalign

When using the flalign, I either get LHS and the = on te far left and the RHS on the far right. \begin{flalign} x & = & 1 \end{flalign} Or I the equation centers itself when I try ...
1
vote
2answers
121 views

Unable to split a long equation

I want this equation to break into different lines at each of the line breaks indicated below. f = c_{A1}x_{A1}+c_{A2}x_{A2}+c_{A3}x_{A3}+c_{B1}x_{B1}+c_{B2}x_{B2}+c_{B3}x_{B3} \\ + ...
2
votes
2answers
85 views

multi-alignments, any better solutions?

Please see my questions in the codes: \documentclass{article} \usepackage{amsmath,amsthm,mathtools} \begin{document} I am not sure align at the equal sign is a good idea, it looks weird to me. ...
3
votes
1answer
417 views

Problem with ntheorem, align and \qedhere

I would like to use the align environment inside a proof with ntheorem, but I have trouble with \qedhere. I was guided by this (http://tex.stackexchange.com/a/2280/30325) code, and replaced \[ by ...
0
votes
1answer
152 views

How do I include a .pdf_tex file in the align environment?

I am writing a math document which contains several pictures. My pictures are .pdf_tex files from Inkscape, and usually \begin{figure} \centering \input{<name>.pdf_tex} \end{figure} is fine ...
7
votes
1answer
169 views

Formula label outside of formula

I want to label a block of equations like that: The "AB" should not inflict the central alignment of the formula. I saw it a lot, but do not succeed on my own. Do I need to build boxes? I used the ...
2
votes
1answer
95 views

“align” inside “table” because of table caption - how to do pagebreak?

I have a table: \begin{table} \begin{align} \nonumber b_{1} & = 0,200 & \beta_{1} & = z \\ \nonumber b_{2} & = 0,022 ...
3
votes
1answer
334 views

Exhaustive Information about text alignment in Tabular

The purpose of this question is colleting the exhaustive information about text alignment in tabular environment and it's derivatives. As base, let us use the possibilities of Microsot Word's tools. ...
3
votes
2answers
252 views

Numbering of displayed math without using the equation environment

I know about align and equation environments, and tend to use them most of the time, but sometimes I like to have more flexibility within an array of equations, like better control on justification ...
8
votes
2answers
36k 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 ...
1
vote
0answers
49 views

Aligning equation with another equation after text [duplicate]

I was just wondering, if it was possible to align equations if there are text between them ? I mean, if you have several equations right after each other you can use the \begin{align} command with ...
5
votes
1answer
378 views

Aligning a split up equation not at equal sign

I currently have the following equation: \begin{align} \begin{split} \left| \Psi \left( t \right) \right\rangle _{I}^{3}&=-\frac{1}{{{\hbar}^{2}}}\int_{0}^{t}{\hat{H}_{1}^{I}\left( t' ...
2
votes
1answer
471 views

Bad formating with align + cases and long equations

This is what I have so far: Formatting in section 1 is a joke. I can't even read the cases. Under section 2 I cheated with a manual line break \\ and a parbox. Still the result disgusts me. ...
3
votes
1answer
538 views

Multiline equation with cases

I am trying to get a system of equations, that will have cases only on some of the equations. I made this: \documentclass[a4paper]{article} \usepackage{amsmath} \usepackage{mathtools} ...
1
vote
0answers
195 views

Name of length for equation number indent if [leqno] is set [closed]

I got a weird phenomenon as shown in the picture below. The equation numbering is indented. I tried the same thing in a fresh document and it produces the result I am looking for. For the other ...
6
votes
2answers
2k 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} ...
10
votes
2answers
435 views

Ignoring specific ampersand formatting on a specific line of an align block

I want to typeset a number of equations with some alignment constraints, but I want to partially ignore them on certain lines. An example formatted text might look like the following when it's ...
3
votes
2answers
186 views

Cross reference to align

What I want to do is to make a cross reference to program (P) and still be able to make cross references to each separate line in the alignment. \begin{align} (P)\quad \min ...
2
votes
1answer
96 views

How to get to use {align} with an unusual document class?

So I'm required to use a particular documentclass, "llncs", which for some reason is preventing me from using {align}. Is there an alternative that I can use? The beginning of my tex file ...
8
votes
2answers
84 views

Horizontal alignment across nested aligned

Is there a way to left align the first 2 rows with the last one? \documentclass{article} \usepackage{amsmath} \begin{equation*} \left\{{\begin{aligned} &\left.{\begin{aligned} &A+B=X\\ ...
2
votes
1answer
954 views

Aligning equality sign with overset text

I'm typing a logic definition within an align environment that uses \overset{def}{=} from the amsmath environment. However, the new sign is aligned vertically based on the equality sign, and not on ...