169
votes
How can I split an equation over two (or more) lines
You can use multline or split provided by amsmath package.
Use multline to split equations without alignment (first line left, last line right)
Use split to split equations with alignment
Here are ...
111
votes
Multiple lines one side of equation with a Curly Bracket
Use the cases environment, like this.
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{equation}
D_{it} =
\begin{cases}
1 & \text{if bank $i$ issues ABs at time $t$...
100
votes
Is it possible to pagebreak aligned equations?
Additionally to the above answers, as asked in comments, the command \allowdisplaybreaks from amsmath can be used locally do a display break by using the \begingroup and \endgroup commands:
\...
77
votes
Align equation left
Note: This doesn't answer the question exactly. But still try this solution first as it is probably the simplest.
Use align, and put & at the beginning of every line. Use \\ to separate multiple ...
56
votes
Attractive Boxed Equations
tcolorbox also offers several options for boxed math expressions.
tcbhighmath is an special box which can be used with empheq package, but it's also easy to declare new boxes to use with empheq.
...
56
votes
Accepted
What is the difference between split, multline, align, breqn for breaking an equation into multiple lines?
As noted in comments the amsmath and breqn documentation have several good examples, also the mathtools package has extended versions of several of the amsmath alignments. But the usual style here is ...
55
votes
How to break a long equation?
The aligned environment from amsmath is also a good option:
\begin{equation}
\begin{aligned}
F ={} & \{F_{x} \in F_{c} : (|S| > |C|) \\
& \cap (\mathrm{minPixels} < |S| < \...
53
votes
Accepted
Gather vs aligned - centered equation with one number
The gathered environment, used within math mode, is what you're looking for.
\documentclass[12pt]{article}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage[utf8]{inputenc}
\begin{document}
\...
50
votes
Symbol for Gaussian distribution
From Wikipedia:
where code for the displayed equation is:
\[
X \sim \mathcal{N}(\mu,\,\sigma^{2})\,.
\]
43
votes
How do I turn off equation auto numbering
If you use this:
\begin{equation}
...
\end{equation}
try this instead:
\begin{equation*}
...
\end{equation*}
This solution requires the use of the package amsmath.
42
votes
What is the meaning of $$$ in LaTex?
The markup is completely wrong and should be removed, but to answer the question of what it means
\begin{equation}
$$$
\notag \displaystyle\int_{-1}^{2} x^3\:dx-\displaystyle \int_{-1}^{2} 2x\:dx \\ ...
37
votes
Accepted
Fix ugly kerning in equation subscript
In math-mode you should to use \mathit{...} (slanted} or \mathbf{...} (bold) or normal \mathrm{...} for any type of the text into math formula.
\documentclass{article}
\begin{document}
\[C_{\mathit{...
34
votes
Why does no one fix eqnarray?
Fixing it would have mostly disadvantages.
Firstly for any serious math use you probably want amsmath anyway, that adds far more than a better eqnarray and if you are loading amsmath and not using ...
34
votes
Accepted
Difference between {align} and {aligned}[t]
You're using the environments incorrectly. Here's how you could (should...) use them:
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{align*}
x + 3y + 4z &= 2 \\
...
33
votes
Why doesn't lineno number a paragraph when it is followed by an indented equation?
For line numbering to be done correctly the math environments has to be wrapped using the \begin{linenomath*} and \end{linenomath*} code:
\documentclass[12pt]{article}
\usepackage{amsmath}
\...
31
votes
Accepted
Optimization formulas in LaTeX
this is very easy to accomplish using the aligned environment from amsmath:
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{equation}
\begin{aligned}
\min_{w,b,\xi} \quad & \...
29
votes
Image equation to TeX
Mathpix Snip: Scanner App for Math and Science
https://www.mathpix.com/
Mathpix Snip digitizes handwritten or printed text, and copies outputs to the clipboard that can be pasted into LaTeX editors ...
29
votes
Accepted
align vs. equation: Which way is typograpically preferred?
For the typographic comparison you're looking to make, we need to distinguish between two groups of environments that generate display-style equations:
Methods for generating (mostly) single-line ...
29
votes
Re-define "mu" in "$\mu$m" for units (upright \mu instead of italic \mu)
Per your comments, you are using "mu" to denote "micro", as in one millionth of some scientific unit. Given this situation, you need to get out of the business of attempting to ...
28
votes
LaTex Error: Environment equation* undefined
Adding
\usepackage{amsmath}
to the preamble solved the problem.
28
votes
Accepted
How to center a multiline equation?
Use a gathered environment inside the equation environment:
\documentclass{article}
\usepackage{amsmath} % for "gathered" env.
\begin{document}
\begin{equation}\label{eq1}
\begin{gathered}...
28
votes
How to write equation as shown in picture using Latex?
With a few shortcut macros it's much easier:
plain TeX version:
\let~\catcode~`86~`j0~`X13~`C1~`D2~`M3jdefX81C~`8113jdefDXZZ81C~
`8113DXYY81CZ81jletDYLLjletYFFjfiYNNjdefYPPjpartialZIZAZBZj{Zj}Y
...
26
votes
Boxed equation with number
With tcolorbox help it's possible to include equation numbers in framed environments. It provides options ams equation, ams gather, ams align and corresponding starred versions. It's also possible to ...
26
votes
Accepted
System of equations
A solution using the cases environment:
\documentclass[]{article}
\usepackage{amsmath}
\begin{document}
\begin{equation}
\begin{cases}
k_{i\omega}/k_{p\omega}=2\pi\times 10\\
\left\...
25
votes
How do I add \begin{definition} … \end{definition}?
Just define it using \newtheorem like you have done for environment theorem:
\documentclass{article}
\usepackage{amsthm}
\newtheorem{definition}{Definition}
\begin{document}
\begin{definition}
This ...
24
votes
Is it possible to pagebreak aligned equations?
Just add the \allowdisplaybreaks command from the amsmath package to the preamble of your document. Works only with the math environments provided by this package. So you can use align.
24
votes
How to handle long equation in LaTeX?
I suggest you embed a split environment (provided by the amsmath package) inside an equation environment.
Aside: Don't overuse { and } in math mode, and don't overuse auto-sizing of round ...
24
votes
Accepted
Unicode error in inputenc package
Unicode U+2212 is MINUS SIGN, which is not set up by default with inputenc. Just add
\DeclareUnicodeCharacter{2212}{-}
to your preamble, just before \begin{document}.
\documentclass[pt]{beamer}
\...
24
votes
Accepted
How to fit a large equation that goes out of the page?
Mathematical symbols where created to represent the meaning of longer descriptive words in a short form for easy inclusion in complex formulas with possible repetition. I would choose a suitable ...
23
votes
Resizebox within equation environment
The parameter for \resizebox is in text mode. Thus you need to explicitly go into math mode:
Code:
\documentclass[12pt]{article}
\usepackage{graphicx}
\begin{document}
\begin{equation}\label{...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
equations × 5928align × 1055
math-mode × 870
amsmath × 656
numbering × 501
horizontal-alignment × 413
spacing × 321
cross-referencing × 257
formatting × 191
vertical-alignment × 154
labels × 150
split × 144
line-breaking × 135
beamer × 133
subequations × 132
tables × 129
matrices × 122
alignment × 118
cases × 112
errors × 106
brackets × 101
arrays × 100
tikz-pgf × 93
symbols × 92
environments × 92