From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/106590 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Hans van der Meer Newsgroups: gmane.comp.tex.context Subject: Re: Bug (Lua) ? Date: Thu, 19 Mar 2020 14:39:48 +0100 Message-ID: <90EC7A4F-8117-4DBF-A187-4ED1ABE970EC@ziggo.nl> References: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Content-Type: multipart/mixed; boundary="===============3894627404425248882==" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="31837"; mail-complaints-to="usenet@ciao.gmane.io" To: NTG ConTeXt Original-X-From: ntg-context-bounces@ntg.nl Thu Mar 19 14:40:15 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 1jEvPD-0008AT-JB for gctc-ntg-context-518@m.gmane-mx.org; Thu, 19 Mar 2020 14:40:15 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id B0685182AEB; Thu, 19 Mar 2020 14:39:53 +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 nRsf5Zr9xtvR; Thu, 19 Mar 2020 14:39:51 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 6FDC1182AEC; Thu, 19 Mar 2020 14:39:51 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 556C8182AE9 for ; Thu, 19 Mar 2020 14:39:50 +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 4tvgpcvAhKl0 for ; Thu, 19 Mar 2020 14:39:49 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=212.54.42.167; helo=smtpq4.tb.mail.iss.as9143.net; envelope-from=havdmeer@ziggo.nl; receiver= Original-Received: from smtpq4.tb.mail.iss.as9143.net (smtpq4.tb.mail.iss.as9143.net [212.54.42.167]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 21363182AE6 for ; Thu, 19 Mar 2020 14:39:49 +0100 (CET) Original-Received: from [212.54.42.137] (helo=smtp6.tb.mail.iss.as9143.net) by smtpq4.tb.mail.iss.as9143.net with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jEvOm-0007on-TC for ntg-context@ntg.nl; Thu, 19 Mar 2020 14:39:48 +0100 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=ziggo.nl; s=202002corplgsmtpnl; h=To:Date:Subject:From; bh=pHCkwajbhBVi8hrWT/bFWVYwViphIl7uEe4b2xadl9c=; b=O166/YGsEYOdg2Z2BtLTc9rIZe j5BCgPX4lVl+RA4a6B5AMeDB/16yiI5G9v5CIJJtsZrroce+TU4OXqTx53FKheMUiAauG1fLoibwu zRc1bCMtl+PsVA30Qs4M5vH/g+hDVrNqtLczt9h/+/KEA2n1bQZzefDLt4TXzFzBFPShKieG4jM7+ 1ZVYhiQlI+YaeZ4suS/KaXrRDl7Gj0/TpqRJdBBSsqzlZIfZsbjg3VGacHdRfFT5KIjtrxXwTKjZz mugI8SqGc++hyv4XDVG1BsYNDHCn8MtY3REbtDU8XPcczkAJsWUyzSq2otJtp2ujUjCZCZIwzQyOn Zuau7Vww==; Original-Received: from 84-106-134-200.cable.dynamic.v4.ziggo.nl ([84.106.134.200] helo=[192.168.178.21]) by smtp6.tb.mail.iss.as9143.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jEvOm-0000ul-PD for ntg-context@ntg.nl; Thu, 19 Mar 2020 14:39:48 +0100 In-Reply-To: X-Mailer: Apple Mail (2.3445.104.11) X-SourceIP: 84.106.134.200 X-Authenticated-Sender: havdmeer@ziggo.nl (via SMTP) X-Ziggo-spambar: / X-Ziggo-spamscore: 0.0 X-Ziggo-spamreport: CMAE Analysis: v=2.3 cv=I9P+uOog c=1 sm=1 tr=0 a=wCstmS+ZHA3zSJXjQC+ubA==:17 a=9+rZDBEiDlHhcck0kWbJtElFXBc=:19 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=SS2py6AdgQ4A:10 a=MiNTnEJAAAAA:8 a=YEMqx4UAAAAA:8 a=ACQCx6kCAAAA:8 a=xtERp6CFAAAA:8 a=a3nu-2BBAAAA:8 a=YdhT_JNeaE73cSeTnQ0A:9 a=QEXdDO2ut3YA:10 a=uc_WX7F4kQQnQhfxmnUA:9 a=DOETA0XRpi_AJogy:21 a=_W_S_7VecoQA:10 a=LmrbSfiT3hecnSZifb5M:22 a=V0662LiR8DSfwiDagK97:22 a=Sab0UneHBzlWrQDlOuxD:22 a=ekCXXmE-vB8RPiJ3MEZb:22 X-Ziggo-Spam-Status: No 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:106590 Archived-At: --===============3894627404425248882== Content-Type: multipart/alternative; boundary="Apple-Mail=_2E70A87F-9C86-4139-B1FC-E56F35EB8084" --Apple-Mail=_2E70A87F-9C86-4139-B1FC-E56F35EB8084 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Lua strings can be split across lines by using so called long brackets = according to the Lua Reference Manual: [[split string]] or (very first newline ignored): [[ split string]] or with matched levels: [=3D=3D[ .... ]=3D=3D] dr. Hans van der Meer > On 19 Mar 2020, at 14:29, Aditya Mahajan wrote: >=20 > On Thu, 19 Mar 2020, mf wrote: >=20 >> Il 19/03/20 11:20, Fabrice Couvreur ha scritto: >>> Hi, >>> this file did not pose any problems but today yes. >>> Thank you. >>> Fabrice >>> \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 "0.8ex", bodyfont =3D "9pt" } ) >>=20 >> The argument is a lua table. Values are usually strings. >>=20 >>> context.startxrow({"background=3Dcolor,backgroundcolor=3Dgreen"}) >>=20 >> context.startxrow( { background =3D "color", backgroundcolor =3D = "green" } ) >>=20 >> ... and so on. >=20 > A table with just one string entry also works, but lua strings cannot = be split across lines. So, if you remove the newline after = "align=3D{middle,lohi}, that also works. >=20 > = Aditya____________________________________________________________________= _______________ > If your question is of interest to others as well, please add an entry = to the Wiki! >=20 > 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 > = __________________________________________________________________________= _________ --Apple-Mail=_2E70A87F-9C86-4139-B1FC-E56F35EB8084 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Lua = strings can be split across lines by using so called long brackets = according to the Lua Reference Manual:
[[split
string]]

or (very first newline ignored):
[[
split
string]]

or with matched levels: [=3D=3D[ .... ]=3D=3D]

dr. Hans van der Meer


On 19 Mar 2020, at 14:29, Aditya Mahajan <adityam@umich.edu> = wrote:

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
\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"})

context.startxtable( { align =3D = "middle,lohi", width =3D "1.2cm", offset =3D "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 = split across lines. So, if you remove the newline after = "align=3D{middle,lohi}, that also works.

Aditya_________________________________________________________= __________________________
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
_______________________________________________________________= ____________________

= --Apple-Mail=_2E70A87F-9C86-4139-B1FC-E56F35EB8084-- --===============3894627404425248882== 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== --===============3894627404425248882==--