{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

1
vote
2answers
96 views

big equation in flalign

I am trying to use a big equation inside flalign. The biggest chunk is the third line and I couldn't figure out how to something akin to \shoveright in this third equation, as I want is ending on the ...
2
votes
0answers
25 views

Multiple labels [duplicate]

I have been using the following piece of latex code \begin{equation} \Phi(A_n) = \left \{ \begin{aligned} &\max \left [ L_n-A_n, 0 \right]\\ &\max \left [ L_n-A_n, K ...
6
votes
4answers
112 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} ...
3
votes
1answer
102 views

How to left align the element when usig begin align, not the whole equation?

I am using begin align command and want to left align my equation. I learned that using flalign I can left align the whole equation. But this is not what I need now. I want to left align my equation ...
3
votes
1answer
113 views

\begin{align} not working when centering math equation

I've read a few posts here about center math equations and all of them make use of \begin{align} *Math symbols* \end{align} Now I've included the \usepackage{amsmath} before the begin document ...
3
votes
1answer
57 views

Dots in a system of constraints

I would like to write a linear program as follows: The text above and below is shown only to indicate the position of the system on the page. I wrote \documentclass[a4paper,11pt]{report} ...
3
votes
2answers
45 views

Mini-alignment of a single equation?

So I have this problem, whereupon I would like to do some 'mini-alignment'. I have googled for ways to do this, but I get results based on aligning whole equations. Here is my current output: What ...
3
votes
1answer
46 views

Unwanted page break before align

I am having some issues with the positioning of a page break with align. My code is roughly the following. \documentclass{article} \usepackage{amsmath, amsthm} \begin{document} %Lots of text to ...
5
votes
1answer
113 views

Alignment for Multiple Equations

I have equations in two different align environments. How do I align them equally in such a way that the = sign is in the exact position following the sequence. The MWE: ...
5
votes
1answer
142 views

New command for local setlength

I'm looking for local space settings after math text, e.g.: \documentclass[a4paper,fleqn,leqno]{article} \usepackage{amsmath} \begin{document} \begin{align*} ax_{1}^{2}+bx_{1}+c=y_{1} \\ ...
5
votes
2answers
78 views

Centering a tag on an align environment

I want to create a list of two items, labeled (1) and (2), with a $\star$ tagged to the left, and centered vertically in between the (1) and (2). If I use the following: \begin{align*}\tag{$\star$} ...
3
votes
1answer
64 views

Placing a tikzpicture next to an align and add an equation number

I want to place a tikzpicture next to an equation and equip both of them together with an equation number. The reason is that the tikzpicture is a kind of explanation (visualization) for the equation. ...
0
votes
1answer
69 views

Left and right braces on different lines of align [duplicate]

\documentclass[a4paper,12pt]{article} \usepackage{amsmath} \begin{document} \begin{align} A = \max\left{B \\ & C \right}. \end{align} \end{document} My expressions B and C are so long ...
1
vote
1answer
87 views

Extra alignment tab error, on Table

I am trying to make a table in LaTeX. However, I get several extra alignment tab errors and I do not know why. I have searched here for similar problems but I only found extra alignment tab error ...
1
vote
2answers
112 views

How to write a big integral in an “ align” environment?

I would like to write a big integral in a align environment but bigint seems to be useless. Could anyone suggest? Here is a MWE containing the long expression: \documentclass[a4paper,10pt]{report} ...
1
vote
1answer
54 views

How to correctly align bibitems

I am using the thebibliography environment. In addition I use custom labels, which are different in length. How do I align my bibitems correctly, so that all bib entries vertically start at the ...
3
votes
1answer
65 views

\bigl( \bigr) in inline mode and in align environment

The following, I believe, is a strange behavior of \bigl(<math content>\bigr) in inline math mode and in the align environment. Consider the following MWE: ...
2
votes
1answer
89 views

Upright maths in display mode, but italics in align environment in beamer class

I use mathastext like this \renewcommand{\familydefault}{\sfdefault} \usepackage[defaultmathsizes]{mathastext} \renewcommand{\familydefault}{\rmdefault} This gives me upright math throughout my ...
3
votes
1answer
115 views

Left-alignment of table caption. Forced to center

I am trying to get the table caption left aligned (as the first table labeled "parameter estimates" using tabularx), but in tabular* environment (also happens to my tabularx in the original document) ...
4
votes
4answers
169 views

How can I get a nice alignment without using \hspace?

I have two pieces of TeX-code producing almost the same (except numbering) results. Both outputs are desired. However, they contain an ugly thorn \hspace*{-7mm}. I need this command as I am trying to ...
0
votes
1answer
49 views

Add vertical space in aligned environment and explanation of the unequal space between two gather/align environments

I want to leave some space between the aligned environments and some below the texts in the environments so to have a nicer output. How can I do that? \documentclass[12pt]{article} ...
6
votes
1answer
117 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} ...
2
votes
2answers
184 views

Equivalence arrow in LaTeX

I have an equation like \documentclass[12pt,a4paper]{report} \usepackage[latin1]{inputenc} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsthm} \begin{document} ...
4
votes
2answers
84 views

Help with aligning equations and numbering

I'm new to LaTeX so you're going to have to bear with me. I am trying to write a project report using it and I have got this so far for a certain section: Then, ...
0
votes
2answers
56 views

Alignment within align environment

My minimum working example: \documentclass{report} \usepackage{amsmath} \begin{document} \begin{align} x_1 = \alpha,\, x_2 = q,\, u = \delta \\ f_1(x_1) &= C_1 \left [ \phi_{z1}(x_1) + ...
2
votes
3answers
81 views

Splitting equations with parentheses in aligned [duplicate]

How can I break the first line \begin{equation} \begin{aligned}[2] & some stuff \left\{ stuff' + stuff'' \right\} \\ & = some other stuff \end{aligned} \end{equation} in a way such that the ...
3
votes
2answers
48 views

Left-align column and row matrices and right-align the dimensions

I have some vectors, one of which is written as column and others as rows. I would like to have them so, that the vectors are left-aligned and the corresponding dimensions right-aligned, as I tried to ...
6
votes
2answers
144 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 ...
5
votes
2answers
54 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
31 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
120 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
138 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
46 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
443 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
76 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
91 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
67 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
83 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
91 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
725 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
117 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
96 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
50 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
137 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
53 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
215 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
110 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
142 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
132 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
54 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}