{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

5
votes
2answers
111 views

Create a blank space the same size as text, equations etc

I would like to create a space in my document the same size (height and width) of a certain set of text. (For context, it will compile the TEXT when I want solutions and SPACE when I only want the ...
3
votes
1answer
43 views

Arrow to constant in align environment using tikz

this question is building of the elegant solution posted here, offered by Bernard. I wanted to get an alternate solution using tikz. Here is the code with my failed attempt (commented out) trying to ...
2
votes
2answers
30 views

text in align-environment

Is there a way to coordinate the space here? \documentclass[a4paper, 12pt, oneside, titlepage]{scrbook} \usepackage{amsmath} \usepackage{amssymb} \usepackage{colortbl} \begin{document} \begin{...
2
votes
1answer
24 views

Problem with the space in align-environment

May someone help me? Why is there such a great space between the equal sign and the rest of the equation? I hope you see what I mean...Is there a way to shorten this? And may I also make a greater ...
1
vote
1answer
38 views

Arrow to constant in align environment

I wanted to know how I can point to a variable in the align environment so the I can get an output that looks like this: Here is the code that I have so far: \documentclass{book} \usepackage{...
2
votes
2answers
65 views

How to specify Align separator with & in LyX?

I need to add & just before = in the aligned environment in LyX to specify the deliminator. So How to specify the deliminator with & in the aligned environment with LyX?
1
vote
1answer
32 views

Tabularx Misplaced \noalign but used to work before?

My table used to work before and all of a sudden I am having an error that says I misplaced \noalign when I changed some inputs into my tables. Would someone please help me take a look at the code ...
2
votes
1answer
27 views

problem with align* and labels

I have this code: \begin{align*} \label{eq:svc2} \stackrel{min}{\omega,b,\xi,\rho} \-\hspace{20pt} & \frac{1}{2} \omega^T\omega - \nu \rho + \frac{1}{l} \sum_{i=1}^{l}{\xi_i} \\ \text{subject to}...
4
votes
3answers
135 views

Alignment of multiple equations and their comments

I need to center-align a series of equations and then align their comments (which are themselves to be right-justified (except not all of them!). I'm slightly overwhelmed by the numerous options ...
3
votes
2answers
35 views

How can I align an equation with the & placed inside an \underbrace?

I have an aligned equation that looks like: \begin{align*} 1 &+ 1\\ 120 &+ 120 \end{align*} I would like to add an underbrace to one of the lines, but keep the alignment. However, when I ...
0
votes
1answer
26 views

How can I change only the text margins to be inside the equation and section numbers?

How can I change only the text margins to be inside the equation and section numbers? Something Like this
2
votes
1answer
44 views

Equation Alignment with Hierarchical Left Alignment

I was able to produce this set of left-aligned equations with aligned indenting to emphasize hierarchy: with this code: \begin{align} x &= y + z \\ &\mathrel{\phantom{=}} y = a + b\\ ...
1
vote
1answer
78 views

error using lstlisting inside minipage inside align*

I am trying to use a lstlisting environment inside a minipage, inside an align* (fromo amsmath)... However, lualatex throws an error. This is the minimum working examp \documentclass{article} \...
1
vote
2answers
166 views

Align Equations with the equals sign

I am trying to align two equations, however they are not aligning at the equals sign but at the comma at the end of the equation. How can I change this? \begin{align} A_{ij}^y= \begin{cases} ...
0
votes
3answers
82 views

Obtaining left aligned equation [duplicate]

How can I align this equation to the left? \begin{equation} \beta_1=(n_{20}+n_{02}) \\ \beta_2={(n_{20}-n_{02})^2}+4{n_{11}}^2 \\ \beta_3={(n_{30}-3n_{12})^2}+{(3n_{21}-n_{03})^2} \\ \beta_4={(n_{30}+...
5
votes
1answer
63 views

Enumerated list with custom label, containing aligned math equations

How do I write 4°? When I use align* or any other environment the equations become centered and I want all of them to be in a fine line just like on the picture. Here is what I tried: $(i)$ $\Delta^...
1
vote
1answer
47 views

Aligning a table vertically and horizontally

I need to place a table in the centre of a page, here is the code for the table which just centres the table horizontally, but not vertically. \documentclass[12pt,a4paper,titlepage]{article} \...
2
votes
1answer
31 views

Set default multiline environment to align

In LyX, when I press Ctrl-Enter, I get eqnarray, which is generally deprecated. Is there a way to change the function of the Ctrl-Enter behavior to align?
3
votes
2answers
44 views

Aligning two columns in one equation!

Consider the following \documentclass[12pt]{article} \usepackage{amsmath} \usepackage{amssymb} \begin{document} \begin{align} X_{n}=\begin{cases} X_{n}^{I}= t_{1}\nu_{1}^{n}+r_{1}\...
2
votes
1answer
34 views

Wrapping an equation around a list

Is it possible to apply a single centered equation # to a list? I'm using aligned wrapped with equation in the first list but 1) it requires a fair amount of manual spacing to make it look right and 2)...
2
votes
2answers
46 views

splitting and numbering sentences

I have the following code : \usepackage{amsmath, amsthm} \begin{document} \begin{align} \begin{split} Case 1:\\ \text{5 is a square modulo q and 29 is not a square modulo q ...
1
vote
0answers
37 views

Strange behavior when using brackets in aligned environment [duplicate]

At ran into what at this point seems like a bug to me. When using brackets around a term before the first equality in an aligned environment, the enclosed quantity simply disappears from the output. ...
4
votes
1answer
33 views

Trouble with the size of parentheses and spacing in an `align` environment when using the `mleftright` package

I am having some trouble with the mleftright package. For a particular math paper that I am working on, I created a macro that would allow me to write functional notations whose parentheses ...
3
votes
2answers
224 views

Make formulas start at the same point

I would like to list a few formulas which I have done as following: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{enumerate} \item \textbf{Hommes and in 't Veld AR(1) model:} ...
7
votes
2answers
100 views

Cases alignment and displaystyle for all environments

please consider following "minimal" code: \documentclass{article} \usepackage{amsmath}% http://ctan.org/pkg/amsmath \begin{document}\begin{align*} (p's_y)(z)&=(ps_xs_y)(z)=\\ &=\begin{...
0
votes
2answers
28 views

Center the middle part of a three part equation in align environment

I have an inequality in a align environment: \documentclass[xcolor={dvipsnames}]{beamer} \usetheme{Warsaw} \usepackage[utf8]{inputenc} \usepackage[frenchb]{babel} \usepackage[T1]{fontenc} \...
2
votes
1answer
60 views

Change fontsize of an array within an align environment

I am trying to label several lines at once in a very long equation. From this question I have come up with the following minimal example: \documentclass{report} \usepackage[onehalfspacing]{setspace} \...
2
votes
2answers
91 views

Horizontal positioning of vertical arrows between lines in an alignment

I'm trying to get a construction like \documentclass{article} \usepackage{amsmath,mathtools} \begin{document} \begin{align*} a &= b \\ &\Downarrow \\ a &= c \end{align*} \end{...
1
vote
0answers
56 views

Scope or override \pause?

I have some lecture slides with multi-part problems. I would like for the students to be able to see the entire problem laid out, and then fill in the answers step-by-step. This is doable as long as ...
3
votes
2answers
90 views

Somewhat customized “align” environment?

Neither of the two "versions" below gives me what I would like. The first one is somewhat tolerable. However, I would like the two instances of \sum_{(A\,:\,|A|=k)} to be aligned with each other, ...
1
vote
1answer
129 views

Mathematical formula alignment

I am trying to align my formulas and at the end of each formula I want to see number. Since I would like to explain all formulas in my report. However after making following changes, I got so many ...
3
votes
1answer
41 views

Left align three columns in Latex

I have an equation in multiple lines. I want to left-align the equations in three columns. How can I do this in Latex? I am currently using \begin{equation} \begin{aligned} &Column1& &...
2
votes
1answer
64 views

Using “theorem”-like numbering for non-theorem entries

This is perhaps a 2-parter in that 1) I'd like to have certain equations numbered using the theorem counter (and its associated "style") rather than that built into \begin{equation}. Per MWE, equation ...
2
votes
2answers
45 views

Problem with align alignment

I have written the following code: \mathbb{R}^n\times\cdots\times\mathbb{R}^n&\rightarrow \mathbb{R}^m\times\cdots\times\mathbb{R}^m \rightarrow \mathbb{R}\\ (v_1,\cdots,v_k)&\mapsto (f_*(...
3
votes
2answers
75 views

Aligning the comments in align mode

I was trying eqnarray to align inequalities but I kept getting the error of missing $ inserts, so I am trying now align, but now I would like to align the comments This is the code \begin{alignat*}...
4
votes
1answer
56 views

Extra Space Before align* and Not Display Equation

There is an extra space between the section and the align* parts of the page. This does not occur if the equation is simply enclosed in \[...\]. \documentclass{article} \usepackage[fleqn]{amsmath} \...
2
votes
1answer
94 views

Make entire equation sans-serif

So, I'm trying to use something like this: \begin{align*}\mathsf{ a & b & c }\end{align*} Unfortunately, I'm getting weird errors like this: ! Missing } inserted. <inserted text> }...
1
vote
1answer
43 views

aligning equations in latex problem [duplicate]

I am using the amsmath package in latex to align three equations. \begin{align*} &x_{1} - 3x_{2} + 4x_{3} = -4 \\ 3&x_{1} - 7x_{2} + 7x_{3} = -8 \\ -4&x_{1} + 6x_{2} - x_{3} = 7 \\ \...
1
vote
2answers
62 views

How to typeset a “compact” cases environment

What's the proper way to typeset a cases environment in a compact way? I tried the following: \begin{equation*} \setlength{\jot}{0pt} \lambda = \tiny \begin{cases} -8.30767 x^3+702.515 x^2-1905.35 ...
1
vote
0answers
29 views

Separate numbering of cases within align [duplicate]

I have one instance of cases within the align environment, as follows: \documentclass[a4paper]{article} \usepackage{amsmath} \begin{document} \begin{align} f(x) &=1x \\ g(x) &=\begin{cases} 2 ...
1
vote
2answers
54 views

How can I align lines to the right except the first in a multiple line equation?

I have always tried to achieve this but after a few tries decided to skip and concentrate on writing instead of solving it. I am using align environment and trying to align the multiple lined ...
2
votes
1answer
41 views

Left-align equations not working

I am trying to left-align some equations so they line up nicely. I'm using align with [fleqn] per this question and setlength per this question. But it doesn't seem to have worked. I tried the fleqn ...
4
votes
1answer
110 views

Aligning chemical elements in a reaction equation

As pictures tell the issue better than I could I'm just gonna insert a screenshot of the problem right off the bat. My problem is concerning the undesired whitespace between the second column of ...
1
vote
1answer
44 views

How do I remove extra spacing on a new page following an align*?

I have the following code: %... \begin{proof} Let $P=(x_P, y_P, z_P)$ be a fixed point on the plane, $R$ a fixed length, and $X=(x,y,z)$ a variable point such that $XP=R$. As $X$ varies, it is ...
5
votes
1answer
160 views

Column alignment in tikzcd

I am not sure whether this is possible or not. I would like to have some control on the horizontal alignment of columns in tikzcd. In particular I would like to be able to mimic (on some of my ...
5
votes
6answers
155 views

Breaking equations within the align environment

I currently have these two equations, but they are too long to fit on one line: \begin{align*} [((a_0, a_1, a_2)+(b_0, b_1, b_2)) + (c_0, c_1, c_2)] &= [((a_0 + b_0, a_1 +...
1
vote
0answers
56 views

\eqref inside \align with \usepackage[overload]{empeq} [closed]

I want to put\eqref inside \align. For example \documentclass{article} \usepackage[english]{babel} \usepackage{amsmath} \usepackage[overload]{empheq} \begin{document} \begin{equation}\label{eq1} a=...
0
votes
1answer
47 views

Aligning text and formulas in an inference table

I have the following 'table': \begin{align} 1.&\gamma &\text{Hyp}\nonumber\\ 2.&\neg \gamma &\text{Hyp}\nonumber\\ 3.&(\gamma\implies(\neg\alpha\implies \gamma))&\text{AX1}\...
3
votes
3answers
78 views

\savebox forgets its content across columns inside align

I want to save part of an equation, which is to appear in a single column in a multicolumn align environment. It works as long as I \usebox inside the same column, otherwise it appears blank. Here's ...
2
votes
1answer
51 views

How to manage the position of intertext within align

\begin{equation*} \begin{aligned} E(X) & = \sum_{x=0}^{\infty}x\frac{e^{ - \lambda }\lambda ^x}{x!} \\ & = \sum_{x=0}^{\infty} \frac{e^{ - \lambda }\lambda ^x }{(x-1)!} \\ & = \...