{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

4
votes
4answers
54 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 ...
0
votes
0answers
22 views

Strange vetical spacing in book Class [duplicate]

I am using the book class for my thesis. However, the default alignment is very strange as shown in the following sample. As it shows, extra space was added between lines so that the content is ...
5
votes
2answers
55 views

span and align large multi-line equations

I have a set of lengthy equations and I want to span them on two columns. The code I wrote is \begin{figure*} \label{eq:eq1} \[ E_{\mathrm{access}} = E_{\mathrm{read}} + E_{\mathrm{write}} ...
1
vote
1answer
19 views

Cases behaving in a very eccentric manner

I'd be very glad if someone can tell me why is cases behaving ridiculously in the following code. \begin{align} I^*= \begin{cases} 0, & \left(\mathbb{E}\left[\theta_c|C=1\right] < \theta_i \ ...
1
vote
1answer
39 views

Quantum Circuit Alignment

I have prepared the following \begin{equation} \Qcircuit @C=1em @R=.7em { & \gate{H} & \ctrl{1} & \gate{H} & \qw \\ & \gate{H} & \targ & \gate{H} & \qw }= \Qcircuit ...
3
votes
2answers
105 views

Align Multiple Equations with multiple expressions

Here what i have done so far. I want the middle space to reduce a bit. \documentclass[10pt]{article} \usepackage{amsmath, amsthm, amssymb} \begin{document} \begin{align} \Vert\mathbf{R}\Vert_F^2 ...
0
votes
2answers
36 views

how to vertically top align a slide in beamer? [duplicate]

The following beamer slide (and all other slides) have the text vertically centered. How do I get it to appear at the top of the slide? \documentclass[sansserif,mathserif]{beamer} ...
2
votes
0answers
18 views

Beamer - align with LHS and RHS replacement [duplicate]

I'm writing an presentation of the project where I took a "standard" equation and modified it slightly. I would like to therefore show this by replacing the standard equation with its modified ...
2
votes
2answers
94 views

System of equation left aligned

There is a system of equation. How to align it on the left? (second line should be started right under the first line) My code of this: $\begin{equation} \left\{\begin{aligned} \hat a \sum x^2_i + ...
3
votes
5answers
72 views

Multi-line equation with split

I have the following problem: Obviously I want the = to be aligned and I need two lines for the equation following the third =. Also I'm not so sure whether I used the \big{[} and \big{]} commands ...
2
votes
0answers
24 views

Correct typesetting of aligned (or multiline etc) equations after a pagebreak

I was writing a block of mathematical formulas using the align environment. While I was writing these aligned equations I reached a pagebreak and the whole block moved to the next page so it made me ...
2
votes
2answers
42 views

How to align on center the title of a section and the rest of the text fully justify?

I would like to align my title on the center but have the rest of the text justify. I would like to do this on the top and not in each specific section. packages that i am using \documentclass[14 ...
4
votes
1answer
32 views

Amsmath double line equation alignment centered

I need an equation that consists of three parts (or one equation including 3 equations in total), it should look like this: My code for now gives me the following: So I would like to have the two ...
3
votes
3answers
54 views

Label four equations on one line

I have an equation in an align environment that I wrote as \documentclass{article} \usepackage{amsmath} \usepackage[pdfencoding = auto, psdextra, bookmarksdepth = 4]{hyperref}% ...
3
votes
2answers
43 views

How do i format the equations so that they show up aligned?

I have \begin{eqnarray*} \phi(n) = \phi(pq) = & pq - (\# of multiples of p) - (\# of multiples of q) + (\# of multiples of pq) \\ & = & pq - q - p +1 \\ & = & (p-1)(1-1) \\ ...
1
vote
2answers
33 views

\align does not work

\begin{align} At most \euro 2 million should be invested in renaissance \\ At least \euro 1.5 million should be invested in modern art \\ The investment in contemporary art should be at least ...
0
votes
0answers
23 views

Aligned environment and itemize

How can I fix the following problem: The item (a) is vertical centered with the aligned environment \documentclass[BCOR=3mm,11pt,headsepline,footsepline,openany]{scrbook} \usepackage[ngerman]{babel} ...
1
vote
2answers
31 views

Is it possible to use \underbrace across align* environment?

I have two sets of equations in an align* environment and they are all just how I want them, but I want to draw an underbrace from the left bottom equation to the right bottom equation, but it throws ...
3
votes
1answer
29 views

Displaying a set of equations lined up by first equals sign

I am trying to display the content of the following, central, but so that the first equals sign in each lines up. This is with ones of the sugested ways to do this that I found, but it did not work. ...
10
votes
5answers
1k views

Defining `$$$ $$$` to align

I would like to define $$$ \zeta(s) = \dfrac1{1^s} + \dfrac1{2^s} + \cdots $$$ as a short hand for \begin{align} \zeta(s) = \dfrac1{1^s} + \dfrac1{2^s} + \cdots \end{align}` How should I go ...
2
votes
2answers
100 views

alignment equally after a particular symbol

I want to list something like this but all : symbols should be at same horizontal space like the all other items in the list A : jkajdkpajd Bnk : odoida kaak ka: asjad How to achieve ...
1
vote
2answers
146 views

Aligning of “=” sign in three-row formulas

How to align a "=" in the last formula that it was under the last sign "=" of the second formula. Here is my attempts \begin{align} E=\dot{\theta}\frac{\partial L}{\partial \dot{\theta}}-L &= ...
1
vote
1answer
38 views

How to align enumerate and add answer to exercises?

I want to alight enumerate my Exercises. My old way is \begin{ex} Find the volume of the following pyramids $ABCD$ \begin{enumerate}[\quad 1)] \item $A(1; 2; 3)$, \quad $B(2; 1; -2)$, \quad $C(-1; ...
1
vote
1answer
43 views

Align tikz picture on the right side of the screen, next to text

I want to have some code, and then on the right side of it a tikz picture. I tried 'flushright' but that didn't work. This is my code: \documentclass{article} \usepackage{amsmath} \usepackage{tikz} ...
4
votes
1answer
65 views

A certain alignment for displaying systems of linear equations

I have several equivalent systems of linear equations that the following code displays. I would like to have them vertically aligned at the equals signs. I found the following code on this web site ...
1
vote
3answers
67 views

Linebreak inside 'align'

I tried to linebreak inside math mode which did not work. So searching for that led me to try using 'align' instead. So I'm trying to break a line inside align with the following code: ...
3
votes
2answers
50 views

Problem with align inside tabular environment when using xcolor

I'm trying to build a table with multiple numbered equations inside, hence I used the align environment. On the other hand, I need to color some cells, so I included the xcolor package with the table ...
2
votes
2answers
116 views

Put a box and shade it around aligned equations

Given: \documentclass[12pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{mathtools} \usepackage{amssymb} \author{Sam Keene} \title{Notes} ...
2
votes
2answers
65 views

How do I change font size in plain TeX tables featuring math (fontch producing unexpected results)

I've been having difficulty with setting the font size in plain-tex tables (i.e. haligns). I want to set the tables to use seven or (preferably) eight point font, including tables which contain math. ...
9
votes
4answers
338 views

How do I avoid eqnarray?

We have been told to avoid eqnarray and use align instead. The output of eqnarray here: \newcommand{\Prob}{\operatorname{\mathbb{P}}} \newcommand{\tp}{\operatorname{tp}} ...
4
votes
4answers
214 views

Spacing after equals sign in align

I find that I have unpleasant spacing between the equals sign and (e.g.) the exponential function in this particular case, while using the align environment. I have a long expression which has to be ...
4
votes
1answer
98 views

missing } inserted, Displaying aligned matrix equations, yet braces balanced

I am trying to display in math mode two system equations aligned \documentclass[9pt,a4paper,twocolumn]{article} \usepackage[margin=1.5cm]{geometry} \usepackage[english]{babel} ...
3
votes
3answers
55 views

Center the second line of an equation

How do I get the following output? f a b c = <centered definition of f> g a b c d = <centered definition of g> These are definition of functions, but the bodies are big; I would ...
1
vote
1answer
34 views

How to make an align environment with multiple equations per line and one equation reference? [duplicate]

I would like to use an align environment with a single equation number but with multiple equations per line. For example, the following two pieces of code work: begin{align} a&= 1 & b&= 2 ...
4
votes
1answer
34 views

Cannot get align* to work

I'm trying to get \begin{align*} \cos(A) &= \cos(SDS^{-1}) \\ &= \sum\limits_{n=0}^\infty \frac{[SDS^{-1}]^n}{n!} \\ &= I-\frac{\left(SDS^{-1} ...
6
votes
2answers
69 views

align: using aligned within align troubles

I would like the first two pieces in align look as though they are the only two items in the align environment and the rest to align at the equals signs and separated by some space for the different ...
3
votes
1answer
52 views

center align equation

I try to align a multiline equation, but im getting a large space. \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{mathtools} \begin{document} \begin{align} AAAAAA &\, yyyyy ...
3
votes
1answer
30 views

How do I left indent my equation inside the align*?

I would like to left align my equation..... The sample code is given below. \documentclass[12pt,a4paper]{article} \usepackage{amsmath} \begin{document} \begin{align*} ...
2
votes
0answers
27 views

Issues with fractions and align [closed]

I'm really new to LaTeX, I only started last week and I'm having an issue with trying to align equations involving fractions. I want to align at the '=' but I am getting errors: ...
0
votes
1answer
67 views

how to add preface to table of contents?

I am trying to add a preface section to the table of contents, by using \addcontentsline{toc}{chapter}{Preface} This partially works. the preface is added, but without the page number for it (in ...
2
votes
1answer
51 views

Align text to left, equation in center

I want to write down some equations, with some commentary between the equations. However, the equations need to be aligned and I want the commentary to be aligned to the left. My code is: ...
0
votes
1answer
31 views

Problem with \newcommand{\nal}{\end{align*}} [duplicate]

Why do these newcommands result in error when used? \newcommand{\bal}{\begin{align*}} \newcommand{\nal}{\end{align*}}
5
votes
3answers
97 views

Tricky alignment within an equation with a case environment

I couldn't figure out how to do the following alignment: \begin{equation} \begin{aligned} \textrm{Row I:} \qquad & A = 1, \quad j = 1, 2, \ldots, N \\ \textrm{Row II:} \qquad & A = ...
6
votes
4answers
223 views

Alignment in matrix (bmatrix)

Here is a MWE: \documentclass[12pt,a4paper]{article} \usepackage{amsmath} \begin{document} The reparameterisation is \begin{equation} \label{eqn:linear_ssK3} \begin{matrix} s & = ...
3
votes
3answers
76 views

Aligning equations with left and right comment

I'd like to align multiple equations below each other such that the central operator is always centered, but have a column for commenting on the right and a column for \iff-arrows and ...
1
vote
4answers
90 views

Different alignment of separate \align environments

I made a document with two different align environments. \documentclass{scrartcl} \usepackage{amsmath} \usepackage{color} \usepackage{import} \usepackage{graphicx} \usepackage{wrapfig} ...
2
votes
4answers
94 views

split and align long equation

The following code is used to split a long in-equation. \begin{align} (\sum^n_{i,j=1}\frac{(S_{t})_{ij}\norm{W^T_{t+1}x_i-W^T_{t+1}x_j}_2^2}{2\norm{W^T_{t}x_i-W^T_{t}x_j}_2} - \nonumber \\ ...
8
votes
4answers
179 views

Alignment of table entries: the case of negative numbers

Assume that we have a table that has positive and negative entries. My question is simple: how can we have the number alignment to start from the actual number and not the negative (-) symbol? Let ...
1
vote
0answers
16 views

Horizontally align \vdots with equal signs in aligned environment [duplicate]

I have a number of equations aligned at the equal sign. I insert a line containing just \vdots to indicate a bunch of steps and then equations again. How I can make the \vdots align with the equal ...
2
votes
1answer
51 views

Horizontally aligning equations with overset text

Say that for example I have the following set of equations for which I want to use overset to clarify what equations are used: \documentclass{article} \usepackage{amsmath} \begin{document} ...