TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I recently found \smallsetminus as a much nicer alternative to just \setminus, which is essentially just a backslash. However, I'm a bit unhappy with how much size it leaves before and after the \ character.

Is there any way to reduce that space? Or a different alternative other than \smallsetminus?

share|improve this question
up vote 3 down vote accepted

\setsmallminus is a binary operator (packages amssymb or MnSymbol). Binary operators gets same space before and after (unless in script styles). The additional spaces are not inserted, if the symbol is an ordinary symbol. That can be achieved by a subformula:

A {\smallsetminus} B

Full example, extended:

% \usepackage{MnSymbol}
\[ A + B \]
\[ A \smallsetminus B \]
\[ A \!\smallsetminus\! B \]
\[ A {\smallsetminus} B \]
\[ \mathbb{I} \smallsetminus \{0\} \]
\[ \mathbb{I} \!\smallsetminus\! \{0\} \]
\[ \mathbb{I} {\smallsetminus} \{0\} \]


Without the additional spaces of a binary operator the fourth and last lines look wrong to me. A compromise are the middle lines that reduce the spacing using \!.

share|improve this answer
I see what you mean, it also looks wrong to me. But I don't like the second line either. It looks particularly bad in the actual text I'm writing: $\mathbb{I}\smallsetminus\{0\}$. – FPP Oct 29 '12 at 2:40
Middle lines are exactly what I needed, thank you. – FPP Oct 31 '12 at 14:42

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.