{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

Negative Spacing - Align Environment

I am writing the following optimization model: \documentclass[preprint,3p,times,onecolumn]{elsarticle} \usepackage[fleqn]{amsmath} \usepackage{mathrsfs} \begin{document} \begin{align} & ...
2
votes
1answer
103 views

Aligning equations in tabular with aligned environment

I am trying to align equations in a tabular environment. Having read that align and align* don't work in tabular, I found this thread: Aligned equations in tables which suggests using the aligned ...
2
votes
2answers
53 views

Vertical alignment of \vdots in an align environment - a shift of \vdots by half the width of “+”

In an align environment, I have a sum of an arbitrary number of terms. I want to use \vdots to display the ellipses indicating the presence of terms that are not displayed. As I am vertically ...
4
votes
2answers
122 views

Equations not aligned properly

I'm trying to align multiple questions below each other. I'm using the following file. \documentclass[11pt]{article} %comments %pdflatex, bibtex, pdflatex, pdflatex ...
8
votes
4answers
222 views

Align objective function in latex

I am writing the following optimization model: \documentclass{article} \usepackage[cmex10]{amsmath} \DeclareMathOperator*{\Min}{min} \begin{document} \begin{align} &Q_t(v_{t-1},a_{ti\omega}) = ...
1
vote
2answers
96 views

Equation alignment “with offset”?

With LaTeX, how do I achieve the following aligned equation? Dashed lines indicate desired alignments. Solid boxes denote some random expressions.
4
votes
2answers
48 views

Not getting alignment that I want in an alignat environment

In the following display, $+ \frac{1}{4!}$ in the third line of the alignat environment should be aligned directly below $+ \frac{1}{2!}$ in the second line. Depending on the spacing in the corrected ...
3
votes
1answer
67 views

Alignement problem underbrace within \align

I can't get the alignment correct with the underbrace: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} \begin{document} \begin{align} \sin \alpha = \frac{|CD|}{b} ...
5
votes
2answers
193 views

Align multiple equations

I would like to align multiple equations below each other. However, I cannot figure out how I should code this. I'm using the following preamble: \documentclass[11pt]{article} %comments %pdflatex, ...
3
votes
1answer
56 views

Ampersand inside new command, align environment

I am trying to shorten down on writing math with variables, and therefore one of the steps needed is to split the equation string at the first = sign and put a & sign in front of it for alignment. ...
5
votes
1answer
88 views

How can I use \foreach in math environments?

I'm looking for a way to generate in a loop the rows of an align environment, or IEEEeqnarray or some such thing. I can see that \foreach works in math mode (inside \[ \] e.g.), but something like ...
4
votes
3answers
77 views

Send a word at start of an align environment to the left

I would like to send the word "Associativity" in my equation to the left in this enumerate environment like this: Here is my code: \documentclass{article} ...
14
votes
6answers
416 views

How to align the term to right

\documentclass[a4paper,titlepage]{article} \usepackage{amsmath,amssymb} \newcommand*{\PartialConj}{\ensuremath{\bar{\partial}}} \newcommand*{\Abs}[1]{\ensuremath{\left\lvert #1\right\rvert}} ...
3
votes
2answers
40 views

equation align inserts whitespace

I'd like to make equations that align like this: x = y x z = a x b Here's an MWE: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align*} x &= &y \times ...
6
votes
1answer
50 views

rotate text in {align} formula, move {cases} to back, and wrap text

I'm writing some formulas where I would like to move the cases bracket to the back, rotate some text, and wrap some text, among other things. I've made a working example of how far a got and a ...
7
votes
3answers
93 views

How to justify steps (e.g., citing numbered equations) in a displayed chain of equations

I have a chain of equations in AMS align environment in LyX, and I want to cite numbered equations as justification for some of my steps in the chain (see the picture). I don't know if there's a ...
0
votes
1answer
28 views

Aligning equations in a way that && doesn't send the given line to the right

As an example: \begin{align*} 2+x&=&3\\ &a&\\ &&b \end{align*} I would like the first line to be displayed as normal, but with $a$ underneath it aligned with the =, and the ...
0
votes
0answers
28 views

How do I have less vertical space after the align environment?

I just feel like my align environment has too much space after and the new paragraph I write skips to then next page even though at least the first line would fit in the previous page.
1
vote
1answer
45 views

Missing $ inserted - trying to center within align

\documentclass{article} \usepackage{amsmath} \usepackage{graphicx} \usepackage{textcomp} \begin{document} \begin{align*} \begin{center} \theta = ( \pi_0, \beta_0, \beta_1 )\\ ...
3
votes
1answer
39 views

Align part of formula

I would like to align to the left the first part of a formula inside a set. I tried using align, but it does not work well with the big paranthesis. Here is my code \documentclass{report} ...
0
votes
1answer
23 views

How to used aligned environment and enable equation number

How is it possible to use the aligned environment and enable equation numbering for both equations in the example below: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align} ...
1
vote
3answers
45 views

Multiple Alignments in equations

I want to align the equations like this but all I can get is this And this is my code: \begin{alignat*}{2} &\mathcal{F}^N(t) \subset &&\sigma \{Q_0^N(0), \hat{Q}_1^N(0), ...
1
vote
2answers
43 views

How can we give a single number for a system of equations?

I want to type the following equation, as it is.. I need the left flower to be right and the numbering also should be right.. How I can do that? Do we have an environment like ...
1
vote
2answers
42 views

Aligning inside a table across a column

I have a table in which a column looks like this: I want to align the $\ge$ signs one below the other. How do I achieve this? I was also hoping that the solution would be generalizable, in the ...
3
votes
2answers
95 views

Is there an environment similar to alignat, but embedded in a single equation?

As explained in this answer, the difference between align and alignat lies chiefly in the presence of some spacing between even and odd columns. I would like to get the same result as with alignat ...
3
votes
2answers
63 views

left aligned equation

With the code \begin{eqnarray} \Bra{\psi(0)}b_n^+b_n\Ket{\psi(0)} = \nonumber\\ \Bra{\psi_0}(\sum_l U^l_n a_l^+(t) + V^l_n a_l(t))(\sum_m U_n^m a_m(t) + V_n^m a_m^+(t))\Ket{\psi_0} \end{eqnarray} ...
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
102 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
32 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
55 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
44 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
83 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
63 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
76 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
127 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
90 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
56 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
101 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
31 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
31 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
385 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
41 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
55 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
180 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.