10
$\begingroup$

The following:

TemplateBox[{"a", "b"}, "Binomial"] // RawBoxes

yields the correctly formatted (2d box structure) of Binomial[a,b]:

$$\begin{pmatrix}a\\b\end{pmatrix}$$

But I would like to see its (and other built-in functions') explicit definition in terms of low level boxes. Presumably, the definition of the style "Binomial" lives somewhere. Where is it?

$\endgroup$

1 Answer 1

9
$\begingroup$

They live in stylesheets:

CurrentValue[{StyleDefinitions, "Binomial"}]
{TemplateBoxOptions -> {DisplayFunction -> (RowBox[{"(", 
    GridBox[{{#1}, {#2}}], ")"}] &), Tooltip -> Automatic}} 
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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