We’re rewarding the question askers & reputations are being recalculated! Read more.

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
0
votes
1answer
25 views

How to align 2 equations in a specific way?

I have the following equation: \begin{center} \begin{align} p(\theta) = p(\alpha_{j[i]}, \beta_{j[i]}, \mu_{\alpha}, \sigma_{\alpha}, \mu_{\beta}, \sigma_{\beta}, \sigma ) \\ = p\giventhat{\alpha_{j[...
1
vote
1answer
15 views

How to add dual variables to the Optimization Problem defined using optidef

I have the following code, \begin{mini*} {}{\sum_{i}\sum_{j} c_{ij}x_{ij}}{}{} \addConstraint{\sum_{j \in \mathcal{P}} s_{xj}} {=1 \quad}{}{\quad \alpha} \addConstraint{\sum_{p \in \mathcal{P}^{k}}...
0
votes
0answers
18 views

align set of equations and break some of them

I have a set of equations and inequalities with corresponding quantifier statements embedded in an align environment. Both can vary in length, but most of the times I can adjust the equation to the ...
0
votes
1answer
31 views

Tabular vertical text alignment

I'm trying to vertically align some text in a tabular, but I can't. here's my code: \newenvironment{cvskills} {\vspace{\acvSectionContentTopSkip} \vspace{-2.0mm} \begin{center} \setlength\tabcolsep{...
0
votes
1answer
24 views

Aligning math equation without getting equation numbers [duplicate]

I want to present a multi-line equation, but the align function includes equation numbers, which does not make sense in my case. How can I remove them? \documentclass{article} \usepackage{amsmath}% ...
5
votes
1answer
45 views

How to typeset a complicated align environment with lots of braces spanning several lines

I would like to typeset the plan of a complicated proof - something like an align environment, but with lots of braces spanning multiple lines on both sides. Here is a rough picture of what I want: ...
1
vote
1answer
37 views

Align around symbol with qquad

following Code: \documentclass[11pt, a4paper, DIV=calc ]{scrartcl} \usepackage[autooneside=false,automark,markcase=ignoreuppercase,headsepline,plainheadsepline]...
1
vote
1answer
24 views

Alignment within align portion of subequations

I am trying to align equations within an align environment. Below is a MWE \documentclass{report} \usepackage{amsmath} \begin{document} \begin{subequations} \begin{align} 3 & : & A = ...
2
votes
1answer
37 views

Equation split with bracelet over one line

I have a problem getting my equation typed the right way. Following Code: \documentclass[11pt,a4paper,DIV=calc]{scrartcl} \usepackage[autooneside=false,automark,markcase=ignoreuppercase,headsepline,...
1
vote
1answer
20 views

How to make every alignat section so that it has its own independent numbering?

How do you have it so that the line numbers don't continue onto the next alignat section? Here's the code: \subsubsection*{Answer} \begin{alignat}{2} \forall x (P(x) \to Q(x)), \forall xP(x) &...
0
votes
0answers
36 views

A problem with an alignment [closed]

Please make the first equality come after the second line of my coding such that it is aligned with the second equality: \begin{equation} \begin{split} \begin{aligned}[t] &\frac{d(1-x^{2})}{dx}\...
3
votes
2answers
51 views

The texts in table is going out of the page margin

I have difficulty keeping the table cell content inside the margin. \begin{tabular}{ @{} >{\bfseries}l @{\hspace{6ex} l } Laboratory Skills \ & DNA Extraction, PCR, Gel electrophoresis, SDS ...
3
votes
1answer
35 views

Alignment of headers in thesis

I am writing a thesis. But it turned out to be of the wrong format. Following is the format (wrong one): I want the following format, where header on odd page must be right side and header on the ...
1
vote
3answers
37 views

Place equivalence arrows in stackrel command one below the other in align environment

I'm trying to place the equivalence arrows one below the other in the align environment. But the equivalence arrows are in a \stackrel command and include a reference, so they are a bit displaced ...
0
votes
0answers
37 views

How can I prevent the figures from breaking the paragrphs and keep them exactly where I like to?

The packages I have used: \usepackage[section,below,verbose]{placeins} \usepackage{flafter} And the figure environment is like: \begin{figure}[!h] \centering \includegraphics[width=.5\...
6
votes
3answers
729 views

Weird spacing in aligned environment

Here's my code: $$\begin{aligned} h_t &= ca_t + &2c^2a_{t+1} + 3c^3&a_{t+2}+\ldots \\ h_{t+1} &= &ca_{t+1} + 2c^2&a_{t+2} + 3c^3a_{t+3}+\ldots \\ h_{t+2} &= ...
0
votes
1answer
16 views

Place align-environment directly next to enumerate item

I'm trying to place the align environment next to my enumerate item (here, the sigma sign should be next to "Induktionsschluss" and not displaced a bit downward). How to get it next to it? \begin{...
2
votes
3answers
39 views

Problem with Aligning Equations in a Table

I am still relatively new to LaTeX, and are trying to create a table for a set of solutions. The basic code I have at the moment is: \documentclass[11pt, twoside, a4paper, openany]{memoir} \...
0
votes
0answers
18 views

Vertical space in align environment [duplicate]

I would like to add some vertical space between equations written using the align environment. My MWE is: \documentclass[12pt]{article}% \usepackage{amsmath} \begin{document} \begin{align} \tilde{H}_{...
2
votes
1answer
35 views

Tikz: Using self intersection of knots library in an align environment throws error

Correct me if it's bad style but I used align to horizontally order multiple tikzpicture's and discovered the following. Take the standard example for self intersections from the manual for the knots ...
4
votes
3answers
69 views

Vertical equivalence arrow in the middle between two lines

I'm trying to link two statements standing on below the other with a vertical equivalence arrow in the middle of the line. But the arrow doesn't show up in the middle but on the right of the two ...
2
votes
2answers
32 views

How to add new environment without transferring formula to the next line?

I'm trying to add environment align inside of enumerate, and this attempting leads to transferring formula which is not needed. How do I leave the formula on the place? \item \begin{align*} C\left(z\...
4
votes
2answers
180 views

How do I to replicate this system of equations?

How would I properly replicate the above system of equations? Is there a better way to space the first four variables? I also can't seem to figure out how to get the last line formatted correctly. My ...
0
votes
0answers
15 views

\align File not found or blank pdf

Whenever I try using align in ams math the document simply disappears with the error message file not found (texmaker) and a blank space (texstudio). Why do my documents disappear whenever I try using ...
7
votes
2answers
90 views

How to align multiple elements across align and its nested aligned?

How can I fix the first equation to make all the three equations align at the positions marked by & across align and its nested aligned while preserving the spacing \quad before \text in every ...
0
votes
1answer
38 views

I'm trying to align 3 equations by “=”, but I'm getting this error “! Paragraph ended before \flalign was complete.”

I use the \usepackage{amsmath} and the code for the three equations is: \begin{flalign} rez_1[\;] &= \lim_{s \to 0} \left[\frac{2(s + 2)(s + 4)}{(s + 1)^{2}(s^{2} + 2s + 2)}\frac{1}{z - e^{sh}...
3
votes
1answer
51 views

Number of long equation not below but above it

Is there a way to display the number of a long equation (which usually appears below it if place is missing) above the equation? That is, instead of what would appear if you compile the code below ...
0
votes
1answer
26 views

Labeling a line in a flalign* enviroment

I would like to label the last line of this computation (and several longer ones), so I may use them as equations, like so: \begin{flalign*} \Gamma^{l}_{js}P^{j}Q^{s} &= \frac{1}{2}(\Gamma^{l}_{...
8
votes
3answers
538 views

Problem aligning two alphabets

I'm trying to align two alphabets in such a way that each letter is aligned to the one below such that they fit on the page. I'm having real difficulty of doing this any suggestions would be great i'...
2
votes
1answer
30 views

Alignment of the graphs (tikz) along the lower axis. Layout side-by-side

Does anyone know how to make the most "beautiful" method of aligning two graphs placed on a page side-by-side? The alignment is assumed to be on the lower axis. A concrete example of execution: ...
2
votes
1answer
41 views

Fitting two trees on the same page

How do I put these two trees on the same page? \documentclass[11pt]{article} \usepackage{forest} \usepackage{amsmath} \usepackage{pdflscape} \begin{document} \begin{landscape} ...
6
votes
1answer
48 views

Titlesec - vertical align \chapter and \section

I've found a nice \titlesec style for my chapter that I want to use for my thesis. Unfortunately the \chapter text doesn't align vertical with the \section text: (I've added the red line in paint to ...
0
votes
3answers
56 views

How to aligned long equations and shift equal sign to fit

I would like to fit the long equation derivations by shifting the left aligned equal signs to left. \begin{align*} \MoveEqLeft p(y = 1\mid x; \phi, \mu_0, \mu_1, \Sigma) \\ &=...
3
votes
1answer
46 views

Automatically breaking align(ed) environment into columns

I have been looking for a solution for typesetting a series of equations into two columns of equal width, with both columns vertically aligned on top, with no extra space. To be specific, I am looking ...
0
votes
0answers
25 views

Reliably use \overline in minted code

How can I (reliably) use \overline in minted code? For example, these work: \documentclass{article} \usepackage{newpxtext} \usepackage{newpxmath} \usepackage{minted} \newmintinline{ocaml}{...
5
votes
1answer
69 views

ConTeXt: custom \intertext

In a ConTeXt file, I would like to insert a line of text inside \eqalign. When I use \intertext: \starttext \startalignment[middle] $\eqalign{ a &= b \cr \intertext{and} b &= c \cr }$ \...
2
votes
1answer
51 views

\frac not working in align [duplicate]

I'm trying to write "T(n/3)" within an align block, but I'm not getting the behavior I expect. When I enter this: \documentclass{article} \usepackage[utf8]{inputenc} \begin{document} \begin{align} ...
0
votes
1answer
43 views

Is there a simple way to shrink displayed equations and aligned equations to a percentage of the textwidth?

I'm writing my linear algebra lecture notes in beamer. Often, I want to display an equation involving large matrices, but the equation will not fit the width of the available space in the slide. Is ...
1
vote
1answer
18 views

Double alignment with alignedat and a different line

I have a series of two equalities with the first one which is too long to fit a line, and the second which stays on a line. The first one should be splitted at half (there is a sum of terms between ...
1
vote
1answer
24 views

Trouble with align* environment

I have no idea what the following code is giving me an error; I Package amsmath Error: Erroneous nesting of equation structures; Could you please enlighten me as to where the mistake is? Thank you ...
3
votes
3answers
438 views

Is there a way to double indent equations

I have already aligned the first set of these equations \begin{align*} \sum_{k=1}^n 1 &= n\\ \newline \sum_{k=m}^n 1 &= n+1-m\\ \sum_{k=1}^n k = S &= 1+2+3+...+n\\ &= n + (n-1) + (n-...
0
votes
0answers
21 views

The horizontal space between margin and *align* environment [duplicate]

How can I remove the space between margin and align environment \documentclass[a4paper,14pt]{article} \author{} \usepackage[fleqn]{amsmath} \usepackage[a4paper,margin=1in,left=2cm,right=1cm,top=1.5cm,...
0
votes
0answers
20 views

macro that includes align* environment doesn't use predefined macro

What could there be some reasons of because the align* environment doesn't use the Finished predefined macro? \documentclass{article} \usepackage{amsmath} % ============ Itemize ============ \...
0
votes
0answers
30 views

online alignment editor/widget

Various editors provide matrix functionality, such as TeXShop or this one I just found. The ideal version doesn't require any arrow keys at all, like in TeXShop - you just have an Excel-like array ...
4
votes
2answers
61 views

Aligning two sets of equations with alignat?

I'm having difficulties typing the following: What I am getting with the code \begin{alignat*}{4} f(x)&=x^{-1}, &&\qquad&& f(2) &&= 2^{-1}=\frac{1}{2},\\ ...
0
votes
1answer
47 views

Center align* within gather*

Running the following example \documentclass{article} \usepackage{amsmath} \begin{document} \hrule \begin{gather} \sin{2x}=2\sin{x}\cos{x}\\ \begin{align} \cos{2x}&=\cos^2{x}-\sin^...
1
vote
1answer
28 views

Set spacing after intertext between split environments with nccmath package

How would I set the vertical spacing after intertext to the same amount as for the first equation? Using \\ gives to much vertical space plus adds a new equation what i do not want ofc. Without \\ ...
0
votes
0answers
21 views

Text not aligned on baseline in TikZ [duplicate]

I have a problem in TikZ with text inside a node being aligned to total height, instead to baseline, as shown below. Notice how "Source" and "Load" are aligned to the baseline, but "Storage" is not ...
2
votes
1answer
49 views

Combine alignat and flalign

I have a rather large argument, where I want some equations to have text flushed left. This will usually just be a reference to the problem at hand My desired outcome is something that looks like the ...
0
votes
0answers
27 views

apply vertical set spacing for all align environments in document

I saw a lot solutions to this questions in here, unfortunately none of them works in my case. The code below works exactly as I would expect it. For my thesis however the \setlength{\abovedisplayskip}{...