{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

0
votes
1answer
177 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
35 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*} Pro^...
4
votes
3answers
109 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
120 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
92 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
180 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
143 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 right....
3
votes
1answer
72 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
51 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
70 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
253 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} æ,ø,å \end{...
2
votes
1answer
82 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 \multicolumn{1}{|c|}{...
5
votes
1answer
75 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
91 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
63 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
55 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
101 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: \documentclass{...
4
votes
2answers
78 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*} &(a)\hspace{20pt}\lfloor{n/2}\...
0
votes
2answers
71 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
90 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
187 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
165 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
17 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
52 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
163 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} \usepackage[paperwidth=...
2
votes
1answer
56 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
82 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 } \end{align}...
1
vote
1answer
48 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)&=& A^{...
4
votes
1answer
100 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
62 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
263 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
126 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 ...
1
vote
2answers
273 views

Figure and caption are not aligned

I have a particular problem aligning the caption and the figure. I attach for you the image of what latex is producing, plus the image file if somone needs to replicate the code. As you see the image ...
0
votes
1answer
147 views

Left alignment of multiple equations with one label

I am using flalign for left alingment of two equations, but I also want to give them one label for which I found the split environment. But they are not working together. The question is how to align ...
1
vote
1answer
55 views

Size of equations

How I can shrink the equations within an align environment ? Here it it my MWE \documentclass[11pt,a4paper]{article} \usepackage[hmargin=2.5cm,vmargin=1cm]{geometry} \usepackage{amsmath} \...
5
votes
2answers
192 views

Two cases brackets in one line, aligned to a formula in a second line

I am trying to align two cases environments to a formula: schematically: A = B +C = {cases1 +{cases2 where B+cases1 and C+cases2 are aligned. I read about the \alignat{3} option, but I ...
2
votes
2answers
159 views

vertical center aligned inside align environment

How can I make the top of the aligned pack vertically aligns with the x ->? How can I use a box or something to achieve this? (There are other options of course but I would like to use box or ...
2
votes
2answers
45 views

How to reference long equations by numbered alphabets [duplicate]

I have 2 long equations when I want to label them as 2a and 2b by using subequation a problem occur that each line of equation n pdf gets number inspite of each equation so thats why i got more ...
0
votes
0answers
21 views

I'm getting an error when I try to align two expressions [duplicate]

I'm trying to align two expressions so "if" is the same place on each line. \documentclass[a4paper,12pt]{article} \usepackage{amssymb,amsmath} \begin{document} \begin{align} $1 & \mbox{if} x &...
5
votes
4answers
142 views

How do I align the sums using the align* environment?

\documentclass{article} \usepackage{amsmath} \begin{document} \begin{align*} \sum_{k=1}^\infty \frac{1}{k} &\rightarrow \infty &\sum_{k=1}^\infty \frac{1}{k^2} &= \frac{\pi^2}{6} &&...
5
votes
3answers
132 views

Aligning systems of equations by symbol and variable

Using this code: \begin{flalign} & +3x+2y-5z=+04 \\ & +2x+4y-1z=+12 \\ & -4x-8y+9z=-06 & \end{flalign} I produce this output: However, I'd like to produce a similar alignment, ...
2
votes
4answers
59 views

Add line break to one line of a multi-line equation

I am writing an equation consisting of many lines, however, one particular line is very long and I want to break into a new line. For example: \begin{equation} \begin{aligned} & \text{...
5
votes
2answers
100 views

How do I use equation in this scenario without running into “Missing number, treated as zero”

I'm pretty new to Latex and I am working with a bunch of formulae. I'd like to give each of them different numbering and this is what I've got: \begin{align} \begin{split} &|\Theta_P| = {|P| \...
6
votes
2answers
177 views

Align images with text without using tables

Problem: I have searched how you can align text without the use of tables using LaTex. What I am after is to align images after each other on one side and text to align to respective image on the ...
1
vote
2answers
78 views

Left-align text in math-mode and break equations

I have the following MWE \documentclass[11pt, a4paper]{article} \usepackage{fancyhdr} \usepackage{graphicx} \usepackage{amsfonts, amsmath, amssymb, amsfonts} \begin{document} \begin{align} \...
3
votes
1answer
49 views

Making aligned environment and stacked limits work

I'm trying to typeset something like this: \begin{align*} n^{\frac1n} & = \exp\left(\frac1n\ln(n)\right) \\ & = \exp\left(\frac1n\ln(n)\right) \\ &...
3
votes
2answers
127 views

horizontally align group of nodes with respect to coordinate

I have one node (or rather, a coordinate) and a couple of nodes which are aligned in one "row" (via right=of, left=of). They are aligned below each other (via below right=of), \documentclass{article} ...