{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
2answers
54 views

Multline A group of equations

I have two equations. I use gather (or align) environment. one of the equations are too long and I want to multline them in that environment. How can I do it? and, How I can leftside these equations ?...
13
votes
2answers
8k views

Putting equations in \intertext to annotate a proof

I'm trying to typeset a proof with Latex. When I do proofs, I like to alternate between a line of text, to explain each step, and the resulting equation. I also like to have the equations align at the ...
0
votes
1answer
30 views

How can I insert text inside the aligned environment?

I often need to insert text and breaks in between equations but it's too cumbersome to type aligned again from beginning. What can I do to insert text inside the aligned environment ? Also, is there ...
4
votes
4answers
74 views

Aligning Maths in a Table Column

Is there a way to align this column on t_p? \begin{center} \begin{tabular}{cl} $t_p \le -2\; ^\circ\mathrm{C},$ & frost is expected \\ $-2\; ^\circ\mathrm{C} \le\, ...
1
vote
0answers
26 views

Beamer: Defining a new align environment to pieacewise uncover/alert each equation

For the following example, I need to use align environment and uncover/alert each equation. The conventional way is shown below \documentclass{beamer} \usepackage{amsmath,mathtools} \begin{document} ...
2
votes
2answers
110 views

How to align two equations vertically without horizontal space?

Please have a look at the following MWE: \documentclass{scrartcl} \usepackage{amsmath,amstext,amssymb} \begin{document} \begin{align} \cdots\text{ABB}&\bigg|\text{BAABB}&\bigg|\text{AAABB}&...
2
votes
4answers
118 views

Two equations in align environment with bracket in between

How can I type such an equation into a LaTeX align environment, with a bracket between the two lines of the equation?
4
votes
1answer
90 views

Combine split and align environment

The split environment allows you to give one number to two equations, as in \begin{equation} \begin{split} a&=1+2+3+4\\ b&=5+6+7+8 \end{split} \end{equation} which gives Note that the ...
2
votes
2answers
45 views

Aligning labels inside cases environment

I have the following code, where I have multiple cases and all need to be labelled. I tried using subnumcases, however I wanted some freedom in labelling (the $k^{th}$ case must be labelled C.k etc), ...
1
vote
1answer
31 views

Disabling automatic dissimilarity coding in texshade

The package texshade provides an environment to typeset nucleotide and aminoacid alignments. This otherwise great package has a default setting, which I would like to turn off: By default, texshade ...
0
votes
0answers
11 views

flalign is not aligning equations to the left [duplicate]

I'm trying to align my equations to the left, for this I'm using $\begin{flalign*}$, but as you see, below the matrices the equations are not being aligned, how can I fix this? This is the result I ...
1
vote
3answers
34 views

Aligning system of equilibrium equations

I would like to align equations on the right side to this imaginary red line (to the left). Also, it would be really nice to have just one number of the equation (just like in equation environment) ...
5
votes
1answer
93 views

how to align a two column box

I would like to ask you to share your idea with me regarding to align the following text inside the box. Thank you in advance \pagenumbering{gobble} \noindent\fbox{% \parbox{\textwidth}{% \...
3
votes
1answer
336 views

How to use math mode inside align* [closed]

Why does this give an error? \begin{align*} $\sum_{i=0}^K n_{\text{i}} * P * 1000$ \end{align*} Why can't I use align* for my math formula which includes a summation?
2
votes
2answers
74 views

How to put box around a single equation in align environment?

I want to put a box around one of my equations in aligned environment. I am looking to do something similar to Attractive Boxed Equations, but the code only caters for individual equations. Here is ...
5
votes
1answer
61 views

How to align two sets of equation separated by some text in a beamer slide?

I want to align the two set of equations on same slide. I found a similar post How to align a set of multiline equations but there the equations do not involve text as in this case Here is my MWE \...
1
vote
4answers
166 views

How to align equations with integrals and “subject to” equations

I have a long expression (maximization problem) which I force down to the next line using //. I also have two functions ("subject to") which I want to place underneath. I use & to make the ...
5
votes
1answer
106 views

Pass part of halign body as an argument to macro (previously AMS align and its groups)

I originally thought this had to do with the align environment but I discovered it's a feature of \halign, hence the major edit. When inside a tabular environment or simple halign, I need to be able ...
1
vote
0answers
29 views

Error while compiling \align*

I have written the following code : \section{Quantum Harmonic Oscillator} The quantum harmonic oscillator is the analogue of harmonic oscillator in classical mechanics scaled down to the quantum ...
3
votes
1answer
38 views

How to keep some equal signs aligned in flushed right equations

\begin{align*} 2\sin2\theta+1=0\\ \sin2\theta=-\dfrac{1}{2}\\ \alpha&=\sin^{-1}\left(\dfrac{1}{2}\right)\\ &=\dfrac{\pi}{6}\\ 2\theta=\pi+\alpha,2\pi-\alpha,3\pi+\alpha,4\...
4
votes
1answer
35 views

Abbreviations for align

I know from the Technical notes on the amsmath package that it is not possible to introduce direct abbreviations like \newcommand{\bal}{\begin{align}} % doesn't work \newcommand{\eal}{\end{align}} %...
4
votes
1answer
106 views

Adding letter to align number

To adding a letter to the equation number, I have used the following code \newcounter{defcounter} \setcounter{defcounter}{0} \newenvironment{eee}[1]{% \addtocounter{equation}{-1} \refstepcounter{...
2
votes
1answer
46 views

Labels with subequations [duplicate]

I would like to align the equation like this but instead have the label (40.a) and (40.b) for the last two lines. I don't know how to do this with subequations because of the \times\left{ that should ...
1
vote
1answer
23 views

Table caption not left aligned in revtex

I am currently writing an APS article and use: \documentclass[% reprint, amsmath,amssymb, aps,nofootinbib, ]{revtex4-1} % \usepackage{graphicx} \usepackage{dcolumn} \usepackage{bm} \...
-1
votes
0answers
39 views

Paragraph ended before \align* was complete

I already use suitable package but it still error below \end{align*} at Table 9. help me please \begin{align*} {v^*}A_{1} & =\sqrt{\frac{1}{3}[(0.05-0)^2 + (0.16-0)^2 + (0.40-0)^2]} \\ & +\...
0
votes
1answer
25 views

Beamer two column overlay display aligned equations right column first then left

I am trying to setup an overlay for a frame where I would like to display the list of equations inside aligned env inside the right column first, followed by list of equations inside aligned env ...
4
votes
1answer
52 views

Mysterious blank space appears in text when align evironment followed by figure environment

When using an align environment and subsequently a figure environment in Latex code in the resulting pdf appears suddenly a blank space where in code the figure environment resides. Why does this ...
3
votes
1answer
42 views

Making my equation flush left

I am trying to make the first 3 lines of this equation flush left. How can I do so? Also, is there an easier way to enter the parentheses and have the size I want? If I don't use the \left( and \right ...
1
vote
1answer
17 views

Reproduce right-align behaviour of `multline` inside `align` environment using LyX

The multline environment is great for long equations. For example, \begin{multline} First line of my long equation \\ second line of my long equation \end{multline} produces output in which the ...
2
votes
1answer
64 views

Shrink equations horizontally to fit surrounding tcolorbox, compatible with align* commands

I'd like to put frames around equations in my beamer slides. For this purpose, I use the package tcolorbox. I use the macro \fiteq{} that I found somewhere else on this site to shrink overlong ...
7
votes
5answers
1k views

Increase row height in align* cases environment

I'm trying to use cases to present some equations with fractions, and finding that the lines are too compressed to be easily read. Is there a way to increase both the spacing between lines and the ...
1
vote
1answer
26 views

How to align the first line in “align*” to the “item” counter

\documentclass[12pt,a4paper]{article} \usepackage{amsmath} \usepackage[more]{tasks} \NewTasks[ counter-format={tsk[1])},%%1,a,A,r,R label-format=\bfseries, label-width=1.5em, label-align=left, %% ...
19
votes
6answers
10k views

Vertical alignment of align* in enumerate

Related (but not the same): Align number from enumerate with equation Displaying an equation in a list Earlier today I asked a question about aligning equations in an enumerate environment and ...
1
vote
1answer
42 views

Alignment with an aligned environment in an align environment

I have an expression of the sum of the binomial coefficients in the polynomial expansion of (x - y)^{4}. (1 is substituted for x and y.) The equivalent expressions for this sum is to be written on ...
2
votes
3answers
110 views

How to hide equation number with using align

I wrote the following to print a mathematical equation, but I do not need the number of equation to be appeared: \documentclass[conference]{IEEEtran} \usepackage{amsmath} \begin{document} \begin{...
3
votes
2answers
24 views

Trouble centering align*

I am having problems center text that has been aligned. For some reason the second align is not centered. Here is an image of the output. Below is my code... words \begin{align*} 1&=ak_1+...
2
votes
1answer
33 views

Aligning long broken equation (with brackets also split over multiple lines)

I have long equation $F=\left\{ abcdef \right\}$ which needed to break line at halfway. To do it I use \begin{multline}. \begin{multline} F = \left\{ abc \right.\nonumber\\ \left. {} + def \...
1
vote
1answer
26 views

Aligning equation using images with another equation centred on images

Basically, I have an equation that uses only images as the "variables" so-to-speak; it's just an illustration of image subtraction. So what I would like to do is have this equation (that I have ...
1
vote
1answer
29 views

Cannot remove displayskips in beamer

The space that appears in the PDF above and below my align* environment is way to large. According to Remove vertical space around align, one of the two commented-out lines should remove it (at least ...
1
vote
1answer
35 views

Split text inside align*

I have a function definition like this: inside a beamer presentation. The text inside the set definition to which the function maps to is very long and does not fit on the slide. I want to split it ...
6
votes
3answers
8k views

\underbrace and align environment

I want to typeset a proof and want to emphasize what I do in each step e.g. by underbracing an equal-sign when I substitute a variable. In addition I also want to align equal-signs in every line. ...
2
votes
1answer
58 views

Latex missread the equation and provides an error

I have an equation to be written. The equation I expect to have is this one: \begin{align} M &= \left\{ \begin{array} \sqrt{1+0.6275 \frac{l^2}{Dt} -0.003375 \frac{l^4}{D^2 t^2}} if \frac{l^2}{...
1
vote
2answers
49 views

Ragged alignat environment

First time posting here, let me know if I can make the question clearer/better. Below is a simple example of what I'm trying to accomplish. \documentclass{article} \usepackage{amsmath} \begin{...
1
vote
1answer
64 views

Beamer: Split Align Environment Across Multiple Slides

I have the following slide: \documentclass{beamer} \mode<presentation> { \usetheme{Madrid} \usecolortheme[RGB={0,0,0}]{structure} } \usepackage{amsmath,amsfonts,graphicx} \usepackage{...
4
votes
0answers
52 views

Spacing around gather when math color is given

I am trying to get rid of the spacing around gather/align environments in a Beamer presentation. As usual, I set the abovedisplayskip & friends registers to zero with \g@addto@macro\normalsize. ...
3
votes
1answer
27 views

Row spacing in align environment

In the folling example there is not enough space to list all sets begind the "forall" in one row. Moving a part to the next row creates an unnecessary space between the rows (see picture). How to make ...
2
votes
1answer
40 views

Align equal sign in a big block of equations

I would like to align the equal signs in this block of equations. Somehow, the first equal sign is well aligned, but the second is not. Am I missing something obvious? Thank you very much \...
1
vote
1answer
47 views

Left align abstract, title and authors in amsart class

I would like to re-align my title, authors and their addresses to the left of the document in amsart class. I found an example, but it did not work. \documentclass[11pt,a4paper,reqno,english]{amsart}...
1
vote
1answer
24 views

Space before and after align

I am curious if there is a "correct" way whether to add a space before/after the align: Thus (Should there be a space here?) \begin{align*} \end{align*} (Should there be a space here?) Since $\...
0
votes
1answer
18 views

How to align an expression in an amsmath environment

If I write \begin{align} A = <long string of variables> \\ =& <another long string of variables> \end{align} This works and aligns the equal signs and makes the total block of two-...