The Stack Overflow podcast is back! Listen to an interview with our new CEO.

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
0answers
23 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
17 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}_{...
7
votes
3answers
146 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'...
1
vote
1answer
26 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: ...
1
vote
1answer
37 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} ...
4
votes
1answer
41 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
51 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) \\ &=...
1
vote
1answer
41 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
24 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}{...
4
votes
1answer
56 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 }$ \...
1
vote
1answer
31 views

\frac not working in align

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
42 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
22 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
381 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
20 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
17 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
29 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
24 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
19 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
47 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
26 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}{...
2
votes
1answer
13 views

Prevent Line Break Before flalign* Block in Itemize Environment

My question is similar to Prevent line break before equation environment in enumerated list item, but I want to use an unnumbered left align block. (Like the poster of the linked question, I would ...
2
votes
2answers
55 views

Align equations to start in the same position

I have a list of equations and I want them to be centered and aligned to the beginning of the equation and by the equal sign. This is what I tried so far: \begin{align*} \mathcal{L}_{a2c} &= \...
1
vote
3answers
50 views

Use split environment multiple times in align

I got a big fan of the split environment to share forumula numberings over multiple lines. However I can't figure out how to use it multiple times inside an align environment. I have an equation that ...
3
votes
1answer
30 views

How to display only one reference for equation using \align?

Good morning. I would like to understand how to write this equation and receive only one reference (example: equation 1.1) and not euqation 1.1 and 1.2 relative to the second line of the equation. ...
1
vote
0answers
32 views

image goes right when using babel

I write in Hebrew, so I use \usepackage[hebrew]{babel} When I try to add hraphic with \includegraphics{lec2-1.jpg}, the graphic goes right and out of page: the full code: \documentclass[10pt,a4paper]...
3
votes
2answers
42 views

How to align a linear program equations that has subequation and equation tags

I am using subequations and equation tags so I can number the objective function with (1) and all others constraints with (1a) (1b) and so on. However, the problem is that when I use these tags I don'...
2
votes
1answer
32 views

How to align words outside matrix? [closed]

It is difficult to describe my question, so I give the picture which shows the difficults: Some words are outside of the matrix, both rows and columns. How to align them? It is better to have ...
1
vote
1answer
47 views

questions about vertical spaces used by \[…\] and align* and how to reduce these

When using \[...\] I noticed sometimes the vertical space used is larger than in other cases that also uses \[...\]. I do not understand why this is the case. Here is an example \documentclass[12pt]{...
2
votes
2answers
44 views

Aligning equations in two columns, but having one equation centered

Say I have 5 equations, and I want to align them such that the first equation is centered, and the other four equations are aligned in two columns. If I use the align environment, (I am using the ...
2
votes
0answers
40 views

Space atop of align should depend on length of preceding line

If a short line is followed by an align environment then the spacing between the aligned content and the text above it is too large (in my opinion). See the spacing above x = y_i in the example. The ...
2
votes
2answers
39 views

Need align and equation to center with respect to nested items [duplicate]

I want my equation and align environments to center with respect to nested indents, but they only seem to center with respect to the full page width. Here is some example code: \documentclass[12pt]{...
1
vote
2answers
47 views

How to split and align LHS and RHS independently?

I want to obtain the following result in which each step of the expanding is split, the left hand side and right hand side are aligned with different vertical lines independently. The purpose is to ...
3
votes
1answer
66 views

how to add explicit equation number in aligned environment?

I have looked at all related questions and not able to find solution. I have to use aligned and since aligned does not support tag, how would one add an explicit equation number? Here is MWE \...
2
votes
2answers
30 views

Right align text in align environment, while keeping maths centered

I use text at some lines of an align environment to justify how we go from one line to another. I would like to keep the maths centered, and text to be aligned to the right, but I did not succeed: \...
1
vote
2answers
47 views

Center table not to center of page

Is it possible to place the center of table to 0.75 widthtext? I would like to center the table not to the center of page width but with respect to the 3/4 of page width. \begin{table} \begin{...
1
vote
2answers
36 views

Align function not counting equations correctly when referencing them

When I use the \begin{align}\end{align} method to line up a group of related equations, the equation number next to the equation is counted correctly, but when I reference the equation using \ref{eq:...
0
votes
3answers
62 views

How to make a similar equation environment like the picture?

I think there are many ways to create a similar enviornment like the picture below, but I am unsure what is the easiest way to do this. My code is the following, but I know it isn't like this. I am ...
2
votes
1answer
52 views

Curly braces using mtpro2[lite]: fix correct alignment

I am trying to find a solution, but actually I have failed, to use curly bracket (using \ccases) for the system symbol of three equations (or more), as for this example. If I adding the & I have ...
1
vote
0answers
32 views

let latex decide where to put align equations [closed]

I have used align to write 10 lines long equation. Since the align equation always appear at the current place, nearby pages are filled with too much spaces, is there a way to let align be floating ...
1
vote
3answers
46 views

Splitting multiline equations in between of parenthesis

I am using align for multiline equations and works fine but I am encountering a limitation. I have terms between parenthesis opened and closed with \left( \right). Since there are many terms between ...
2
votes
1answer
79 views

How to put a box in aligned equations?

Can someone help me with the following question? I'm writing an equation like this: \begin{align*} a =& b - c \\ -& d - e \end{align*} How can I put a box around the part b - c \\ ...
1
vote
1answer
23 views

Incomprehensible problem with split-environment in beamer documents

In a set of slides i am creating with beamer class, i want to use the split environment to align wrapped equations (see example below). My problem is, that latexmk throws an error Missing { inserted ...
1
vote
0answers
16 views

\newenvironment as a shortcut [duplicate]

I'm trying to shorten the environment \begin{align} \begin{aligned} %equation \end{aligned} \end{align} by using the \newenvironment command as follows \newenvironment{eqq} {\...
3
votes
3answers
98 views

Align a set of numbers with the coefficients in a equation

I want to write an equation in latex like the following one. But I can not align a set of numbers with the coefficients completely. Here's my code: \begin{equation} \begin{aligned} LNEP = & -0....
5
votes
1answer
104 views

Labeling oriented surface using Asymptote

I am trying to label an angle on the plane normal to an arbitrary vector in three dimensions. I tried to multiply the label $\omega t$ by XY() or combinations of XY(), XZ() and YZ() without ...
4
votes
1answer
38 views

How to have a multiline equation in an array of equations?

I am in the situation where I need to define some parameters similar to each other. For this reason I would like to define them in an eqnarray or align. Unfortunately, one of the right hand part of ...