Besides the previously described macro USECHARTABLE()
, Yodl has one other
mechanism of activating and deactivating character translation tables. This
mechanism uses a stack, and hence, the related macros are appropriately named
PUSHCHARTABLE()
and POPCHARTABLE()
.
PUSHCHARTABLE(name)
pushes the currently active translation
table onto a stack, and activates the table identified by name
. The
argument may be emtpy; in that case, the zero-translation table is
activated (analogously to USECHARTABLE()
).
POPCHARTABLE()
activates the translation table that was last
pushed. There is no argument to this macro.
listing
to typeset a listing, but that you do not know the current
table. The pushing and popping mechanism is then used as follows:
COMMENT(First, we save the current table on the stack and we activate our "listing" table.) PUSHCHARTABLE(listing) COMMENT(Now the text is question is typeset.) ... COMMENT(The previously active table is re-activated, whatever its name.) POPCHARTABLE()
Please send Yodl questions and comments to yodl@icce.rug.nl.
Please send comments on these web pages to (address unknown)
Copyright (c) 1997, 1998, 1999 Karel Kubat and Jan Nieuwenhuizen.
Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved.