Programming:TeX \relax

From Wikibooks, the open-content textbooks collection

Jump to: navigation, search

< TeX

Contents

[edit] Synopsis

\relax

[edit] Description

Donald Knuth describes this as telling TeX to "do nothing." This seems like a pointless control sequence at first thought. However, some control sequences act on tokens that follow it, and \relax tells TeX to stop accepting new tokens for this control sequence. This is sometimes necessary to resolve otherwise ambiguous expressions.

[edit] Examples

[edit] Exercises

Personal tools