Take the 2-minute tour ×
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.

Is there a standard way to typeset the modulus operator (as in arithmetic remainder)? The percent sign (%) is often used by programming languages and mathematicians tend to use mod, but because of the romanization of mod, this notation can be confusing when used inline with text as in

So long as T mod n = 0 (i.e., the quantity is an integral multiple of n)...

I am currently using $T\mod{}n=0$, which places more space between the first argument and mod than between mod and the second argument.

share|improve this question
2  
You can omit the {}, just leave a space. For inline re-writing the sentenece and using "remainder" will read better. If the remainder of T/n = 0 .... –  Yiannis Lazarides Jan 30 '12 at 22:37
2  
\mod is defined by amsmath and it has an argument. But it's intended for things like $a\equiv b\mod{n}$, not for denoting the "remainder" operation. It's the "unparenthesized" version of \pmod, which is more commonly used. –  egreg Jan 30 '12 at 23:02
add comment

1 Answer

up vote 25 down vote accepted

\bmod is designed for mod used as a binary op.

share|improve this answer
add comment

Your Answer

 
discard

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.