{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.

learn more… | top users | synonyms

7
votes
3answers
225 views

Center a column in align

I have the following type of code in my document: \begin{align*} (-m)+m & \stackrel{\mathrm{Ax 1.1 (i)}}{=} m+(-m)\\ &\stackrel{\mathrm{Ax 1.4}}{=} 0 \\ I want to align on the = ...
2
votes
2answers
57 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
85 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 ...
3
votes
1answer
77 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 ...
5
votes
1answer
39 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
40 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. ...
1
vote
2answers
45 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? ...
3
votes
1answer
35 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 & ...
2
votes
1answer
47 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
0answers
9 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 ...
9
votes
4answers
7k 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 ...
9
votes
2answers
5k views

Horizontal spacing after equation

I have the following snipped in my LaTeX document: \begin{align} \sum_{j=1}^{m}x_{ij} &= 1 \text{ for } i = 1,2,...,n \sum_{i \in P_k}x_{ij} &\leq 1 \text{ for } j = 1,2,...,m \text{; } ...
5
votes
1answer
66 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} ...
1
vote
2answers
75 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 ...
5
votes
1answer
28 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}
2
votes
3answers
54 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
80 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: ...
8
votes
3answers
130 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
2answers
41 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} ...
2
votes
1answer
47 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
60 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
364 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 ...
1
vote
1answer
64 views

Putting a number on the right hand side without using the equation or align environment? [closed]

I have a couple of lines which I wish to number and I'm hoping for something like: Text... \alignright{1} or something like that if it exists to produce Text... (1)
2
votes
1answer
106 views

$$, \[ \] and equation environment alignment

I'm using scrreprt class and I'm having troubles with different behavior of $$ and \[ \]-written equations and equation environment. The problem is that alignment is not the same: $$ equations are ...
3
votes
2answers
86 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
79 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
108 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
31 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 ...
8
votes
2answers
78 views

Is there a way to set character align in the preamble

So I haven't been able to find an answer to this and sorry if it's actually simple and I'm kind of an idiot for not finding a solution but I can't find anything in any of the wiki's for the align ...
0
votes
1answer
49 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 ...
4
votes
1answer
42 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 ...
1
vote
0answers
19 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 ...
3
votes
2answers
186 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} ...
0
votes
1answer
22 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 ...
58
votes
5answers
53k views

eqnarray vs align

I want to include a list of related equations, say, for a proof, in my LaTeX document. As far as I know, I have two good options, eqnarray and align. What is the difference between them, and how do I ...
5
votes
1answer
38 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
32 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
61 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
33 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
38 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
115 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
40 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? ...
8
votes
1answer
139 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
65 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
40 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 ...
4
votes
4answers
497 views

Are there any way to align this equation?

I have a long equation. I used multline and tried \documentclass[12pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} \begin{document} \begin{multline*} ...
1
vote
1answer
32 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}\\ ...
6
votes
3answers
184 views

why does something disappear in the aligned environment?

I noticed a strange behaviour with the aligned environment: \begin{equation}\label{eq:direct_limit} \begin{aligned} [x] + [y] & := [\eta_{ik}(x) + \eta_{jk}(y)],\\ [x] \cdot r & := [x \cdot ...
3
votes
2answers
61 views

align nested in cases

Code \documentclass[a4paper,twoside,12pt]{book} \usepackage{amstext} \usepackage[utf8]{inputenc} \usepackage{cases} \usepackage{amsmath} \begin{document} ...
1
vote
1answer
36 views

Force equation number to be right aligned

I'm trying to typeset some basic equations with proper numbering. I simply want a single equation to have a right aligned number in the two column environment that I'm using. I tried three approaches, ...