[NTG-context] Learning LuaTeX : Invoice

Wolfgang Schuster schuster.wolfgang at googlemail.com
Sun Feb 20 14:41:12 CET 2011


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

Wolfgang



More information about the ntg-context mailing list