{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
576 views

Multicolumn/multirow inside align

Is there a way to use \multicolumn or \multirow inside an array environment which is inside align environment? For instance, the following piece of code gives me an error. What is the way around this? ...
5
votes
4answers
85 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
1answer
52 views

Justified alignment for equations

I am writing a IEEE journal paper full of equations and with center alignment the paper looks so messy. I needed to justified align at least those that are coming successively one after another. I ...
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 ...
3
votes
2answers
108 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 ...
5
votes
2answers
58 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
40 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 ...
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
95 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
25 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
33 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}% ...
2
votes
2answers
66 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. ...
3
votes
2answers
44 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) \\ ...
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 ...
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
32 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. ...
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 ...
2
votes
2answers
176 views

Align equations inside tabular

How can I align equations inside tabular? I want to place few lines of equation by side of the picture. But it turns out that I cannot use \& in order to shift equals signs to be one under ...
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
39 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: ...
8
votes
3answers
12k views

Big \sum instead of small \sum in array environment

\begin{align*} \begin{array}{c} \min \: A = \min \: \sum_{i\in B} C_i \\ \\ \min \: D = \min \: \sum_{i\in B} \pi_i \cdot F_i \end{array} \end{align*} See http://i.stack.imgur.com/TFIfY.png for an ...
3
votes
2answers
51 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 ...
6
votes
2answers
11k views

Aligning using flushleft and flushright

I am trying to create one column to the left side by side with another column to the right. The column to the left is labeled "Examples of like terms:" and the column to the right is labeled "Examples ...
20
votes
4answers
21k views

Aligned equations in LaTeX

I have a long equation in LaTeX, which I need to break up into more lines. I've done this, although its not quite what I was looking for. Here is a MWE showing my problem: ...
2
votes
2answers
117 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} ...
9
votes
4answers
340 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
35 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} ...
2
votes
2answers
135 views

Align equilibrium arrows with mhchem

I have the following code made with the mhchem package: \begin{align} \ce{CH3COOH + NaOH <=> CH3COONa + H2O} \\ \ce{H2O <=> H^{+}_{(aq)} + OH^{-}_{(aq)}} \end{align} Which ...
6
votes
2answers
70 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 ...
0
votes
0answers
15 views

Using {align} for equations affecting titlespacing settings

I have adjusted the whitespace around my section headings by using the following code: \titleformat{\section}[display]{\color{black}\normalfont\sffamily\bfseries\large}{}{0cm}{\numb} ...
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 ...
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 ...
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: ...
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*}}