{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

6
votes
1answer
539 views

Reproducing Gauss' famous proof

The following appears in a text (in the context of generalizing Gauss' famous proof): I would like to reproduce this, but I cannot figure out how to get the alignment down. I thought of trying to ...
4
votes
1answer
38 views

Align text in enumerate environment

From the code below, I wanted to be able to align the text in the enumerate environment like this: Thanks for your help. Here is the code that I have so far: \documentclass{book} ...
4
votes
2answers
26 views

Alignment of Quantifier

\begin{document} \begin{equation} \begin{split} \sum_{s \in S_i} x_s &= 1 \quad \forall S_i \in P \\ x_s &\leq \sum_{(s,t) \in R: t \in S_j} x_t \quad \forall S_i \in P, \ \forall ...
7
votes
1answer
240 views

Why don't these functions align perfectly with uniform spacing?

Thanks for the help. I don't see why the functions aren't aligning perfectly with uniform spacing. \documentclass[11pt]{article} \begin{document} \DeclareMathOperator{\csch}{csch} ...
0
votes
1answer
31 views

Error using amsmath aligned in multicolumn table

I have a table with some data. At the bottom, I would like to include two sets of aligned equations. I can do this as follows: \documentclass{report} \usepackage{amsmath} \begin{document} ...
5
votes
2answers
106 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
41 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
27 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} ...
2
votes
1answer
23 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
37 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} ...
2
votes
2answers
42 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
30 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
24 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 ...
4
votes
3answers
132 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
34 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
0answers
40 views

How do I make the text body go around a tikz picture flushed right?

I would like the text to start at the same height as the picture, but I want the picture to be flushed right. It's not directly associated with the text, but rather more like a visualization tool for ...
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
38 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
67 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
158 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
66 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} \\ ...
5
votes
1answer
56 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)$ ...
1
vote
1answer
44 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
25 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
42 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}= ...
2
votes
1answer
33 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
votes
2answers
44 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
30 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
214 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)=\\ ...
0
votes
2answers
25 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
42 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
62 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*} ...
1
vote
0answers
46 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
87 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
127 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
40 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
56 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
43 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 ...
3
votes
2answers
74 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 ...
4
votes
1answer
48 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
85 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
41 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
52 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
46 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
37 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
92 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
43 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 ...