ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
To: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
Cc: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Learning LuaTeX : Invoice
Date: Sun, 20 Feb 2011 16:09:26 +0100	[thread overview]
Message-ID: <4D612EA6.2070803@wxs.nl> (raw)
In-Reply-To: <D207841F-267E-4C7F-903F-CB7C8EA68F82@gmail.com>

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
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


  parent reply	other threads:[~2011-02-20 15:09 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-20 11:55 Henning Hraban Ramm
2011-02-20 12:07 ` Henning Hraban Ramm
2011-02-20 12:08 ` Wolfgang Schuster
2011-02-20 12:58   ` Henning Hraban Ramm
2011-02-20 13:29     ` Wolfgang Schuster
2011-02-20 13:29     ` Henning Hraban Ramm
2011-02-20 13:41       ` Wolfgang Schuster
2011-02-20 14:49         ` Henning Hraban Ramm
2011-02-20 15:12           ` Hans Hagen
2011-02-20 15:09         ` Hans Hagen [this message]
2011-02-20 19:16           ` Henning Hraban Ramm
2011-02-20 20:20             ` Philipp Gesang
2011-02-20 20:28               ` Wolfgang Schuster
2011-02-20 23:28                 ` Hans Hagen
2011-02-22  9:47               ` Henning Hraban Ramm
2011-02-22  9:51                 ` luigi scarso
2011-02-22 10:01                   ` Wolfgang Schuster
2011-02-22 10:14                     ` luigi scarso
2011-02-22 10:55                       ` Henning Hraban Ramm

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4D612EA6.2070803@wxs.nl \
    --to=pragma@wxs.nl \
    --cc=ntg-context@ntg.nl \
    --cc=schuster.wolfgang@googlemail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).