{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

4
votes
1answer
2k views

Remove unnecessary horizontal space from amsmath align between two &

How do you remove unnecessary horizontal space in an amsmath align environment between two &? Consider: \documentclass{article} \usepackage{amsmath} \begin{document} Version 1: \begin{align*} ...
3
votes
1answer
249 views

Tikz Scaling and Positioning

I cannot scale the first picture. scale=0.6 does not work. Also I cannot vertically align the picture. I want top of text and top of figure are same. See figures in the following examples. \...
3
votes
1answer
282 views

Overset placement is uneven

I'm using this code to show that one element of the equation is greater than zero and the second element is less than zero. \begin{align} \overset{+}{\pi_{i}} + \overset{-}{w_{g}(S)} > 0 \end{...
2
votes
1answer
81 views

Fixing alignment with the rest of the text

The image included above is what I want to replicate - I want the name to appear on the top left, and the address/email-id to appear on the top right, and I want both of them to be aligned with the ...
4
votes
2answers
418 views

Aligning tikz picture within text

I want to align my tikz within a text. A sample can be seen at the second picture in the following link: Image courtesy from http://www.echoecho.com/htmlimages08.htm This is my trial: \...
12
votes
2answers
273 views

Align*, & and \futurelet

can somebody explain futurelet within align-environments? Example: The command \A should give an "A" if the next char is a {, a "B" if it is & and "C" in any other case. \gdef\A{\futurelet\...
7
votes
1answer
377 views

Breaking lines in equations

I have an equation that is too long. It gets cut off, so I have tried to modify it with the split environment inside an equation environment: \begin{equation} \begin{split} & I_{ribbon} = \frac{1}...
8
votes
1answer
286 views

Align successive equations through the entire document

I am fairly new to TeX and need to create my math assignment with TeX. I have succeeded aligning all my calculations with the use of \begin{align*} and \intertext{}, however in my document i have ...
2
votes
1answer
91 views

Aligning brackets [duplicate]

Hi is there anyway to get the two left [ brackets on the first and second lines to align? \begin{align} &\quad[v^{*}a^{-} +va^{\dagger}_{-k}]e^{+ik_{z}\centerdot z}=[u^{*}b^{-} +ub^{\dagger}_{-k}]...
6
votes
2answers
1k views

Align environment inside TikZ

I'm new to TikZ, and I'm trying to use the align enviroment to align some text then draw something on it using some TikZ lines. But the problem that pdfLaTeX is generating an error whenever I try to ...
2
votes
2answers
251 views

The multi-line equation with explanation is too wide

The original question provides a good answer for how to add explanations to the multi-line equations. However, my problem is that the explanations have too long space to the corresponding equations, ...
3
votes
1answer
679 views

align environment has too much white space

How can I let the following code look good ? \begin{align*} &\text{Als} &&a,b \in H\\ &\Rightarrow &&a,b\in H_1 \land a,b \in H_2 &&\text{Definitie van doorsnede}\\ ...
0
votes
1answer
66 views

Centering a group of equations and text both which is used in \begin{align*}…\end{align*}

Say I am trying to center a group of equations, written in separate lines, with equality sign aligned one below another, which are defined by: $f(r)+1=g(r^2)+1=O(r)$ as $r\to 1$ by first using the ...
3
votes
1answer
1k views

Spacing between equation and text inconsistent due to large equations

I've read through answers to similar question but I still have the same problem. Essentially, I have some large equations and they are in the form \documentclass{article} \usepackage{amsmath} \begin{...
1
vote
0answers
95 views

Problem using align* using [ ] and ( ) [closed]

i'm having trouble with align* when i'm using any type of parenthesis. Here is the code: \begin{align*} V_o^\prime &= A(V_2^+ -V_2^-) \\ &= A\left[0-\left(R_1\frac{...
7
votes
1answer
76 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*} a+...
2
votes
2answers
488 views

Ignoring alignment for certain lines in an alignat environment

I am having trouble typesetting an optimization problem, and would like to know how to ignore the alignment for a certain line in an alignat environment. I've currently typeset the optimization ...
3
votes
1answer
161 views

Aligning parts of equations

So this is a continuation of my previous question but I didn't know if I should edit that post and ask a new question or just post a new question entirely. Anyway, I have this bit of latex: \begin{...
1
vote
1answer
131 views

Align a wall of equations

I have a wall of equations in the format: y = x^2 = 9 So basically, it's the variable part, the equation part and the answer part. I want these to be in three columns that are all aligned. So my wall ...
15
votes
2answers
42k 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} \mathcal{L}^...
8
votes
1answer
219 views

Underbrace multiple math lines

I have to underbrace multiple lines in an align-environment with one brace. Meaning something like \begin{align*} A ={}& B + \underbracemultiline{C + D + E \\ & + F + G \\ & +...
2
votes
2answers
192 views

Formula with text, good design?

I have the following text in my align environment, but it does not look good. So what should I change in order to get a better design/output? \documentclass[a4paper, 12pt, ...
0
votes
0answers
34 views

! Improper \halign inside $$'s [duplicate]

I know this is not a minimal example, but I have to have this much code, in order to create my error. I had this error already several times and I cannot get rid of it?! I don't know where the problem ...
5
votes
1answer
672 views

Suppressing line break in enumerate environment

I'm using the gather environment within the enumerate environment. After creating an item/before entering the gather environment, LaTeX adds a linebreak which I don't like. \begin{enumerate}[(a)] \...
1
vote
0answers
42 views

split problem between \left( and \right) [duplicate]

I have this equation, and strangely enough I can not split the equation from somewhere in between \left( and \right) If I use the \\ to split the equation after \right) then it works, I did not really ...
11
votes
1answer
15k views

Multiple labels in aligned environment

I would like to format an optimization problem by \documentclass{article} \usepackage{amsmath} \begin{document} We want to label each line separately. The inserted text and formulas have to be ...
0
votes
0answers
31 views

Global label in a LaTeX “align” [duplicate]

I use \begin{align} \label{blah} ... \end{align} in order to do equations of multiple lines. Unfortunately the equation number (coming from label{blah}) is not centered vertically in the middle of ...
5
votes
3answers
393 views

Aligning equations in multiple places

I have an equation environment where most equation lines start with an arrow, which I have aligned in the align* environment, using &. The second line in the example below is too long for the page ...
9
votes
4answers
3k 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)] &&= 1....
1
vote
0answers
4k views

“File ended while scanning use of \align*” [closed]

This is really odd. I have ended all environments. Triple checked them. When I add this last bit of equations using the align* environment, all kinds of errors appear. Predominantly, in this case ...
5
votes
2answers
100 views

Title over align columns

Using the align environment I have two columns, one for derivation, and another for the rule that was used to create the derivation. However I'm pretty sure that there's a better way to do this? Here ...
0
votes
1answer
217 views

Error message because of eqnarray, footnotes, tables or caption?

I know this is not a minimal example, but I have to have this much code, in order to create my error. I had this error already several times and I cannot get rid of it?! I don't know where the problem ...
0
votes
1answer
171 views

Aligning an array in align*

I was trying to make a 3 point list with a brace next to 2 of the items with text next to it and than a brace that covered all three again with text next to it. I had never used an array before but I ...
3
votes
1answer
75 views

Add space in `brqalign`

Some time ago David Carlisle wrote an awesome brqalign function in this answer: http://tex.stackexchange.com/a/51543/4011. See the cited code below. How can I add space between the rows of brqalign? ...
4
votes
2answers
560 views

Right-align the prebreak symbol in a listings environment

I’m using the breaklines and prebreak option with listings, but I find it visually not very pleasing that the prebreak-symbols are not vertically aligned. I’d prefer if they were all on the very right ...
1
vote
1answer
118 views

Create commands each of the text aligned horizontally?

I am using exam document class as my guide in creating my own documentclass but i have encountered a problem.How will i create a command for each of the four texts in a line. here is a sample image: ...
3
votes
2answers
816 views

Multicolumn proofs, align within tabular?

I want to condense my assignment by laying out each solution as a table with a picture on one side and the proof on the other. To make matters worse, I need to be able to include some equation ...
3
votes
1answer
336 views

How to use math mode inside align* [closed]

Why does this give an error? \begin{align*} $\sum_{i=0}^K n_{\text{i}} * P * 1000$ \end{align*} Why can't I use align* for my math formula which includes a summation?
4
votes
0answers
57 views

Block environment with empty title in Beamer: how to reduce empty space at the top [duplicate]

I'm using the LaTeX beamer class to write a presentation. I'm placing vertically aligned equations inside a block environment without a title. When I do this, I get extra empty space at the top of the ...
3
votes
1answer
125 views

Problem with using multline and align

I am LaTeX begginer and when I run this equation, I am getting the error: ! Argument \align* has an extra {. Here is the equation. \begin{multline} \begin{align*} C_s & = \displaystyle \max_{...
4
votes
2answers
121 views

Spacing numbers in two equations equally

I have this weird requirement, to align two sets of numbers, one under another, in groups of three. Here is how it should look: I tried the following: \begin{align*} x_F &= 1.368 &808 &...
2
votes
1answer
375 views

Spacing in flalign affected by mathpazo

I got the following (partly shorted) equation: I would like to get rid of the space left of the equation (left of Q') so that the label (0.2) fits on the right side. \documentclass[ a4paper, ...
1
vote
1answer
114 views

Is it possible to break up an align environment and keep the tab positions? [duplicate]

I'd like to take notes for a math class such that I can typeset a series of equations with the \align environment and make some text notes in between some of the lines. As far as I can tell, though... ...
1
vote
1answer
231 views

alignat not correctly aligning

I have the following code: \begin{alignat}{4} \sum_{r}\sum_{p} & X_{i,m,r,p} & = d_m \quad & \forall i, m\\ \sum_{q=0}^{d_{m}-1} & X_{i,m,r,(p+q)} ...
11
votes
2answers
353 views

Compute remaining horizontal space in align environment

I use align* often and sometimes it is preferable to add text to the right hand side of an equation instead of using \intertext, or \shortintertext, which tends to interrupt the math flow. This is ...
4
votes
1answer
243 views

Inlining aligned tabular material in block of text

Edit. Some comments might be outdated. I would like to do the following: The blue parts should be treated as normal paragraph text, with normal automatic hyphenation. The green part is what you ...
1
vote
1answer
203 views

Mathematical statement problem

I want to write a mathematical statement which also has to be numbered. For example : The function f is bounded (1.1) However, the align environment does not work. Any hints?
2
votes
1answer
2k views

amsmath split environment results in error “Missing } inserted.”

The following compiles fine, but outputs a pdf with a line too long. \documentclass{article} \usepackage{amsmath} \def\group#1{\left ( #1 \right )} \begin{document} $$ %\begin{split} \group{\neg (...
3
votes
1answer
286 views

Placing a tikzpicture next to an align

I have a tikzpicture with an accompanying explanation in a math align environment. The tikzpicture is small enough that I'd like the explanation to appear next to (specifically, to the right) the ...
8
votes
2answers
525 views

What is wrong with defining \bal as \begin{align}?

I'm trying to define two commands \bal and \eal instead of inserting \begin{align} and \end{align} in my document, but in the code below, I'll get some errors. What is wrong with it? \documentclass{...