From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/57726 Path: news.gmane.org!not-for-mail From: Taco Hoekwater Newsgroups: gmane.comp.tex.context Subject: Re: (lua?)latex module ( The ConTeXt book) Date: Sat, 03 Apr 2010 16:44:25 +0200 Message-ID: <4BB75449.60308@elvenkind.com> References: <20100401170822.GF29608@phare.normalesup.org> <4BB7073C.307@googlemail.com> <4BB72E89.20807@googlemail.com> <4BB7446D.2090009@googlemail.com> <4BB74751.6090704@googlemail.com> <4BB74A8F.80502@googlemail.com> <4BB753BE.9060606@googlemail.com> Reply-To: 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 1270305879 17623 80.91.229.12 (3 Apr 2010 14:44:39 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 3 Apr 2010 14:44:39 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Apr 03 16:44:36 2010 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 1Ny4aO-0001Ey-Af for gctc-ntg-context-518@m.gmane.org; Sat, 03 Apr 2010 16:44:32 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 011FAC9E73; Sat, 3 Apr 2010 16:44:32 +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 pSTJKFcufdoe; Sat, 3 Apr 2010 16:44:31 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 56E1BC9E6C; Sat, 3 Apr 2010 16:44:29 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A1AC9C9E6C for ; Sat, 3 Apr 2010 16:44:28 +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 au6tiUKPDuwm for ; Sat, 3 Apr 2010 16:44:26 +0200 (CEST) Original-Received: from smtp-vbr1.xs4all.nl (smtp-vbr1.xs4all.nl [194.109.24.21]) by balder.ntg.nl (Postfix) with ESMTP id 9CCE0C9E58 for ; Sat, 3 Apr 2010 16:44:26 +0200 (CEST) Original-Received: from [192.168.178.26] (boo.demon.nl [83.163.247.99]) (authenticated bits=0) by smtp-vbr1.xs4all.nl (8.13.8/8.13.8) with ESMTP id o33EiQSS013314 for ; Sat, 3 Apr 2010 16:44:26 +0200 (CEST) (envelope-from taco@elvenkind.com) User-Agent: Thunderbird 2.0.0.23 (X11/20090822) In-Reply-To: <4BB753BE.9060606@googlemail.com> X-Virus-Scanned: by XS4ALL Virus Scanner 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:57726 Archived-At: Wolfgang Schuster wrote: > Am 03.04.10 16:16, schrieb luigi scarso: >>>>>> name space to avoid macro collision >>>>>> >>> Possible with internal commands but you can run into problems with >>> the user commands, a problem is also how LaTeX handle environments >>> For \begin{env} LaTeX expects a macro with the name \ end for >>> \end{env} a macro with the name \end. >>> >> Lua can be more effective than TeX here ? >> > Lua can't do anything with conflicts at the user level. > > For a LaTeX module you can do something like > > \begin{env} -> \??lm:begin:env > \end{env} -> \??lm:end:env I think the current latex module does \def\begin#1{\csname start#1\endcsname} \def\end#1{\csname stop#1\endcsname} but that all depends on how much latex compatibility is really needed. Best wishes, Taco ___________________________________________________________________________________ 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 ___________________________________________________________________________________