From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/21602 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: LaTeX \newcommands in ConTeXt. Date: Tue, 26 Jul 2005 09:08:35 +0200 Message-ID: <42E5E173.3050408@wxs.nl> References: <4.3.1.2.20050724224715.01aeab60@cits1.stanford.edu> <4.3.1.2.20050724224715.01aeab60@cits1.stanford.edu> <4.3.1.2.20050725173054.02ab1a98@cits1.stanford.edu> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1122361685 26606 80.91.229.2 (26 Jul 2005 07:08:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 26 Jul 2005 07:08:05 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Tue Jul 26 09:08:05 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 1DxJXo-00077J-VG for gctc-ntg-context-518@m.gmane.org; Tue, 26 Jul 2005 09:08:05 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BE7501281E; Tue, 26 Jul 2005 09:08:04 +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 14969-02-3; Tue, 26 Jul 2005 09:08:00 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8DB0612806; Tue, 26 Jul 2005 09:08:00 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id ACA9C12806 for ; Tue, 26 Jul 2005 09:07:59 +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 14969-02-2 for ; Tue, 26 Jul 2005 09:07:58 +0200 (CEST) Original-Received: from mailrelay01.solcon.nl (maillb.solcon.nl [212.45.32.200]) by ronja.ntg.nl (Postfix) with ESMTP id A62D4127FD for ; Tue, 26 Jul 2005 09:07:58 +0200 (CEST) Original-Received: from server-1.pragma-net.nl (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by mailrelay01.solcon.nl (8.12.11/SQL-8.12.11-5/8.12.11) with ESMTP id j6Q77u4C004590 for ; Tue, 26 Jul 2005 09:07:56 +0200 Original-Received: by server-1.pragma-net.nl (Postfix, from userid 65534) id 1F0DA24C70; Tue, 26 Jul 2005 08:23:20 +0200 (CEST) Original-Received: from [10.100.1.52] (unknown [10.100.1.52]) by server-1.pragma-net.nl (Postfix) with ESMTP id D61E91B332 for ; Tue, 26 Jul 2005 06:23:18 +0000 (UTC) User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: <4.3.1.2.20050725173054.02ab1a98@cits1.stanford.edu> X-Virus-Scanned: ClamAV 0.86.1/992/Mon Jul 25 23:48:49 2005 on mailrelay01 X-Virus-Status: Clean 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:21602 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:21602 Brooks Moses wrote: > 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? maybe (a patched version of \godown): \def\godown[#1]% {\ifhmode\endgraf\fi \ifvmode\nointerlineskip\vskip#1\relax} test \godown[10cm] test is \vspace accumulating? Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------