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}.
9,761
questions
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 $ ... $?
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 ...
13
votes
2
answers
5k
views
Proper punctuation after cases environment
I know that when writing a displayed equation, it's correct to write punctuation before the closing \] as follows:
This proves \[ x^2 = 3, \] and it follows that \[ x = \pm\sqrt{3}. \]
If I'm using ...
211
votes
6
answers
513k
views
\mid, | (vertical bar), \vert, \lvert, \rvert, \divides
What's the difference between the different vertical bars?
$S = \{\, x \mid x \not= 17 \,\}$
$a \vert b$ implies $a \leq b$ when $b \ne 0$
$a|b$ implies $a \leq b$ when $b \ne 0$
$\lvert x \rvert$ is ...
24
votes
1
answer
14k
views
How to reference equations using letters and numbers
Sometimes it is convenient to refer to a group of equations by a letter and a number.
For example:
2+1 (A1)
2+4 (A2)
x^4 (B3)
x^e (B4)
Placing
\tag{A\theequation}\label{eqn:thisone}\...
97
votes
6
answers
127k
views
Lowercase \mathcal
The standard font used for \mathcal does not include any lowercase characters. The Comprehensive LaTeX Symbols List suggests redefining \mathcal to use Zapf Chancery. However I do not particularly ...
78
votes
5
answers
29k
views
How to automatically resize the vertical bar in a set comprehension?
I have a simple command which I use to write set comprehensions so that the braces automatically resize with respect to size of the enclosed arguments, e.g.
\usepackage{amsmath}
\newcommand{\set}[1]{\...
13
votes
2
answers
705
views
Is there a way to stop the vertical spread of multiple super- and sub-scripts?
I'd like to be able to place multiple sub and superscripts (in maths mode) on an element without having them expand vertically. That is, so that in the output of ${x^2_4}^6_8$, the 2 and 6 were ...
14
votes
1
answer
5k
views
Slashed symbols
In my field of work, mathematical operators that live on reduced dimensions are customarily defined as the normal one with a slash through it. For example, the gradient is usually written as \nabla, ...
49
votes
3
answers
20k
views
Can I use \clap, \rlap and \llap in math mode?
The commands \clap, \llap and \rlap are useful "horizontal" analogues of \smash: they reduce the horizontal width of a box to zero, aligning the box with either the middle, left or right of the ...
112
votes
5
answers
354k
views
How to add a matrix to a LaTeX document
How do we add a matrix to a LaTeX document?