Skip to main content
125 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$...
gernot's user avatar
  • 50k
112 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: \...
Mr G's user avatar
  • 1,399
81 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 ...
Binu Jasim's user avatar
54 votes

Symbol for Gaussian distribution

From Wikipedia: where code for the displayed equation is: \[ X \sim \mathcal{N}(\mu,\,\sigma^{2})\,. \]
Zarko's user avatar
  • 300k
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 \\ ...
David Carlisle's user avatar
37 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 \\ ...
Werner's user avatar
  • 607k
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{...
Sebastiano's user avatar
  • 56.7k
36 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 ...
Henri Menke's user avatar
34 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 ...
Schweinebacke's user avatar
32 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\...
Skillmon's user avatar
  • 61.5k
31 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} \...
egreg's user avatar
  • 1.1m
31 votes

What's the best (and quickest) way to insert LaTeX equations into PowerPoint?

Microsoft Word supports inserting LaTex code. You can then copy and paste from Word to PowerPoint. Open Equation Editor (Alt + =), and select the {}LaTeX option, Paste (as text) your LaTeX code. ( e....
Alex Pangyo's user avatar
30 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}...
Mico's user avatar
  • 514k
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 ...
Mico's user avatar
  • 514k
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 ...
Phelype Oleinik's user avatar
26 votes

What's the best (and quickest) way to insert LaTeX equations into PowerPoint?

I can highly recommend http://www.jonathanleroux.org/software/iguanatex/ It requires a LaTeX installation but works great, including editing in PowerPoint and support of vector graphics. There is an ...
Jan's user avatar
  • 361
25 votes

Why does \\ not return a new line in an equation?

There is an easy way to make \\ works in equation (change line): \begin{equation} a = b \end{equation} Change it to \begin{equation} \begin{array}{l} a = \\ b \end{array} \end{...
Shuan He's user avatar
  • 267
25 votes
Accepted

How to create an overlapped colored equation?

An attempt using annotate-equations package. \PassOptionsToPackage{svgnames}{xcolor} \documentclass{article} \usepackage{amsmath} \usepackage{annotate-equations} \begin{document} \newcommand\...
muzimuzhi Z's user avatar
24 votes

Why doesn't lineno number a paragraph when it is followed by an indented equation?

Mathematics environments need to be wrapped by \begin{linenomath*} and \end{linenomath*} as mentioned in Bamzi's answer. A quick way to change all your equations is to renew the equation environment ...
R.M's user avatar
  • 341
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.
Vassilis Chasiotis's user avatar
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 ...
Mico's user avatar
  • 514k
24 votes
Accepted

Basic: How can I stop centering a text?

Note that the approach of {\centering Text} of the accepted answer will not work because there are not a blank line (=\par) before of the closing brace. The same apply to \begingroup\centering ... \...
Fran's user avatar
  • 82.6k
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 ...
AboAmmar's user avatar
  • 46.7k
23 votes

how to write underneath max in formula latex

I take it the main issue is the typesetting of the curly braces around the material immediately below "max". Just change \max_{{P^{\circ}_t(j)}} to \max_{\{P^{\circ}_t(j)\}} Remember that in order ...
Mico's user avatar
  • 514k
23 votes
Accepted

How do I define a piecewise function in latex?

LaTeX is very flexible. Although it is not WYSIWYG you can write it in a very logical way. So if you want to have to have f(x) precede your cases, just write it that way. Here with the example of the ...
TeXnician's user avatar
  • 33.7k
22 votes
Accepted

\boxed border color

The following example defines \colorboxed as wrapper around amsmath's \boxed to set the frame color. It uses package xcolor for the color support to save the current color . before changing the color ...
Heiko Oberdiek's user avatar
22 votes
Accepted

How to avoid page breaks locally in aligned equations, with \allowdisplaybreaks enabled

\documentclass{article} \usepackage{amsmath} \allowdisplaybreaks \begin{document} Text \vspace{52em} \begin{align*} & a long formula \\* % the \\* command prohibit a page break after a given ...
Zarko's user avatar
  • 300k
21 votes

How can I write a complex exponential in LaTeX so that it looks presentable?

Is there a 'better' way to represent this? Use inline-math fraction or "slash" notation: e^{-i 2\pi/5}. Depending on the field you're in, it may be customary to place the 2\pi factor ahead ...
Mico's user avatar
  • 514k
20 votes

Align equation left

Put & at the beginning of the line for left alignment and \\ at the end of the line to break line. Enclose the equation between \begin(split) and \end(split) \begin{equation} \begin{split} &...
Veena Khandelwal's user avatar
19 votes

How do I typeset a 2x2 matrix in an inline equation?

You could use the smallmatrix environment for inline math use: \documentclass[12pt]{amsart} \begin{document} \setcounter{section}{1} % just for this example \subsection{Shembulli i dyte, Matrica.}...
Mico's user avatar
  • 514k

Only top scored, non community-wiki answers of a minimum length are eligible