Skip to main content
The 2024 Developer Survey results are live! See the results

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

Fully Justifying text in Overleaf Template

I am currently using an OVerleaf template to prepare my Cover Letter https://www.overleaf.com/latex/templates/deedy-cover-letter/yhdwrhyvqjwy I am unable to justify the paragraphs fully. I tried using ...
6 votes
1 answer
143 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
1 answer
756 views

Aligning Multi-line Caption in list of figures

I have modified my list of figures so that it includes Fig. figure number before each caption in List of Figures. This done by using the following code. {% \let\oldnumberline\numberline% \...
3 votes
2 answers
124 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^-+...
0 votes
1 answer
346 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 \...
2 votes
1 answer
49 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 ...
0 votes
1 answer
73 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 ...
1 vote
1 answer
70 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
144 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]{\...
178 votes
7 answers
242k views

align* but show one equation number at the end

I am using align*, but I still need an equation number. I know one solution is to use align and add \nonumber to all lines but the last. Is there a 'lazy' way to do it? I searched a little and found ...
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\{...
1 vote
2 answers
79 views

Mixing chemistry reaction and mathematics in equation

I would like to type a list of chemical reactions with their associated reaction constants, pH limits and redox potentials. The reaction would be on the left, with the reaction starting at the left ...
4 votes
1 answer
209 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 ...
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} ...
3 votes
3 answers
184 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
42 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
250 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
1 answer
28 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, \...
0 votes
0 answers
27 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
52 views

How to Align part number to the right and part name to left, in toc

I need to align the roman number to the right, to maintain part names vertically aligned \documentclass{book} \usepackage{graphicx} \usepackage{titlesec} \usepackage[T1]{fontenc} \usepackage{fontspec}...
1 vote
1 answer
57 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 ...
0 votes
1 answer
148 views

Align equation at = and using an equation index

I want to use with amsmath und glossaries an equation index and align all equations at &=. But I can't just put the & in the equation that is saved in my glossaries file. How to handle this? I ...
3 votes
4 answers
164 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
69 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} \...
0 votes
1 answer
66 views

Double left-alignment in a big bracket

I'm trying to write 2 lines of inequalities contained in a big bracket. Thus I use \left\{ and \right. Additionally, I hope to write 2 inequalities in one line (i.e. 2 "<" symbol), and ...
1 vote
2 answers
36 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} ...
3 votes
1 answer
97 views

How to align multiple (independent) equations?

Can I somehow force my equations to all have the equal sign on the horizontal middle axis of the page? The equations are already individually aligned, but I would like to align them globally. I found \...
2 votes
2 answers
465 views

\pause not working properly, going backwards [duplicate]

So I would like to use \pause in its normal way, but it is revealing stuff backwards and I don't know why!!!! \documentclass[usenames, dvipsnames]{beamer} \usepackage{amsmath, amssymb, amsthm, ...
1 vote
1 answer
46 views

Align items horizontally to equation above

I have an equation and a list explaining notation below. Issue: I want the items to have the same margin at the left as the equation. See picture and MWE below. MWE \documentclass[10pt,usenames,...
1 vote
1 answer
33 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 ...
1 vote
1 answer
43 views

How can I group different equations into a single label using the amsmath package?

Using the align environment provided by the amsmath package, I am running the following code with the intention to produce one single label for these three equations: \documentclass[12pt]{report} \...
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....
0 votes
1 answer
53 views

Error aligning equation while using latexocr and mathtype

I'm using latexocr to snip equation and translate it into latex, then insert it in office word using mathtype, im trying to align this equation on two lines such the 3rd and 4th "=" align ...
1 vote
1 answer
38 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
17 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
86 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
2k views

Beamer: Split Align Environment Across Multiple Slides

I have the following slide: \documentclass{beamer} \mode<presentation> { \usetheme{Madrid} \usecolortheme[RGB={0,0,0}]{structure} } \usepackage{amsmath,amsfonts,graphicx} \usepackage{...
0 votes
1 answer
42 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 ...
2 votes
1 answer
88 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} \...
1 vote
1 answer
54 views

How to define width of flalign environment?

I am trying to get the equation in the flalign environment to be left aligned with the text in the tabular environment above it, and to have the same width -- 0.8\textwidth. The equation is a ...
3 votes
1 answer
66 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} ...
3 votes
1 answer
136 views

Unaligned Subfigures blocking each other

I have the following piecharts in two subfigures, however: One of them is blocking the legend as shown in the picture. Is there any workaround? I tried modifying pgf-pie (thanks Xu Yuan!)but to no ...
8 votes
3 answers
675 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, ...
0 votes
0 answers
27 views

Centered table width with left aligned text [duplicate]

I need to make a centered table with left aligned text, so i use l instead of p . But when doing so, the table width can't be set with l{length} just like p{length}, hence the table just ran off ...
3 votes
2 answers
161 views

How do I create a multiline equation with one braces which is part of a bigger equation?

How do I create a multiline equation with tall curly braces in Tex? split causes the braces to be split in two lines which is not something I want. See the pictures below to understand the problem. ...
0 votes
2 answers
40 views

Is there a better way of typing big equations than this? IEEEtrans

I am writing a journal in IEEEtrans template. I have multiline equation which is not able to fit in one column. So, did the following: \documentclass[final]{IEEEtran} \IEEEoverridecommandlockouts % \...

1
2 3 4 5
82