From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/82311 Path: news.gmane.org!not-for-mail From: Martin Scholz Newsgroups: gmane.comp.tex.context Subject: problems with the invoice module from contextgarden Date: Sat, 4 May 2013 01:01:31 +0200 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0919339066==" X-Trace: ger.gmane.org 1367622113 17569 80.91.229.3 (3 May 2013 23:01:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 3 May 2013 23:01:53 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Sat May 04 01:01:55 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UYOzA-0002bG-WC for gctc-ntg-context-518@m.gmane.org; Sat, 04 May 2013 01:01:53 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 91BDD101E9; Sat, 4 May 2013 01:01:51 +0200 (CEST) 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 HNNo8dngLL4O; Sat, 4 May 2013 01:01:49 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id C1D79101E5; Sat, 4 May 2013 01:01:49 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B4B64101E5 for ; Sat, 4 May 2013 01:01:47 +0200 (CEST) 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 DcN69HGcfSLN for ; Sat, 4 May 2013 01:01:45 +0200 (CEST) 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 35C46101E4 for ; Sat, 4 May 2013 01:01:34 +0200 (CEST) Original-Received: from mail-ob0-x229.google.com (mail-ob0-x229.google.com [IPv6:2607:f8b0:4003:c01::229]) by filter1-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r43N1XfE024808 for ; Sat, 4 May 2013 01:01:34 +0200 Original-Received: by mail-ob0-f169.google.com with SMTP id tb18so1835985obb.28 for ; Fri, 03 May 2013 16:01:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type; bh=U7vFRYsZ3D/AW85n/gv8KxSNTJs+vHjgxKocq7oLgWk=; b=LtsDlCN7Y/vsqH7BeBZ5m+OM/tyf3vvlAkkq1dx55/Y1YtY9mXZe3bAbcg5OJi4BpG /ai0Cv/dkUH8EzmrEQMamE+IcP0AhPA2j3Gz+CiDMCFltfbor1E4xsN0B0IDGddc/uCB ObOAm5/CySyPelUJHhK0pSr4u3vt8SdkIBAPT0v7vjO4fqGtpgeBGOm+O4XSsjYpDyXu Bq6zcHbBa096OKDLgLU3HVho+Lf/0XLQaOViqYXYRu8R9xeAj6b+s0bSQmnQxuRcyT/R HhPbVeG82XP0xH/Kv4/knFfSs1aALxC+1l0wdp4yrE801sqXRPm04J0O2dKFXtAWGXGy j8+Q== X-Received: by 10.60.138.227 with SMTP id qt3mr3439295oeb.103.1367622091422; Fri, 03 May 2013 16:01:31 -0700 (PDT) Original-Received: by 10.76.99.193 with HTTP; Fri, 3 May 2013 16:01:31 -0700 (PDT) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2607:f8b0:4003:c01::229; country=US X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0RJvz1xxi - fbdfa35f8378 - 20130504 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:82311 Archived-At: --===============0919339066== Content-Type: multipart/alternative; boundary=047d7b33d272f28f8704dbd854d6 --047d7b33d272f28f8704dbd854d6 Content-Type: text/plain; charset=UTF-8 Hi guys, today I tried to use the invoice module from contextgarden http://wiki.contextgarden.net/Invoice first it spit errors about userdata.numberformat in combination with %, after commenting it out and not using it, I now get that error: ) (invoicefunctions.tex ! LuaTeX error [string "\directlua "]:24: unexpected symbol near '%'. system > tex > error on line 112 in file invoicefunctions.tex: LuaTeX error ... 102 userdata.InvoiceTextLine(item.text) 103 end 104 end 105 printperhour = (hoursum > 0) and (amountsum == (hoursum * userdata.invoice.perhour)) 106 --userdata.invoice.hours = hoursum 107 --userdata.invoice.amount = amountsum 108 userdata.InvoiceSumLine("gesamt", printperhour) 109 context.stoptabulate() 110 end 111 112 >> \stopluacode } \luat_start_lua_code_indeed ...nd \directlua {#1}} l.112 \stopluacode anyone can help here? Thx Martin 'golodhrim' Scholz --047d7b33d272f28f8704dbd854d6 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi guys,

today I tried to use the= invoice module from contextgarden=C2=A0http://wiki.contextgarden.net/Invoice
first it spit errors about userdata.numberformat in combination = with %, after commenting it out and not using it, I now get that error:

) (invoicefunctions.tex
! LuaTeX error [string "\directlua "]:24: unexpected symbol near = '%'.

system =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0> tex > error on line 112 in file invoicefunctions.tex: LuaTeX = error =C2=A0...

102 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 userdata.InvoiceTextLine(item.text)<= /div>
103 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 end
104 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 end<= /div>
105 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 printperhour =3D (h= oursum > 0) and (amountsum =3D=3D (hoursum * userdata.invoice.perhour))<= /div>
106 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 --userdata.invoice.hours= =3D hoursum
107 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 --user= data.invoice.amount =3D amountsum
108 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 userdata.InvoiceSumLine("gesamt", printperhour)
109 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 context.stoptabulate(= )
110 =C2=A0 =C2=A0 end
111 =C2=A0 =C2=A0=C2=A0
112 = >> =C2=A0\stopluacode

}
=C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0=C2=A0
\luat_start_lua_code_indeed ...nd \direct= lua {#1}}
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0
l.112 \stopluacode

anyone can help here?

Thx

Martin 'golodhrim' = Scholz
--047d7b33d272f28f8704dbd854d6-- --===============0919339066== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============0919339066==--