When trying to use the mod function that LaTeX offers, I always meet a problem: it seems to have a space or two in front of it that I can't delete without \hspace
. Why is that and how can I fix it?
What shows up: $(\mod n)$
What I want: $(\hspace{-0.3cm}\mod n)$
Best Answer
See section 5.2 of the
amsmath
manual for the details of\mod
and related commands (\mod
,\pmod
,\bmod
,\pod
) but the short version is that if you want parens around it, you should use\pmod
:(Taken from Version 2.1)