Skip to main content

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
5 votes
1 answer
128 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 ...
Níckolas Alves's user avatar
3 votes
2 answers
121 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^-+...
MorningKay's user avatar
0 votes
0 answers
83 views

mathematica i have got these expression and i tried using align and split it shows error. So this the original latex code, i want in eqnarray [closed]

How can I better format and display the following six equations? \left(\text{s12sq}=\frac{4 (\cos (\sigma ) \sin (2 \phi )+1)}{(-3 \cos (2 \phi )+4 \cos (\sigma ) \sin (2 \phi )-5) \sin ^2\left(\phi '\...
Athula D V's user avatar
2 votes
1 answer
47 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 ...
QEntanglement's user avatar
0 votes
3 answers
88 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) \...
Athula D V's user avatar
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 ...
user99432's user avatar
  • 137
1 vote
1 answer
69 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\...
s28's user avatar
  • 107
2 votes
4 answers
143 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]{\...
user3204810's user avatar
  • 1,539
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\{...
Tomas smith Smith's user avatar
4 votes
1 answer
206 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 ...
Kong's user avatar
  • 2,471
3 votes
3 answers
182 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,...
mathex's user avatar
  • 135
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 ...
Kong's user avatar
  • 2,471
4 votes
3 answers
247 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 ...
Ted Black's user avatar
  • 495
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 ...
Ciemna_noc's user avatar
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 ...
srossd's user avatar
  • 125
3 votes
4 answers
162 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. \...
Y. zeng's user avatar
  • 2,105
2 votes
0 answers
65 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} \...
Y. zeng's user avatar
  • 2,105
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} ...
compbiostats's user avatar
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 ...
Hussain-Alqatari's user avatar
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....
s28's user avatar
  • 107
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 ...
Hussain-Alqatari's user avatar
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[...
s28's user avatar
  • 107
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 ...
s28's user avatar
  • 107
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=...
Y. zeng's user avatar
  • 2,105
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} ...
Grimm Troupe's user avatar
0 votes
1 answer
41 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), \...
Kong's user avatar
  • 2,471
0 votes
0 answers
34 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 ...
Salangidae's user avatar
0 votes
1 answer
26 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, \...
user19904's user avatar
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} \...
Nolord's user avatar
  • 231
3 votes
1 answer
65 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} ...
Humphrey Appleby's user avatar
8 votes
3 answers
674 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, ...
A field's user avatar
  • 131
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 ...
CatDescendant's user avatar
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. ...
rupsagar's user avatar
3 votes
2 answers
147 views

How to break alignment on a row inside the align environment?

I'm trying to typeset the Gell-Mann matrices in LaTeX on Overleaf, these are 8 matrices 3x3. The code I'm using is \documentclass[a4paper, 11pt, twoside, titlepage]{report} \usepackage{amsmath, ...
Marco Olivieri's user avatar
0 votes
1 answer
22 views

Is there a proper way to put `\fillin[]` inside `align` environment in the LaTeX `exam` class?

I am using \fillin[] command in the latex exam class to produce the following output: Convert the following angles from degrees to radians: \begin{questions} \begin{multicols}{4} \...
EthanAlvaree's user avatar
  • 1,421
4 votes
1 answer
114 views

How to have tikzpicture environment properly formatted in align environment

I've tried to figure out how to use the the tikzpicture environment within an align environment, and the closest thing to an answer I found is here: use of tikzpicture matrix in align or gather ...
Atex's user avatar
  • 210
4 votes
2 answers
155 views

“alignedat" will adjust the line space automatically but "array" won't in LaTeX?

From the post, the array is better than alignedat for aligning the equation. However, it seems that alignedat would adjust the line space but array won't. For example \documentclass{article} \...
Y. zeng's user avatar
  • 2,105
3 votes
2 answers
97 views

Does "array" use smaller font in equation compared with "alignedat" or "aligned" in LaTeX?

Sometimes, it is more convenient to use array to align something in equations in LaTeX. However, the array displays more smaller font compared to the alignedat or aligned. \documentclass{article} \...
Y. zeng's user avatar
  • 2,105
2 votes
2 answers
124 views

How to center numbers in "alignedat" in LaTeX

When using alignedat to center numbers in equation. \usepackage{amsmath} \begin{document} \begin{equation} \left. \begin{alignedat}{5} a=&\frac{\frac{123 \sqrt{\frac{45}{6}}}{...
Y. zeng's user avatar
  • 2,105
1 vote
1 answer
53 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 ...
vardo 's user avatar
  • 11
3 votes
1 answer
96 views

How to make the right ends of equations in a split environment to align vertically?

I have an align environment inside of which I use a split environment to split the second long equation: I would like to ask how to push + h and + k to the right such that their right ends are the ...
Analyst's user avatar
  • 189
3 votes
3 answers
130 views

Separate columns in matrix by bar

I would like to create something similar to this in my document. I have tried using nicematrix so far but cannot get it to work. Thanks in advance:)
Trommelpeter's user avatar
-1 votes
1 answer
50 views

Solve aligned problem

I want to write like this in latex but i've faced many errors I put aligned inside itemize
gigggadag's user avatar
0 votes
1 answer
26 views

How to align text to the left side of a page an equation to the middle, while both reside on the same line?

In case the title isn't clear: I need a bit of text and an equation (for other cases, in the provided picture I had other text) to reside on the same exact line, while having the text be aligned to ...
Raiden's user avatar
  • 83
2 votes
1 answer
72 views

How to start my text within the align environment from the left margin of page without separating the equation line and text line?

I am writing a journal for publication and because of the page limit I have to write text within the equation line. Here is my code: \documentclass[final]{IEEEtran} \IEEEoverridecommandlockouts \...
Shashank Ranjan's user avatar
2 votes
2 answers
114 views

Automatic line break in align environment

I have the following problem. I am currently trying to convert my paper into an Overleaf Journal template. This has two columns per page. But now my equations are getting a bit out of shape. See here: ...
marvelfab12's user avatar
1 vote
2 answers
42 views

Align a set of four equation (on left side)

Question: I have a set of four equation (few are very long) How can I align all these equations. MWE \documentclass[12pt,a4paper,fleqn]{article} \usepackage[T1]{fontenc} \usepackage[margin=1cm]{...
SandyM's user avatar
  • 2,881
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 % \...
Shashank Ranjan's user avatar
0 votes
0 answers
15 views

Aligning first and last equal signs in align* [duplicate]

I want to connect the first and last equal signs in an align* environment. The code I have is: \begin{align*} \sin^2 x(1 + \cot^2 x) &= 1 \\ \sin^2 x + \sin^2x \cot^2 x \\ \sin^2x + \sin^2x \cdot \...
mk0630's user avatar
  • 1
3 votes
2 answers
100 views

Alignment inside a equivalent statements proof

How can I set this kind of alignment keeping 1->2 in the left hand side and having the text with a justified alignment. I assume that I have to do 1->2 manually.
Robert's user avatar
  • 133

1
2 3 4 5
82