From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/45925 Path: news.gmane.org!not-for-mail From: "luigi scarso" Newsgroups: gmane.comp.tex.context Subject: Re: printing tab in lua: print('a\tb') fails Date: Thu, 27 Nov 2008 09:42:52 +0100 Message-ID: References: <6faad9f00811261107k2c6d4d1bof2cecc9fb0e6f67b@mail.gmail.com> <77677541-9A74-4E38-95DE-835B5ABFDD79@gmail.com> <6faad9f00811270029l5f059665tbe66d7b6a73ec33e@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0880219864==" X-Trace: ger.gmane.org 1227775511 15117 80.91.229.12 (27 Nov 2008 08:45:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 27 Nov 2008 08:45:11 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Thu Nov 27 09:46:13 2008 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1L5cVo-0004s1-5p for gctc-ntg-context-518@m.gmane.org; Thu, 27 Nov 2008 09:46:12 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id EE7151FB6B; Thu, 27 Nov 2008 09:44:56 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 25348-01; Thu, 27 Nov 2008 09:43:34 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id F23221FB64; Thu, 27 Nov 2008 09:43:33 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 22D621FB64 for ; Thu, 27 Nov 2008 09:43:32 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 24005-03 for ; Thu, 27 Nov 2008 09:42:53 +0100 (CET) Original-Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.187]) by ronja.ntg.nl (Postfix) with ESMTP id 4C4731FADF for ; Thu, 27 Nov 2008 09:42:53 +0100 (CET) Original-Received: by fk-out-0910.google.com with SMTP id 18so816638fks.2 for ; Thu, 27 Nov 2008 00:42:53 -0800 (PST) Original-Received: by 10.180.250.5 with SMTP id x5mr2254789bkh.145.1227775372825; Thu, 27 Nov 2008 00:42:52 -0800 (PST) Original-Received: by 10.180.231.2 with HTTP; Thu, 27 Nov 2008 00:42:52 -0800 (PST) In-Reply-To: <6faad9f00811270029l5f059665tbe66d7b6a73ec33e@mail.gmail.com> X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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 X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:45925 Archived-At: --===============0880219864== Content-Type: multipart/alternative; boundary="----=_Part_35528_25907904.1227775372824" ------=_Part_35528_25907904.1227775372824 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline > OK, I will use external files next time. In this quick-and-dirty > approach I just added string.format since it was easier than > restructuring everything. > > I thought that \startluacode should be behaving the same way as > verbatim environments where commands inside verbatim have no > influence, but apparently I was wrong. > I also think so. Can be strange, but inside a \startluacode\stopluacode I have no problems to think at -- as comment while I have problems to think to % as comment And put lua code in a separate file not always is a good solution -- luigi ------=_Part_35528_25907904.1227775372824 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline


OK, I will use external files next time. In this quick-and-dirty
approach I just added string.format since it was easier than
restructuring everything.

I thought that \startluacode should be behaving the same way as
verbatim environments where commands inside verbatim have no
influence, but apparently I was wrong.
I also think so.
Can be strange, but inside a \startluacode\stopluacode I have no problems to think at -- as comment
while I have problems to think to % as comment

And put lua code in a separate  file not always  is a good solution


--
luigi

------=_Part_35528_25907904.1227775372824-- --===============0880219864== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============0880219864==--