On 20-2-2011 2:41, Wolfgang Schuster wrote:
Am 20.02.2011 um 14:29 schrieb Henning Hraban Ramm:
I found a better approach, but with the letter module involved, my "RegisterItem" is called twice!
The letter modules does trialtypesetting of the content to get the content of the \cc, \encl and \ps commands. To prevent that certain commands and environments are preprocessed you can wrap them in
\iftrialtypesetting \else .... \fi
or
\unless\iftrialtypesetting .... \fi
@Hans: Is it possible to write the above like this
\startnotmode[trialtypesetting] .... \stopnotmode
it's a system mode, so \startnotmode[*trialtypesetting] ... and in lua if tex.systemmodes.trialtypesetting then ... but, you need to use \settrialtypesetting (see syst-aux.mkiv) as there is more than the \if now (too late to get rid of the if) Hans ----------------------------------------------------------------- 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 -----------------------------------------------------------------