As of May 31, 2023, we have updated our Code of Conduct.

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
2 votes
1 answer
30 views

How to get effect similar to nested alignes

I'm trying to align several equations. In each equation, I would like to separate the condition part into two lines, i.e., As such, I use align and split. \documentclass{article} \usepackage{amsmath}...
Analyst's user avatar
  • 157
3 votes
1 answer
87 views

How to put (or simulate putting) two "align" environments next to each other?

I am having trouble with the align environment. I wrote the following code almost works, but not quite: \begin{align*} \min_{x, y} \ &2x + 4y & & \min \ &9x^2 + 2y ...
user56202's user avatar
  • 195
2 votes
1 answer
45 views

Explanations in nested align equations with aligned

I am trying to put some explanations in a nested align environment. I am using aligned for the nested equations, and I want to use \tag{} for the explanations. Unfortunately, tag is not allowed in ...
Tom's user avatar
  • 117
0 votes
2 answers
83 views

Aligning equations in columns

as the title says, i wanna make three aligned colums of equations. First column being aligned left with the text above, second centered and last aligned right with the text. I am using align ...
Mady's user avatar
  • 3
1 vote
1 answer
24 views

How do I allign the columns of the panels with same number of columns (Panels A - C) in the tables bellow and improve the spacing of Panel D

\documentclass[12pt]{article} \usepackage{iaw} \usepackage{rfs} \usepackage{graphicx} \graphicspath{ {./images/} } \usepackage{tabularx} \newcommand{\mcu}[3]{\mc{#1}{#2}{\underline{#3}}} \begin{...
user279280's user avatar
3 votes
3 answers
150 views

Left And Right Aligning Equations And Comments

I am having trouble aligning my comments and equations in the align environment. I would like my equations as far left as possible, the numbers to the equations as far right as possible (but ...
EDS's user avatar
  • 145
1 vote
1 answer
54 views

How to use `si` format and equation format simutaneously in `tabularray`?

I use tabularray package to make tables, in which one column is formatted as equations. When I use si format in this column, there is an error: ! Missing $ inserted. <inserted text> ...
Y. zeng's user avatar
  • 861
0 votes
1 answer
38 views

Complicated problem for align when a line is too long

Now I have an equantion like this: \begin{align} & A \\=& \left \{ \begin{aligned} & aaa && , bbbb; \\ & aaa && , bbb; ...
Chennes's user avatar
  • 111
0 votes
2 answers
72 views

How can i fit the equation?

My article consists of two lines. Because this equation is so long, I wrote it so that it covers both columns. However, it still did not fit. (5) is overflowing. How can I solve this? \documentclass[...
YangYung's user avatar
1 vote
0 answers
38 views

Setting for automatically scaling parentheses in math mode [duplicate]

Is it possible in LaTeX, that parentheses scale automatically? When I have a fraction for example I don't want these parentheses to be so small: I know I can use \left( and \right) to get it the way ...
Hebol's user avatar
  • 97
3 votes
2 answers
141 views

How to use align in a two-column document?

I want to write this equation by fitting it in double column. How can I do that? I use this code: \documentclass[lettersize,journal]{IEEEtran} \begin{align} \bar{u}_{x_-} &= \frac{1}{M_r}\sum_{i=...
YangYung's user avatar
0 votes
0 answers
13 views

How to number(and refer) a set of equations in an align environment correctly? [duplicate]

\documentclass[12pt,a4paper,oneside]{book} \usepackage{amsfonts, graphicx, verbatim, mathtools,amssymb, amsthm, mathrsfs,amsmath} \begin{document} \begin{align} \diff{S}{t} &= \Lambda ...
Math's user avatar
  • 723
0 votes
1 answer
22 views

Binary operators and align environment

A code like this: \usepackage{amsmath} %logical equivalence \newcommand{\eq}{\mathbin{\Leftrightarrow}} \begin{document} \begin{align*} & (true \eq true) \\ \eq& (false \eq false) \\ \...
Nolord's user avatar
  • 111
2 votes
1 answer
71 views

Unwanted line break in align

I have a formular in an align-environment, where I provide one manual line break, but it gets rendered with another line break after the one I added myself: Code is as follows: \documentclass[a4paper,...
David's user avatar
  • 123
0 votes
1 answer
49 views

Right aligned text in the same line

\documentclass[12pt] {article} \usepackage{amsmath} \usepackage{amssymb} \usepackage{enumerate} \begin{document} \begin{enumerate}[1.] \item Qustion no 1. \begin{flushright} [Ans:\;...
Manjoy Das's user avatar
2 votes
1 answer
97 views

Dotfill in align math mode

I want to be able to make \dotfill in math \begin{align*} mode Here is my code \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align*} & M=E-e \sin E \makebox[5cm]{\dotfill} \...
Jacques's user avatar
  • 23
0 votes
1 answer
41 views

How do we fix these expressions so they don't exceed the margins?

Consider: \documentclass[12pt,a4paper,oneside]{book} \usepackage{amsfonts, graphicx, verbatim, mathtools,amssymb, amsthm, mathrsfs,amsmath} \begin{document} \begin{align*} K_1&=\max \left \lbrace ...
Math's user avatar
  • 723
3 votes
2 answers
142 views

poorly sized square brackets due to equation over two lines -- how to equate their sizes?

Consider the following: \documentclass[12pt,a4paper,oneside]{book} \usepackage{amsfonts, graphicx, verbatim, mathtools,amssymb, amsthm, mathrsfs,amsmath} \begin{document} \begin{align*} M_3&=\frac{...
Math's user avatar
  • 723
1 vote
1 answer
28 views

flalign: multiple tabstops, ignore last column

After reading many align threads, I couldn't find the solution for my problem. I think it could be a quick fix, but I can't seem to get it to work. I want all the 'equal' signs as well as the arrow to ...
R. Moser's user avatar
1 vote
0 answers
61 views

footnote (with hyperref) in align environment (or: reference to calculation steps in footnotes)

In equations, I want to refer footnotes over the equal sign to explain, which rules or calculation steps are used. This MWE \documentclass[a4paper,12pt]{scrartcl} %%% PACKAGES %%% \usepackage{physics}...
DaHaStacEx's user avatar
0 votes
1 answer
40 views

Problems with align numbering?

Consider the following: \documentclass[12pt,a4paper,oneside]{book} \usepackage{amsfonts, graphicx, verbatim, mathtools,amssymb, amsthm, mathrsfs,amsmath} \begin{document} \begin{align} ...
Math's user avatar
  • 723
2 votes
2 answers
58 views

align in alignedat enviroment

\documentclass{article} \usepackage[english]{babel} \usepackage[utf8]{inputenc} \usepackage{amsmath,amssymb} \begin{document} \[ \begin{alignedat}{1} &T^{-1}(X)=(AB)^{-1}X\\ \...
manh3's user avatar
  • 363
2 votes
3 answers
137 views

flushright of text within align environment

\begin{align} \label{eq:3.1}u &= \frac{\partial r(x,t)}{\partial t} \qquad \text{(flow velocity)} \end{align} yields the following: I desire the text "flow velocity" to be flushed to ...
KZ-Spectra's user avatar
0 votes
1 answer
55 views

Align descriptions of abbreviations in glossary-longextra

The descriptions of the abbreviations should be aligned. The abbreviations should be still on the left side. And there should be a bit more space between abbreviation and description. My .tex-file \...
Domi1908's user avatar
2 votes
2 answers
40 views

Why is there extra space prefixing the first case

I don't understand why there is extra space before the mod in this formula. How can I force the m and the 0 to be aligned vertically? Here is the LaTeX code I'm using. \documentclass{article} \...
Jim Newton's user avatar
1 vote
1 answer
28 views

Unique numbering for two lines of equations

How can you place the numbering of the equation as in the image? (I have observed that in Cauchy problems, it appears this way) Thanks.
eraldcoil's user avatar
  • 213
3 votes
2 answers
72 views

Aligning equations in a list

I would like a list of equations (ideally using enumitem's enumerate environment) aligned (e.g.) by the equal sign. Is there a way to achieve that? The following produces a list of equations that are ...
MrMRm's user avatar
  • 65
0 votes
1 answer
40 views

Align equations with equations inside align environment

A have some equations that I would like to align. Some of these equations are very similar and are grouped together in a cases environment. Now, I can't manage to align all these equations to have ...
debsim's user avatar
  • 127
0 votes
0 answers
25 views

Difference between single-line align and equation [duplicate]

What is the difference between the align environment with only a single line and the equation environment? If there is no difference, can we use align all the time since equation then just becomes a ...
Vezen BU's user avatar
  • 121
2 votes
1 answer
87 views

Align equations and boxes in itemize environment

I'd like to align the three equations. Furthermore the colored boxes should be aligned (start all at the same point on the left side). My code: \documentclass[ pdftex,a4paper,11pt,oneside,fleqn, ...
Domi1908's user avatar
5 votes
1 answer
73 views

aligned in multline*, gather*, or align* produces superfluous space

Somewhat related to aligned in multlined produces superfluous space , there is superfluous space inside multline*, gather*, or align* if its contents contains aligned with at least two columns. Namely,...
user avatar
4 votes
1 answer
152 views

Package amsmath: Erroneous nesting of equation structures;\n(amsmath) trying to recover with `aligned'

\documentclass[a4paper]{article} \usepackage[english]{babel} \usepackage[utf8]{inputenc} \usepackage{amsmath,amssymb} \makeatletter \renewcommand*\env@matrix[1][*\c@MaxMatrixCols c]{% \hskip -\...
manh3's user avatar
  • 363
3 votes
3 answers
138 views

Align equal sign inside case with equal sign outside

I want to align the equal sign inside the case with the equal sign outside. How to do that? I have read answers to these questions 1 2 3, but I'm still very clueless. Could anyone please help? Thanks! ...
user2165's user avatar
  • 131
0 votes
1 answer
64 views

template for rotate and right aligned text in a 2 columns horizontally shared page

I'd like to share my page in 4 areas: A, B, C, D page is half share horizontally and each of this areas are shared in half vertically . A in the top left where text rotate of 180° and is aligns on the ...
user20006686's user avatar
2 votes
2 answers
124 views

Automate *alert*-uncovering of lines of an align in beamer

I am using this answer to automate uncovering lines of an align. However, I would like to alert on uncovering. I don't know expl3 and my attempts to hack the answer referenced above have failed: I've ...
scottkosty's user avatar
  • 12.6k
2 votes
1 answer
101 views

Changing the text format when using the dialogue package

I would like to format the dialogue text while using the dialogue package. I have already made the speaker bold, but was not able to format the text of speakers. I would like to have the text to be ...
Jerry's user avatar
  • 21
5 votes
3 answers
204 views

Align environment with multiple separated values

I'm attempting to display an equation separated into 3 columns as shown in the picture below. I managed to create the above image using an abomination of non breaking spaces (~) which obviously looks ...
Oliver's user avatar
  • 53
0 votes
2 answers
67 views

I would like to use this in an align environment. Has anyone know how can I do it?

\documentclass{article} \usepackage{tikz, amsmath} \newcommand{\highlight}[2][black]{\tikz[baseline, anchor=base]{\node[inner sep=2mm](A){$#2$}; \draw[#1] (A.north east)--(A.south east)--(A....
Caleb Franco's user avatar
0 votes
2 answers
74 views

How to properly align this composition of maps?

I wish to write the composition of two maps in a single equation. Since there are multiple places to be aligned, I tried with alignat, but cannot get the align points correct. Below is my current ...
Jinwen's user avatar
  • 7,504
0 votes
2 answers
94 views

How to align text similar to tabular while using align environment

In LaTeX, I would like to align some text so that looks something like this: "⇒": some text [an equation in align* environment] more text "⇐": some other text [...
Hebol's user avatar
  • 97
1 vote
1 answer
26 views

Center equation inside align environment

I want to centre the third equation and then align it with the arrows. Is this possible? \begin{align} \intertext{Volmer-reaction:} \begin{split} \text{Acidic electrolyte:\hspace{1cm}} H_{ad}+...
mb17b022's user avatar
2 votes
2 answers
35 views

\align* inside minipage inside \align*: Argument of \align* has an extra }

My document is obviously much more complex than this, but my reproduction is simple: \documentclass{letter} \usepackage{amsmath} \begin{document} \begin{align*} stuff &= \begin{minipage}[t]{...
Nate's user avatar
  • 339
2 votes
1 answer
68 views

TeX4ht: \displaystyle in eqnarray, align and array environments

I am using tex4ht to convert a LaTeX document to HTML. I would like to know how to obtain a full display of equations either in the eqnarray, align and array environments. The following snippet ...
Frédéric Galliano's user avatar
0 votes
1 answer
87 views

creating multiple side-by-side blocks

I want to create multiple colored boxes side by side in article format as I have shared the link below. I would be very happy if you could help me on how to do it. As you can see, some boxes have gaps ...
nikisamothrakis's user avatar
2 votes
4 answers
292 views

How do I left align part of the equation, while centre aligning the rest?

I want to try recreate this, nothing in the begin{align*} environment has worked for me.
Alex miao's user avatar
2 votes
1 answer
120 views

QR code aligning

tell me please how the QR code can be aligned to one of the corners? note: \qrcode[height=3cm]{https://github.com/AnMnv/eBook} works fine, but colorful QR code not \documentclass[14pt]{extreport} \...
WinnieNotThePooh's user avatar
1 vote
1 answer
51 views

Is there any problem to add a super big number after `\alignat` in ams package? [closed]

In the official document, alignat is followed by the total of "right column and left column" pairs. Here is an examaple of alignat in the document. \begin{alignat}{2} x& = y_1-y_2+y_3-...
IvanaGyro's user avatar
  • 113
1 vote
2 answers
49 views

Unable to \addtolength{\jot} using acmart

I’m using the acmart document class and would like to adjust the row height globally in various align environments. However I seem to be unable to use \addtolength to modify \jot, which I believe is ...
Roly's user avatar
  • 4,080
0 votes
2 answers
38 views

Align equations in itemize environment

The equations (the =) in the following code should be aligned: \documentclass[ pdftex,a4paper,11pt,oneside,fleqn, bibliography=totoc,listof=totoc, headlines=2.1,headsepline, numbers=...
Domi1908's user avatar
0 votes
1 answer
52 views

Continuing Alignment After Text [duplicate]

I currently have the following output: I want to align the equals signs even after the bit of text. Is there a nice way to do this besides having one big align block and putting the text inside it? (...
A. Ko's user avatar
  • 3

1 2 3
4
5
78