From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/58555 Path: news.gmane.org!not-for-mail From: Jaroslav Hajtmar Newsgroups: gmane.comp.tex.context Subject: TeX comments in Lua strings - message: Undefined control sequence Date: Thu, 06 May 2010 12:04:46 +0200 Message-ID: <4BE2943E.3010403@gyza.cz> Reply-To: hajtmar@gyza.cz, mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1273140298 29369 80.91.229.12 (6 May 2010 10:04:58 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 6 May 2010 10:04:58 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu May 06 12:04:54 2010 connect(): No such file or directory Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1O9xws-0003uo-Cq for gctc-ntg-context-518@m.gmane.org; Thu, 06 May 2010 12:04:54 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DC9E5C9C67; Thu, 6 May 2010 12:04:53 +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 SQWbwpl54Tkm; Thu, 6 May 2010 12:04:51 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 57F5AC9C71; Thu, 6 May 2010 12:04:51 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 504A9C9C71 for ; Thu, 6 May 2010 12:04:50 +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 pFF7miWaTmvB for ; Thu, 6 May 2010 12:04:48 +0200 (CEST) Original-Received: from psi4.forpsi.com (smtpa.forpsi.com [81.2.195.204]) by balder.ntg.nl (Postfix) with SMTP id 0C882C9C67 for ; Thu, 6 May 2010 12:04:47 +0200 (CEST) Original-Received: (qmail 27328 invoked by uid 89); 6 May 2010 10:04:46 -0000 Original-Received: from unknown (HELO ?192.168.1.60?) (hajtmar@gyza.cz@188.116.72.12) by psi04 with ESMTPA; 6 May 2010 10:04:46 -0000 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; cs; rv:1.9.1.8) Gecko/20100216 Thunderbird/3.0.2 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:58555 Archived-At: Hello, Is there any possibility use TeX comments (text behind character %) in Lua strings? When I use comment char % inside luastring, then rest of string (i.e. next TeX definitions) are for TeX invisible. For example: When I make string : TeXDefsByLua=[[ \def\printline{ \directlua{printline()} \par\hrule\par } \def\printall{ \directlua{printall()} \par\hrule\par } ]] tex.sprint(TeXDefsByLua) then is all right, BUT when I make string : TeXDefsByLua=[[ \def\printline{ % my comment inside string \directlua{printline()} \par\hrule\par } \def\printall{ \directlua{printall()} \par\hrule\par } ]] tex.sprint(TeXDefsByLua) then I get message: "Undefined control sequence" Is there possibility use TeX comments inside Lua strings? Thanx Jaroslav ___________________________________________________________________________________ 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 ___________________________________________________________________________________