From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/66612 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: One-off theorem titles Date: Thu, 3 Mar 2011 18:55:45 -0500 (EST) Message-ID: References: <4D6F4BC0.4090106@googlemail.com> <48CEA267-A4E3-4DA4-B26A-3F64389B2C10@gmail.com> <8473E733-9BB1-48E7-821D-1260EBEC79E7@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="8323328-805563246-1299196547=:4196" X-Trace: dough.gmane.org 1299196608 2669 80.91.229.12 (3 Mar 2011 23:56:48 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 3 Mar 2011 23:56:48 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Mar 04 00:56:44 2011 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 1PvINs-000055-RP for gctc-ntg-context-518@m.gmane.org; Fri, 04 Mar 2011 00:56:40 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D8A90CAA97; Fri, 4 Mar 2011 00:56:39 +0100 (CET) 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 qwSsbqUo8ZhT; Fri, 4 Mar 2011 00:56:37 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 16028CAA92; Fri, 4 Mar 2011 00:56:37 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A12D5CAA92 for ; Fri, 4 Mar 2011 00:56:35 +0100 (CET) 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 mjtU0yfCW6Jf for ; Fri, 4 Mar 2011 00:56:23 +0100 (CET) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id 43DA9CAA91 for ; Fri, 4 Mar 2011 00:56:23 +0100 (CET) Original-Received: from tombraider.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.12.86]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p23NuKus021090 for ; Fri, 4 Mar 2011 00:56:22 +0100 Original-Received: FROM [10.0.2.15] (Unknown [132.206.94.219]) By tombraider.mr.itd.umich.edu ID 4D702AA4.197A3.16185 ; Authuser adityam; 3 Mar 2011 18:56:20 EST In-Reply-To: <8473E733-9BB1-48E7-821D-1260EBEC79E7@gmail.com> User-Agent: Alpine 2.01 (LNX 1266 2009-07-14) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=141.211.12.86; country=US; region=MI; city=Ann Arbor; postalcode=48109; latitude=42.2923; longitude=-83.7145; metrocode=505; areacode=734; http://maps.google.com/maps?q=42.2923,-83.7145&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0rEeLUle7 - ff60e4a3b6b2 - 20110304 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 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:66612 Archived-At: This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323328-805563246-1299196547=:4196 Content-Type: TEXT/PLAIN; charset=windows-1252; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE On Thu, 3 Mar 2011, Wolfgang Schuster wrote: > >> I am a bit surprised by the naming of the internal macros: >> >> annotation_cmd >> annotation__cmd >> annotation___cmd > > I liked the LaTeX3 system to have names in the form \_, > with this you have a easy way to protect internal commands and to avoid > command clashes, I also like \_. That is better than \=20 that I have been using. Of course, this means that _ should not have its=20 usual meaning. I haven't checked on how \unprotect works in MkII. If it=20 makes _ a letter, then I'll switch to \_. Another option might be to use \. with . having the right= =20 catcode. That will give macro names a more OOP feel. > e.g. you define the command \getfirstcharacter in your > filter module but this name is already used in the core (syst-aux.mkiv) > and with the name \filter_getfirstcharacter you can avoid this without > thinking too much about a good name. I didn't know that. I'll change that name. So far, I have been using \externafillter for=20 most commands, and sometimes it gets unreadable. >> I know that \do \dodo \dododo is not the best notation, but I don't find= _ __ ___ better. > > I don=92t like the __ and ___ either but do you know a better way for goo= d > names without using do, dodo, nodo, yes or nop? I find that \module__command and \module___command are hard to=20 distinguish. For helper macros, a better idea might be: \module_command \module_command! \module_command!! These commands are easy to distinguish visually. But this will not work=20 for too well for three or four levels. I think that none of the schemes=20 look good for three or four levels. Perhaps we could mix both existing=20 schemes to get something reasonable: \module_command \module_command! \module_command!do \module_command!redo or maybe \module_command \module_command_one \module_command_two \module_command_three etc. Aditya --8323328-805563246-1299196547=:4196 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --8323328-805563246-1299196547=:4196--