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
4answers
149 views

How to align two column equations inside an enumerate environment?

I want to align equations inside an enumerate environment or to get a similar result using another environment. Here's the actual code: \documentclass{article} \usepackage{amsthm} \begin{document} \...
2
votes
3answers
75 views

two-line equation with matrix inside

I want to get a two-line equation, in which one line is consisted of both variables and matrix. I tried {align} and {matrix} but not working. \begin{equation} \label{eqk27} \begin{align} \bm{\mathrm{w}...
0
votes
0answers
14 views

Align error: ! Missing } inserted. l.75 \end {align}

I'm just picking up LaTeX and I'm having trouble with align. Here's the offending code: \begin{align} A $\lor$ (A $\land$ B) &$\equiv$ $\neg$ $\neg$ (A $\lor$ (A $\land$ B)) \textbf{double ...
0
votes
0answers
43 views

An align environment error

I have an issue to run the following code in an align environment: \begin{align} \mathbf{D}^{(m)} = \mathbf{D} \mathbf{D} \cdots \mathbf{D} = \mathbf{D}^m,\quad \boldsymbol{f}^{(m)} = \mathbf{D}^{...
1
vote
1answer
23 views

How do I combine "itemize", "tabto" and "align" properly?

I am new to LaTeX and I'd like to put a matrix into an itemize environment. I achieved it with this (more or less): \documentclass[a4paper]{article} \usepackage{amsmath,amsfonts,amssymb} \usepackage{...
-1
votes
1answer
33 views

White space + margins + alignment problem

I'm using overleaf to write my thesis but I found two problems in the template as illustrated in the attached image. 1- Long white space at the beginning of main pages (abstract, declaration, ...
7
votes
2answers
150 views

Naming an equation in enumerate environment

I'm a beginner to LaTeX so I'm sure this question has probably been asked. I would be grateful if someone could link it as I haven't been able to find it! Here is the structure of my desired output: (...
6
votes
3answers
131 views

Nested right cases

I was reading a script for maths and came across this "picture" and was wondering how he typeset it in LaTeX, so I wanted to try myself. First I thought of cases, but that did not work as ...
2
votes
3answers
90 views

How can I get vertical lines left and right of an align with a linear system of equations?

I've tried to use the align environment for my work. But, I don't know how to get vertical lines either side of the equations. The picture shows my attempt, but, it uses the tabular environment and ...
1
vote
1answer
58 views

Why does the & symbol align my text offscreen?

\documentclass{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} \title{Removed text for Stack exchange Post} \author{Cameron Eggart} \date{Fall 2021} \begin{document} \maketitle \section*{...
2
votes
1answer
49 views

How can I align these equations?

Consider the following two equations: \documentclass[a4paper,10pt,twoside]{article} \usepackage{amsmath} \begin{document} \begin{alignat*}{3} &\log(RT_{LKPijk}) &= &b_{0} + b_{1}x_{1i} + ...
0
votes
2answers
44 views

Pie charts do not align with minipage

My goal is to display the two pie charts side by side at the same scale and to align them. It doesn't seem to be working for me and I'm not sure what the problem might be. Is it maybe the \resizebox{}{...
3
votes
4answers
87 views

Correctly left align a set of statements with just one text

I start with this. You see that we have a few equations that all are refereed to just one number that is $(1)$ put exactly in the middle. Here, I want to put a text instead of that number and so I did ...
4
votes
5answers
202 views

centering text in align*

I have a project, I must use align*, but I have problem with it superficiality. \begin{align*} \span {n \choose n_{1}} &&\times&& {n-n_{1} \choose n_{2}} &&\times&...
1
vote
1answer
24 views

Using substack in flalign/align environment

I am using flalign environment for some summations which have substacks, however this seems to be giving me an "Undefined control sequence" error. Everything still compiles fine so it's not ...
0
votes
0answers
22 views

How to display multiline formulas when using flush left (fleqn) equations

Are there any typographical rules about how to display multiline formulas when using flush left (fleqn) equations? I used to think that something like the align* environment of amsmath might be a ...
1
vote
1answer
19 views

Merge cells in align environment

My goal is to produce something like that: However, when I use the align environment I can't find how to merge columns, so the result is very ugly: MWE: \documentclass[]{article} \usepackage{...
1
vote
1answer
62 views

How to write an equation into a table without it overflowing?

I am trying to make a table which is embedded with equations, bullet points, and so on. This is what I have right now: My question is, how do I get the key equation to fit inside nicely, and not ...
1
vote
2answers
45 views

How to resize font in align* environment

A similar question has been posted here about the align environment. However, the solution does not seem to work for align*. Preceding paragraph. {\small \begin{align*} a &< b \...
6
votes
3answers
262 views

Fixing the alignment of table with equations and images

My desired features for the table alignment are: The cell sizes should be auto-adjustable according to the contents. Every table cell content should be vertically and horizontally center-aligned. The ...
1
vote
2answers
39 views

Matrix in Tikz with centered Numbers (especially negative numbers)

I've got the following problem with negative numbers in my matrix: \begin{tikzpicture}[>=latex] \matrix (m) [matrix of math nodes, left delimiter=(,right delimiter=), inner ysep=0pt, column sep=0....
3
votes
1answer
111 views

Automate uncovering of lines of an align in beamer

The answer at https://tex.stackexchange.com/a/60692/12212 explains how to uncover lines of a tagged align in Beamer by wrapping the lines in onslide commands. It would be nice to have that done ...
5
votes
5answers
385 views

How to align a set of equations with padding?

I have a group of equations that I'd like to align at the = sign, but I also want the part before = to be left-aligned. I'm attaching a screenshot of what I want (achieved by manually adding \qquad ...
3
votes
2answers
88 views

Align two tables vertically across one page in appendix

I want to align two tables respectively on one page having the same space to the top and bottom margin. Here is a small MWE of my tables (that are much larger) \documentclass{article} \usepackage[...
0
votes
0answers
30 views

Spacing Error with \centering, \align*

I am writing this proof, but there seems to be something strange with a couple of the smaller commentary lines - they ended up centering and overlapping despite the fact that they are supposed to be ...
1
vote
1answer
39 views

Custom statement numbering using gather and align/aligned

Here is a proof in Latex, which renders like so: I'm fairly pleased with the result, but I wish there were a way to turn the (1) and (2) into right-aligned elements instead of having to be manually ...
3
votes
2answers
66 views

Better caption for align/gather

I want to add small captions under the align and gather math groups that I make in my notes. I just added something like \begin{center}, then some \small text for a centered small text look. Here is ...
4
votes
2answers
86 views

align forall to the right hand side

I have a few equations, and I would like to align the forall statements of these equations to the right-hand side as below: However, when I add a new equation (eq19), I have no idea why I cannot get ...
0
votes
2answers
32 views

Formula in latex displays differently

I would like to write this formula in overleaf latex as shown below With the equation I wrote in latex, it looks like below where you can see all the equations after star displays differently. Could ...
2
votes
2answers
96 views

Multiple curly brackets aligned one part to the right and the other to the left

How to draw such a diagram to show how the singularities are classified? Incorrect demonstration:
4
votes
4answers
206 views

Equation not aligning properly

I have to write the following equation I have prepared the MWE, but it is not aligning properly, \documentclass{article} \usepackage{amsmath,amssymb} \usepackage{mathtools, nccmath} \usepackage{array}...
2
votes
2answers
50 views

Aligning text/cells in a table within a specific separator

I'm doing list of MAC addresses. I have used tables, but I don't know how to manage the space (before or after) the hexadecimal value. For one device the different MAC addresses are not properly ...
2
votes
2answers
27 views

How to multiline and left adjust in an equation

I'm trying to make a set of equations look neater, but need to go onto the next like and left adjust, as shown here: This is what I have so far, I've just filled with \quad but I dont think it looks ...
4
votes
3answers
125 views

How to stack equations in brackets

How would I recreate this format with equation/align/pmatrix? \begin{equation} \begin{align} P(t&=11 \\ t&=13 |sex&=1 \\ education &=1 ) \end{align} = \begin{pmatrix} ...
4
votes
1answer
180 views

How do I align equations on the left rather than the right?

When I run the below code each line aligns on the right. How do I change this to align on the left instead please? I haven't gone into detail about what each equation represents as this is purely a ...
3
votes
1answer
48 views

Start aligned with a different number than one

I have the following aligning: \begin{align} &\text{Entropy} && 1 + \frac{\sum_{j=1}^{N} p_{ij}\log_{2}(p_{ij})}{\log_{2}n}\\ &\text{IDF} && \log_{2} \frac{n}{\sum_{j=1}^{N}...
5
votes
2answers
143 views

Align both names and equations in the same line

In Overleaf, I would like to show variable names with their equation behind them. To do so, I have tried: \begin{align} Entropy \quad 1 + \frac{\sum_{j=1}^{N} p_{ij}log_{2}(p_{ij})}{log_{2}n}\\ ...
3
votes
3answers
184 views

Align equations in math mode with bullet points in itemize

I want to vertically align the equations I have in math mode with the bullet points. \documentclass{article} \begin{document} \begin{itemize} \item $$\tan(x+y) = \frac{\tan x + \tan y}{1-\tan x \tan y}...
1
vote
2answers
54 views

1. How do I align all equations in column 2? 2. Also the left [ of my matrices is not appearing. How do I solve these 2 problems?

Below is the my code: \documentclass[11pt,oneside,openany]{book} \usepackage[a4paper, left=1.5cm, right=1.5cm, top=3cm, bottom=3cm]{geometry} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{...
2
votes
1answer
33 views

How do I reduce the space between column-pairs of the following equations

Below is the code: \documentclass[11pt,oneside,openany]{book} \usepackage[a4paper, left=1.5cm, right=1.5cm, top=3cm, bottom=3cm]{geometry} \usepackage{amsmath} \usepackage{amssymb} \usepackage{amsthm}...
2
votes
1answer
36 views

Same size for equation over multiple lines with norm

I want to have an equation written over multiple lines but without the sizes varying too much. An example would be \begin{align*} ||f||&=||(t\mapsto\int_0^t g(s)ds)||+||A||\\ &\leq a+b \...
4
votes
3answers
523 views

Very long equation manipulation with arrows

I was trying to fit this equation manipulation in a page as shown in the MWE: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{geometry} \geometry{a4paper,top=2.5cm,bottom=2.5cm,left=...
1
vote
2answers
26 views

How to align the left parts in 2-nd and 4th lines?

I need to aling the 2nd and 4th lines in the case: I have tried to use the & sign in different places of the code: \begin{equation} f(t) = \begin{cases} ...
1
vote
0answers
20 views

! Arithmetic overflow error with \documentclass{amsart}

I need to write a mathematical program with numbered equations and a name of the mathematical model. I tried the following code (find it here enter link description here: ) \documentclass[10pt,a4paper]...
0
votes
2answers
36 views

Align three columns without unnecessary whitespace

I have a rather long and complicated equation that I wish to present in a nicely split manner. I wish to use what amounts to a basic structure with three columns. Line two is meant to start in column ...
3
votes
1answer
32 views

Splitting and aligning equation (long on both sides)

I would like to split and align an equation which is really long on both sides. \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align*} & 2\sin(x - w)\sin(y - z) + 2\sin(y ...
1
vote
4answers
55 views

How to have an invisible symbol in an equation for alignment purposes?

Imagine I have a 2-line formula where in the first line I have a probability that I explicitly calculate in the second row, so the second line is much longer, so something like this: \begin{align*} &...
2
votes
2answers
71 views

\begin{align} isn't aligning throughout

In some part of my .tex file, \begin{align} \ket{\psi_t} &= exp(-\frac{i}{\hbar}\int _{t_1}^{t_2} \mathbb{H}(t')dt')\ket{\psi_0}= \{ \mathbb{I} -\frac{i}{\hbar}\int _{0}^{t} \mathbb{H}(t')dt' + \...
1
vote
1answer
64 views

Issue with text and math expressions at the same time

As some have guessed, there was indeed a \center before the title. As shown in the picture, I changed that to \begin{center} \end{center*} and the rest of the text is now aligned! I tried to be more ...
0
votes
0answers
37 views

Text align with special character in tabularx

I have a table with two rows and three columns. One of the rows value is A#B, I escape the special character # with \, but the value is not wrapped properly and crosses the column.

1
2 3 4 5
68