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

Help with align environment and split

I would like some direction as to how to get my equations to align like this: Here is my code: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align} {\mathbf{u}} & = ...
1
vote
1answer
44 views

Aligned Equations With Itemized Number [duplicate]

I have been trying to make the aligned equations in the same line with item number. I have tried array, aligned, alignat, and eqnarray, but they dont work out for me. The picture is from align* ...
0
votes
0answers
23 views

How to align a set of equations in the left yet retaining the auto-numbering? [duplicate]

I have found many codes through which equations can be aligned in the left but the problem is it assigns either a single number to all the equations or no numbering at all. I want something like fleqn ...
3
votes
1answer
50 views

Geometry and Equation centering: strange behavior

I have found a strange "bug", where my equations do not seem to be aligned correctly when using the geometry package. I try to explain this behavior in more detail using this MWE: \documentclass[ ...
2
votes
1answer
99 views

Align Numbers in tabularx with standard deviation

I'm trying to make this table with numbers and standard deviation, how can I aligns the numbers properly? The spacing between numbers and st.dev is too high and the numbers are not aligned to the ...
4
votes
2answers
284 views

How to Make My Equation Look Better With Text

I am creating a calculus study guide with LaTeX. I want my equations to be left aligned, but with the added text everything sort of looks terrible (not really left aligned and quite jagged in my ...
3
votes
1answer
56 views

Can't generate png with Error: Erroneous nesting of equation structures

i am trying to generate pdf file from latex document with formula below \documentclass[border=2pt]{standalone} \usepackage{amsmath} \usepackage{varwidth} \begin{document} ...
1
vote
1answer
76 views

How to left adjust a linear program?

\documentclass[11pt,a4paper]{article} \usepackage{fontenc} \usepackage[utf8]{inputenc} \usepackage{mathtools} \begin{document} \begin{alignat*}{2} \text{minimize } & \sum_{i=1}^m c_i x_i ...
5
votes
1answer
139 views

mathcal inside gather environment not working

I'm trying to display a sequence of equations, plainly centred, so without any alignment you get from the align environment. I thought gather would do the job, but when I try to use mathcal, I get the ...
8
votes
1answer
101 views

Is there an environment that imitates align but displays `textstyle` math?

I'm currently typing a mathematical document which counts many sum symbols. I frequently use the align environment to render equations, although the default behaviour of this environment is to render ...
1
vote
0answers
90 views

mhchem doesn't work in equations properly [closed]

From what I understand (page 11 in mhchem documentation), this MWE should be ok \documentclass{report} \usepackage[version=4]{mhchem} \usepackage{amsmath} \begin{document} \begin{align*} ...
0
votes
0answers
42 views

Why does commands with \begin{} and \end{} not work? [duplicate]

Since I use the combination of an 'align' environment inside a 'subequations' environment a lot, I decide to create the following two commands: \newcommand{\asdfa}{\begin{subequations}\begin{align}} ...
2
votes
1answer
159 views

Numbering color in align environment

I have a long series of equations in an align environment and I want to highlight only the last one (final result) using \color{red}. However, the label number stays black (unlike to what happen in ...
1
vote
2answers
83 views

How to: Encircle a row/column in a matrix (for Laplace expansion)

How to encircle the second row in this step of Laplace expansion or to illustrate that point in a different way? \begin{align*} \left| \begin{pmatrix}{1 & 4 & -2 & 7 & 1 \\ 0 ...
1
vote
1answer
41 views

Sort of 'multicolumn' for align environment

I have something like this: \begin{align} a &= b+c & d &=e+f & g &=h+i\\ a &= b+c & d &=e+f & g &=h+i\\ %%%%% a+h+q &= ...
0
votes
1answer
129 views

Number equation as 0.1 instead of 1

I am using book class for my thesis. I have a preface which is before the first chapter. In this preface, all sections are numbered like 0.1 etc. However, equations are numbered as 1 instead of 0.1, ...
0
votes
0answers
14 views

\ifmmode not set for first character in align environment [duplicate]

It seems that mmode is not set for each first character in the align environment. Can anybody explain why this is? \documentclass{paper} \usepackage[utf8]{inputenc} \usepackage{amsmath} ...
2
votes
1answer
31 views

How do I leftalign with amsmath?

I use the command \begin{align*} but the left column does not align at the left side. How can I rectify this? MWE: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align*} ...
4
votes
3answers
105 views

amsmath equation identation wrong with text

I have a problem creating an equation, where I first want to write it as text and then resolve it to numbers. This is a minimal example: \documentclass[headings=small,12pt,a4paper]{scrartcl} ...
2
votes
2answers
108 views

Make list of formulas 3 columns

I've changed my earlier question to a more clearer question. I'm searching for a more easier way to list different formulas in 2 or 3 columns next to each other to create an overview of all the ...
4
votes
1answer
87 views

Aligning multiple sets of equations equally with one case per set

Using LaTeX, how could I achieve the below: Note how the left equations are aligned around the = which can be achieved using align*. The right case with the center text can likewise be achieved ...
1
vote
1answer
21 views

Aligning Multiple Column with \hline

I'm trying to create this. There are many aligned elements, such as the equal signs and the 25s, as well as an equal bar. I can get some of the elements written, but I can't quite get everything. ...
4
votes
2answers
113 views

Tabbing alignment and over-length sentence auto line break

【Question】When using "tabbing" under math mode with cases, how can I achieved the following at the same time: (1) alignment in cases by "tabbing" (2) over length element such as a long sentence in ...
0
votes
2answers
113 views

Alignment with \mbox in one line [duplicate]

In my MWE below, I included an \mbox in my \align environment. I wanted the text line to be flush left, but when I inclued the text line as a separate line, all the equations got shifted to the ...
3
votes
1answer
53 views

Mathrm within align block doesn't work?

\begin{align} & nH_{2}O + ^* \rightarrow H_{2}O^*_{n} & mH_{2}O + ^* \rightarrow H_{2}O^*_{m-1} + H_{2}O \end{align} The above works but I want to get rid of the italicized equation. So I ...
1
vote
1answer
46 views

How do I place equation numbers before the equation in align environment?

I am doing a proof homework that requires this special composition. The equation numbers need to come before the equation, i.e. on the left of the equation. It should look something like this: ...
4
votes
2answers
66 views

Matrix align within equation

From my code below, how do I: increase the spacing between the rows (as the denominator of the top fraction is too close to the numerator of the bottom fraction). reduce the spacing between the '+' ...
0
votes
1answer
179 views

How to use danish letters in equation/align?

How to use æ, ø, å in LaTeX align? \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[danish]{babel} \usepackage{amsmath, amssymb, amsfonts} \begin{document} \begin{align} æ,ø,å ...
2
votes
1answer
47 views

“Misplaced \noalign” error when compiling table made using \tabularx

Can someone help me fix the problem? \begin{table*}[t] \centering \caption{Message header fields (64-bit total)} \label{table:header} \begin{tabularx}{\textwidth}{|l|l|l|} \hline ...
5
votes
1answer
56 views

How to align the premises in a semantic?

I'm using the semantic package to describe the operational semantic of a language. The problem is that it doesn't look nice when there are many premises. I would like to align them to the left. ...
3
votes
1answer
84 views

Increase counter for each line in custom align environment

What is a good way to advance the counter in a custom align environment? I defined the regalign environment below, but to get the counter to advance with each line, I had to define a new command ...
3
votes
2answers
57 views

\align* environment in array column

So, I'm trying to make a column in my tabular environment be in \begin{align*} \end{align*}. Been trying a few different things, but, I'm still a bit new to LaTeX. I'm still playing around a lot ...
1
vote
1answer
48 views

How to align figures and text horizontally in tables?

I want text in bullet-form next to figures showing what's going on. I thought creating a table, was the easiest way to do so. When entering text in the first column and inserting figures in the second ...
1
vote
1answer
78 views

aligning numerized reactions in mhchem

Okay, so i use mhchem package, and i've used the preamble for numerizing each equation, but this gives me trouble aligning the equations. I want my equations aligned like this: ...
4
votes
2answers
66 views

Aligning multiple equations on multiple points

I'm trying to generate the following output in LaTeX: However I am failing pretty hard at aligning those correctly, this is what I've tried so far: \begin{align*} ...
0
votes
2answers
62 views

Numbering of equations produces overfull hbox when combining gather and align

I have the following code to explain the variables in the formula i use. \documentclass[11pt,pointlessnumbers,a4paper,oneside,fleqn,headsepline, parskip=half]{scrartcl} % \usepackage{mathtools} ...
1
vote
1answer
65 views

Avoiding line break when starting align

I have a problem with the align enviornment within a list. Align always starts in a new line. Is there a possibility to avoid that? In the code below the formula starts one line below the a). I ...
4
votes
2answers
163 views

How to align lines and automaticaly break the lines if they are too long?

I'm trying to align in LaTeX all equal signs, but I'm encountering a problem. If the line is too long it won't automatically break. My code at the moment: \begin{align*} n &= \text{number of ...
2
votes
1answer
114 views

Align multiple equations inside tabular with case environment.

I want to align the equations inside a tabular environment, those equations contain a case environment such that the alignment becomes annoying, the following figure shows what trouble I encountered, ...
0
votes
0answers
16 views

Full stop after an aligned formula? [duplicate]

maybe this is not the right context to ask, since it's not really a tex-question. Hopefully someone can still answer it. After an aligned formula as the last part of a sentence, am I supposed to put ...
3
votes
1answer
47 views

Problem with “missing $ inserted” message

I've been doing an introductory LATEX course and for one of my assignments I want to write a proof where all the equals signs are lined up. I've seen other questions addressing similar problems but ...
5
votes
2answers
143 views

How to make the align environment break at the right place?

I need to break an align environment. Is it possible to give hints to LaTeX about where to break or, better, where not to break? Here is a example: \documentclass{article} ...
2
votes
1answer
54 views

Align multiple items on each row

I'm trying to improve this , so that A,B,C,D properly aligned on each row. I'm currently using \begin{tabular}{ p{0.5cm} | p{17cm} } to create the vertical line, but I'm willing to change that, if ...
2
votes
2answers
64 views

intertext with no numbering

I'm trying to write this formula here \begin{align} L = 1 - \sum_{t \le x} \mathcal{N}(t | \mu, \sigma)\\ \intertext{where $\mathcal{N}$ is the Gaussian density function } ...
1
vote
1answer
43 views

Horizontal alignment in flalign

I feel like this will probably be an obvious one, but I've been struggling to keep the horizontal spacing tight in flalign; but with: \begin{flalign*} &\int_{-\pi}^{0} f(x)dx ...
7
votes
2answers
111 views

How to get a nice alignat of this equation?

I want to align this equation. I tried \documentclass{article} \usepackage{amsmath} \begin{document} \begin{alignat*}{2} A\cdot \left(A^{n-1}+A^{n-2}\cdot B + \cdots + B^{n-1} \right)&=& ...
4
votes
1answer
83 views

Define newenvironment using mdframed and align

I would like my math equations to have a gray background. My initial attempt at this was to simply "sandwich" my align environment by a mdframed environment. It would seem far easier to me though if I ...
2
votes
2answers
55 views

Aligning the first line of an align environment on the baseline of the last line of text preceding it

This may be bad typesetting, but I'm working with limited resources where I both want and need to conserve paper. This is not something for publication, so the standards for a math paper need not ...
6
votes
4answers
221 views

Equations and Equation Numbers within a Box

I use the code below to make a box around equations. It puts the equations numbers outside the box, however I would like to have the equation numbers within the box. How can I alter my code to do ...
2
votes
1answer
102 views

fleqn, koma-script and align: fleqn doesn't work properly

I have a problem using koma-script classes, fleqn and align: The equation are not completely left aligned. The fleqn option moves them to the left , but the equation are not left aligned. In my main ...