Skip to main content

Questions tagged [aligned]

{aligned} sets a block with a similar interface to {align*} that can be used as inline math or within a display setting. The optional parameter allows you to specify a vertical alignment parameter with respect to the surrounding content.

Filter by
Sorted by
Tagged with
5 votes
1 answer
88 views

How can I break an alignedat/gathered environment between pages?

So, I've read the discussions here and also here but neither seem to solve my problem. I'd like to break a long list of matrices between pages, problem is I'm using an alignedat (and sometimes a ...
Marco Olivieri's user avatar
0 votes
1 answer
23 views

Adding horizontal line within \left\{ and \begin{aligned} \end{aligned} environment

I have the following code: \begin{align} p \sim \frac{\pi^2}{90} \nu T^4, \,\,\,\nu = \left\{ \begin {aligned} & \,\,+3, & (\mathrm{Pions:}\,\, \pi^0, \pi^+, \pi^+) \\ ...
ArkanineOkhotsk's user avatar
0 votes
1 answer
11 views

error when using intertext in aligned environment [duplicate]

In a quick demonstration, I would like to add additional text using the \intertext command. I don't understand why I get an error: Package amsmath Error: Invalid use of \intertext. I checked the docs ...
Nicolas's user avatar
  • 1,277
8 votes
3 answers
673 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
0 votes
1 answer
31 views

How can I remove large horizontal space in an aligned-environment?

Simple question, actually: How can I remove the large horizontal space between "f" and "\in" here: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation} ...
0xbadf00d's user avatar
  • 523
6 votes
2 answers
183 views

I have an array inside of equation and aligned, not recognizing math mode

I am trying to create a bracket enclosed matrix where the rows and columns are labeled. My attempt is: \begin{equation} \begin{aligned} &\begin{array}{*{7}{p{.8cm}}} \...
akb427's user avatar
  • 73
-1 votes
1 answer
49 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
47 views

Text aligned with the figure tag

How can I add a text aligned with the figure tag, similar to a footnote (without numbering)?. What I have tried to do, without any success, is something like what is shown in red, in the figure below ...
wmora2's user avatar
  • 325
0 votes
2 answers
27 views

Align equations over 2 columns

I would like to write equation in Latex of the same form as the figure below: I want Eq. 3 centered to Eq. 1 and Eq. 2. The best I have done is this: With this code: \begin{equation} \begin{...
Dylan Chevalier's user avatar
2 votes
1 answer
105 views

witharrows package with vertical arrows placed in between equal signs

I am trying to use witharrows package to put explanations between equation lines. When I use with arrows, the following is the result I get with the code snippet below the image. \documentclass{...
Sung Chan Song's user avatar
1 vote
0 answers
62 views

witharrows package but with arrows in between equal signs

I am trying to do something very similar to what witharrows package does. However, while the witharrows package connects two lines of equations with an arrow to the right side of the equations, as the ...
Sung Chan Song's user avatar
2 votes
1 answer
65 views

alignedat with empty space

I am trying to write the following code on Overleaf: \begin{equation} \begin{alignedat}{3} &\rho \colon && \Phi \times && \mathrm{Aut}_\Phi(X) && \to \Phi \\ &...
Francesco Conti's user avatar
3 votes
2 answers
183 views

How to center a cell in the aligned environment?

I want to center an equation inside a cell in the aligned environment from the amsmath package. This is my MWE: \documentclass{article} \usepackage{amsmath} \begin{document} $\boxed{\begin{aligned} \...
user avatar
6 votes
3 answers
345 views

Big right brace in enumerate environment

I'm trying to do a cases environment with a brace on the right using the classic trick \left. \begin{aligned} ... \end{aligned} \right\} but the particularity is that I'm in an enumerate environment ...
IsaKEKW's user avatar
  • 547
0 votes
1 answer
57 views

How to align the center of terms on left hand side of equations in 'aligned' environment in latex

In latex I defined a new environment called 'myequation'. Here for left hand side terms, their end points are aligned. I want to align center points of left hand side terms instead of their end ...
Igris's user avatar
  • 101
2 votes
1 answer
50 views

Hyperref to an equation with aligned jumps to wrong position

I use the environment aligned in the environment to obtain only one number. But when I use an eqref to jump to the equations, it doesn't located at the top of the first equation. When I click the ...
houzw's user avatar
  • 188
1 vote
1 answer
49 views

Horizontal spacing in nested aligned environments

I'm trying to align some columns of a nested aligned environment to the right. This is my current code, and the current result: \begin{align*} & 50 & \text{ Rows} \\ \times\; &...
Martín Fixman's user avatar
3 votes
2 answers
78 views

aligned creates unwanted white space

I would like to show Vandermond polynomial. \documentclass{article} \usepackage{amsmath} \begin{document} $$\begin{aligned} \Delta=(X_4-X_3)&(X_4-X_2)&(X_4-X_1)\\ &(...
Monday's user avatar
  • 33
2 votes
3 answers
148 views

Cannot fit align environment into page even with multiline* or \resizebox

I have the following code: \documentclass{article} \usepackage{amsmath} \title{latex debugs} \author{Naitik Mundra} \date{September 2023} \begin{document} \begin{align*} & E(a, b)-E\...
Naitik Mundra's user avatar
0 votes
0 answers
59 views

align equations in enumerate [duplicate]

I would like to align equations within an enumerate-environment. \documentclass{article} \usepackage{amsmath,enumitem} \begin{document} \begin{enumerate} \item $3x+5=18$ \item $x=27-39x$ \end{...
montarenbici's user avatar
0 votes
2 answers
66 views

Aligning some text and equations within the flalign environment

I'm using the flalign environment because I need to have some text (Level1, Level2) to the left of some equations. Now, I'd like to add a third equation (β1j = γ10). However, this equation does not ...
Linus's user avatar
  • 3
8 votes
2 answers
279 views

Align \vdots at the center of an `aligned` environment

In the following set of equations, I would like to have the vertical dots, \vdots, horizontally aligned at the center of the page. I tried a gathered environment nested within an aligned environment ...
AEW's user avatar
  • 819
6 votes
2 answers
271 views

Special alignment of equations in an optimization problem

In the following problem, I would like to align the y in the fourth equation with the y in the third equation. This question may seem obvious, but I'm still struggling with equation alignment in a ...
AEW's user avatar
  • 819
4 votes
3 answers
155 views

Equation alignment of an optimization problem

In the following excerpt of a write-up, I was wondering how to left-align \hat{L} and f on the second column of the first two lines. The best I could produce is below. Thanks. \documentclass{extbook} ...
AEW's user avatar
  • 819
2 votes
2 answers
110 views

Equations alignment white space

In the following excerpt, I would like to align the set of equations as indicated by the & or && symbols, except that I need the left-hand side of each equation to be attached to the = or \...
AEW's user avatar
  • 819
2 votes
2 answers
34 views

Unwanted indentation in optimization problem using aligned environment

I want to type the following optimization problem into latex. I want g_0 to be aligned with J_obj and 1/2 with +. If I try a similar example with placeholders everything works fine, however if I put ...
Rememberless's user avatar
2 votes
1 answer
96 views

Optimization problem alignment

I was wondering how to correctly align the following problem at the first letters of each line (minimize needs to be aligned with such), as well as at the = and \in symbols. \documentclass{article} \...
AEW's user avatar
  • 819
3 votes
2 answers
166 views

Multiple equation alignments within cases environment in math mode

In the following example, I was wondering how to align the equation cases at the equal/in signs, in addition to the current alignment at "for". None of the solutions here seems to work. ...
AEW's user avatar
  • 819
4 votes
2 answers
176 views

Aligning equations in math mode with different rules between lines

I was wondering how to align "minimize" and "subject" in the following example at their first letters, while keeping the alignment at the equal signs as is. Thanks. \documentclass{...
AEW's user avatar
  • 819
0 votes
2 answers
37 views

Fix tag indentation in 'align'

I have the following equations (see latex below): My problem is that tag (1) is between the 2 lines, whereas I would like it to be aligned with the 2nd line. Is there a way to fix this? Thanks in ...
Revirator's user avatar
0 votes
0 answers
69 views

How to add a page break or newpage in proof environment

My code is very unclear, but to summarise: \documentclass{article} \usepackage{graphicx} % Required for inserting images \usepackage[utf8]{inputenc} \usepackage[fleqn]{amsmath} \usepackage{amssymb,...
Zhiyuan Liu's user avatar
5 votes
2 answers
284 views

Multi-line equations in 'aligned' environment with ampersand (&) inside \left-\right parenthesis

I know how to use the ampersand in align and aligned environments to write multi-line equations. In this case I need to use \left[ and \right] to contain an expression on the first line, and I want ...
Simone's user avatar
  • 51
0 votes
1 answer
321 views

How to use gather and aligned with multiple labels?

The code below gives me ?? when referencing the equations. How do i fix it ? How do I get (1a,1b) for the first equation if possible? MWE \documentclass{article} \usepackage{amsmath} \begin{document}...
Kong's user avatar
  • 2,471
3 votes
2 answers
89 views

Adjust side-by-side equations to the center and their equation number to the right

Consider the following example code: \documentclass{article} \usepackage{amsmath,amssymb} \begin{document} \begin{align} a_j = \begin{cases} 2, & {\rm~if~} j = n, \\ 1, &...
Mari's user avatar
  • 33
3 votes
2 answers
176 views

Equation alignment in aligned environment not working properly

So I want the beginning and the middle part of equations to align. But the output is misaligned at both locations. Appreciate any tips. I don't want to use alignat as it does not place a single ...
dsp_guy2020's user avatar
1 vote
1 answer
96 views

\right] not displaying ] [duplicate]

I have the following code: \begin{equation} \begin{aligned} R^{1}_{\mu\nu} = \int & \frac{d^4p}{(2\pi)^4} \tr \left[ \frac{1}{\slashed{p} - \slashed{k}_2-m} \gamma_{5} \gamma_{\nu} \frac{1}{\...
Leonardo Esparza's user avatar
5 votes
2 answers
75 views

Align rows inside cases with rows in next column inside table

I'm trying to create a table with equations as below \documentclass{article} \usepackage{mathtools} \begin{document} \begin{center} \begin{tabular}{ |c|c| } \hline cell1 & cell2 \\ \hline \text{...
Mia's user avatar
  • 53
5 votes
5 answers
328 views

Align Equations Including `cases`

I want a series of aligned equations, the last of which has two cases. See the figure for an example. \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align*} a &= b \\ &...
Sam OT's user avatar
  • 1,338
-1 votes
2 answers
138 views

How to number equations inside an 'aligned' environment, and how to cross-reference them using '\cref'?

An illustration of the issue by way of a minimal working example I saved the following LaTeX code in the file ~/Test.tex. \documentclass{article} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{...
Evan Aad's user avatar
  • 11.1k