Skip to main content

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}.

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 ...
Sophie Alpert's user avatar
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\...
akdom's user avatar
  • 2,345
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 $ ... $?
Mark Meckes's user avatar
  • 18.1k
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....
morbusg's user avatar
  • 25.5k
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 ...
niklasfi's user avatar
  • 2,283
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$}}...
Leo's user avatar
  • 3,509
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)} ...
Peter Smit's user avatar
  • 14.1k
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 ...
Michael Underwood's user avatar
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( \...
user50612's user avatar
  • 1,303
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{...
Henri Menke's user avatar
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 ...
Vebjorn Ljosa's user avatar
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 ...
doncherry's user avatar
  • 55k
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 ...
Mateus Araújo's user avatar
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 ...
sxu's user avatar
  • 1,530
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}...
Eugene's user avatar
  • 721

15 30 50 per page
1
2 3 4 5
145