{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

1
vote
1answer
16 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
56 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
58 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
40 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
101 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
1answer
44 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
327 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
196 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
82 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
54 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
30 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
68 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
42 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
28 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
55 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
38 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
30 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
93 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
163 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
72 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
88 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
85 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
166 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
40 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} ...
2
votes
1answer
58 views

Multiple line matrix equations

I am trying to fit a rather large matrix equation into a document, but it is so large that I cannot fit it onto a single line. Moving the end of the equation onto a new line appears to be the only way ...
1
vote
1answer
17 views

Alignment and line breaking in alignment environment

My MWE: \documentclass[]{report} \usepackage{amsmath} \begin{document} \begin{align} \dot{V} &=\, \frac{1}{\gamma_{2,1}}\sigma_{2,1} \dot{\sigma}_{2,1} + \frac{1}{\gamma_{2,2}}\sigma_{2,2} ...
5
votes
1answer
67 views

Multiple alignment in align environment

My MWE: \documentclass[]{report} \usepackage{amsmath} \begin{document} \begin{align} \dot{V} =&\, \frac{1}{\gamma_{2,1}}\sigma_{2,1} \dot{\sigma}_{2,1} + ...
-1
votes
2answers
80 views

Confusing missing $ [closed]

Can anyone help with this. I'm not sure at all what I'm doing wrong but i get an error Missing $ inserted. $ on the 2nd line with c)\ The rest of the text works fine and there are ...
0
votes
1answer
40 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 ...
4
votes
1answer
36 views

Multiple indented sub-equations within an align environment

\documentclass{article} \usepackage{amsmath,amssymb} \begin{document} \begin{flalign} & E=MC^2 \\ \begin{flalign} & U = \frac{1}{2} + bh & V = \frac{1}{2} - bh & B=H \\ % want to ...
4
votes
2answers
66 views

How to align two equation arrays when combined with lateral braces

I want to have two equation arrays including lateral braces aligned properly. So far I got \documentclass[12pt]{article} \usepackage{amsmath} \begin{document} \begin{align} \overline{z}_k^{[m]} \sim ...
0
votes
0answers
22 views

An align environment for too many lines of equations [duplicate]

It seems that if I write too many lines of equation within an align environment after some text, that environment will not span more than one pages, and leave blank at the bottom half of the previous ...
2
votes
2answers
94 views

Left-aligned equations

My problems are: 1 the equations in the align environment should be left-aligned (not centered) 2 there should be no vertical space before the align environment \documentclass{scrbook} ...
3
votes
2answers
59 views

Split equation in an alignat object

I have a set of equations that I would like to align the start of the equations, the quantifiers, and in the case of equation 1, the + and = sign. There are two problems I have not been able to ...
2
votes
1answer
80 views

Align and boxed dont work together

When I try to input: \begin{eqnarray*} w(t) &=& \frac{1}{2}Cv^2(t)\\ \boxed{w(t) &=& \frac{1}{2}C \frac{q(t)^2}{C^2}}\\ w(t) &=& \frac{1}{2}\frac{q(t)^2}{C}\\ w(t) &=& ...
3
votes
1answer
44 views

how can I get the thicker x symbol like the following picture?

I try the \boldsymbol{\times}, but it doesn't look right.
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} ...
1
vote
3answers
47 views

Aligning definition of a function that maps into a function space

I'm writing a proof that the dual of l^p is l^q, and in that process, I define a function from l^q to (l^p)*. My current function definition looks like this: \begin{align*} ...
1
vote
1answer
37 views

Align equation multiple columns

Is it possible to align an equation like this: I tried this, but: \begin{align*} & u_a(t) &= u_e(t) - u_{R1}(t) \\ & &= u_e(t) - R_1 \cdot i_1(t) = u_e(t) - ...
4
votes
1answer
50 views

aligned-environment in tabularx - fail to align vertically

I try to have a simple tabularx-table in which the cell content is vertically aligned to the top. While this works as expected for text, two aligned-environments in adjacent cells are vertically ...
1
vote
2answers
165 views

How may I align the following mathematical statement 'horizontally'?

I appreciate if someone could provide me an answer with coherence. \documentclass[11pt,a4paper]{article} \usepackage{blindtext} \usepackage{mathtools} ...
1
vote
1answer
114 views

I have this error: Paragraph ended before \align was complete. What can i do?

Hello I have this code from LaTeX, but it didn't work? Any idea? I would appreciate if somebody can help me. :) \begin{align} \begin{split} h'(v) &= ...
0
votes
0answers
18 views

Align text and image topwise [duplicate]

I would like to top align an image with a text. The problem is that the text is aligned with the baseline of the image. The current code I have is this: \documentclass[margin,line]{res} ...
1
vote
1answer
31 views

Alignment of contents similar to tabular in a multicol environment

I have placed a multicol environment in the middle of a page with 3 columns as you can see in the followning image: In each column I want the contents to be aligned one under the other as if there ...
4
votes
3answers
93 views

beamer with equation or align : replace part of equation and keep alignment

I'm creating a presentation with the beamer class. Assume I want to write this : \begin{equation} f(x) \only<1>{= \cos(x)} \only<2>{= 2\cos(x)} \end{equation} I have a ...
2
votes
2answers
53 views

Aligning multiple column equation on left

I would like some equations aligned to the left, inline with text, with equation numbers aligned to the right, and with a middle column aligned with itself. The solution here and other solutions ...
1
vote
3answers
77 views

Aligning multiple places in equations using align

My question is simple. I've played around with the & symbol to align my equations neatly under each other, but I just can't get it to look nice. This is the closest I've got: ...