From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/66199 Path: news.gmane.org!not-for-mail From: Henning Hraban Ramm Newsgroups: gmane.comp.tex.context Subject: Re: Learning LuaTeX : Invoice Date: Sun, 20 Feb 2011 15:49:30 +0100 Message-ID: <74181247-D7E4-4CAE-903C-896272F447C5@fiee.net> References: <13F84CC8-EB65-4D8E-B2F8-54D8CBE1B32A@fiee.net> <130608E6-A8C0-4B47-943F-C63C926D58E9@fiee.net> <18189696-3253-4F58-867E-F6A4E8BE8925@fiee.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset="us-ascii"; Format="flowed"; DelSp="yes" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1298213414 28185 80.91.229.12 (20 Feb 2011 14:50:14 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 20 Feb 2011 14:50:14 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Feb 20 15:50:10 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PrAbx-0002ty-FA for gctc-ntg-context-518@m.gmane.org; Sun, 20 Feb 2011 15:50:09 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B0A09CAA3C; Sun, 20 Feb 2011 15:50:08 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id xvqP60uTPfoa; Sun, 20 Feb 2011 15:49:55 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D0298CAA32; Sun, 20 Feb 2011 15:49:55 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 96896CAA32 for ; Sun, 20 Feb 2011 15:49:54 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 1HNjFZ9oX4-f for ; Sun, 20 Feb 2011 15:49:34 +0100 (CET) Original-Received: from filter5-ams.mf.surf.net (filter5-ams.mf.surf.net [192.87.102.73]) by balder.ntg.nl (Postfix) with ESMTP id 16C5ACAA21 for ; Sun, 20 Feb 2011 15:49:34 +0100 (CET) Original-Received: from turan.fiee.net (turan.fiee.net [87.230.77.106]) by filter5-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p1KEnWpV016364 for ; Sun, 20 Feb 2011 15:49:33 +0100 X-No-Auth: unauthenticated sender Original-Received: from turan.fiee.net (lvps87-230-77-106.dedicated.hosteurope.de [127.0.0.1]) by turan.fiee.net (Postfix) with ESMTP id 4442A2DD4C002 for ; Sun, 20 Feb 2011 15:49:32 +0100 (CET) Original-Received: from [10.128.9.9] (9-55.78-83.cust.bluewin.ch [83.78.55.9]) by turan.fiee.net (Postfix) with ESMTP for ; Sun, 20 Feb 2011 15:49:32 +0100 (CET) In-Reply-To: X-Mailer: Apple Mail (2.936) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=87.230.77.106; country=DE; region=07; city=Host; latitude=51.6500; longitude=6.1833; http://maps.google.com/maps?q=51.6500,6.1833&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0BEaeNwT7 - 87eaabf7d514 - 20110220 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.73 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:66199 Archived-At: Am 2011-02-20 um 14:41 schrieb Wolfgang Schuster: > > 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 Thank you, but how does that map to Lua? I couldn't find "trialtypesetting" in the LuaTeX manual. I tried "if context.trialtypesetting() then return end" but get only "undefined control sequence". """ context.iftrialtypesetting() do return end context.fi() """ can't work, of course ("Incomplete \iffalse") Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___________________________________________________________________________________ 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 ___________________________________________________________________________________