From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/66203 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 20:16:03 +0100 Message-ID: References: <13F84CC8-EB65-4D8E-B2F8-54D8CBE1B32A@fiee.net> <130608E6-A8C0-4B47-943F-C63C926D58E9@fiee.net> <18189696-3253-4F58-867E-F6A4E8BE8925@fiee.net> <4D612EA6.2070803@wxs.nl> 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 1298229411 8713 80.91.229.12 (20 Feb 2011 19:16:51 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 20 Feb 2011 19:16:51 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Feb 20 20:16:47 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 1PrElx-0001FE-CO for gctc-ntg-context-518@m.gmane.org; Sun, 20 Feb 2011 20:16:45 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5EF47CAA39; Sun, 20 Feb 2011 20:16:44 +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 AhKbGgIYT9MJ; Sun, 20 Feb 2011 20:16:44 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1C806CAA16; Sun, 20 Feb 2011 20:16:31 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 15899CAA16 for ; Sun, 20 Feb 2011 20:16:30 +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 eShlxtaD39xt for ; Sun, 20 Feb 2011 20:16:10 +0100 (CET) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by balder.ntg.nl (Postfix) with ESMTP id F0433C9A7C for ; Sun, 20 Feb 2011 20:16:09 +0100 (CET) Original-Received: from turan.fiee.net (turan.fiee.net [87.230.77.106]) by filter1-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p1KJG5tv018170 for ; Sun, 20 Feb 2011 20:16:09 +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 6BF152DD4C002 for ; Sun, 20 Feb 2011 20:16:04 +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 20:16:04 +0100 (CET) In-Reply-To: <4D612EA6.2070803@wxs.nl> 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: 08Eajg5gB - bd1323ab197c - 20110220 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.217 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:66203 Archived-At: Am 2011-02-20 um 16:09 schrieb Hans Hagen: > 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) You mean, Wolfgang must set it in his module? I guess he did. At least this works as expected: function userdata.RegisterItem(text, hours) if tex.systemmodes.trialtypesetting then return end table.insert(userdata.invoice.items, {text=text, hours=hours}) end Thank you! Am 2011-02-20 um 16:12 schrieb Hans Hagen: > On 20-2-2011 3:49, Henning Hraban Ramm wrote: > >> "trialtypesetting" in the LuaTeX manual. > > things like this are not part of luatex but of context so you need > the cld manual (or wait till more documentation shows up, or ask ..) Ah, I guess the CLD manual was what I was looking for all the time ;-) I suggest you mention tex.systemmodes.trialtypesetting in section 3.3. "trial typesetting" - the "return true" approach didn't help in my case (or I didn't understand it). I'll wikify my invoice sample soon. LuaTeX docs in the wiki are a bit scattered ATM... (e.g. Lua, LuaTeX, CLD and MkIV all explain LuaTeX basics) 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 ___________________________________________________________________________________