From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/91951 Path: news.gmane.org!not-for-mail From: =?iso-8859-2?B?UHJvY2jhemthIEx1a+G5IEluZy4gLSBQb250ZXggcy4gci4gby4=?= Newsgroups: gmane.comp.tex.context Subject: TeX capacity exceeded - in Lua block - why? Date: Thu, 16 Jul 2015 10:20:32 +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=----------dpq208RWE21GADkb69wbAX X-Trace: ger.gmane.org 1437034894 22439 80.91.229.3 (16 Jul 2015 08:21:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 16 Jul 2015 08:21:34 +0000 (UTC) To: ConTeXt Original-X-From: ntg-context-bounces@ntg.nl Thu Jul 16 10:21:19 2015 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZFePv-0008KY-Lk for gctc-ntg-context-518@m.gmane.org; Thu, 16 Jul 2015 10:21:19 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CD16710228 for ; Thu, 16 Jul 2015 10:21:13 +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 ebouwiYernQR for ; Thu, 16 Jul 2015 10:21:11 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id CDC8310230 for ; Thu, 16 Jul 2015 10:20:45 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 326EC101F6 for ; Thu, 16 Jul 2015 10:20:41 +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 m0a4ruXFlJsM for ; Thu, 16 Jul 2015 10:20:40 +0200 (CEST) Original-Received: from filter2-utr.mf.surf.net (filter2-utr.mf.surf.net [195.169.124.153]) by balder.ntg.nl (Postfix) with ESMTP id 09137101E6 for ; Thu, 16 Jul 2015 10:20:39 +0200 (CEST) Original-Received: from mail.pontex.cz (mail.pontex.cz [89.233.168.98]) by filter2-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id t6G8KbA0020791 for ; Thu, 16 Jul 2015 10:20:37 +0200 X-Footer: cG9udGV4LmN6 Original-Received: from localhost ([127.0.0.1]) by mail.pontex.cz (Kerio Connect 8.3.4 patch 1) for ntg-context@ntg.nl; Thu, 16 Jul 2015 10:21:11 +0200 User-Agent: Opera Mail/12.15 (Win32) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=89.233.168.98; country=CZ; latitude=50.0833; longitude=14.4167; http://maps.google.com/maps?q=50.0833,14.4167&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 04OQUkBAf - 4d18e3f0613d - 20150716 (trained as not-spam) Received-SPF: none (filter2-utr.mf.surf.net: domain of LPr@pontex.cz does not designate permitted sender hosts) receiver=filter2-utr.mf.surf.net; client-ip=89.233.168.98; envelope-from=; helo=mail.pontex.cz; identity=mailfrom X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.153 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 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.org gmane.comp.tex.context:91951 Archived-At: ------------dpq208RWE21GADkb69wbAX Content-Type: text/plain; charset=iso-8859-2; format=flowed; delsp=yes Content-Transfer-Encoding: Quoted-Printable Hello, why this code: ---- \def\GG{\ifmmode G_G\else$\GG$\fi} \starttext \GG $\GG$ % OK \startitemize[][] \sym{\GG} \GG % OK \stopitemize \startluacode context.startitemize() context.sym([[\GG]]) context("Abc") context.stopitemize() \stopluacode \stoptext ---- fails with: " ... tex error > tex error on line 14 in file d://Lukas/Docs/Ull-Gra/Te= st/Abr.mkiv: ! TeX capacity exceeded, sorry [input stack size=3D10000] \GG ->\ifmmode G_G\else $\GG $\fi \GG ->\ifmmode G_G\else $\GG $\fi \GG ->\ifmmode G_G\else $\GG $\fi \GG ->\ifmmode G_G\else $\GG $\fi \GG ->\ifmmode G_G\else $\GG $\fi \GG ->\ifmmode G_G\else $\GG $\fi ... l.14 \stopluacode ... " I need to call "\GG" from within Lua, and the real macro name is created= run-time (contrary to this MNWE; so to be \GG, \HH, \Fik etc. - the nam= e is obtained from a Lua table as a string). I cannot understand why all TeX calls are OK but the problem appears in = Lua block... Best regards, Lukas -- = Ing. Luk=E1=B9 Proch=E1zka | mailto:LPr@pontex.cz Pontex s. r. o. | mailto:pontex@pontex.cz | http://www.pontex.cz Bezov=E1 1658 147 14 Praha 4 Tel: +420 241 096 751 Fax: +420 244 461 038 ------------dpq208RWE21GADkb69wbAX Content-Disposition: attachment; filename=Abr.mkiv Content-Type: application/octet-stream; name="Abr.mkiv" Content-Transfer-Encoding: Base64 XGRlZlxHR3tcaWZtbW9kZSBHX0dcZWxzZSRcR0ckXGZpfQ0KDQpcc3RhcnR0ZXh0 DQogIFxHRyAkXEdHJA0KICBcc3RhcnRpdGVtaXplW11bXQ0KICAgIFxzeW17XEdH fSBcR0cNCiAgXHN0b3BpdGVtaXplDQoNCiAgXHN0YXJ0bHVhY29kZQ0KICAgIGNv bnRleHQuc3RhcnRpdGVtaXplKCkNCiAgICAgIGNvbnRleHQuc3ltKFtbXEdHXV0p DQogICAgICBjb250ZXh0KCJBYmMiKQ0KICAgIGNvbnRleHQuc3RvcGl0ZW1pemUo KQ0KICBcc3RvcGx1YWNvZGUNClxzdG9wdGV4dA0K ------------dpq208RWE21GADkb69wbAX Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= ------------dpq208RWE21GADkb69wbAX--