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
1
vote
1answer
8 views

Right aligning signature

I work in \documentclass[a4paper]{book}. At the end of my introduction, I want to put my name and the date right aligned. It should look like this: John Doe May, 2021 but then aligned completely on ...
1
vote
3answers
30 views

flalign numbers way too far on the right

I am trying to center the numbers at the end but for some reason they are on the far right... and on a side note: Is there any way I can get the text not cursive? \subsection{123} \begin{flalign} &...
0
votes
1answer
23 views

Left align column in align environment

I am trying to make a list of mathematical objects, and I've been using the align environment to do so. This is my code: \begin{align*} & \textit{Title1} & \textit{Title2 for the second column}...
3
votes
1answer
25 views

How to write subscript on multiple lines in an align* environment?

I'm writing \max_{some very long subscript} = f(x) within an \begin{align*} \end{align*} environment. The subscript is very long, so I want to write it on multiple lines under max. I looked into this ...
3
votes
2answers
77 views

big brackets on an align environment

I want my matrix to look like the one attached. I want my sum signs to be big and be in a matrix environment. Right now I am using the align environment and I am not quite sure how I can put brackets ...
4
votes
1answer
61 views

how do I number equations in multiple columns?

I am new to LaTeX, but recently started making worksheets for my students to assign as homework. I want to left align multiple equations in more than one column and I want them to be automatically ...
2
votes
2answers
87 views

Problem wth amsmath align and macros [duplicate]

I recently was convinced of the benefit of using align over eqnarray, but I am really not writing \begin{align} ... \end{align} every time, so I just did what I always do: \def\bea{\begin{align*}} \...
5
votes
3answers
218 views

How to align a single long equation split into multiple lines?

I have a long equation that I need to wrap into multiple lines. I want to know what is the idiomatic way to align the multiple lines. I made two attempts at it and the results do not look good. ...
6
votes
2answers
185 views

Is there another way to do this? I used align*

\documentclass[10pt]{article} \usepackage{amsmath,amsthm,amssymb} \begin{document} \begin{enumerate} \item Calculate: \begin{align*} (a) &\,\: +(-31)+(-14)= & \quad(d) &\,\: -(-12)-(+9)=...
0
votes
1answer
47 views

How to align the equation below with the ones above

\underline{ \left\{\begin{aligned} 2x + 3y +4z & = 7\\ x-7y +z & = 8 \\ z-5y + 4x & = 9 \end{aligned} \right. } \atop x + y + z = 10
0
votes
0answers
32 views

What are the best environments for typing equations and texts on the same line?

I've traditionally just used \begin{align} y = x \ \ \ \ \ \text{description of eqn} \\ y = z + 2 \ \ \ \ \text{description of second equation} \end{align} But, I'm not sure if this is the best ...
1
vote
1answer
51 views

How to get a rounded-corner box

I'm dealing with a document where I need to write some text within a box. The current code I'm using was kindly suggested by @campa. It ensures the following features: The box adapts itself to the ...
2
votes
2answers
30 views

Left aligned one equation in the same environment

I would like to left-align two groups of equations that are gathered in the same environment centred on a page. I tried a few approaches and the best result I achieved so far is by using environments ...
6
votes
2answers
223 views

Is it possible to define atomic chunks of math which automatically do line breaks when necessary?

I'm writing a paper for a journal, which publishes in double column style, but the submitted manuscript has to be single-column. This means, I have to make sure that the formulas are properly ...
1
vote
1answer
11 views

Align function definition ranges in subequation environment

I would like to align the function definition ranges in the subequation environment. Does anyone know a simple way to do that? At the moment, I simply have them separated by \quad. \begin{...
1
vote
1answer
35 views

How do I put the formula on one line?

I wrote such a sentence in the latex template. We evaluate $T_r=T_s = \{800,1000,1600,2200,5500,11000\}$. The result shown is this. But what is shown in the other template is: I want the second way,...
5
votes
2answers
120 views

How to tag both the align and individual equations within it?

I was trying to create tags for both the optimization problem and individual constraints within it. Below is an example. Is this possible in LaTex? \begin{align}\tag{P1} \begin{split} \max_{...
2
votes
1answer
34 views

Left Align \text{} in \aligned{} environment latex

I have generated the following code: \begin{equation} \begin{aligned} c(s) &= [x_c(s),y_c(s)]^T \in \mathbb{R}^2, & \text{Centerline}, \\ i(s) &= [x_{in},y_{in}]^T \in \mathbb{R}^2,...
1
vote
1answer
28 views

Three matrix equations on the same line. Why is there extra space in between the 2nd and 3rd and what is a good fix?

Why does this code result in there being some extra space in between the 2nd matrix equation and the 3rd? \begin{align} A = \begin{bmatrix} I_x(q_1) & I_y(q_1)\\ I_x(q_2) & I_y(q_2)\\ \vdots ...
0
votes
0answers
17 views

& Delimiter within other Functions

When using any environments that use a & as the delimiter (align, tabular, array etc. ), it is not possible to delimit from within another function, eg. \begin{align} \boxed{this & that} \\ ...
2
votes
2answers
29 views

How to align multiple long equations between them and inside them

I have the following series of equations: \documentclass[a4paper,12pt]{article} \usepackage[utf8]{inputenc} \usepackage{amssymb} \usepackage{amsthm} \usepackage{mathtools} \begin{document} \begin{...
0
votes
0answers
13 views

Aligning with symbol inside `\left…\rigth` brackets or parentheses [duplicate]

I would like to align an equation on the equality sign with a symbol that is inside a \left\{...\rigth\} expression. Like this, \begin{align*} P \left \{ X &\in A \right \} \\ &= P \left \{ ...
2
votes
1answer
42 views

Is there a chance to achieve partial subequations in align?

I want to align four equations. I want the first and the second to be regularly tagged, and the third and the fourth to be subtagged. Is there a chance to achieve that by using align and subequations? ...
4
votes
2answers
49 views

Hyperref and align

I am working on a lengthy proof where I show by induction that (i) - (vi) holds. During the proof I am mentioning (i), ..., (iv) several times and would like them to be hyperlinks, such that when the ...
0
votes
2answers
38 views

Macro for the align environment [duplicate]

Is it possible to define a macro for the align* environment, or allow multi-line support for the equation display mode $$ $$? I use the align* environment very frequently, and a typical usage goes as ...
0
votes
1answer
25 views

Table, new line and centering problem [duplicate]

I want to create a table where in each column I need to write something in two (or more than) lines. I also want that in each cell all the entries will be aligned at the centre. I tried one code as ...
2
votes
1answer
33 views

Optimization problem over two pages

I have written the optimization problem below. Here the ellipses represent several additional rcases. Since my optimization problem is so long, it does not fit on a single page and the last couple of ...
1
vote
0answers
17 views

How to get brackets by using autoref for align equations

I want use autoref to reference equations like this: Equation (8.19), but my output is: Equation 8.19 I tried to proceed as in (search for "Einstein" ) autoref and braces around equation ...
4
votes
2answers
199 views

Math equation and numeric label - align environment

I'm writing a large equation for which I need to introduce line breaks in order to make it more legible. I'm using the following code: \documentclass{report} \usepackage{mathtools} \begin{document} \...
0
votes
0answers
21 views

Multicolumn equations [duplicate]

I have two small equations that I want to put into two columns, to save space. From this: To this:
1
vote
2answers
42 views

How to align the whole text with its respective heading title (\chapter, \section, subsection)

I am working with Overleaf. Currently, I have this: \documentclass[12pt,a4paper,openany]{extreport} \usepackage[utf8]{inputenc} \usepackage[spanish]{babel} \usepackage{lipsum} \usepackage[...
0
votes
0answers
36 views

Group statements without numbering

\documentclass[conference]{IEEEtran} \IEEEoverridecommandlockouts \usepackage{cite} \usepackage{amsmath,amssymb,amsfonts} \usepackage{graphicx} \usepackage{textcomp} \usepackage{xcolor} \usepackage{...
5
votes
3answers
132 views

\newif conditional in align environment to optionally hide sub-steps in derivation

I created an if true/false \newif\ifdetail with the hope of using this inside a \begin{align}...\end{align} environment. The goal is, I'm converting my old hand-written derivations to tex, and wanted ...
2
votes
3answers
63 views

Alignedat environment - remove extra blank space

I'm dealing with a math system and the code is the following: \documentclass{report} \usepackage{mathtools} \begin{document} \begin{spreadlines}{1.ex} \begin{equation} \chi_{_\mathrm{f}...
3
votes
1answer
82 views

Error “Missing $ inserted. \end{align*}” on the tabular environment

Hey guys i'm getting this error in my tabular environment, is there something about the tabular environment that I'm missing, it's not a math mode, so I embbed it in an align*, or gather* but it doesn'...
3
votes
3answers
98 views

How to align many equalities on a line to the left? (there is another line below that, when I move it to the left, the line above moves to the right)

How to align this expressions to the left? and the letter y too? \documentclass{article} \usepackage{amsmath} \usepackage{mathtools} \begin{document} \begin{flalign} \dfrac{\partial\hat F}{\...
1
vote
1answer
32 views

List of equations and related meaning - align environment

I'm trying to write a centered list of equations with the related meaning on their right side. I'm using {align*} to do the job, but I get several errors when I try to compile the document. Here the ...
3
votes
4answers
179 views

mathtools: How to center formulas inside \splitdfrac?

This is my code: \documentclass{article} \usepackage{mathtools} \begin{document} \begin{equation} \begin{gathered} \dfrac{x}{\splitdfrac{a_1 a_2 a_3}{b_1 b_2 b_3}} \end{gathered} \end{equation} \end{...
3
votes
1answer
32 views

array, horizontal space/ margin

How can I make the horizontal space between the vertical line and the percent symbol disappear? \documentclass[a4paper,fontsize=13pt]{scrartcl} \usepackage[english, main=ngerman]{babel} \usepackage[...
0
votes
2answers
31 views

Comments in alignat

How can I make the $f(x^0 + d^0) = -b(x^0 + d^0)$ move below the $f(x^0) = -ax^0$? \documentclass[a4paper,fontsize=13pt]{scrartcl} \usepackage[english, main=ngerman]{babel} \usepackage[a4paper,left=...
1
vote
1answer
25 views

I'm trying to use \begin{align*}\end{align*} then some text and \begin{align*}\end{align*} again. But I want them both aligned*

How did they align the two sets of alignments over the word "and". I have looked for week for the answer to this problem. If someone sees it somewhere, I shall delete mine. Thanks, Jason
1
vote
0answers
20 views

Align right-side of two consecutive cases

I have two consecutive case statements defining two functions. The first part of the case defines the value of the function, the second defines the condition under which the value is taken. \begin{...
0
votes
1answer
35 views

Align equations at equality sign

I have followed the code from this answer, https://tex.stackexchange.com/a/211540/237717. The equations below are to be aligned at '=' signs but the alignment is not properly done. I need some help ...
2
votes
1answer
59 views

Problem with table* and figure* captions

I'm new at LaTeX, been using overleaf to write a paper. The first version was working, but I was asked to change the template to the specific of the Journal. I was able to addapt almost everything but ...
0
votes
2answers
24 views

Space after an alignment

\usepackage{bm} % bold \usepackage{hyperref} \usepackage[parfill]{parskip} % no indent \usepackage{graphicx} \usepackage{subcaption} %to have subfigures available \usepackage{amssymb} \usepackage{...
0
votes
1answer
22 views

Content is jumping off the algorithm box

My algorithm content is not written within the boundary of the algorithm box. I am using IEEEtrans. \begin{algorithm} \SetKwInOut{Input}{Input} \SetKwInOut{Output}{Output} \textbf{Data}: \\ \For{$\...
0
votes
3answers
37 views

How to align text like math formula?

Code is here: \noindent \textit{Pf} Let $G(x)=\displaystyle\int_{a}^{x} f(t) d t$. By (1), $G^{\prime}(x)=f(x)$, therefore $(G-F)^{\prime}(x)=0 $ $\forall x \in[a, b]$. $\Rightarrow$ $(G-F)(x)=...
0
votes
0answers
18 views

Adding a new line in algorithm without numbering

I am trying to add a new line inside a for loop, but I don't want it to be numbered. When I use \\ it automatically jumps to a new line and number the new line. I just want to jump without adding a ...
1
vote
2answers
68 views

Align chemical equation with potential

I want to make numbered chemical equation with the potential of that equation on the right. This is what I have: \begin{align} \label{eq:NiOOH} \ce{NiOOH + H2O + e- &<=>[discharge][...
1
vote
1answer
25 views

Make different slides line up

Let us say that you have the following in your presentation: \begin{frame} Identical text \end{frame} \begin{frame} \begin{equation} \mathbb R \end{equation} Identical text \begin{...

1
2 3 4 5
66