Syntax#
\binomm{a}math contentm{b}math contentArgspec m m — two mandatory arguments. Reading argspecs
Common tasks#
How to write a binomial coefficient#
How to write a binomial in a sum#
How to write a compact inline binomial#
\binom follows the current style; \dbinom / \tbinom lock display or text size.
In TeXForm#
TeXForm parses this entry as prefix syntax; the package determines its argument specification.
Equivalent forms#
\genfrac{(}{)}{0}{}{#1}{#2}exactThis AMS mapping fixes
\genfracto use ( and ) delimiters, linethickness 0, and empty style.n \choose kapproximate\chooseis a TeX primitive with different grouping scope;\binomis preferred in LaTeX
See also#
Test cases#
| Input | Case | MathJax | KaTeX | XeTeX |
|---|---|---|---|---|
\binom{a}{b} | Positive · baseline | Pass | Pass | Pass |
\binom a{b} | Positive · bare[0] | Pass | Pass | Pass |
\binom{a}b | Positive · bare[1] | Pass | Pass | Pass |