diff options
Diffstat (limited to 'Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-subverttoks.html')
-rw-r--r-- | Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-subverttoks.html | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-subverttoks.html b/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-subverttoks.html index 6becedead22..af620d507b3 100644 --- a/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-subverttoks.html +++ b/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-subverttoks.html @@ -2,7 +2,7 @@ <title>UK TeX FAQ -- question label subverttoks</title> </head><body> <h3>Subverting a token register</h3> -<p/>A common requirement is to “subvert” a token register that other +<p/>A common requirement is to “subvert” a token register that other macros may use. The requirement arises when you want to add something to a system token register (<code>\</code><code>output</code> or <code>\</code><code>every*</code>), but know that other macros use the token register, too. (A common requirement @@ -17,7 +17,7 @@ allows an independent package to play the exact same game: \mypkg@everypar\expandafter{\the\everypar} \mypkg@@everypar{\mypkgs@ownstuff\the\mypkg@everypar} \def\mypkgs@ownstuff{% - <stuff to do at the start of the token register>% + <stuff to do at the start of the token register>% } \let\everypar\mypkg@everypar </pre> @@ -25,12 +25,12 @@ allows an independent package to play the exact same game: </blockquote><p> As you can see, the package (<i>mypkg</i>) <ul> -<li> creates an alias for the existing “system” <code>\</code><code>everypar</code> +<li> creates an alias for the existing “system” <code>\</code><code>everypar</code> (which is frozen into any surrounding environment, which will carry on using the original); <li> creates a token register to subvert <code>\</code><code>everypar</code> and initialises it with the current contents of <code>\</code><code>everypar</code>; -<li> sets the “old” <code>\</code><code>everypar</code> to execute its own extra code, +<li> sets the “old” <code>\</code><code>everypar</code> to execute its own extra code, as well as the contents of its own token register; <li> defines the macro for the extra code; and <li> points the token <code>\</code><code>everypar</code> at the new token register. |