From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/110623 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Fabrice Couvreur Newsgroups: gmane.comp.tex.context Subject: Re: Lua code and table Date: Thu, 18 Feb 2021 16:28:11 +0100 Message-ID: References: <98B049CA-8C85-4953-9E2D-1A4D6732BDBC@scorecrow.com> <441d5e40-2817-db15-5b43-a47535c25860@xs4all.nl> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7844762380443045431==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38493"; mail-complaints-to="usenet@ciao.gmane.io" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Feb 18 16:33:40 2021 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lClJD-0009t0-3a for gctc-ntg-context-518@m.gmane-mx.org; Thu, 18 Feb 2021 16:33:39 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 4D99828097E; Thu, 18 Feb 2021 16:33:13 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id c5k3cvcpG4HI; Thu, 18 Feb 2021 16:33:11 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id C306E280BA7; Thu, 18 Feb 2021 16:33:11 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 2CF33280BA2 for ; Thu, 18 Feb 2021 16:33:11 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id h1JnItjd4JuY for ; Thu, 18 Feb 2021 16:33:10 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.210.44; helo=mail-ot1-f44.google.com; envelope-from=fabrice1.couvreur@gmail.com; receiver= Original-Received: from mail-ot1-f44.google.com (mail-ot1-f44.google.com [209.85.210.44]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 2C0C228097E for ; Thu, 18 Feb 2021 16:33:10 +0100 (CET) Original-Received: by mail-ot1-f44.google.com with SMTP id 80so2216295oty.2 for ; Thu, 18 Feb 2021 07:33:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=AWtE8woHSWuw8Z4NkYZ29i1MCfI+FnjIdGXNVnLxs/s=; b=ssvs7+/MYlZNvkQrQ169W96Xj6QL0XN80v2sukEJx50o0Ge3vEO5Cx5ZcU6m6Su+f9 H9+Oynw8ve5kg6GhXLbmgAeOsfn6Z7vZrQDBc4LPmTRvuD6jIIA98z38wD+r/DLmB3Yp b1mhkmrCCEIHc1pgaphyXS1XvrdSGwvn8vLhfamj5JWSgrnI8s5dbhNX8Li+hWphN7W4 C0BGuyA+Jwl9cvHSnL45rTwm0XF0fG80p0ZIZHfUtNd7PJykc5oXJJEU8ahdWsw2qgIR 1r9GYU/AJVjgQgpprdN81jsiiO0taqBeCX6aJjRh17odk0c7EzXbc0CmXyZCVI4GI73N NM7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=AWtE8woHSWuw8Z4NkYZ29i1MCfI+FnjIdGXNVnLxs/s=; b=fkngAoG2KW70zesEZO6qMO8GQD+1nQZ34F978DZlgEAL2tNCrmPFVcr5A5lkEEytVL AmOYa0s/w2leVPqZPkf77uKbqDcb0ShjYpfa/XbhhmhA+OOS1aZt/fpi8wh49YNQ4nqE IiJaBdWknadCOgRxbcCGqAeemuw61HWAGlIulwqqUo0BnD0CItEMqojqSJw+zUspRN/P 1MWXN/pmqjgF4atMNWDm1exU8tUdAVbv9H2dbzhZKDAjZg3ZHRD20ZX9aD0Rtdper55W nLsYgY9DNxXDJ9QaQNyjm7uwlEccXTmjTVHaPZf0iE10HzDyFgK5czNoqnm/yifWtUCV 3I9Q== X-Gm-Message-State: AOAM531COC3V/Uy7/uE0BlECKcQcFPvg7PlwizQBMTSr9rKJcOUrY7/3 F3dMH9kJN/Zls+1wcfyoKq6KWhYYEuyNvgw0W/AXfBJD X-Google-Smtp-Source: ABdhPJy4WG2tqtUquL4OHE7qnwKxqyvkyaLs9UwhI8RhE9hi5jaAU5N8qW2eKHZKlp2T5tL73J8kpm3hobvpKSSMCfw= X-Received: by 2002:a9d:443:: with SMTP id 61mr3227709otc.330.1613662389010; Thu, 18 Feb 2021 07:33:09 -0800 (PST) In-Reply-To: X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 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" Xref: news.gmane.io gmane.comp.tex.context:110623 Archived-At: --===============7844762380443045431== Content-Type: multipart/alternative; boundary="0000000000007c034e05bb9e0d61" --0000000000007c034e05bb9e0d61 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello Jano, Thanks. Fabrice Le jeu. 18 f=C3=A9vr. 2021 =C3=A0 16:27, Jano Kula a = =C3=A9crit : > Hello Fabrice, > > > > On Thu, 18 Feb 2021 at 16:19, Fabrice Couvreur < > fabrice1.couvreur@gmail.com> wrote: > >> Hi all, Thanks to you, I'm not at your level with Lua, but I'm learning >> thanks to you >> Hans, I compiled your code and I get an error message : >> >> lua error > lua error on line 50 in file ./table_1.tex: >> >> token call, syntax: [ctxlua]:11: unexpected symbol near '=3D' >> >> 13 \startluacode >> 14 function document.MyTable(specification) >> 15 >> 16 local pattern =3D specification.pattern >> 17 local action =3D specification.action >> 18 local conversion =3D specification.conversion or >> "Characters" >> 19 >> 20 local n =3D #pattern >> 21 >> 22 -- context.startxtable { align =3D "middle,lohi", width =3D >> "0.8cm", >> 23 >> offset =3D "0.8ex", bodyfont =3D "9pt", framecolor =3D "cyan" } >> > > Just comment out line 23, too, or join 22 + 23 to one line. > > Jano > > > > _________________________________________________________________________= __________ > 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://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > > _________________________________________________________________________= __________ > --0000000000007c034e05bb9e0d61 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello Jano,
Thanks.
Fabrice

Le=C2=A0jeu. 18 f=C3=A9vr.= 2021 =C3=A0=C2=A016:27, Jano Kula <jano.kula@gmail.com> a =C3=A9crit=C2=A0:
Hello = Fabrice,



=
On Thu, 18 Feb 2021 at 16:19, Fabrice= Couvreur <fabrice1.couvreur@gmail.com> wrote:
Hi all, Thanks to you, I'm not at your level with Lua= , but I'm learning thanks to you
Hans, I compiled your code and= I get an error message :

lua error =C2=A0 =C2=A0 =C2=A0 >= ; lua error on line 50 in file ./table_1.tex:

token call, syntax: [c= txlua]:11: unexpected symbol near '=3D'

13 =C2=A0 =C2=A0 \st= artluacode
14 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0function document.MyTabl= e(specification)
15 =C2=A0 =C2=A0
16 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0local pattern =C2=A0 =C2=A0=3D specification.pattern
17= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0local action =C2=A0 =C2=A0= =3D specification.action
18 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0local conversion =3D specification.conversion or "Characters&quo= t;
19 =C2=A0 =C2=A0
20 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0local n =3D #pattern
21 =C2=A0 =C2=A0
22 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0-- =C2=A0context.startxtable { align =3D "middle,lohi",= width =3D "0.8cm",
23 >> =C2=A0offset =3D "0.8ex&q= uot;, bodyfont =3D "9pt", framecolor =3D "cyan" }

Just commen= t out line 23, too, or join 22=C2=A0+ 23 to one line.=C2=A0
<= div>
Jano=C2=A0


___________________________________________________________________________= ________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-cont= ext@ntg.nl / http://www.ntg.nl/mailman/listinfo/nt= g-context
webpage=C2=A0 : http://www.pragma-ade.nl / http://context.aanhet.net=
archive=C2=A0 : https://bitbucket.org/phg/context-m= irror/commits/
wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
___________________________________________________________________________= ________
--0000000000007c034e05bb9e0d61-- --===============7844762380443045431== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============7844762380443045431==--