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
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
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
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
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
325 votes
9 answers
1.5m views

Absolute Value Symbols

What is the "best LaTeX practices" for writing absolute value symbols? Are there any packages which provide good methods? Some options include |x| and \mid x \mid, but I'm not sure which is best...
jamaicanworm's user avatar
  • 29.4k
312 votes
9 answers
806k views

Command for argmin or argmax?

How can you get the argmin or argmax in Latex? Two solutions I found are: \underset{x}{\operatorname{argmax}} \DeclareMathOperator*{\argmin}{arg\,min} Any other ideas? [1] http://www.breakthru....
Alejandro's user avatar
  • 3,796
292 votes
4 answers
799k views

What is the "correct" way of embedding text into math mode?

Lets say I have something like: \[ Let x = number of cats \] (This is a contrived example, but pretend we are actually inside a long align environment block...) "Let" and "number of cats" need to ...
Billy ONeal's user avatar
  • 10.6k
278 votes
12 answers
224k views

How to typeset $:=$ correctly?

I like to use $:=$ for "is defined to be equal to", but this is never typeset with the symmetry one would like, as the colon is always too low relatively to the equals sign. Is there any way of ...
Oscar Randal-Williams's user avatar
264 votes
12 answers
560k views

What is the best symbol for vector/matrix transpose?

What is the best or most popular symbol for vector/matrix transpose? I have used simply ^T, for example $c^T x$. I think it is ugly, mainly because it is a little too big compared with vector ...
Chang's user avatar
  • 9,588
263 votes
3 answers
1.1m views

Big Parenthesis in an Equation

I have an equation contained inside \[...\], which automatically makes a \sum with sub- and superscripts turn big--so that the summation sign looks awkward inside parenthesis. Any idea how to make ...
jamaicanworm's user avatar
  • 29.4k
256 votes
3 answers
176k views

What's the difference between \mathrm and \operatorname?

I apparently can't see the difference in a compilation (pdflatex) between \mathrm and \operatorname. So, as in the title the question is: is there a difference? Which one is preferable in what ...
Andy's user avatar
  • 2,675
255 votes
4 answers
666k views

How to write ceil and floor in latex? [duplicate]

Is there a macro in latex to write ceil(x) and floor(x) in short form? The long form \left \lceil{x}\right \rceil is a bit lengthy to type every time it is used.
danny's user avatar
  • 2,757
254 votes
10 answers
642k views

How do you get \mathbb{1} to work (characteristic function of a set)?

I am trying to get the digit one printed the \mathbb{} font in math mode, however the command \mathbb{1} outputs some rubbish. I certainly saw the character I am after in some pdf's generated from ...
Grzenio's user avatar
  • 9,545
253 votes
4 answers
613k views

\mathbb{Z} yields undefined control sequence error

I am using WinEdt 6 for compiling my TeX documents. I am getting an error with contains the line $\mathbb{Z}$ showing that it is undefined control sequence. How should I rectify it? Should I include ...
Ramana Venkata's user avatar

15 30 50 per page
1
2 3 4 5
651