TeX/global

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

Synopsis[edit]

\global

Description[edit]

\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]