From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/106588 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Bug (Lua) ? Date: Thu, 19 Mar 2020 09:29:26 -0400 (EDT) Message-ID: References: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="8323329-1908340540-1584624567=:28589" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="110352"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Alpine 2.22 (LNX 394 2020-01-19) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Mar 19 14:29:56 2020 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 1jEvFD-000SYm-CC for gctc-ntg-context-518@m.gmane-mx.org; Thu, 19 Mar 2020 14:29:55 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 15188182AE3; Thu, 19 Mar 2020 14:29:34 +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 zAS0QBskJ7Qq; Thu, 19 Mar 2020 14:29:32 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 385A5182AE4; Thu, 19 Mar 2020 14:29:32 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 6AAEC182AE2 for ; Thu, 19 Mar 2020 14:29:31 +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 BLTYBKZ8ddny for ; Thu, 19 Mar 2020 14:29:30 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=141.211.12.86; helo=tombraider.mr.itd.umich.edu; envelope-from=adityam@umich.edu; receiver= Original-Received: from tombraider.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.12.86]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 4653D182AD2 for ; Thu, 19 Mar 2020 14:29:29 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=umich.edu; s=relay-2016-05-12; t=1584624568; bh=+oKY9THYUdLiuNr5qCnO1dFYOLrG/JfTvIRuKZJ65kw=; h=Date:From:To:Subject:In-Reply-To:References; b=NvVlhuUuEVbDJ59Lds8Q7JmMx1Cs4YNxegVPFrSqlbQsrjL+zXoKe5pRs/+QKTL/Z VB91oxO3k1zTEulUDCkDWnU2cOAu1bPKJKkRpB/6/il4bZ6lMBV2Kp9d6CmlO4K54P qsaPTuOerr8hklL66SJ32LiUmCwmEerZOwNcqfsw7NvbI0UW77ZS0uskAq2KQOW+TT HJCjRxDHN+Boud2qJPEllJVNw2YUVL3iG7ygROO+844bXL9sjV3FqvNvY7unWTgzpc kTLTcDwodLwq+nRzUd5te2gkIYbfBkl5ws6cLE81Yog43pWhr7rjRclE6LU9H5w1vj KQ2Zohv/7eW+A== Authentication-Results: tombraider.mr.itd.umich.edu; iprev=pass policy.iprev=198.84.255.218 (198-84-255-218.cpe.teksavvy.com); auth=pass smtp.auth=adityam Original-Received: FROM adi-thinkpad.local (198-84-255-218.cpe.teksavvy.com [198.84.255.218]) By tombraider.mr.itd.umich.edu ID 5E7373B7.CAA49.15641; Authuser adityam; Thu, 19 Mar 2020 09:29:27 -0400 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:106588 Archived-At: This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-1908340540-1584624567=:28589 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE On Thu, 19 Mar 2020, mf wrote: > Il 19/03/20 11:20, Fabrice Couvreur ha scritto: >> Hi, >> this file did not pose any problems but today yes. >> Thank you. >> Fabrice >>=20 >> \starttext >> \startluacode >> local letters_1 =3D { "A", "B", "C", "D", "E", "F", "G", "H", "I", "J" } >> local letters_2 =3D { "1", "Ann=C3=A9e", "1998", "1999", "2000", "2001",= "2002", >> "2003", "2004", "2005","2006" } >> context.startxtable({"align=3D{middle,lohi}, >> width=3D1.2cm,offset=3D0.8ex,bodyfont=3D9pt"}) >>=20 > > context.startxtable( { align =3D "middle,lohi", width =3D "1.2cm", offset= =3D=20 > "0.8ex", bodyfont =3D "9pt" } ) > > The argument is a lua table. Values are usually strings. > >> context.startxrow({"background=3Dcolor,backgroundcolor=3Dgreen"}) > > context.startxrow( { background =3D "color", backgroundcolor =3D "green" = } ) > > ... and so on. A table with just one string entry also works, but lua strings cannot be=20 split across lines. So, if you remove the newline after=20 "align=3D{middle,lohi}, that also works. Aditya --8323329-1908340540-1584624567=:28589 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== --8323329-1908340540-1584624567=:28589--