{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
64 views

TikZ: How to center the text in a node with the scrartcl class

I want to draw a probability tree. In Beamer it looks good. But in scrartcl the texts in the node are aligned right. I want the text to be centered. How can I solve this? ...
3
votes
1answer
107 views

Bracket problems when splitting multiline equations

Basically, I have the following latex code: \begin{align*} + \left( \left[ \sum_i y_i x_i(r) - \frac{1}{n}\sum_i y_i \sum_i x_i(r) \right] \left[ \sum_i x_i^2(r) - \frac{1}{n} \left( \sum_i ...
3
votes
3answers
243 views

Problem aligning multiple pgfplots due to different axis label sizes

I have two plots that comes back to back in my paper. One of these plots is generated from 1000 data samples while the other one from 320. The problem that I'm, facing right now, is that plots are ...
1
vote
2answers
65 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
24 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
97 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
85 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
89 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
53 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
41 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
41 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
107 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
110 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
71 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
49 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
54 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
74 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
86 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
41 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
60 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
79 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
92 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
166 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
46 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
99 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
148 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
75 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
53 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
78 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
41 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
103 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
52 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
27 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
106 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
133 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
38 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} ...
16
votes
2answers
427 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
62 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
85 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
53 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
342 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
80 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
118 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
50 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
144 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
97 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 ...