From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/21598 Path: news.gmane.org!not-for-mail From: Brooks Moses Newsgroups: gmane.comp.tex.context Subject: Re: LaTeX \newcommands in ConTeXt. Date: Mon, 25 Jul 2005 18:03:23 -0700 Message-ID: <4.3.1.2.20050725173054.02ab1a98@cits1.stanford.edu> References: <4.3.1.2.20050724224715.01aeab60@cits1.stanford.edu> <4.3.1.2.20050724224715.01aeab60@cits1.stanford.edu> <42E575B0.3040900@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Trace: sea.gmane.org 1122340085 19542 80.91.229.2 (26 Jul 2005 01:08:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 26 Jul 2005 01:08:05 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Tue Jul 26 03:07:57 2005 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1DxDuj-00040l-I6 for gctc-ntg-context-518@m.gmane.org; Tue, 26 Jul 2005 03:07:21 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 3D629127AA; Tue, 26 Jul 2005 03:07:21 +0200 (CEST) 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 12707-01; Tue, 26 Jul 2005 03:07:21 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 3044E127D4; Tue, 26 Jul 2005 03:05:24 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A31F4127D4 for ; Tue, 26 Jul 2005 03:05:22 +0200 (CEST) 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 12539-01 for ; Tue, 26 Jul 2005 03:05:21 +0200 (CEST) Original-Received: from smtp3.Stanford.EDU (smtp3.Stanford.EDU [171.67.16.138]) by ronja.ntg.nl (Postfix) with ESMTP id 596F4127D2 for ; Tue, 26 Jul 2005 03:05:20 +0200 (CEST) Original-Received: from mindolluin.stanford.edu (DNab42a63b.Stanford.EDU [171.66.166.59]) by smtp3.Stanford.EDU (8.12.11/8.12.11) with ESMTP id j6Q1566X008439 for ; Mon, 25 Jul 2005 18:05:07 -0700 X-Sender: brooks@cits1.stanford.edu X-Mailer: QUALCOMM Windows Eudora Version 4.3.1 Original-To: mailing list for ConTeXt users In-Reply-To: <42E575B0.3040900@wxs.nl> Original-References: <4.3.1.2.20050724224715.01aeab60@cits1.stanford.edu> <4.3.1.2.20050724224715.01aeab60@cits1.stanford.edu> X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 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-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on smtp.ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:21598 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:21598 At 04:28 PM 7/25/2005, you wrote: >Brooks Moses wrote: >>I'd particularly appreciate any comments on the \newcommand and counters >>implementations -- those are in the t-ltcmds and t-ltcnts modules, though >>\newcommand also depends on t-lterrs and t-ltbase. > >i just took a quick look at the code; if you run into tricky definitions, >let me know, often there are either already low level macros that do the >job, or i can add some stuff; Thanks! I'll probably have lots of questions as I go along -- this is certainly becoming a tour of the internals of both systems. >btw, i renamed the internal \end macro so that you can get away from >stoptext refinitions (too messy) Yeah, the \stoptext redefinition was one of the first pieces I wrote, nearly a year ago. The reason I was doing the \stoptext redefinition wasn't the internal \end macro (which didn't exist then, I think) -- it was that the ConTeXt version I used then didn't have an \everystoptext hook. But now that it exists, I can just use it. One other question I have right now: what's a good way to duplicate LaTeX's \vspace macro (which is effectively a \vskip inside), without causing the problems that the ConTeXt manual warns about if we use \vskip? - Brooks