TeX/gdef

From Wikibooks, the open-content textbooks collection

< TeX
Jump to: navigation, search

[edit] Synopsis

\gdef <command> <parameter-text> {<replacement-text>}

[edit] Description

\gdef works as \def except that the definition is automatically set as \global, or in other words, visible from the outside of the current group.