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
3 votes
2 answers
155 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} \...
Pseudonym123's user avatar
6 votes
3 answers
292 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
  • 535
0 votes
1 answer
40 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
  • 99
2 votes
1 answer
32 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
  • 121
1 vote
1 answer
41 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
67 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
126 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
42 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
35 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
143 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
233 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
97 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
106 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
30 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
72 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
111 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
174 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
33 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
44 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
239 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
111 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,303
3 votes
2 answers
86 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
158 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
80 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
73 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
323 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,299
-1 votes
2 answers
136 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
  • 10.9k