[dev-context] \installpagehandler

Hans Hagen pragma at wxs.nl
Thu Dec 22 14:42:48 CET 2011


On 22-12-2011 14:29, Wolfgang Schuster wrote:
> Hi Hans,
>
> can you add a \pagehandler command to access the defined commands
>
>    \def\pagehandler#1%
>      {\expandcheckedcsname{\??pp:h:}{#1}\v!normal}
>
> In the following examples from the past the only method to shipout the saved pages was (the no longer available) \actualshipout and this was never nice but with the above command one could write “\pagehandler\v!normal{…}”.
>
> Examples:
>
> - http://archive.contextgarden.net/message/20090522.174337.1bc2d583.en.html
> - http://archive.contextgarden.net/message/20090523.173455.72a58128.en.html

As I want such special commands to stand out, how about:

\unexpanded\def\invokepagehandler#1%
   {\expandcheckedcsname{\??pp:h:}{#1}\v!normal}

\let\pagehandler\invokepagehandler % only provided for downward 
compatibility



-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------


More information about the dev-context mailing list