I was wondering what was the cause of the following warning message with the specific \usepackage used below:

Using the following:



Warning message

Package amsmath Warning: Foreign command \atopwithdelims;
(amsmath)                \frac or \genfrac should be used instead
(amsmath)                 on input line 56.

Line 56

\[ \frac{gcd(m,n)}{n} {n\choose m} \] is an integer for all pairs of integers $n\geq m\geq 1$.

  • What is on line 56 of your file? – Matthew Leingang Jun 1 '11 at 10:48
  • 1
    @Matthew Leingang: It's classified top secret info, I wouldn't be able to disclose that with you, I am sorry. Just joking, it was cool pretending to be a agent there for a bit. It is here below: \[ \frac{gcd(m,n)}{n} {n\choose m} \] is an integer for all pairs of integers $n\geq m\geq 1$. – night owl Jun 1 '11 at 12:16
  • 12
    Aha. Replacing n \choose m with \binom{n}{m} will make the warning go away. – Matthew Leingang Jun 1 '11 at 14:30
  • @Matt: Thank You, that sure did take care of it flawlessly. – night owl Jun 1 '11 at 15:49

\atopwithdelims is a TeX math primitive command. If you use amsmath, you don't need \atopwithdelims or \atop, use amsmath macros such as \frac, \binom, \genfrac etc. instead.

If a class or package uses this command, or a command such as \choose which uses it, you would get this warning. I would ignore the warning then, otherwise I would have to redefine the concerned macros of the package or class.

Alternatively, I suggest that you use \binom{a}{n}.

  • Thanks, that is exactly what it is. Using the \choose command for the binomial coefficients. So you suggest ignoring the warning since I am using the \choose ? – night owl Jun 1 '11 at 12:13
  • 25
    @night owl: I suggest using \binom{a}{b} instead of {a \choose b}. – Stefan Kottwitz Jun 1 '11 at 12:30
  • 2
    @StefanKottwitz Given that you use \choose as an example, would you consider moving the use of \binom{n}{m} into your answer? I suspect many people find their way to this question when using \choose. – Alejandro C De Baca Dec 23 '17 at 5:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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