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

Possible Duplicate:
typesetting modulus operator, as in remainder

When \mod is used in

a \cong b \mod c

the extra space between \mod and what precedes it is appropriate. But what if I want to write about the quotient structure \mathbb R\mod {2\pi}? In that case \mod is more like a binary operator. How should one code this to get something with spacing appropriate to the occasion?

share|improve this question

marked as duplicate by Werner, Thorsten, egreg, Stefan Kottwitz Dec 21 '12 at 7:44

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

$$....$$ is depricated. Use \[...\] instead. – A.Ellett Dec 21 '12 at 2:49
@MichaelHardy Additionally to \mod{<arg>}, there’s \bmod, \pmod{<arg>} and \pod{<arg>}. Take a look at the amsmath manual (texdoc amsldoc, page 18 (pdf 22), section 5.2). – Qrrbrbirlbel Dec 21 '12 at 3:39
up vote 6 down vote accepted

The binary-operator version of \mod is \bmod.

share|improve this answer

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