[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

4.11 Diverting and undiverting output

Diversions are a way of temporarily saving output.

Output is diverted using \divert:

 
\divert{number}

where number is the diversion to be used.

 
\divert{1}
This text is diverted.
\divert{0}
=>
This text is not diverted.
=>This text is not diverted.
^D
=>
=>This text is diverted.

Diverted text can be undiverted explicitly using the builtin \undivert:

 
\undivert{number}

which undiverts the diversion given by the argument.

The builtin \divnum:

 
\divnum

expands to the number of the current diversion.



This document was generated on February, 23 2003 using texi2html