TeX/global

From Wikibooks, the open-content textbooks collection

< TeX
Jump to: navigation, search

[edit] Synopsis

\global

[edit] Description

\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 primatives:

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

[edit] See Also