{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
2answers
39 views

How to align equations that are in different items of an itemize [duplicate]

I want to align equations in an align* environment, that are on different \items of an itemize environment. Here is my MWE: \documentclass{article} \usepackage{amsmath} \begin{document} ...
5
votes
2answers
104 views

Environment aligned doesn't output first part in bracket

\begin{equation} \begin{aligned} [c\mathbf{v}+c'\mathbf{v}',\mathbf{w}]=&c[\mathbf{v},\mathbf{w}]+c'[\mathbf{v}',\mathbf{w}],\\ ...
2
votes
1answer
34 views

Numbering align-environments

I'm writing in the article class. The align-environments are being numbered continuously, but I want them to be numbered like "section.number in this section". How can I do that? :)
2
votes
0answers
22 views

How to get align environment in the same line as text [duplicate]

I would like to have an align environment which is not automatically written in a new line. For example in the following code, the formulas should appear in the same line as the itemize-dot or the ...
2
votes
2answers
56 views

Variable number of ampersands in align/alignat env

I am trying to display this equation in latex: \begin{alignat*}{2} \forall \, z \in \mathbb{C}, \quad & (2z + 1 - i)(i\bar{z}+i-2)=0\\ \iff & 2z + 1 - i = 0 ...
1
vote
1answer
46 views

Problems with aligning equal signs

Trying to align equal signs and get an error message saying missing } inserted I can't figure out what I've done wrong? \begin{align} ($b^nn^\alpha$)$^{-1}$=\large$\frac{a^n}{n^\alpha}$ ...
2
votes
5answers
86 views

How to align equations with the inequality sign separated from the right-hand-side math material?

I do \newcommand{\va}[1]{\left | #1 \right |} [...] \begin{align*} & \va{\crochets{\frac{-\cos(nt)}{n}\cdot \frac{1}{e^t-1}}_{\varepsilon}^A} \\ \leq &\frac{1}{n} \cdot \left ( ...
2
votes
1answer
65 views

Aligning amsmath and mhchem equtions

I am using the amsmath & mhchem package to get the two equations below which should be aligned properly using the \begin{align} command. However after trying several constellations of &, I ...
2
votes
1answer
79 views

Is there a way to put two labelled equations into one \begin{equation} and align both of them at the beginning?

I can't believe how difficult it is to work with \begin{equation}. I put one extra blank row under the equation and multiple errors popped up. Anyways, I have two equations which are labelled ...
2
votes
3answers
128 views

How can I align similar equations with different variables?

For example: \begin{align} \begin{cases} & x = X/Z = 1\\ & y = Y/Z = 1\\ \end{cases} \end{align} Any way to have the spacing for the X and Y be the same so that the ...
2
votes
1answer
100 views

Vertical space command which is between \intertext and \shortintertext

Is there a way to define a command like \notsoshortintertext with two parameters to define the vertical space before and after it? The problem I have is that \intertext is to wide on a specific page ...
3
votes
1answer
63 views

Baseline of aligned equation

How can I fix the alignment of this equation? \[\aligned A = \aligned \Bigg( &a \\ &b \\ &c \Bigg) \endaligned dt \endaligned \] Current output: Desired output: I know I can ...
3
votes
3answers
121 views

How to have multiple lines of intertext within align* environment?

So I have two sets of equations that I'd like to be aligned, but they're broken up by two lines of text, the second of which should be indented. MWE with Comments \documentclass{article} ...
4
votes
1answer
35 views

Underbrace in equation in align environment

In my code below, I wanted to add another underbrace under the "B" underbrace in the beginning of the second equation with z. The second underbrace should cover from the [x,y] to just before the "=" ...
1
vote
1answer
28 views

Error when using \align from amsmath

I am trying to add a block equation to my paper with an equation number 12. When I try the following in https://www.codecogs.com/latex/eqneditor.php, I get an invalid equation error. I am new to ...
1
vote
1answer
34 views

align to decimal point in the table

I want to align the number values of second and third column in the table, with the decimal point. Anyone can help me? \newcolumntype{C}[1]{>{\centering\arraybackslash}p{#1}} \begin{table}[htbp] ...
3
votes
1answer
32 views

Tikz arrow compiles to wrong location when used in the align environment

Can you help me prevent my arrow from showing up on the wrong page. I have a tikz arrow in an align environment and for some reason, the arrow shows up on the following page and not in its intended ...
8
votes
2answers
393 views

How to make curly braces with several equations?

I am trying to type the following equations in LaTeX: What I currently have is: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align*} \left.\begin{aligned} ...
1
vote
1answer
43 views

Writing steps to an equation

I am new to LyX, how do I write steps to an equation, and if I want to do an operation on both sides of the equation, something like x+2=2 \-2 x = 0
0
votes
1answer
24 views

Vectors in align environment with additional split

I want to do the following: Some vectors (using pmatrix) aligned in an align environment but with a single equation number (using split): \documentclass[11pt]{article} \usepackage{amsmath} ...
0
votes
0answers
44 views

Why this fatal error occurs? (trying to align a text in tikzpicture) [duplicate]

I would like to print a code in my document in the format that is very common to see online in many websites like this: But when I try to compile, a fatal error occurs. The problem is in the ...
1
vote
1answer
57 views

How to align two side by side equations at the top?

\begin{equation*} \begin{array}{ll@{}ll} \text{minimize} & \|Ax-b\|_\infty &\\ \end{array} \quad \begin{array}{ll@{}ll} \text{minimize} & t &\\ \text{subject to} & Ax-b \preceq ...
1
vote
1answer
46 views

Align deleting lines

This might be a really simple problem, but the class I'm in gave us a writing assignment with zero introduction or instruction on how to actually use LaTeX. Simply "google how to do it," so have ...
2
votes
2answers
181 views

How to add a massive bar on the letters?

At the moment I have an output with \bar{...} command as and I want something that extends over the entire term preferably without redefining the original command.
2
votes
1answer
37 views

Numbered align with bracket [duplicate]

I have the following code \begin{align} s'(t) &= -\beta s(t) i(t)\\ i'(t) &= \beta s(t) i(t) - \gamma i(t)\\ r'(t) &= \gamma i(t), \end{align} and I want to enclose this with a bracket ...
2
votes
1answer
50 views

Equation align left instead of right? (not what has been answered before)

I am absolutely blown away. I have spent a month on and off looking for a solution to this extremely obvious issue and it has not be addressed anywhere that I can see. When using align for equations, ...
3
votes
1answer
51 views

Aligning equations across multiple lines with proper \left( and \right)

I have the following set of equations: \begin{align} y_1' &= y_2\\ y_2' &=\dfrac{1}{m}\left(0.05 \,k_f\, sin\left(\dfrac{2 \pi v}{10} t \right) + 0.05 \,k_r\, sin\left(\dfrac{2 \pi v}{10} t - ...
2
votes
1answer
131 views

Align logo right in Beamer

I want to right align my background image (logo) in Beamer presentation. What's more I want to set logo to be partially visible - left half of the image should be visible on the right side of the ...
2
votes
3answers
118 views

How to align the top of several columns of short equations?

I use align to generate a parameter group with a number at the center of the right side. Now I want to align the top of each column by adding \vspace{0pt}. However, it doesn't work. Any other method ...
1
vote
0answers
24 views

How to align at multiple positions when each line is a single equation? [duplicate]

I have equations of which each one has two equal signs. I want to align those equations at both positions of equal signs, like: a = b + c = d e = 2b + c = f By using two "&"s, each line will ...
2
votes
1answer
69 views

Multiple lines of text in math mode

One of the assumptions in my paper requires a long line of text. Is there a way to format this nicely? I'd like to keep it in math mode so that it looks the same as the other assumptions and I can ...
4
votes
1answer
50 views

Latex equation tags

I have an align environment of equations in two columns. I want to give custom tags to each line, but for the first two lines I want a common tag in the middle of the lines. Any ideas would be greatly ...
2
votes
1answer
120 views

Center Equation [duplicate]

Does anyone know how to center this equation? \begin{align} r(P_i)=\sum\limits_{P_j \in B_{P_i}} \frac{r(P_j)}{|P_j|} \label{eq:sum} \end{align} Thanks in advance
4
votes
2answers
78 views

equation number to appear at center of multiline equation in the align environment

In my code below, I wanted the last equation number to appear at the center line of the split equation, like this: Can you assist me with this? Here is my code: \documentclass[11pt]{book} ...
4
votes
3answers
205 views

Left aligning and breaking equations in cases environment

I have a equation that needs to be left aligned within the cases environment. Here's my code so far, which does not work: \documentclass{article} \usepackage{amsmath} ...
5
votes
2answers
149 views

Automatic split and left align a long equation

I have a long equation. I want to split and align left for that equation such that same "=" location. I used below code in latex. But it fails to display. Thanks \documentclass[preprint,12pt, ...
15
votes
3answers
766 views

align vs. equation: Which way is typograpically preferred?

The main differences between align and equation are the spaces and that align cannot be used with split, as far as I know. What would be, from a typographic point of view, the preferred practice? ...
4
votes
1answer
69 views

“dec sep align” from pgfplot does not align with the header properly

In my ME below, I am having a problem to get the header align properly with the text. I have looked at the documentation for the pgfplotstable, also from other posts from this forum like that posted ...
0
votes
1answer
33 views

Align, the second & does not align “right” [duplicate]

The following code: \begin{align*} 2(3-x) \leq 2 &\Leftrightarrow 6-2x &\leq 2 \\ & \Leftrightarrow -2x &\leq 2-6 ...
7
votes
2answers
168 views

Align mathematics equation in a box

I have the following code of maths equation in a box : \begin{framed} \begin{align*} &C_\star \rightarrow E_\star : &x=3\dfrac{5\phi^2+24\phi+12v+24}{\phi^2}, ...
1
vote
1answer
41 views

Help with align environment and split

I would like some direction as to how to get my equations to align like this: Here is my code: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align} {\mathbf{u}} & = ...
1
vote
1answer
45 views

Aligned Equations With Itemized Number [duplicate]

I have been trying to make the aligned equations in the same line with item number. I have tried array, aligned, alignat, and eqnarray, but they dont work out for me. The picture is from align* ...
0
votes
0answers
23 views

How to align a set of equations in the left yet retaining the auto-numbering? [duplicate]

I have found many codes through which equations can be aligned in the left but the problem is it assigns either a single number to all the equations or no numbering at all. I want something like fleqn ...
3
votes
1answer
52 views

Geometry and Equation centering: strange behavior

I have found a strange "bug", where my equations do not seem to be aligned correctly when using the geometry package. I try to explain this behavior in more detail using this MWE: \documentclass[ ...
2
votes
1answer
108 views

Align Numbers in tabularx with standard deviation

I'm trying to make this table with numbers and standard deviation, how can I aligns the numbers properly? The spacing between numbers and st.dev is too high and the numbers are not aligned to the ...
4
votes
2answers
293 views

How to Make My Equation Look Better With Text

I am creating a calculus study guide with LaTeX. I want my equations to be left aligned, but with the added text everything sort of looks terrible (not really left aligned and quite jagged in my ...
3
votes
1answer
61 views

Can't generate png with Error: Erroneous nesting of equation structures

i am trying to generate pdf file from latex document with formula below \documentclass[border=2pt]{standalone} \usepackage{amsmath} \usepackage{varwidth} \begin{document} ...
1
vote
1answer
78 views

How to left adjust a linear program?

\documentclass[11pt,a4paper]{article} \usepackage{fontenc} \usepackage[utf8]{inputenc} \usepackage{mathtools} \begin{document} \begin{alignat*}{2} \text{minimize } & \sum_{i=1}^m c_i x_i ...
5
votes
1answer
156 views

mathcal inside gather environment not working

I'm trying to display a sequence of equations, plainly centred, so without any alignment you get from the align environment. I thought gather would do the job, but when I try to use mathcal, I get the ...
9
votes
1answer
116 views

Is there an environment that imitates align but displays `textstyle` math?

I'm currently typing a mathematical document which counts many sum symbols. I frequently use the align environment to render equations, although the default behaviour of this environment is to render ...