{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 question about aligning document elements, use {horizontal-alignment} or {vertical-alignment} instead.

learn more… | top users | synonyms

0
votes
0answers
22 views

In-line comments in align? [duplicate]

Is there a way to insert comments at the end of a line, within a block of TeX? For example, something like the following $$\begin{align} &(B \cap A) = (C \cap A) \\ 'given &(B \cap A) ...
4
votes
2answers
84 views

Help with alignat environment

\documentclass{article} \usepackage{amsmath} \begin{document} \begin{alignat*}{3} &\text{Case 1: } s^*\leq a&\quad &\hphantom{\leq} 2\beta \leq& 2a\alpha-4\lambda-\tau ...
4
votes
1answer
118 views

Align environment: second alignment “left-justified”?

How can I do something like \begin{align*} b &= cq_1+r_1, & 0 < r_1 < c, \\ c &= r_1q_2+r_2, & 0 < r_2 < r_1, \\ r_{j-2} &= r_{j-1}q_j+r_j, & 0 < r_j < ...
3
votes
1answer
76 views

\underset italicizes whatever in it

I'm trying to write a simple argmin equation. However \underset command italicizes whatever in it. Here is my code: \begin{align} \label{Eq:argmin} &{x}={\arg\underset{p}{\rm ...
5
votes
2answers
72 views

Aligned Environment Not Aligning a Single Operator

So, I'm typesetting a solution to a Quiz I gave, and the aligned environment (inside of my equation environment) is giving me an incorrect alignment on only one of my operators. Here's the batch of ...
5
votes
2answers
69 views

Align: one line centered and the next right-justified

Consider the following code: \documentclass{amsart} \usepackage{amsthm, amssymb, amsfonts} \begin{align*} F_{X^2}(x) = P(X^2 \leq x) = P(X \leq \sqrt{x}) = F_{X}(\sqrt{x}) = \sqrt{x} \\ ...
6
votes
2answers
93 views

Is there a more idiomatic way of achieving this?

I've recently decided to use LaTeX as my primary document processor, I want to know can I achieve the effect of this more idiomatically: \documentclass{article} \usepackage{amsthm} ...
6
votes
4answers
140 views

Aligning of equations within derivations

Okay, so I have the following derivation so far in my latex document: \documentclass[a4paper,oneside,11pt]{report} \usepackage[english]{babel} %francais, polish, spanish, ... ...
8
votes
2answers
98 views

Glossaries in Align Environment

Using glossaries commands in align environment seems to screw up the tag alignment. How can I use gls{...} commands in align environments without the tag position being altered? Consider the ...
2
votes
1answer
93 views

Equation Number Positioning in Align Environment

How do I control the space between the equation number and the right margin in the align environment?
6
votes
1answer
82 views

Long formula in align environment

Usually, if I have a very long formula, I will use two lines in the align environment and \qquad to space things out nicely. For example, \begin{align*} % First line \rho\left(\frac{\partial ...
6
votes
1answer
186 views

How to center align part of an equation within alignat?

I'm using the environment alignat to align my set of of equations at two different points. Now, I dot not only want to align it these two points, but also want to have everything in between these ...
2
votes
1answer
71 views

Align image next to text

The problem is to align an image right to a variable length of text at the top. Here is a minimal example: \documentclass{minimal} \usepackage{lipsum} \begin{document} ...
14
votes
1answer
220 views

align* environment left-aligned with LuaTeX and RTL math direction

When using LuaLaTeX, with the math direction set right-to-left, the contents of an align* environment is left-aligned instead of centered. Why does this happens? How can I fix it? ...
4
votes
3answers
417 views

Left-align all equations in a block

align environment without any explicit alignments points (given by &) right justifies the equations in the block. They can be left justified by putting & at the beginning of each equation. Is ...
2
votes
2answers
179 views

Leaving out section numbers in LaTeX align environment [duplicate]

I'm writing in the document class, and using the align environment from the amsmath package. My align environment in chapter 2 is giving numbers as (2.2), (2.3) etc (since it's in chapter 2), where ...
3
votes
1answer
297 views

Align to the Right - Itemized Items

I am using the following template for a document. The only problem I have is the last digit of the number "1900" does not line up with the "s" in the word "apples" on the right side of the file ...
7
votes
1answer
736 views

Different space between \align and \equation

Why produce the align and the equation environment different space between the text. And what can I do, that it have the same? \documentclass{article} \usepackage{amsmath} \begin{document} Long ...
1
vote
1answer
155 views

Increasing margin of left side tag/number in amsmath align enviroment

I asked this on the lyx user list but haven't got an answer (http://marc.info/?l=lyx-users&m=137891444218650&w=2). I would like to include text lines in align environment using 'leqno' option ...
2
votes
1answer
151 views

using aligned or split inside align*

I am trying to use aligned or split inside an align* environment. However, I keep getting an error missing } or missing \right.. However, this isn't the case. \documentclass{article} ...
5
votes
1answer
195 views

Will todonotes work inside an align environment?

Is it possible to use todonotes inside an align environment, e.g.: \documentclass{report} \usepackage{amssymb,amsmath} \usepackage{todonotes} \begin{document} \begin{align} a^2&=b^2+c^2 ...
7
votes
2answers
277 views

Equation number with an apostrophe

I am writing two equations in an align environment: \begin{align} x^2+y^2=z^2, \\ x^2=7, \end{align} I would like the first equation to be labelled with e.g. (1.1) and the second equation to be ...
2
votes
1answer
70 views

Formatting a table

I am trying to format a table but everything errors since I am trying to put a display environment in an array (I also tried a tabular) environment. \documentclass{article} \usepackage{mathtools} ...
3
votes
0answers
51 views

Badness underful box and weird output near equation numbering [closed]

\begin{align} &{V_L}^{det}=-I_2+\frac{(1+c_1-2c_2/I2)^2X)}{9(r-\alpha)}\\ &+(4^{\beta_1-1}9^{2-\beta_1}(-2c_1I_2+(c_2+I_2){{I_F}^*}^2)(\alpha-r)X \\ ...
6
votes
2answers
129 views

Formatting inside a table

\documentclass{article} \usepackage{float} \usepackage{mathtools} \newcommand{\unit}[1]{\hat{\mathbf{#1}}} \begin{document} \begin{table}[H] \centering \begin{alignat*}{4} ...
3
votes
1answer
179 views

In Lyx, align text inside a float caption

I'm trying to align a legend inside a table caption, so that the colons are vertically aligned. I can do it with the align ambient outside of the caption, but if I use the same code inside the caption ...
5
votes
1answer
65 views

How do I put multiple lines within a (single) pair of curly brackets?

I am trying to define a set by putting description of it in a pair of curly brackets like "{ }". The problem is the definition is sort of long and it looks messy with everything in a single line. ...
2
votes
2answers
1k views

How to put the QED symbol of a proof at the right place inside align?

When a proof ends with a formula in equation or equation* environment, putting \qedhere after the equation would cause the QED symbol to appear in the right place. I.e. at the end of the line in which ...
4
votes
1answer
111 views

ConTeXt: Wrong mathmatrix spacing between rows in startalign-environment

When using a mathmatrix (e.g. for vectors) in between \startalign and \stopalign, the spacing between rows becomes too large. I'm running Mark IV and the problem exists on live.contextgarden.net as ...
11
votes
1answer
109 views

Aligning two fractions in the split environment

I have two equations: \begin{equation} \begin{split} d_1 & =\frac{aaaaaaaaaa}{b}\\ d_2 & =\frac{aaaaaa}{b} \end{split} \end{equation} I want the fraction lines to ...
5
votes
1answer
93 views

Making an align environment begin on the same line as the question label

\textbf{Question 2} a) \begin{align*} P(a<\mu<b|\mathbf{y}) & = P(a<\mu|\mathbf{y}<b) \\ & = \int_{a}^b p(\mu|\mathbf{y}) d\mu \ \ \text{where} \ \ ...
2
votes
1answer
50 views

Making align produce the same output as multiple aligns

How can I make the following code: \begin{align*} P(a<\mu<b|\mathbf{y}) = 0.95 \\ P\left(-t_{0.025}<\frac{\mu-\overline{y}}{\widehat{\sigma} / \sqrt{n}}<t_{0.025} |\mathbf{y}\right) = ...
5
votes
2answers
132 views

Left-justified equations with left tags (so it looks like an enumeration)

I want to make a math enivornment (preferably a customized align/flalign environment) with left-justified/left-aligned equations (as it is possible with the flalign environment) and left-aligned tags ...
1
vote
0answers
33 views

Equation alignment without equation index? [duplicate]

I asked about this in chat but dead silent. So how can I align an equation without getting the equation index number?
3
votes
2answers
101 views

Left align text in enumerate

I wish to left align justifications in mathematical/logical reasoning. I am currently in an enumerate tag. I have: a) p or q by fact(10) b) r by negation on (a, 10) c) s by implication(b, 5) . . I ...
2
votes
1answer
203 views

siunitx: bold single numeric cells + mathspec

I need to bold and align numeric values in a table while using both mathspec and siunitx packages. I've looked at siunitx: Bold single numeric cells for bold and alignment in a tabular environment ...
3
votes
3answers
89 views

Align long equations

I want to type the following equations by aligning them through the equal sign, but it seems to be too long: \begin{align*}\prod_{z^n=-1}(w_1(z)^n+1) &=& ...
4
votes
2answers
92 views

Text to the right of piecewise equation

I have the following piecewise functions: \documentclass{article} \usepackage{mathtools} \begin{document} \begin{align*} K(u) &= \begin{cases} \frac{1}{2} & -1 \leq u \leq 1 \\ 0 & ...
4
votes
1answer
43 views

Centre justifying equations in align environment

Apologies if this has been asked before, but I couldn't find it after searching in a few places. I'm currently working with arrays of equations like the following: \begin{align} ...
3
votes
3answers
153 views

aligning vector column

I have the next latex code: $$\begin{align*}\pi(X)f(x) = \frac{d}{dt}\Pi(e^{tX})\vert_{t=0} f(x) &= \frac{d}{dt} (\Pi(e^{tX})f(x))\vert_{t=0})= \\ &=\frac{d}{dt}(f(e^{-tX}x))\vert_{t=0} ...
1
vote
0answers
122 views

Add space below equations? \belowdisplayskip is not working? [closed]

I use the following code in my LaTex document to specify the space before and after the align-environment (code is before the \begin{document}): \makeatletter \g@addto@macro\normalsize{% ...
3
votes
1answer
193 views

Alternative to align in this case? [closed]

I have the following formulas in an align environment: \begin{align} l_t&=\sigma_t * \epsilon_t\\ \hat{VaR}_{0.99,T+1|T}&=\hat{\sigma}_{T+1|T} * z_{0.99}\\ ...
4
votes
2answers
201 views

How can I typeset determinants of Cramer's rule? [closed]

I want to typeset the determinants of the system $\begin{cases} a_1x+ b_1y = c_1,\\ a_2x+ b_2y = c_2. \end{cases}$ I tried $D=\left| \begin{matrix} {{a}_{1}} & {{b}_{1}} \\ {{a}_{2}} ...
2
votes
0answers
49 views

Is any downside in using align instead of \[…\]? [duplicate]

Is any downside in always using the align environment? I.e, if I use \begin{align} a&=b \end{align} instead of \begin{equation} a=b \end{equation} and \begin{align*} a&=b \end{align*} ...
1
vote
2answers
98 views

Line break in large formula and error message in align?

I have a very long align formula and I do not know how to optimally (that it looks good and is accetable with LaTeX rules) line-break this. Currently I have \begin{align*} ...
6
votes
2answers
168 views

How to best typeset this long matrix multiplication?

I have a quite large matrix multiplication: \begin{align*} \mathrm{Var}(\alpha)&\approx \begin{pmatrix}\sqrt{1+\pi^{2}}\exp(-\delta^{*}+\zeta^{*}) ...
2
votes
2answers
125 views

hiding equation with fcolorbox won't work

I'm learning some formulas and in order to hide them (=print white) within my pdf-document using fcolorbox. I tried to create some macro, here's my mwe: \documentclass[a4paper]{scrartcl} \nonstopmode ...
4
votes
1answer
191 views

mathtools: the use of intertext in align

If I use \intertext{some sentence or two} and then continue align, will the align environment break across a page break where the text is inserted or is it still unbreakable? If it is still ...
5
votes
2answers
186 views

equation labels inside a nested align and aligned environment

I'd like to have several equations aligned pair-wise in, essentially, two columns, but with individual labels for each equation and/or for each line (where one line displays two equations). I have ...
4
votes
2answers
798 views

Equation: How to create nested/multiple cases in LaTeX to align the qualifiers

I am having trouble with a particular equation as the cases are nested within a case. It would also be cool if I could align the qualifiers. I tried to post an image of the equation but I could not ...