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.
4,111
questions
0
votes
1
answer
27
views
How to show subtracting from both sides of an equation?
What is the easiest way to show subtracting from both sides of an equation (or other operations) in Latex?
I would want the subtraction roughly lined up with the equation. For example:
4x + 7 = 10
...
3
votes
2
answers
473
views
How can I make this equation look better?
The equation is
\[
\begin{aligned}
\frac{\rmd}{\dx} \begin{vmatrix}
f_{11}(x) & f_{12}(x) & \cdots & f_{1n}(x) \\
f_{21}(x) & f_{22}(x) & \cdots & f_{2n}(x) \\
\...
0
votes
1
answer
29
views
Make the '& element' itself centred, not the largest equation centred and the '& elements' aligned in the align* environment
More easily described with an example, below I've attatched some latex and an image produced inside texstudio that can hopefully illustrate my point being made. The "Hence Proved" text ...
0
votes
0
answers
24
views
error when using align* environment, missing } inserted [duplicate]
I tried to use the align environment, to align multiple equations, but for some reason the compiler gives me dozens of error messages, saying either
Missing } inserted.
<inserted text>
...
3
votes
1
answer
29
views
Modify lplfitch proof style
I this answer cfr gave macros for typesetting the proofs modifying lplfitch style.
\documentclass[12pt,a4paper]{article}
\usepackage{geometry}
\usepackage[russian]{babel}
\usepackage[fleqn]{amsmath}
\...
1
vote
1
answer
27
views
Multiple labels within left/right scaling?
\[
\begin{subequations}
\left.
\begin{align}
\frac{d}{dt}\omega_{1} & = \frac{I_{2} - I_{3}}{I_1} \omega_{2}\omega_{3}
\label{eq:1a}\\
\frac{d}{dt}\omega_{2} & = \frac{I_{1} - I_{3}}{I_2} \...
3
votes
1
answer
67
views
(Auto)-linebreaking a long formula in align environment or with breqn package
I am having problems with writing some equivalences. I tried align* (originally eqnarray*)
\documentclass[10pt,a4paper]{book}
\usepackage{amsmath}
\usepackage{amssymb,amsthm,mathabx,bm}
\...
2
votes
1
answer
60
views
Proofs: numbered rows with vertical lines
The goal is to typeset the proofs for exercises in natural deduction.
Here is an example of a proof from the book:
Each row is numbered and consists of a formula and a comment. Also some formulas are ...
2
votes
4
answers
247
views
How to make two alignments in the environment align?
I have a tex file
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{align}
\text{signal process:} \quad d X_t &= M (X_t) d t + d V_t , \\
\text{observation process:} \quad d ...
4
votes
1
answer
43
views
Aligning equations inside 'cases' with individual text tags in each row and equation labels
I am looking to produce an equation with the three objectives outlined in the image below. I'm unable to use \tag inside 'cases' and have been unsuccessful with other attempts. As described in the ...
3
votes
2
answers
92
views
How to do multiple equation indentation with different offset
How can I reproduce this in latex?
So far I have tried:
\begin{align*}
&min z(x) = c^Tx\\
& \text{s.v.} &\\ \begin{split}
& Ax \geq b \\
& x \geq 0
\...
3
votes
3
answers
187
views
Normal text and cases
I'd would be glad if anybody told me how to put a piece of normal text in display mode the way it is marked by the red circle on the photo
So it is aligned as normal text but next to it there is an ...
1
vote
0
answers
47
views
How to make letters look like in the same row in tabular
I am making a tabular with 2 columns, the first is Japanese and the second one is English. But when converting to pdf they look like not in the same row, help me pleaseee!
2
votes
2
answers
145
views
change the appearance of the equation by several levels
I use this code to change the appearance of the equation, but it is full of errors even if at the end it gives a result, please help me to correct it. Thank you .
\documentclass{article}
\usepackage{...
-1
votes
2
answers
108
views
How can I center multiple alignment points in an equation inside an align environment?
Courtesy link: How can I center an equation inside an align environment?
A single equation in align is centered, so with gather
you get both equations centered; otherwise, nest align inside gather.
\...
4
votes
2
answers
53
views
Small indent in text using subequations and align
I have the following problem. I use the subequations environment together with the align environment and the command \allowdisplaybreaks to display the equations over several pages.
This is my MWE:
\...
1
vote
2
answers
120
views
tikz & amsmath: how can I align math formulas within a tikz matrix?
I have a TikZ matrix, and within each node, I have a set of math equations. Using align*, the alignment is off and shows, compared to the usual behavior, some extra spacing to the left of the &. ...
2
votes
1
answer
156
views
How do I make aligned equations with multiple "&" to not have unnecessary spaces?
How do I make aligned equations with multiple "&" to not have unnecessary spaces like the one in the red box in the attached picture. Here is my code:
\documentclass{article}
\usepackage{...
1
vote
0
answers
37
views
RTL text doesn't work properly in an align environment with babel
I use babel to write Hebrew documents with Latex and I encountered a weird problem. Usually, I can use \text{} with Hebrew text inside math mode just fine. However, when I try to do that in an align ...
3
votes
1
answer
66
views
problem to align matrix system
I would like to align the system of equations as follows.
unfortunately what I get is not aligned
\begin{align}
\begin{split}
\nonumber
D_{t_{0}} & =
\left\{\begin{matrix}
D\\
\tau(t_{0}) - \...
6
votes
1
answer
151
views
Aligning equation at the \middle| of a \left ... \middle ... \right triple
I'm typesetting a matrix inversion procedure by means of Gaussian elimination. This typically involves writing a big matrix with a bar in the middle, which separates the original matrix from the to-be ...
3
votes
2
answers
142
views
I want to number two formula in equation, aligned and split environment
This is my code:
\begin{equation}
\begin{aligned}
&\begin{split}
\max\,\, z=&P_1d_1^-+P_2d_2^-+P_3(240d_3^-+220d_4^-+250d_5^-)\\
&+P_4(240d_6^-+220d_7^-+250d_8^-)+P_5d_9^-+...
2
votes
1
answer
51
views
Why does Latex produce this error and how to fix it? [duplicate]
When I use \dot on the first line with an operator $\hat{a}$ and then go to a new line where there are two operators that are both dotted on top, there is an error where the letter from the first line ...
0
votes
3
answers
89
views
Unable to split the long equation
\begin{align}
\sin^2 \theta_{12} &= {\bigg[-2 (\cos (\sigma) \sin (2 \phi) + 1)\bigg]}\bigg/
{\bigg[\sqrt{3} \sin (2 \phi) \sin (2 \phi') \cos (\sigma - \sigma') - 4 \cos (\sigma) \...
0
votes
0
answers
19
views
Label align environment by a name not a number [duplicate]
I'm interested in giving an equation a name and not a number. E.g. I want equation to label the equation in the following align environment by "(Pythagoras)" instead of a number given by the ...
1
vote
1
answer
75
views
Center Set of Equations Using Align
Is it possible to center equations using align?
A simple example:
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{align*}
&\text{a} = \frac{\text{x}}{\text{y}} \sim 1.5\...
2
votes
4
answers
146
views
Avoid underset text overlaping
As you can see, underset on right hand becomes overlaped. How can I avoid this? This is my MWE
\documentclass[14pt]{article}
\usepackage{amsmath}
\usepackage{mathtools}
\newcommand{\lunderset}[2]{\...
2
votes
2
answers
61
views
Aligning definition of terms of a sequence
I am trying to align the definition of the terms of a sequence: there are three possibilities.
I have tried the following:
\documentclass{article}
\usepackage{amsmath}
\begin{document}
$$
z_k=\left\{...
4
votes
1
answer
216
views
Reduce spacing between equations
How can I reduce the vertical spacing between the equations or at least keep it "normal"? I am using 2 align environments and 1 multiline environment and the amount of space between each ...
3
votes
3
answers
194
views
Defining a functional map
I am trying to define in latex the following function:
We also want everything to be aligned.
I tried including another align environment but it seems this is not possible:
\begin{align*}
\Psi: C([0,...
2
votes
1
answer
44
views
Latex newline for equations without requiring align
How could I write the "refined arms" and "hand-object contact probability" portion of the equations in the next line without requiring them to be aligned to the "object motion ...
4
votes
3
answers
254
views
Non-standard alignment of multiline equation
In the old days when people used typewriters instead of LaTeX it was fairly easy to achieve the following non-standard multiline split
Now that we have environments like align and alignat it is not ...
0
votes
0
answers
28
views
How I can align equations with amsmath [duplicate]
I use amsmath for my paper but I find that my equations are not aligned. It looks like equality is not under the equality. Directive align* also doesn't work. I have the issue with multiple labels
...
1
vote
1
answer
60
views
How to redefine the align environment in terms of itself?
I'm trying to redefine the amsmath equation environments to do some regex parsing of their contents. Something is going wrong with the environments that allow alignment tabs. Here's a MWE of the ...
3
votes
4
answers
175
views
How to make sub "array" to aligned with the outer "array" in equation in LaTeX?
How can I align the equal sign in the subarray environment with the equal sign in the outer array environment?
\documentclass[letterpaper]{article}
\begin{document}
\begin{equation}
\left.
\...
3
votes
0
answers
82
views
How to align vertically by "\shortstack" in equation in LaTeX?
In equation, sometimes needs to add some mutiline text by \shortstack, which wouldn't be aligned vertically. For example
\documentclass[letterpaper]{article}
\begin{document}
\begin{equation}
\...
1
vote
2
answers
37
views
How to remove overfull within the align environment
Here is the MRE:
\documentclass[12pt]{article}
\listfiles
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{bm}
\usepackage{color}
\usepackage{float}
\usepackage{graphicx}
\usepackage{mathtools}
...
1
vote
1
answer
34
views
How to align some lines to a specific alignment, and some other lines to another specific alignment, where some lines has justified text?
See the following:
First line has the question "What is wrong ...?", it starts from the specified margin in latex, that is 2 cm.
Then 2nd, 4th, 6th, 8th, and 10th lines all start from same ...
0
votes
0
answers
21
views
Equations Below Rotated Forest [duplicate]
I created the following graph:
\documentclass{article}
\usepackage{forest}
\usetikzlibrary{shadows}
\useforestlibrary{edges}
\usepackage{amsmath}
\usepackage[graphicx]{realboxes}
\usepackage[left=2....
1
vote
1
answer
43
views
Automatically aligning Roman numerals with other text within the document
I began typing my pdf file using overleaf. The material I have consists of Math MCQs. I faced many problem and decided not to continue typing before I fix these things first.
However, as commented in ...
0
votes
0
answers
24
views
Cross Referencing Aligned Equations [duplicate]
I would like to cross reference not only one equation (see code below), but a set of equations (f.e. 3.1-3.4) created using align.
Is that possible?
My code:
\documentclass{article}
\usepackage[...
0
votes
0
answers
24
views
Align Acronym Descriptions in Acronym List
I created a glossary:
\documentclass{article}
\usepackage[acronym,toc]{glossaries}
\makeglossaries
\newacronym{fe}{f.e.}{for example}
\newacronym{ie}{i.e.}{id est}
\newacronym{diy}{DIY}{do it ...
2
votes
2
answers
94
views
"axis" and "node" don't be aligned with "tikz"?
When align the tikz figure and another node,they are not aligned perfectly. For example
\documentclass{standalone}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}
\begin{axis}[name=...
1
vote
1
answer
27
views
missplaced /cr on trying to put matrices in an align
I'm trying to put some matrices in an align environment as follows:
\begin{align*}
X^T\cdot J-J\cdot X&=\begin{pmatrix}
A^T&C^T\\B^T&D^T
\end{pmatrix}\cdot\begin{pmatrix}
...
0
votes
1
answer
43
views
Weird overleaf error: Align used inside gather
My code compiles but I am getting error messages. Why?
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{gather}
e_l = [0, \mathbf{Emb}(l_{\mathrm{human}}), \mathbf{Emb}(l_1), \...
0
votes
0
answers
35
views
How to center multiple line equations in the align environment automatically if it does not contain "&"
I always use the align environment even if it contains only one line, because I am too lazy to predict how long it will be before writing the equation.
Also, I use "&" only when I want ...
0
votes
1
answer
40
views
Using multiple labels in an align and aligned environment
I've got four equations, split into two groups, and I want to label them accordingly using:
\begin{align}
\text{Group 1} &\left\{
\begin{aligned}
&y=x, \label{eqn:eqn_1} \\
&y=z, \...
2
votes
1
answer
91
views
Alignment detection
I have a simple macro that I often use in equations to write a comment
\newcommand{\com}[1]{,\text{ #1 }}
I also use the same macro to write formulas with multiple cases
\documentclass{article}
\...
3
votes
1
answer
69
views
Node in TikZ does not align picture into anchor
I struggle to align the picture to the bottom left corner; see the image below.
The placeholder picture is taken from this site, and the code is below.
\documentclass{standalone}
\usepackage{amsmath}
...
8
votes
3
answers
688
views
How can I align twice a math equation
The code is:
\documentclass[12pt]{article}
\usepackage{fontspec}
\usepackage{graphicx} % Required for inserting images
\usepackage{extarrows}
\usepackage{listings}
\usepackage{wasysym, amsmath, ...