What are the differences between \stackrel
and \stackbin
? In what situations is it better to use one or the other?
[Tex/LaTex] Differences between \stackrel and \stackbin
math-mode
math-mode
What are the differences between \stackrel
and \stackbin
? In what situations is it better to use one or the other?
Best Answer
Without the
stackrel
package,\stackrel
is defined inltxmath.dtx
aswhich typesets a relational operator with a top limit (effectively placing it on top). Heiko Oberdiek's
stackrel
package is said to provide anThis "enhancement" provides an optional argument to
\stackrel
for placing something below the relational operator (using a similar process as the original\stackrel
). Additionally, it provides a counterpart for binary relations called\stackbin
. The difference between the two (or when to use which one) is contained within the post What is the difference between\mathbin
vs.\mathrel
? Here is a similar take on the use ofstackrel
.Note the equivalent spacing using
\stackrel
with=
, while similar spacing is returned using\stackbin
and+
. In essence, use\stackrel
for relational operators, and\stackbin
for binary operators.