TeX/global

From Wikibooks, open books for an open world
< TeX
Jump to navigation Jump to search

Synopsis[edit | edit source]

\global

Description[edit | edit source]

\global is a TeX command that declares the following definition or assignment to be global, meaning that if TeX is currently inside a group, the definition or assignment will still remain valid when the group is over. Commands that can follow \global include \def, \edef, \let, \count, \countdef, etc. Also, TeX provides the following abbreviations as primitives:

\gdef = \global\def
\xdef = \global\edef

See Also[edit | edit source]