{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

5
votes
2answers
53 views

Multiple align environments for defining a function into a function

I use the amsmath and the diagram.sty from A, but I have nearly no control over the alignment. \begin{align*} A \colon A &\longrightarrow A \\ X &\longmapsto AAAAAA \\ A &\longmapsto AAA ...
0
votes
1answer
28 views

How adjust the vertical space in aligned equations (in the Preamble)?

I always find the standard \\ to be too little in aligned equations. I used to do \\[5mm] or similar in the past, but there must be some automatic way to do this once and for all in the preamble. Is ...
5
votes
1answer
109 views

Why does \begin{align} &&&\cr \end{align} give “Missing number”?

Consider the following MWE: \documentclass{article} \usepackage{amsmath,bbm} \begin{document} \begin{align} &&&\cr \end{align} \end{document} It generates both the "Missing number, ...
7
votes
4answers
134 views

Multiple alignments within align environment

My minimum working example: \documentclass{report} \usepackage{amsmath} \begin{document} \begin{align} \dot{x}_2 = \dot{x}_{2,0}&+\frac{\partial f_2(x_1)}{\partial x_1} \bigg|_{x_1=x_{1,0}} ...
2
votes
1answer
39 views

Aligning numbers in array

What am I doing wrong here?: \documentclass[11pt,a4paper]{article} \usepackage[latin1]{inputenc} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \begin{document} \begin{align} ...
17
votes
2answers
432 views

Stacked symbol doesn't align properly. Why?

A modified equals sign used represent use of L'Hopital's Rule isn't aligning well with other equals signs. How would I fix that? I'd prefer to do so without manually fiddling with spaces, if possible. ...
4
votes
3answers
69 views

align+multicolumn sometimes produces misaligned equation labels

Here is a short document demonstrating the problem: \documentclass[twocolumn]{article} \makeatletter \renewcommand{\rmdefault}{ptm} \renewcommand{\normalsize}{\@setfontsize{\normalsize}{9pt}{10pt}} ...
3
votes
2answers
86 views

Second align within first align environment with equation numbers

Is it possible to align the for statements here, without dropping the equation numbers? \hfill and && mess up the placement of the equation numbers for me. Edit: Picture of what I get ...
2
votes
2answers
66 views

How to create two series of align equations in the same document?

This question is similar to a previous question about how to create two series of numbered equations in the same document. However, the proposed solution doesn't work for my question, because it ...
4
votes
2answers
77 views

Decrease Vertical Space in Aligned environment

How can one have control over the vertical space brought on by a \\ for the new aligned entry in the aligned environment? For example, how to I condense the following? $\begin{aligned} a & b \\ ...
3
votes
2answers
61 views

How to remove unnecessary space in flalign* environment

This is the first time I've ever used TeX and I'm super confused as to why this is happening. When I used the flalign* environment within the enumerate environment, it leaves line break after the item ...
2
votes
2answers
464 views

Center \leq, \geq, = with different text above [duplicate]

I am typesetting some mathematical equations using \begin{align*} environment. Hopefully to make the steps clear I am adding text above =, \leq, \geq but I am having troubles with aligning them e.g.: ...
4
votes
2answers
115 views

Aligning numbers in tables

just wanted to create a table, that looks something like the following First and second row are no problem at all, but the third row is difficult. I can't achieve this special alignment. Thanks ...
5
votes
1answer
85 views

Caption for align environment

I would like to add a caption under the set of equations that I have in the align environment (i.e., \begin{align} ... \end{align}). I tried \caption{...} inside the align environment, but it didn't ...
1
vote
0answers
48 views

How to add and align figure and texts like that [duplicate]

Please show me how I can do that. And I want to use many times. Help me write a macro so that I can use every time I need. For example, \begin{question} Texts in the question field. ...
3
votes
1answer
125 views

Reason of existense of the extra space in align environment and removal of it between two align environments

This is a follow-up question regarding the extra vertical space in amsmath's align environment. Why when in use align uses so much vertical space in contrast with other environments like for example ...
3
votes
1answer
51 views

Large horizontal gap between my align equations

I wanted to show how a bijection works and so created equations below: \begin{align*} x_1 & \longmapsto &y_1 \\ x_2 & \longmapsto &y_2 \\ & \vdots & \\ x_n & ...
1
vote
2answers
168 views

Remove extra vertical space in amsmath's align environment [duplicate]

If I use \begin{align*}...\end{align*} and out of it I write a text then there is a big vertical space between the text and the mentioned environment. Why is there that space? And how can I erase it? ...
2
votes
1answer
101 views

latex typesetting multiline alignment with flalign

I'm trying to align the second line equation below the integral in the first line. How do I go about doing that? I have used \right. commands to be able to move onto the next lines. I didn't have to ...
0
votes
1answer
97 views

Xtable and Sweave

My question is regarding xtable and sweave. I have a certain table created in RStudio and want to create a pdf file using it. I use the package Sweave and write the necessary code and I get the ...
5
votes
1answer
111 views

Box or [ around multiple lines inside align

I have the following code \documentclass{article} \usepackage{amsmath} \begin{document} \begin{alignat*}{4} \begin{minipage}[h!]{0\linewidth} \text{Let:} \end{minipage} ...
5
votes
1answer
45 views

Why don't pifonts work in align environment?

Minimal example: \documentclass{article} \usepackage{amsmath} \usepackage{pifont} \begin{document} \begin{align} \ding{172} \ding{182} \end{align} \ding{172} \ding{182} \end{document}
1
vote
2answers
94 views

Equation number is not appeared using align environment

\usepackage{times} \usepackage{graphicx} \usepackage{algorithm} \usepackage{algorithmic} \usepackage[nointegrals]{wasysym} \usepackage{amsmath} \usepackage{pseudocode} \usepackage{rotating} I've ...
2
votes
3answers
92 views

left align using alignat?

I want to align some equations on the left side in a document. And additionally I want to have some aligned text behind every equation. Also the equations need to be numbered. With the code below my ...
5
votes
2answers
98 views

right bind when using align

I have multiple lines of equations in align environment, some of those are to long and I have to split them. How can I make the second line rightbound? What I do now is: ...
2
votes
2answers
53 views

How to split very long equation in two pages?

I need to split this equation in two pages. Can you help me? Thanks \documentclass[11 pt,a4paper,oneside,openany, notitlepage]{article} \input epsf \usepackage{amsmath, amssymb, graphics} ...
8
votes
3answers
196 views

Align text equation and math equation

How do align an textual equation with the mathematical expression under it? Some text before Sum = Summand + Summand * Factor of Eternity x = a + b * ...
2
votes
1answer
73 views

align environment not entirely functional in beamer

I am currently working on a beamer project where I use the align enviroment. My code is as follows: \begin{frame} \frametitle{The Hovorka model} \begin{tabular}{l l} \begin{minipage}{0.5\textwidth} ...
4
votes
3answers
119 views

How to wrap text in flalign

not a duplicate of this question because I want to keep the equation numbering, so a tabular won't do (I think). I am using flalign to typeset philosophical arguments. I also want to use hyperref to ...
10
votes
5answers
421 views

How to make a multiply equation?

I need to make a equation like this 1011 (this is 11 in decimal) x 1110 (this is 14 in decimal) ====== 0000 (this is 1011 x 0) 1011 (this is 1011 x 1, shifted one ...
3
votes
2answers
108 views

Combine two `align` in one

Consider the minimal code: \documentclass{report} \usepackage{mathtools} \usepackage{lipsum} \begin{document} \lipsum*[2]% \begin{align*} m_{1}(x) &=x(x-1)=x^{2}-x, & ...
3
votes
2answers
102 views

Using eqnarray (or similar) with exam class

I'm trying to use eqnarray in my solutions to questions using the exam class: \begin{questions} \printanswers \question What is $10 - 3$? \begin{solution} \begin{eqnarray} 10 ...
7
votes
1answer
119 views

Left aligning equations without align character

I realise that this has been asked many times before, but no answers I've found seem to provide a solution to my question. I'd like to left align all text in an align block, in: ...
5
votes
1answer
57 views

how to use conditional to define different \begin and \end environment at compile time

I just need little help on the syntax for this. I am using tex4ht, and I get an error when I use empheq for the align environment. I want to build this TeX file both in pdflatex and htlatex. I ...
4
votes
1answer
55 views

using tag within align

I have the following code: \begin{align} [m] &= [n] \nonumber \\ &= b \refstepcounter{equation} \label{eq:m} \tag{\theequation,~tag} \end{align} If I cross reference the equation, with ...
0
votes
1answer
64 views

Beamer: \qed at the end of align*

I finish a proof sketch on beamer slides with a formula, e.g., \begin{align*} P\leq n^{-\alpha} \end{align*} How can I get a qed symbol at the end of this line? Using \qed as well as ...
1
vote
0answers
29 views

How can I make braket's \Set work with align* and htlatex/tex4ht

I have the following test.tex file: \documentclass{article} \usepackage{tex4ht} \usepackage{amsmath} \usepackage{braket} \begin{document} \begin{align*} \Set{|} \end{align*} \end{document} When I ...
1
vote
1answer
47 views

How can I get htlatex to work with amsmath's align and cleveref?

I have a document test.tex: \documentclass{article} \usepackage{amsmath} \usepackage{etoolbox} \AtEndPreamble{\usepackage{cleveref}} \begin{document} \begin{align} . \end{align} \end{document} It ...
3
votes
2answers
202 views

Why are braces (for scoping) not allowed in an align environments?

I just learned that you can use braces to scope the effect of \tikzset. But it is not allowed in align environments: \documentclass{article} \usepackage{amsmath} \usepackage{tikz} \begin{document} ...
5
votes
1answer
44 views

Align and sub-indexes.

Consider \begin{align} u_j &= x\\ v &= x \end{align} Compiling this the $=$'s are going to be aligned, but the $v$ gets aligned to the end of the $u_j$, which is a bit beyond the end of ...
4
votes
2answers
77 views

How to align long subequations while breaking each one?

I want to align all the terms of two similar subequations, but the problem is that each one is long enough to need breaking. The problem is that after breaking \align tries to align every line with ...
3
votes
4answers
91 views

Make aligned equation vary alignment to avoid equation numbers on new line

I need to write a mathematical programming model composed of several constraints. Constraints are represented as two-columns rows: the first column is the equation and the second is its domain, e.g. ...
2
votes
1answer
53 views

\tag{} causes line break in align environment. how to prevent?

while using the leqno and fleqn options of amsmath package tags tend to cause line-breaks: MWE: \documentclass{article} \usepackage[leqno, fleqn]{amsmath} \usepackage{mhchem} \begin{document} ...
6
votes
2answers
60 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 ...
7
votes
3answers
151 views

How to horizontally align rotated text in a table?

I am trying to horizontally align text that has been rotated in a table. I want the rotated "Lorem Ipsum" and the rotated "Lorem Ipsum & Lorem Ipsum" text to be horizontally centered in the cell. ...
1
vote
1answer
51 views

Two separate align in one direction in latex

I would like two write two different align with two different labels, but I want both of them begin in one direction. How can I fix this code in latex? ...
9
votes
1answer
251 views

How do I rescale an align environment on a beamer slide?

I'm trying to resize an equation on a beamer slide to make it larger. However, the usual approach of using \scalebox doesn't seem to work: \begin{frame} \scalebox{2}{ \begin{align} x &= y\\ y ...
2
votes
3answers
86 views

How can systems be side by side with an arrow between them

Here's my problem : I'd like to a write many equivalent systems of equations. Therefore, I'd like the first to be at the left, then an arrow (\Leftrightarrow, for example, since they're equivalent ...
4
votes
2answers
63 views

Array within Align*

LaTeX fresh beginner here. Using TexStudio. In the second row of an equation array (using align*), I am trying to multiply a row vector by a column vector, using the array command. Apparently the ...
1
vote
1answer
73 views

Aligned and \left \right [duplicate]

The following aligned equation gives an error 'Extra }, or forgotten \right.': \begin{equation} \begin{aligned} U&=\mathbb{R}^{M N}\\ V&=\mathbb{R}^{2 M N}\\ W&=\mathbb{R}^{4 M N}\\ ...