TeX/atopwithdelims

From testwiki
Revision as of 08:28, 11 September 2017 by imported>Strange quark (Fix categorization)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

< TeX

Synopsis

\atopwithdelims[delim1][delim2]

Description

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

a\atopwithdelims(] b

produces the stack (ab] 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 (ab)

See Also

Template:BookCat