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.

Good day,

My minimum working example:

\documentclass[]{report}

\begin{document}

\begin{equation}
\hat{d}=\frac{(d+n)!}{n!d!}
\end{equation}

\end{document}

The result is:

Result of MWE

Now I don't like the spacing for the term: "n!d!". I'd prefer a bit more space between 'n' and '!' and between 'd' and '!'.

Any ideas?

share|improve this question
    
A short solution would be forcing a single space between them by using \ , like this: {n\ ! d\ !} –  Luan Resende Jun 24 '13 at 12:27
3  
That would be incorrect. In case the ! is followed by an ordinary symbol, add a thin space: n!\,d!, but don't detach the ! from the symbol preceding it. –  egreg Jun 24 '13 at 12:32

1 Answer 1

up vote 17 down vote accepted

It's incorrect to detach the ! meaning “factorial” from the symbol preceding it, because it's a modifier similar to a prime or a subscript and is not a punctuation symbol.

In case you have a factorial followed by an ordinary symbol (not a relation or operation symbol), it's good practice to add a thin space after it:

\documentclass{report}

\begin{document}

\[
\makebox[4em]{Good:}
\hat{d}=\frac{(d+n)!}{n!\,d!}
\]
\[
\makebox[4em]{Bad:}
\hat{d}=\frac{(d+n)\,!}{n\,!d\,!}
\]
\end{document}

I've also shown what would happen when detaching the factorial symbol, in order to demonstrate it would be wrong.

enter image description here

share|improve this answer

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.