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

learn more… | top users | synonyms (2)

10
votes
3answers
4k views

Spacing around \text{} in mathmode

Inspired by this question, here's my mathmode spacing bugbear. I quite often have equations that look like this: \begin{equation} \text{If}\ B_1 \succeq B_2 \ \text{and}\ B_2 \succeq B_3 \ ...
8
votes
4answers
6k views

Avoiding placing `,\,` everywhere in mathmode

Whenever I write ", " (with a space after the comma) in mathmode, I really want a space there. usually, this is either something like the points, $a, b$, and $c$.... or in an explicit vector: ...
3
votes
2answers
8k views

Smaller matrices (or other math elements) in displayed math

I'm trying to find The Right Way to make a smaller matrix (but not a smallmatrix) along the following lines. Example: Consider the following piece of LaTeX code: % \usepackage{amsmath} in the ...
12
votes
1answer
2k views

footnote in Math Environment

\documentclass[12pt]{article} \usepackage{amstext, amsmath} \usepackage{chemarrow} \begin{document} \let\rightarrow\chemarrow Begin $\xrightarrow[\text{Text below the arrow}\footnote{this is ...
5
votes
2answers
963 views

Multi-column delimiter in align

I want to set the following, but with all the <'s aligned horizontally Source of this failed attempt: \documentclass[12pt]{article} \usepackage{amsmath} \usepackage{amssymb} \begin{document} ...
2
votes
1answer
534 views

Match spacing of align in array environment

To typeset some displayed equations, only the array environment was powerful enough. However, the spacing of the array environment doesn't match the spacing of the align environment. How do I set ...
1
vote
2answers
649 views

Getting vinculum in fractions with Asana Math and unicode-math

With this minimal example \documentclass[a4paper,12pt]{article} \usepackage{fontspec} \usepackage{unicode-math} \setmathfont{Asana Math} \begin{document} $\frac{2\pi r}{r} = 2\pi$ \end{document} I ...
6
votes
1answer
394 views

How do I set the \skewchar of a math font?

In this answer, I set the \skewchar of a font, but I think I don't do it in the right way. The problem is that it's a math font, and those seem to get initialized only when they are used, namely when ...
1
vote
2answers
1k views

How to enforce pslatex to use Computer Modern font for math?

How can I enforce pslatex to use Computer Modern font for math? (I know, it would be much easier to use pdflatex, but my publisher uses pslatex.) EDIT: Example: ...
79
votes
6answers
35k views

How can I write multiple lines in a subscript?

Is there a way to force a line break inside a math mode text? My example: \[ \underbrace{....}_\text{Some long text that should be multiline} \] Trying \text{Some long text that\\ should be ...
13
votes
3answers
52k views

How to make math symbols bigger?

Is there a way to make math symbols bigger? Reason: I've used \sfrac{q}{m}, and those symbols appear far to small, so I would like to make them a bit bigger. edit: I just thought that \sfrac{q}{m} ...
3
votes
2answers
1k views

How to turn equation tags off by default?

I'm writing a document in which very few of the equations actually need tags. So instead of using starred environments, I would much prefer to exchange the meaning of the starred with the non-starred ...
5
votes
1answer
2k views

Change arrow head of \xrightarrow[]{}

I am using \xrightarrow{} in many places in my document. I want to change the tip to look like the one that gets produced by -latex. I am trying to get a similar tip for the \xrightarrow{} macro.
16
votes
2answers
9k views

Typesetting quotients and double quotients

What is the best way to typeset mathematical quotients and double quotients? I mean constructions like X/~ (~ an equivalence relation on X) and G\X/H (where G and H are groups acting on X). While ...
1
vote
1answer
2k views

\ShortStack Align

Some sentence.... \shortstack[]{a\\b\\c} it produces like a b Some sentence.... c But I would like to produce something like this a ...
35
votes
1answer
54k views

Symbol for Gaussian distribution

What is the symbol for the normal density function in LaTeX?
13
votes
2answers
3k views

Ugly spacing around f in math mode

My paper contains many math expressions like $abcde$ or $abdefv$. Unfortunately, the latter looks very ugly, particularly in regards to the spacing around the f. In particular, there is a ...
3
votes
1answer
2k views

An environment to change the vertical space around a formula

Specially in beamer presentations, I use a custom environment to change the vertical space around a formula. The code is: \newenvironment{shrinkeq}[1] { \bgroup ...
3
votes
3answers
2k views

Math symbols not showing while using fontspec

Math, symbols are not showing when i am using the fontspec package. Here i paste the command and output please tell me as to how i can rectify this. Command: \documentclass[10pt,amssymb]{revtex4} ...
1
vote
1answer
736 views

fake math alphabet

in order to go over the "too many alphabets" usual error, I am creating fake math commands somehow. \documentclass[fleqn,a4paper,12pt,twoside]{book} ...
3
votes
2answers
3k views

AMS align: Left aligned text/math plus multicolumn align

This question is basically a combination of two previous posts: Adding left aligned text to an equation. and AMS align / Align multiple “=”, too much space (the latter being my own question). What I ...
5
votes
3answers
2k views

Options for converting LaTeX to plain text

What options exist for doing something like this? I'm particularly interested in LaTeX that describes mathematics.
5
votes
3answers
1k views

How to draw protocol interaction using tikzpicture

I have a question on using the tikzpicture package. I have a protocol interaction on which two participants want to exchange some numbers, say α and β. I need bilateral arrows, and on top of it would ...
3
votes
3answers
1k views

Protecting negative spacing in math mode

I am using \! to create negative spacings and put a dash over a symbol in math mode. (Here I am denoting missing transverse energy by defining a command \met where a dash is put across E_T, see code ...
71
votes
2answers
18k views

Two letter variable names

In math mode, TeX assumes "hidden multiplication" (so that two variable names put nearby have invisible multiplication between), so that, AFAICT, expressions like $ABC$ are rendered with small ...
13
votes
4answers
19k views

Making a shorter minus

I am doing some display typography with an equation in it using the mathpazo package. At one point I have this fraction: $\sqrt{-\frac{1}{9}}$ To me, the minus looks too long. I would like to make ...
12
votes
3answers
3k views

bad formating of ff in math mode

I'm trying to write something like: $affinity(x)$, but in the PDF I see some small spacing between the two f's. I tried $af{}firm(x)$ or $aff{}irm(x)$, but nothing works.
10
votes
1answer
5k views

How to make proportional subscript when using smaller font in math mode?

How to make proportional subscript when using \tiny (or smaller than normal font size) in math mode? The following screenshot shows subscripts for \tiny, \scriptsize and normal font sizes. ...
5
votes
3answers
356 views

Equation tags for parts of alignments

Consider the following example: \documentclass{article} \usepackage{amsmath} \begin{document} \[ 1+2=3 \implies \left\{ \begin{aligned} &a+b=c, \\ &x=y+z. ...
20
votes
2answers
4k views

Multiset notation in LaTeX

Does anyone know how to make (nice looking) double bracket multiset notation in LaTeX. i.e something like (\binom{n}{k}) where there are two outer brackets instead of 1 as in binomial? You can see an ...
9
votes
1answer
202 views

Ensuring that vertical space is consistent in list of polynomials

\documentclass{article} \usepackage[fleqn]{amsmath} \usepackage{mathrsfs} \usepackage{amsfonts} \pagestyle{empty} \setlength\mathindent{0pt} \begin{document} \[3x^3\] \[3x^2\] \[3x\] \[3\] ...
21
votes
2answers
8k views

Is there a difference between the `displaymath` and `equation*` environments?

The amsmath documentation says Basic LaTeX doesn’t provide an equation* environment, but rather a functionally equivalent environment named displaymath. Are they really the same or is there a ...
18
votes
1answer
7k views

How To Change Math Font Only?

I'd like to keep my text in Helvetica as usual but would like to have my equations and formulas in Roman or MT Extra. So far, I've tried using different packages but that changes both the text and the ...
13
votes
1answer
4k views

How can I write multi line equations with alignment in inline math mode?

Is there any way to override the fact that certain environments in LaTeX are automatically "displayed"? One such example is the align* environment. I want to keep my aligned equations inline. So ...
3
votes
1answer
2k views

How to properly write long logical formulas?

I need to write many mathematical statements written as first order logical formulas. Usually I can't have them on a single line because they tend to be too long. The following one is an example of ...
27
votes
2answers
3k views

How to get a \mid binary relation that grows

This question relates to one about getting a vertical bar longer than \mid. How to get a vertical bar which is longer than \mid ? However while the given \middle| solution works for me, it no longer ...
38
votes
2answers
4k views

Is there a tikz style for putting math in all nodes?

I'm finally trying out TikZ and am already infected with its programmatic philosophy. I would like to be able to do something like every node/.style = {math mode} (which is wrong) so that I can ...
2
votes
3answers
2k views

XeLaTeX and stmaryrd

I'm using XeLaTeX and Minion Pro together with the \usepackage[MnSymbol]{mathspec} but I need the \llbracket and \rrbracket command from \usepackage{stmaryrd} package. Unfortunately, as such, I get a ...
29
votes
6answers
20k views

Equations in section heading/title

For reasons that are beyond me, the following MWE \documentclass{scrreprt} \usepackage{classicthesis-ldpkg} \usepackage{bm} \usepackage{amsmath} \begin{document} \section{The values of $\beta$ for ...
106
votes
7answers
133k 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] ...
17
votes
3answers
7k views

How to raise a subscript?

For some reason, I need to write a “minus” sign as a subscript on some symbols, but if I simply write $\Pi_{-}$ the result looks kind of odd. I've found that $\Pi{\scriptstyle -}$ looks reasonably ...
22
votes
1answer
30k views

Mapsto vs. rightarrow

This is perhaps half a math question and half a typesetting one. In what circumstances do I use \mapsto and when \rightarrow? I feel like the standard seems to be: when you're specifying the operator ...
18
votes
1answer
24k views

Text over/under implies arrow?

I'm currently trying to write over/under an implies arrow in LaTeX (in math mode): \implies_{text} This places the text lower, but next to the arrow, not below it. How can I get it below the ...
5
votes
1answer
1k views

upright uppercase math letter with Minion and xelatex

just a quick question about Xelatex and Minion Pro. By default, uppercase letters as well as lowercase greek letters in math mode are italics. Can I get them upright by hand? So far, I am using: ...
52
votes
4answers
90k views

How can I change the font size in math equations?

I find that whenever I'm typing some equations into a document, and the equation gets a bit complex (let's say a fraction in a parentheses, squared, inside a square root, inside a fraction), the ...
13
votes
5answers
4k views

Define strange operators

I' looking for a symbol rendering the connected sum of $n$ topological spaces (or other quite strange topological operations) in a "product-like" manner... What For example in writing $$ ...
22
votes
2answers
20k views

Custom equations' names

Do you know ho can i call a reference to an equation using \ref or \eqref and obtain (name of the equation) instead of the standard counter? Thanks!
3
votes
2answers
696 views

Expand tabular/array to page width

I recently have had the need to make a math array or a tabular expand to fill the page width. The effect I am trying to achieve is that for one line on the page, half is aligned at the left, and the ...
37
votes
7answers
40k views

Typesetting of negative versus minus?

I've occasionally seen a negative (when a number is simply negative, not a subtraction), typeset as negative sign that's slightly skinnier and above the centre line of text. Is this proper notation ...
6
votes
3answers
2k views

Same height for list of comma-separated vectors

I am trying to typeset a list of vectors spanning a multidimensional space, using the notation span{v_1,v_2,...,v_n} (I haven't found out how to inline it as rendered latex) i.e.: span \{ ...