Jump to content

TeX/atopwithdelims

From Wikibooks, open books for an open world

< TeX

Synopsis

[edit | edit source]

\atopwithdelims[delim1][delim2]

Description

[edit | edit source]

\atopwithdelims is TeX's general command for stacking. Printing

a\atopwithdelims(] b

produces the stack where it has delimiter ( on the left and ] on the right. The delimiters are treated as if \left precedes the left delimiter and \right precedes the right delimiter, and hence the delimiters scale based on the size of the contained text. A null delimiter can be used by putting a period . in for one of the delimiters. Hence \atop can be replicated as

\atop = \atopwithdelims..

One important use of \atopwithdelims is in the definition of the Plain TeX command \choose

\choose = \atopwithdelims()

and each produces

See Also

[edit | edit source]