{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

2
votes
1answer
40 views

Align all parts of the equation array and comment it

I would like to align all parts of the equation (Not just the '=' sign) to make it looks better and comment it afterwords. Can someone please help me. Thanks S.L. \documentclass[12pt]{article} ...
3
votes
1answer
89 views

Write an extremely wide equation in LaTeX

How do you write an extremely wide equation in LaTeX without any type of breaks/align/. Do you need a special type of class? Can one use A3 or bigger format? It's not for printing rather just to ...
4
votes
1answer
81 views

multiple equations with same number

I can't seem to make this work. I want the matrix and the second equation with the same equation number. \begin{equation} \begin{aligned} [{\bf Z}] &=\begin{bmatrix} R_1+j\omega L_1 & ...
3
votes
2answers
32 views

Align equals inside case statement

I have the following code: \begin{equation} \frac {\partial C}{\partial {z_k}}= \begin{cases} - \frac {1} {y_i} {y_i} (1-{y_i}) = y_{i} - 1 & k = i \\ \frac {1} {y_i} {y_{i}^{2}} = y_{i} ...
0
votes
2answers
87 views

Aligning an equation [duplicate]

I have an equation like this: \begin{equation} \begin{split} |a+bi|=\sqrt{a^2+b^2}\\ |a+bi|^2=a^2+b^2\\ |a+bi|^2=(a+bi)(a+bi)\\ =(a+bi)(a-bi)\\ =a^2+b^2i^2\\ =a^2+b^2 ...
2
votes
1answer
40 views

making the text to align with the second level bullet above

\subsection{Previous Studies} \frame[label=exampleframe]{ \frametitle{Previous Studies} \begin{itemize} \item There are many studies There are many studies There are many studies There are many ...
0
votes
1answer
43 views

is there a reason not to use align?

I have plenty of equations, some of them single lined and some of them with multiple lines which I normaly using the align environment. Now my question is: Is there a reason to use equation over ...
4
votes
1answer
62 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
88 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
163 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
58 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
23 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
89 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
80 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
74 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
51 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
40 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
39 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
104 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
95 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
68 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
46 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
44 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
71 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
80 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
39 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
55 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
71 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
68 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
165 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
41 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
94 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
134 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
64 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
49 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
73 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
38 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
92 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
50 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
26 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
100 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
129 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
35 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
424 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
59 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
82 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
65 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
75 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
40 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
209 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.: ...