Questions tagged [math-mode]
{math-mode} is about typesetting mathematical content, e.g. tweaking the appearance of spacing and symbols in a formula, or producing specific mathematical constructs. For questions about "wrapper" environments like equation or align, consider the tag {equations}.
2,172
questions
766
votes
8
answers
264k
views
Why is \[ ... \] preferable to $$ ... $$?
I've heard that you should use \[ ... \] for displayed equations instead of $$ ... $$, but why is that?
I'd assumed that it's so that you can more easily tell which are starting and which are ending ...
202
votes
4
answers
244k
views
Show inline math as if it were display math (and vice versa)
I'm very familiar with how symbols display differently in inline mode (with $ ... $) vs. how display math shows them (with \[ ... \] or $$ ... $$). Two examples would be with limits
$\lim_{n\...
415
votes
13
answers
101k
views
Are \( and \) preferable to dollar signs for math mode?
Along the lines of Why is \[ ... \] preferable to $$ ... $$?, what reasons are there (if any) to favor \( ... \) over $ ... $?
42
votes
2
answers
12k
views
The mysteries of \mathpalette
I would like to make a macro, \vfrac, which output would look like:
$$\displaylines{
\displaystyle\raise.25ex\hbox{$\displaystyle1$}\!/\!\lower.5ex\hbox{$\displaystyle2$} \cr
\textstyle\raise....
205
votes
5
answers
176k
views
What are the differences between $$, \[, align, equation and displaymath?
I once learnt, that it is uncool to use $$, but why is that? Why does \[ not act as a abbreviation to \begin{align}? I noticed, that there is a difference, since one cannot use & and \\ inside a ...
67
votes
7
answers
16k
views
\subseteq + \circ as a single symbol ("open subset")
I'm trying to create symbols \opn for "open subset" and \cls "closed subset". I want them to look like this:
My current solution is:
\def\opn{\!\ensuremath{\subseteq\!\!\!\!\!\raisebox{1pt}{$\circ$}}...
356
votes
10
answers
1.4m
views
How can I split an equation over two (or more) lines
I am having the following equation:
\begin{equation}
Q(\lambda,\hat{\lambda}) = -\frac{1}{2} P(O \mid \lambda ) \sum_s \sum_m \sum_t \gamma_m^{(s)} (t) \left( n \log(2 \pi ) + \log \left| C_m^{(s)} ...
642
votes
14
answers
1.8m
views
How can I get bold math symbols?
To make Latin-letter variables bold I can use e.g. \mathbf{a}, but while putting Greek letters or symbols such as \nabla inside \mathbf doesn't cause any errors or warnings, it also doesn't do ...
70
votes
4
answers
10k
views
Is it ever bad to use \left and \right?
For mathematics, is it ever disadvantageous to use \left( and \right) in equations?
I can't see any way that doing this would hinder the typesetting, so why isn't () just converted into \left( \...
168
votes
2
answers
54k
views
Which OpenType Math fonts are available?
What OpenType math fonts are there available for usage in TeX/LaTeX, e.g. with the unicode-math package?
Here is a MWE which you can use to show off the font.
\documentclass{article}
\pagestyle{...
161
votes
7
answers
99k
views
Define additional math operators to be typeset in roman
Mathematical operators, such as function names, should be set in roman type, not italics. Latex already has commands for some operators, including \max, \min, and \log. How can I define additional ...
615
votes
6
answers
946k
views
What are all the font styles I can use in math mode?
As can be seen in above picture, there are lots of fonts or font styles that can be used in math mode.
What are all the fonts or font styles I can use in math mode, and which packages are required in ...
183
votes
7
answers
27k
views
Spacing around \left and \right
Why does the addition of a \left and \right introduces an extra space around the formula? Specifically, why do $\cos(\theta)$ and $\cos\left(\theta\right)$ render differently?
Is there a way to use ...
134
votes
8
answers
117k
views
How to make \left, \right pairs of delimiter work over multiple lines?
I have a very long equation that must be separated into two lines, and it has several pairs of nesting \left \right delimiters. Unfortunately, it seems that they need to be on the same line in order ...
72
votes
13
answers
46k
views
Highlight elements in the matrix
I have a matrix and need to highlight some elements in the matrix. I have found how to highlight a single element (I want to put the cell in the square):
$$ A = \begin{bmatrix}
\fbox{0} & \fbox{0}...