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.
  • Using the push/pop mechanism is handy when a table must be temporarily activated, but when it is not known which table exacty is active prior to the temporary activation. E.g., imagine that you need to use a character table called 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()
    

    Go back to index of Yodl.

    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.


    This page was built from Yodl-1.31.18 by

    <(address unknown)>, Sat May 7 03:56:57 2011 UTC.