{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

5
votes
2answers
46 views

How do I use equation in this scenario without running into “Missing number, treated as zero”

I'm pretty new to Latex and I am working with a bunch of formulae. I'd like to give each of them different numbering and this is what I've got: \begin{align} \begin{split} &|\Theta_P| = {|P| ...
5
votes
1answer
52 views

Align images with text without using tables

Problem: I have searched how you can align text without the use of tables using LaTex. What I am after is to align images after each other on one side and text to align to respective image on the ...
0
votes
2answers
24 views

Left-align text in math-mode and break equations

I have the following MWE \documentclass[11pt, a4paper]{article} \usepackage{fancyhdr} \usepackage{graphicx} \usepackage{amsfonts, amsmath, amssymb, amsfonts} \begin{document} \begin{align} ...
3
votes
1answer
32 views

Making aligned environment and stacked limits work

I'm trying to typeset something like this: \begin{align*} n^{\frac1n} & = \exp\left(\frac1n\ln(n)\right) \\ & = \exp\left(\frac1n\ln(n)\right) \\ ...
0
votes
0answers
44 views

Wrong numbering in formulas!

I am writing in report document class and I have a problem. My formulas are numbered wrong! for example it (0.2)! I think I have a problem in the packages I ordered at the beginning. These are what I ...
3
votes
2answers
68 views

horizontally align group of nodes with respect to coordinate

I have one node (or rather, a coordinate) and a couple of nodes which are aligned in one "row" (via right=of, left=of). They are aligned below each other (via below right=of), \documentclass{article} ...
1
vote
1answer
35 views

Best way to arrange several (systems of) equations (of different size)

There are many many examples of how to deal with and depict a system of (linear) equations (e.g. compare Best way to create an system of equations environment? ). But I like to design exercise sheets ...
3
votes
1answer
115 views

Center aligned group of equations based on ampersand

MWE: \documentclass[11pt,a4paper]{article} \usepackage{amsmath} \begin{document} aaa \vspace{17cm} \begin{align*} \centering (a+b)^3 &= (a+b)^2(a+b)\\ &=(a^2+2ab+b^2)(a+b)\\ ...
1
vote
2answers
51 views

How to stop centering effect when using split equation?

For example, the following code produces the equations below: \documentclass{article} \usepackage{amsmath} \begin{document} \[ \begin{split} Helloworld & = A \\ & = B ...
4
votes
1answer
48 views

Align three images horizontally

I have three images that don't have the same size. I want to arrange them horizontally in a way that they are centered. I tried this code, it works for the positionning. But I don't know how I can add ...
2
votes
1answer
32 views

Increase vertical space for tikz boxes

Problem: This problem is two-fold: How would I do in order to increase the top and bottom margin for the orange box where it says "Code if true"? How would I do in order to always align the orange ...
1
vote
1answer
23 views

Customizing the sidebar in beamer having aligned section numbers

I'd like to know how the vertical navigation in the beamer sidebar can be edited to have the section numbers aligned left like in a toc. The question is very similar to this one I think the MWE can ...
2
votes
2answers
23 views

Beamer overlayarea within align environment

In my beamer presentation there are three equations in an align environment. First, they should be rendered as specified. In step 2, part of the first equation should have a box around it. In step 3, ...
2
votes
1answer
34 views

How to reset numbering every new math block?

In a paper/document with multiple math blocks, such as align, equation etc. every new block resumes numbering from the number it was left in the previous. How can we reset the numbering, that is, how ...
3
votes
3answers
49 views

Aligning the cell contents to the middle of the cell while using multicolumn

While using this table environment, I need to get the cell contents of the second row to be in the middle of each cell. But, I am getting all of them aligned to top of the cells (although there are ...
0
votes
1answer
27 views

Errors in align environment

The following block of code comes up with 10 errors. \begin{align} \|\tau(\textbf{x})-\tau(\textbf{y})\| &= \|\textbf{x}-\textbf{y}\| \\ \|\tau(\textbf{x})-\tau(\textbf{y})\|^2 &= ...
1
vote
0answers
17 views

Why can't I break this formula into two lines? [duplicate]

\begin{align} V_{\alpha \beta} = \left\langle (K_{il} E_{i j}^{\alpha} K_{j m} \delta_l \delta_m + 2 \epsilon_i \delta_m E_{i j}^\alpha K_{j m} + \epsilon_i \epsilon_j E_{i j}^{\alpha} - N_{i j} E_{i ...
1
vote
1answer
25 views

Double subscript error in align

What's the reason for the double superscript error? \nabla = \frac{\partial}{\partial r} \hat{\textbf{\r}} + \frac{1}{r} \frac{\partial}{\partial \phi} \hat{\textbf{\phi}} + ...
1
vote
0answers
28 views

Good practice SI units align environment - tufte-book class

In a mission to purify my LaTeX-coding I encountered some problems. First problem after changing from book-class to tufte-book class I had to set all numbers in math-mode, meaning the units become ...
3
votes
3answers
58 views

Start a new line before align in equation

I use \begin{equation} \begin{aligned} p(z_{di, dj} = t | w^{(k)}_{di} = w_i, z_{-di}, x_{-di}, w^{(k)}_{-di}, w^{(n)}_{dj} = w_j, z_{-dj}, w^{(n)}_{-dj}, A, \alpha^{(k)}, \alpha^{(n)}, \beta) ...
4
votes
2answers
129 views

Equations aligned center

The following code \begin{equation} \label{eq:test} \begin{aligned} A=AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\\ B=BBBBBBBBBBBBBBBB\\ C=CCCCC, D=DDDDDDD\\ E=EEEEE, F=FFFFFFF \end{aligned} ...
3
votes
1answer
41 views

Align equations with multiple subequation groups

I usually use the subequations environment with a nested alignso I can have nicely aligned equations with that neat 1a, 1b, 1c, etc. numbering and that's fine. But now I would want to still align ...
2
votes
1answer
22 views

Number equations and preserving alignment of equal signs

So as I have learned from a previous post that the \begin{aligned}... \end{aligned} with the usage of "&" before "=" will help arrange neatly the equations where the equal sign of each equation ...
3
votes
1answer
39 views

My phantom cup doesn't have the same width as my non-phantom cups in an align environment; how can I fix this?

Here's my code: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align*} Q= & \phantom{\cup} \{\{n-1,n-1,3\}\} \\ & \cup \{\{n-1,n-j+1,j+1\}: 3 \leq j \leq \lfloor ...
1
vote
1answer
18 views

Control Spacing and Alignment in align environment

I have an align-environment and basically want all the Z's and all the signs (+-) left-aligned + all centered + the smallest possible/sane gap in between + numbering + labels (if possible): ...
6
votes
4answers
149 views

Align ordinal numbers

\documentclass[10pt]{article} \usepackage{ulem,amsmath} \newcommand{\unline}[1]{\rule[0pt]{#1}{0.6pt}} \usepackage[T1]{fontenc} \usepackage[sfdefault]{AlegreyaSans} \begin{document} ...
4
votes
2answers
64 views

Move tag next to equation in align environment

It's my first time asking here but I have got so much help from this site :D My particular case is that I need order and tag Maxwell's equations but I need set the tag in a particular location, just ...
1
vote
1answer
40 views

Aligning three figures next to each other based on text width

Problem: I am trying to align three figures next to each other with text centered to each figure. This is going well until the box for the third box does not adjust after the text width. Minimal ...
3
votes
3answers
82 views

Hanging brackets in an align environment

I have two formulas in an align environment, and the second one starts with a bracket (this particular example is simplified): \begin{align} & x_\alpha(s) x_\alpha(t) \\ & \left[ x_\alpha(s), ...
3
votes
2answers
76 views

Equation numbers not showing up while using align together with mathtools

In the following \documentclass{memoir} \usepackage{amssymb,amsmath} \usepackage[fixamsmath]{mathtools} \mathtoolsset{showonlyrefs,showmanualtags,mathic,centercolon} \renewcommand{\u}{\textbf{u}} ...
3
votes
2answers
57 views

Align definition of variables of an equation right (not next to the equation)

this question has been asked before but I never saw a "perfect" solution for this problem. I use the equation block for my equations and I want the definition of the variables to show at the right, ...
3
votes
4answers
39 views

\overset and align environment: how to get correct alignment?

I'm using the align environment together with the \overset command to put some text over a relation symbol. Here is my MWE: \documentclass{article} \usepackage[T1]{fontenc} ...
0
votes
1answer
23 views

Vertical spacing around align in a figure

Math environments like align put vertical space around them, to separate them from the text. This is all well, and if I wanted to change that, I could check this question. However, these environments ...
2
votes
2answers
18 views

Forcing an Alignment to a Specific Part of the Page

I know how to align these equations along the equal sign. What I want to do is put the equal sign anywhere on the page I want to, as though I was taking the aligned equations and shifting them left or ...
3
votes
3answers
120 views

Aligning 3 equations with cases and equation number

in the equations shown below I would like to have the 'if' texts aligned - right now this does not work due to the use of three independent array environments. Thanks!! Here is the code to ...
1
vote
1answer
40 views

multiple subequations same line with reference compact

I posted a question earlier, multiple subequations same line with reference But I'd like to be able to combine the numbering at the end of the line for the following two cases: Re = UL/nu , Ha = BL ...
5
votes
1answer
44 views

Allow page breaks in a gather environment with a nested align

I have two consecutive lists of equations, the second of which is quite long (16 lines with no reasonable way to shorten it apparent). Because the center alignment of gather looks ugly in this case, ...
2
votes
2answers
33 views

The list in an alignat environment is pushed to the right

How do I get this list centered horizontally? \documentclass{amsart} \usepackage{amsmath} \usepackage{amsfonts} \begin{document} \noindent {\bf Example} \vskip1.25mm \noindent \hspace*{1em} ...
1
vote
1answer
29 views

Aligned multiline equations

I'm using an align environment in a long derivation. Each equality is aligned at the equal sign. Individual lines are too long to fit the page, so I need wrap them. However, I don't just want them to ...
2
votes
1answer
66 views

How to label equations from this question?

First, please change name of this question (I didn't know how to name this question in appropriate way). In this my recently asked question I asked how to align some centered equations. Now, I ...
2
votes
1answer
38 views

How to flush left centered part in multline environment?

I would like to use multline environment, but in that way that centered part be left aligned. With multline centered part is centered, and I would like if we can somehow to aligned it to the left (but ...
2
votes
2answers
104 views

Align numerator and denominator of a fraction

How do I align the numerator and denominator of a fraction? I am looking for something that achieves the following psuedocode: \frac{a^2 & b}{c & d} (The b and d should be aligned ...
0
votes
0answers
18 views

Writing out arithmetic steps [duplicate]

I'm doing a quick blurb on binary arithmetic and I'd like to do an align sort of thing to display the steps in one nice diagram. The code I have currently is: \begin{align} 1001& \nonumber \\ ...
4
votes
2answers
81 views

An align environment question

Currently i have something like this: \[ A = B \] \begin{alignat*}{2} AAA = BBBB &= CCCCCCCC &&= DDDD \\ AAA = BBBB &= \qquad CCC &&= DDDD \\ \end{alignat*} In ...
3
votes
1answer
39 views

Aligning equations in 3 columns

I want to align two equations in 3 columns (so empty space in the middle). How do I align another equation in the next column with the empty space? \begin{align*} a&=144 & b&=51666 \\ ...
3
votes
1answer
36 views

Aligning two multiline equations [duplicate]

I searched a lot for this but couldn't find an answer. Say I have two equations that are 2 lines long each. I can align each equation at their equality sign using equation-aligned or gather-split, ...
15
votes
1answer
504 views

Make sin the same width as cos

I am trying to typeset a two-line formula, where the top and the bottom are almost identical. The differences are the signs (plus to minus) and the trig-functions (\sin to \cos). I want most of the ...
4
votes
1answer
40 views

Can anybody please let me know what I am missing? [duplicate]

I have type the following code. \begin{align*} \RR = \left\{ a_1 = \begin{pmatrix} 0 & 0 \\ 0 & 0 \end{pmatrix}, ...
1
vote
0answers
23 views

Labelling equations as (r.1),(r.2),.. etc using \align [duplicate]

I have a number of reaction equations, I would like to label them as (r.1),(r.2),... etc, using \align. So we would have: equation 1 (r.1) equation 2 (r.2) equation 3 ...
6
votes
2answers
78 views

Changing the color of a “-” symbol within the align environment

I need to highlight a "-" sign together with the term next to it in an equation which is inside the align environment. In principle, I need something like this: but with the minus sign highlighted ...