{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.

learn more… | top users | synonyms

2
votes
1answer
86 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
238 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
630 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
239 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
465 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
905 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
171 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
266 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} ...
6
votes
1answer
269 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
327 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
75 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
53 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
140 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
242 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
79 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. ...
4
votes
2answers
2k 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
123 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
115 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
109 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
54 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
151 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
115 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
259 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
103 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
106 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
59 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} ...
4
votes
3answers
208 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
151 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{% ...
4
votes
1answer
259 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
236 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
53 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
112 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
184 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
131 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
294 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
317 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
1k 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 ...
5
votes
3answers
118 views

Aligning Summations Over Differing Numbers of Sets

I'm trying to align a set of constraints for a linear program formulation. The issue I'm having is that some of the summations are over two (or more) sets, while others are only over one. This makes ...
2
votes
2answers
133 views

mathtools: tagging with words and a number in align

How does one tag an equation with both words and numbers? \documentclass{article} \usepackage{mathtools} \newenvironment{Dequation} {% ...
5
votes
4answers
139 views

Large formula in align

I have a large formula in align: \begin{align*} log \mathcal{L}(\alpha,\beta,\mu,\delta| l_1,...,l_n)&=\\\sum_{i=1}^n \left( log \left(\frac{\sqrt{\alpha^2-\beta^2}}{2\alpha \delta K_1 ...
2
votes
0answers
541 views

center align 2x2 plot of subfigures [duplicate]

I've got a 2x2 plot of subfigures that is too wide to fit within the margins of a page. Latex left aligns it and the right hand side goes off the page. I would like to center align the whole thing ...
4
votes
2answers
182 views

How to align equation items below their =

How is it possible to sort equations align with their = like this: a*b*c = d*e*f g*h = i*j k = l*m*n o*p*q = r I've seen it before but I don't know how to find that!
2
votes
2answers
680 views

Break Large Equation Between Parenthesis Using Multline

I have a very large equation that I need to write in multiple lines, but multiline is not working between parenthesis. This is my LaTeX code: \begin{multline} e^{-y \lambda_n} \left( ...
3
votes
1answer
158 views

Align multiline RHS

I have the following MWE: \documentclass{report} \usepackage{amsmath} \begin{document} \begin{align} L_W&=\frac{L}{W} & \text{words per line}&=\frac{\text{bytes per ...
8
votes
2answers
191 views

How to align multiple symbols for a long equation?

\documentclass[11pt]{article} \usepackage{xfrac, array, tabu, multirow, graphicx, setspace, dcolumn, tikz} \usepackage[fleqn]{mathtools} %the argument for d specifies the maximum number of decimal ...
9
votes
1answer
138 views

How can I align the terms of this equation nicely?

I have the following alignat segment: \begin{alignat*}{3} \text{max}_{\underline{\lambda}} \text{min}_{\underline{x}} \quad & \underline{c}^T \underline{x} + \underline{\lambda}^T(\underline{d} ...
2
votes
2answers
1k views

Too much white space when using the align-environment

Consider the following example: \documentclass{article} \usepackage{amsmath,amssymb} \begin{document} \begin{align} \prod a+bm && \text{is a square in} && \mathbb{R}\\ ...
1
vote
1answer
4k views

What is “! paragraph ended before \align was complete”?

The following is the piece of code that was working right before I made a few small minor changes. \begin{align} \langle \prod_{i=1}^{n} \delta_i ^{n_i} y^{m_i}_i \rangle = \sum _ {a_{i=1...n} = ...
0
votes
2answers
114 views

Begin Align - Text Gaps

I have a quick question about blocks of the following type: \begin{align*} CODE HERE \end{align*} After any one of these blocks I always get this huge gap. In the uncompiled document I have one ...