Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
1answer
31 views

Aligning and specifying font size in LaTeX equations

I have specified 3 equation in tex file, The font size of contents in each equation in the align environment appears to be different.Also, not all equations all aligned in the same way. Is there a ...
1
vote
2answers
31 views

switching alignment

I'm new to Latex and its environments such as split and align and I'm trying to change the alignment of an equation in a customized manner. I have a set of equations similar to what you can see in the ...
3
votes
3answers
66 views

Paragraph formatting with neg indentation of first line

The follwoing result is easily accieved in Word: How is this possible in Latex? Description: First line without indentation and fixed tabulator at, say, 2 cm Starting from the second line, ...
0
votes
1answer
23 views

How to automatically shrink lines in align block to fit hbox?

I have written the following latex \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} \renewcommand{\P}{\mathcal{P}} \date{May 2019} \begin{document} \begin{align*} &...
1
vote
1answer
26 views

How to align two lines in Tikzcd

I am trying to align two lines either at the head or at the center and I am finding it impossible. For example, this code generates the following frame \documentclass{beamer} \usepackage[english]{...
1
vote
1answer
36 views

A bit complicated alignment situation

I have something like this: Of course with a,b,c, etc. being some expressions. I would like to align the equal signs in "a = b = c" with the equal signs in "g = h = i" and the equal signs in "d = e =...
4
votes
1answer
34 views

centering / aligning arbitrary amsmath objects

See how the little ^\frown ⌢ symbols are aligned (on the last 3 lines) ? That's what I want. But see how it's just a concatenation symbol for (C_\alpha) (Cα) and (C_\beta) (Cβ) ? I want to make ...
3
votes
2answers
64 views

Align many matrices and operations so it's more beautiful

I have the following matrices, I'd like to align them under each other more beautifully. Can anyone recommend a good way to do this? $ \left[\begin{matrix} 1 & 1 & 1 & 6z-2 \\ -1 & 2 &...
3
votes
1answer
24 views

vertically align top line of item contents with item number

\begin{enumerate} \item This looks good. \item $\begin{aligned} \mathrm{This} &= \mathrm{is} \\ &= \mathrm{not\ nicely\ aligned} \end{aligned}$...
0
votes
2answers
26 views

Spaced horizontal line in align environment

I am trying to typeset a type derivation tree. % \usepackage{amsmath} % \usepackage{amssymb} \newcommand*{\stext}[1]{\text{ #1 }} \newcommand*{\sd}[1]{\rule[-#1]{\textwidth}{0.4pt}} \begin{align*} ...
3
votes
1answer
56 views

How to fix the position of align environment

Here is a quick question regarding the position of align environment. \documentclass{article} \usepackage{amsmath,amssymb} \begin{document} %%% lots of text here. \begin{align*} & \mathcal{A}(...
1
vote
1answer
31 views

\intertext messes up aligned equations

I wish to align several equations (and center them of course) while being able to put text between them. I have the following code : \begin{align*} a &= b\\ c &= d \intertext{first text ...
1
vote
1answer
47 views

Left align right-aligned text in align environment

I have the following piece of code: \documentclass{article} \oddsidemargin 43pt \textheight 20.4 cm \textwidth 14.0 cm \parskip 6.8 pt \parindent 12 pt \usepackage{mathtools} \begin{document} \begin{...
1
vote
1answer
38 views

caption for pictures and formulas on the top left side in a only right sided document

I want a document that has only right pages and always the broader margin on the left side. The caption of pictures and formulas should be at the top left side and align with the text. I know how i ...
0
votes
1answer
24 views

Adjust space above for only one align

In my document I have many align environments which look great as they are. Now I have one starting on a new page and because of the space above it looks weird compared to other pages because the ...
4
votes
2answers
122 views

An equation with two splits / differing alignments

I would like to layout an equation in the following form: x=5+3-4 -4+3+5 =8-8+8 =8 In words: I want to split the equation at two points; one where the first equation splits over two splits ...
2
votes
2answers
101 views

Subnumcases as a part of align

I am using the following code: \documentclass{article} \usepackage{cases} \usepackage{amsmath,amsfonts} \begin{document} \begin{align*} \underset{\tau \in \mathbb{R}}{\min} \ \tau \end{align*} \...
1
vote
1answer
34 views

Side-captioned equations not working with hyperref

I have a problem here getting this to work. I have a document where I've manually wrapped the text around a couple figures and math examples (the 2x2 matrix in the attached image). This is done using ...
2
votes
4answers
64 views

Align across cases

I have the following equations: I'd like to align all of the equals signs, as well as the for-all statements and put an explanatory word centered vertically on the left-hand side of each bracket. My ...
3
votes
1answer
65 views

Alignment of matrices with annotations on the right side

I have a problem with aligning matrices with annotations on the right side. I need the annotations to show the operations I used. To show the operations I first used the gauss package. Unfortunately ...
2
votes
2answers
58 views

How adjust and align properly different equations

I'm trying to write this in latex: Using the "align" enviroment I'm able to achieve to write this code: \begin{align} &\sum_k y_{ik}= \left\{ \begin{array}{l} ...
2
votes
2answers
29 views

Center subfigures of different heights

I'm trying to center two subfigures that have different heights, but I can't seem to be able to allign them. The original code is like this, and the subfigures are aligned at the bottom \begin{...
1
vote
2answers
25 views

How to use the gather environment to center align a different number of equations on each line?

I want to have 3 equations on one line, and 2 equations on the next line. I want them in the style of gather, i.e. they should be centre aligned in each line. This is what I want it to look like: ...
4
votes
2answers
33 views

Multi align equation right

I am trying to obtain the following alignment for my three equation The best I have been able to do is the following \documentclass[12pt]{article} \usepackage{amsmath} \usepackage{graphicx} \...
2
votes
1answer
68 views

Options leqno, reqno for documentclass or exist another option?

I consider these simple MWE \documentclass[12pt,leqno]{article} \usepackage{amsmath} \begin{document} \begin{equation} x^n + y^n = z^n \end{equation} \end{document} With the option leqno we ...
3
votes
2answers
30 views

AMSMath align breaks feynmp-auto

When compiled with pdflatex -shell-escape, the following MCVE (shamelessly taken from another answer and adapted to my problem) fails with an empty mp file, and mpost wait for user input. I have to ...
1
vote
2answers
50 views

Error: Extra }, or forgotten \right while keeping the correct hight of brackets [duplicate]

The following works fine, \begin{equation*} \begin{aligned} \begin{split} \left\| \left(a - c\right) - \frac{|b|^2\cdot |d|^2}{|b \times d|^2} \left[ ...
5
votes
5answers
194 views

An array in an equation with curly braces in both sides

I am trying to generate the following equation: I am working with an old file (I have not written it) that already has the following code for this equation: \begin{equation} \delta(x)\equiv\left\{\...
1
vote
1answer
37 views

\circlearound: Misalign of the circle center

I am using the following code, which I found here at StackExchange to draw a circle around some letters: \newcommand\circlearound[1]{% \setbox0=\hbox{#1}% \dimen0\wd0% \divide\dimen0 by 2% \begin{...
1
vote
3answers
37 views

how to write a long equation in a 2 column format paper

I wanna write a long equation in for a 2-column template of a paper. I used the aligned command to do that, but it doesn't work. I attache the target equation I am trying to obtain. Here is my try: ...
0
votes
2answers
40 views

Prevent empty equations numbering?

\begin{align} fdsafdsadf\\ \end{align} will display two equation numbers. The trailing \ starts a new line... it is useful to add them so one can easily add or remove equations... or even comment ...
1
vote
2answers
26 views

Vertical alignment of nested aligns

I would like to align a rather complicated formula, consisting of an (outer) optimization problem with several (inner) constraint blocks, which should be aligned around equal signs. I have opted to ...
1
vote
3answers
44 views

Cannot split long subequations

I do not seem to be able to split two long sub-equations. I've tried multline, align, split and a few other possibilities but none of them have worked; I reckon a main issue is that I've got brackets ...
6
votes
3answers
134 views

Align column where each cell has two decimals with siunitx

I also want to align the second column. The problem is, that there can't be two numbers in one cell Is there a way to align the second column via digits even if there are more decimals? I also used ...
1
vote
1answer
26 views

formula and a table in align environment

I need to type formula and table in an align environment like but I only could prepare \documentclass{article} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{diagbox} \...
4
votes
2answers
258 views

Keep at all times, the minus sign above aligned with minus sign below

How can I change the frg command such that I can create and maintain at all times the minus sign above aligned with minus sign below? PS: If you can show how to include a font setting for the whole ...
2
votes
2answers
127 views

Horizontal and vertical alignment of chemfig structures

I'd like to align these four chemfig structures, seen below, horizontally and vertically. (The centers of the rectangles are vertices of a new rectangle. I would prefer an automatic solution.) \...
3
votes
2answers
65 views

How to align multiple equations

I want to align multiple equations and two "conditions". \begin{align} \begin{split} ||\pmb{x}||_p &= \left(\sum_i |x_i|^p\right)^{\frac{1}{p}} \label{formel:pnorm}\\ p & \in \mathbb{...
2
votes
3answers
80 views

Aligning an equation at multiple points, with both left and right alignment, as well as equals sign alignment

I am trying to achieve the formatting in the image attached, with the bracketed right equation/text aligned to the right side of the page. However, I would also like to be able to align the equal ...
1
vote
2answers
62 views

Left align all levels in table of contents

The following MWE generates a ToC with different alignment according to the section level. How to force all them left align irrespectively to their level? MWE: \documentclass[12pt]{report} %-> ...
0
votes
0answers
17 views

Align multiple bracketed equations

I'm trying to allign the equals signs in front of each bracket.. I have tried \align but it's giving me lua errors. My code is \begin{equation}\label{c66_conditions} c_{66} = \left\{ \begin{...
0
votes
1answer
40 views

Best way to align my equations [duplicate]

I'm trying to align my equations so that the align takes up a fresh line. My code at the moment is \begin{align} \frac{d}{d x_3}(|\hat R(\omega,x_3)|^2 + |\hat T(\omega,x_3)|^2) &= \frac{d\hat R}{...
3
votes
2answers
61 views

Align equal signs while including text over equalities

I understand how to align multiple equations, but how can I do this if I want to also have text over the equalities. For example: It bugs me that the equal signs are no longer aligned. Here is my ...
0
votes
2answers
25 views

How to have “local” numbering for amsmath align environments?

I am trying to re-start the numbering in amsmath align environment. My MWE is as follows: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} \begin{document} The following ...
1
vote
0answers
29 views

Alignment of rows in a diagram

For example, in the following diagram I want to allow the rows as in the picture below (i.e, so that m in the bottom row aligns with the top of the fraction it is adjacent to, and so that the top row ...
2
votes
2answers
45 views

Align multiple equations at multiple points with \alignat

I'm trying to generate an aligned pair of equations with the alignat environment. However, I have two major problems: There is extra horizontal space before my aligned points. The euqation numbers ...
1
vote
2answers
43 views

Aligning matrices across examples

How can I align the two identical blocks in the following (the blocks consisting of rows with words in)? \documentclass[11pt]{beamer} \usepackage{pgfpages,amsmath,amssymb,mathtools,color, graphicx, ...
1
vote
1answer
29 views

line spreads and mixes with next column

A line spreads and enters the next column. I am at lost to find how to correct this. the picture and code is appended, please if anyone can help. \begin{multline*}\tag{21} NUP_S =1- \text{probability ...
2
votes
2answers
46 views

Align right twentyitem

I am using the Twenty Second Resume template (https://it.overleaf.com/latex/templates/twenty-seconds-resume-slash-cv/mhyfwrmwjkbc). I have this environment: \setlength{\tabcolsep}{0pt} % New ...
0
votes
0answers
16 views

How can I add maths above and on the side of a matrix? [duplicate]

How can I write this: such that I can control the space between the matrix and the maths bits at the top and on the side?