2022 Developer Survey is open! Take survey.

Questions tagged [align]

{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.

Filter by
Sorted by
Tagged with
0 votes
2 answers
24 views

aligning two elements per row in an align environment

Is it possible to align the first and second equal signs respectively in each row (as in )? I've been trying to find answers but not luck yet (I am a beginner). Thank you! Here is the my current code ...
user avatar
  • 1
0 votes
1 answer
22 views

How do I typeset centered and aligned equations with additional flush left / ragged right labeled intertexts in one single math mode environment?

I'm using LuaLaTeX and the scrbook class. Here's what I want to typeset: I tried to typeset this using several helpful macros related to adjustable shortintertexts and align/alignat environments from ...
user avatar
0 votes
1 answer
34 views

How can I define an environment similar to alignat, but calculates the number of columns automatically like align?

I've read several posts explaining the difference between align and alignat such as this TeX SE answer. I want to make a new environment with the capabilities of align (create as many as desired based ...
user avatar
1 vote
1 answer
25 views

Minipage Text and Figure Alignment

I am trying to align some text and a figure (pgfplots) together. I looked through some threads and found a nice package adjustbox which aligned the text and figure. However, by my example, the text ...
user avatar
  • 396
0 votes
1 answer
24 views

Help to align equations

I'm trying to write an equation with brackets and I have problems. I want to align the equations after the brackets. For this I introduce "align" but as far as I know align cannot be inside ...
user avatar
0 votes
1 answer
15 views

How to force text to be on the left and an equation to be centered in a beamer align

I have this latex code: \documentclass{beamer} \usepackage{amsmath} \usepackage{xcolor} \title{Amsmath example} \author{Overleaf} \date{May 2021} \begin{document} \definecolor{bettergreen}{RGB}{84,196,...
user avatar
  • 147
1 vote
0 answers
21 views

Standard for labelling align environment

Is there a standard for referencing equations in an align environment 'collectively'? Meaning that there is one global label along with all the individual labels as in \begin{align} % \label{eq:abcd}...
user avatar
  • 258
0 votes
1 answer
33 views

Starred version of command does not compile

I use the following command from the mathtools manual, p.29 together with the huge thesis-template from Matthias Pospiech. \newcommand\MTkillspecial[1]{% helper macro \bgroup \catcode‘\&=9 ...
user avatar
  • 785
0 votes
2 answers
43 views

How to increase vertical spacing in \begin{align} [duplicate]

I'd like to know how to increase the vertical spacing in align. The sample code is as follows: \begin{align*} T(\varphi_3(y)\barwedge\theta(z)) & \,=\int_{0}^{t_{y}}\int_{0.5t}^{s_z}f(t,s)\,d\...
user avatar
  • 462
2 votes
2 answers
87 views

Multiline brackets around inner Minimization Problem for Maximin Optimization Problem

I want to reproduce the following: The inner min-Problem I make with a \begin{equation}\begin{aligned} inner min-Problem \end{aligned}\end{equation} But I can't find a way to make brackets around it ...
user avatar
1 vote
1 answer
25 views

Split doesn't work in align with multiple tab stops

I have equations in an align environment with multiple tab stops, and I'd like to use split to render just one equation number for multiple lines of equations. However, if I have more than one tab ...
user avatar
0 votes
0 answers
20 views

Align proof tombstone with itemize/enumerate/align

When using an itemize/enumerate/align environment inside of a proof environment, the tombstone is awkwardly placed on the line below the end of the final line. What is the cleanest way to get the ...
user avatar
  • 249
0 votes
1 answer
47 views

How can I align 4 equations in a 2 by 2 layout while having them separately numbered?

I have four equations that I want to present in a 2 by 2 layout. I found this thread, but I would like to be able to \cref each equation separately and have them numbered like in this image below but ...
user avatar
0 votes
2 answers
22 views

Multiline math mode inside a Node doesn't work at all

I would like to draw a picture and write some equations below it that will be aligned to a certain symbol ( the equal sign in this case ). \documentclass{report} \usepackage{amsmath,tikz,mathtools} \...
user avatar
  • 51
0 votes
3 answers
48 views

How to right align comments of an equation?

I want to right align (something like \raggedleft ?) the comments of each line. I am using \ \ \ \ which are not good. Please suggest me a better way to write this. Should I use splitting or anything? ...
user avatar
1 vote
2 answers
41 views

How to top center align text inside a tikz node

This is what my nodes look like: I would like to have all the text to be aligned at the top of each node. This is the code: \node[rec5, below=4.6cm of E] (G) {Umwandlung der Zustände in normierte ...
user avatar
0 votes
1 answer
38 views

How do I align text so it has equal left and right indentation in overleaf?

When I compile my document on Overleaf, the rows of text have each different lengths. I'd like the text to be aligned the same way as it is in Word when using the justified alignment option. Should I ...
user avatar
-1 votes
2 answers
36 views

How do I align mapsto arrows in latex

I am trying to align the mapsto arrows for a function, but latex just seems to align the arrows and the mess up the space for the numbers or aligns the numbers and but not the arrows. Heres the code: \...
user avatar
4 votes
2 answers
88 views

Negative decimal numbers missing decimal point in table using siuntix to align by decimal point

I'm trying to align the numbers within this table so that the decimal points are always underneath each other. This seems to work with the siunitx package. However, I have come across two difficulties:...
user avatar
  • 41
0 votes
3 answers
48 views

Some align mistake [duplicate]

A question why I get this error when I use align? My code is the following \documentclass[12pt,a4paper]{report} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[spanish]{babel} \...
user avatar
  • 317
3 votes
1 answer
88 views

How to reduce space before the equal sign and right-align string before?

I make an equation in LaTeX, but I find there is too much whitespace before = and the part before the equal sign isn't right-aligned. \documentclass{article} \usepackage{mathtools} \begin{document} \...
user avatar
  • 449
4 votes
1 answer
52 views

Space between two columns in alignat environment is too wide

I want to write equation which is too long for one line. So I use the \alignat environment to break this equation down into 2 lines. But in the case of multi-column alignment, it shows a lot of white ...
user avatar
3 votes
1 answer
112 views

Is it possible to align different lines according to a "waterfall" scheme

Let's say I have multiple lines of math symbols from which I want to create a kind of "waterfall aligning, i.e. At any given line, the proceeding line will start at the (horizontal) position of ...
user avatar
3 votes
2 answers
168 views

Problem with \end{align*}

I have 13 errors all ending with \end{align*}. Here is my code \begin{align*} e(\underline{a})x_1=& \ \ \alpha_1\prod\limits_{j=2}^{n}q^{-a_j} \e(\underline{a})\\ \forall \ \ 2 \leq i \leq n, \ \...
user avatar
11 votes
1 answer
170 views

When to use which alignment environment?

There seem to be a whopping align, aligned, alignedat, alignat, xalignat, xxalignat and falign in amsmath / mathtools - some also in there starred version. I just find sloppy statements like: "...
user avatar
  • 785
0 votes
1 answer
19 views

tag on the left in align environment [duplicate]

in align environment, my tags are on the right, and that is fine. but in some paragraphs I'd want to put my tags on the left. How can I do this?
user avatar
  • 1
2 votes
2 answers
64 views

Writing directly below an equation

I want to write an equation with matrices and underneath that equation I want to define the name of the matrices. Something like this. Is this possible somehow?
user avatar
1 vote
2 answers
84 views

Align equations separated by paragraphs

I would like to align equations separated by paragraphs while retaining there auto-generated label and \listof label for after the toc. How would I align these equations and keep the \...
user avatar
0 votes
1 answer
49 views

Why does align character & remove horizontal space?

This is something I've been wondering and annoyed about for a long time but cannot find an answer to. Assume that I have a chain of equations: \begin{align*} a &= b \\ &= c \end{...
user avatar
0 votes
1 answer
24 views

Highlight or underline answer in Latex when code is in begin/end{align*}

I normally write my solutions to mathematics problems in Latex using the begin/end{align*} feature. How does one highlight an equation, or answer in my case, when the code is in begin/end{align*} ? ...
user avatar
  • 35
0 votes
2 answers
41 views

Aligning equations with {}

I'm trying to get the two parts of the equation aligned one below the other within the curly brackets. I tried to use split+equation, align, line break, etc, but I still can't get it to look right. ...
user avatar
  • 47
1 vote
1 answer
38 views

Aligning the reference centred on the heading

I have a problem. The reference under the list of tables and list of figures is not centred on the heading. It is slightly indented, like with a tab (see the first photo). The second photo shows how ...
user avatar
  • 151
3 votes
4 answers
97 views

Keeping lines centered and a word left adjusted

How do I do this? How can I keep "and" on the far left like that?
user avatar
2 votes
1 answer
40 views

How to properly align logic operator?

I've been having trouble aligning these equations correctly The\iff, =, \ne and \land need to be aligned, but I also need the things around them to not touch the \land and touch the equal/not equal ...
user avatar
5 votes
6 answers
326 views

Align works well everywhere but at plus sign

I've tried aligning a linear system using this code: \[\left\{ \begin{aligned} &a_{11}x_1 & + & &a_{12}x_2 & + & &a_{13}x_3 & = & &b_1 \\ &...
user avatar
1 vote
1 answer
36 views

How to align subequations within table

I would like to reproduce the structure, alignment, and numbering, of the equations in this table: I have tried many combinations of the environments equation, subequation, align, table / tabular, ...
user avatar
  • 13
1 vote
2 answers
37 views

Add numeration to each column in align environment

So this is my code: \begin{align} s &= \frac{u + v}{2}t & v^2 &= u^2 + 2as \\ v &= u + at & s &= vt - \frac{at^2}{2} \\ s &= ut + \frac{at^2}{2} \end{align} and it shows ...
user avatar
  • 15
0 votes
0 answers
30 views

How to label each column of an array in a math environment and also maintaining a global label for the whole equation?

I have an linear program displayed as an array inside an align environment: \begin{align}\label{label1} \begin{array}{lll} \max & \sum_{v\in V} z^v\\ \text{s.t.} & \forall v\in ...
user avatar
  • 165
-1 votes
2 answers
61 views

Splitting equation

I'm trying to split an equation into two parts, but when I adding a double slash \\ I get this error There is an unrecoverable LaTeX error. If there are LaTeX errors shown below or in the raw logs, ...
user avatar
0 votes
0 answers
32 views

Why the comma does not get aligned when using the align* environment?

Consider the following \begin{align*} p &\equiv q\\ p &,q \end{align*} My understanding is that \equiv and , should be aligned and they aren't.
user avatar
4 votes
4 answers
147 views

How to align multiline equations

I am trying to achieve a neat multi line equation. The equation is too big so I had to cut it half way (the first part of the equation). So this is what I ended up doing, the equation break after the ...
user avatar
0 votes
1 answer
47 views

How can I align text right in a table that has a list?

This is what I have now \documentclass[11pt]{article} \usepackage{enumitem} \usepackage[margin=1.0in]{geometry} \usepackage[scaled]{helvet} \renewcommand\familydefault{\sfdefault} \setlist{...
user avatar
2 votes
3 answers
164 views

Move too long equation to center and expand the width of text in LaTeX?

I make a formula that is too long so it shows not centred. I hope to move it to the centre and expand the text width only for this formula so after this formula, I hope the width of text return to ...
user avatar
  • 449
1 vote
1 answer
22 views

Problem with multiple alignment defining a set

I have some problems defining a set in multiple lines. Here is the set: The problem is that when written in this way, I go outside the margins. I would like to define this set in multiple lines but ...
user avatar
0 votes
0 answers
19 views

How to make title book is right aligned in footer?

\documentclass[twoside,11pt]{book} \usepackage{fancyhdr,xcolor,lipsum} \let\Chaptermark\chaptermark \def\chaptermark#1{\def\Chaptername{#1}\Chaptermark{#1}} \fancyhead{} \renewcommand{\headrulewidth}{...
user avatar
1 vote
1 answer
32 views

How to define a variant of amslatex align environment as part of an enumerate list

I'm typesetting a book where the author uses groups of aligned equations as items of an enumerate list, like this: together with other items of the enumerate list, which are not formulas. Would it be ...
user avatar
  • 1,750
0 votes
1 answer
23 views

Problem with align giving runaway argument

When I run the code below I get a "runaway argument" error. I am trying to align in a way similar to the way the code itself is aligned. I also tried with alignat. What am I missing? \...
user avatar
  • 1,144
2 votes
1 answer
52 views

What is the difference between align and flalign?

I am wondering if there is some drawback of using one versus the other.
user avatar
  • 2,909
2 votes
6 answers
292 views

Aligning equation on two lines

I have an equation of this kind: \begin{equation*} A_1 \rightarrow A_2 \rightarrow \dots \rightarrow A_N \end{equation*} And I would like to add a $B_1$ under $A_1$, $B_2$ under $A_2$ and $B_N$ ...
user avatar
  • 399
1 vote
2 answers
28 views

Aligning a matrix to an equation

I want to do something like this: But I don't find the way to align the matrix. \documentclass[10pt]{article} \usepackage[spanish]{babel} \usepackage{amsmath, amssymb, amsthm, tikz} \usepackage[...
user avatar

1
2 3 4 5
72