From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/21594 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 01:28:48 +0200 Message-ID: <42E575B0.3040900@wxs.nl> References: <4.3.1.2.20050724224715.01aeab60@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 1122334124 7418 80.91.229.2 (25 Jul 2005 23:28:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 25 Jul 2005 23:28:44 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Tue Jul 26 01:28:39 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 1DxCMt-0002bQ-VU for gctc-ntg-context-518@m.gmane.org; Tue, 26 Jul 2005 01:28:20 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A7A7A12803; Tue, 26 Jul 2005 01:28:19 +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 09746-10-3; Tue, 26 Jul 2005 01:28:14 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C0B68127ED; Tue, 26 Jul 2005 01:28:14 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 64445127ED for ; Tue, 26 Jul 2005 01:28:13 +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 09746-10-2 for ; Tue, 26 Jul 2005 01:28:11 +0200 (CEST) Original-Received: from mailrelay01.solcon.nl (maillb.solcon.nl [212.45.32.200]) by ronja.ntg.nl (Postfix) with ESMTP id 762D4127EA for ; Tue, 26 Jul 2005 01:28:11 +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 j6PNS459009297 for ; Tue, 26 Jul 2005 01:28:04 +0200 Original-Received: by server-1.pragma-net.nl (Postfix, from userid 65534) id 5048724C70; Tue, 26 Jul 2005 00:43:36 +0200 (CEST) Original-Received: from [10.100.1.60] (unknown [10.100.1.60]) by server-1.pragma-net.nl (Postfix) with ESMTP id F38821B332 for ; Mon, 25 Jul 2005 22:43:34 +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.20050724224715.01aeab60@cits1.stanford.edu> X-Virus-Scanned: ClamAV 0.86.1/991/Mon Jul 25 10:55:11 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:21594 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:21594 Brooks Moses wrote: > I've recently been doing a little work on implementing a few LaTeX > kernel bits in ConTeXt, to simplify porting LaTeX code over. It's now > at a point where a few of the pieces might actually be useful, and > certainly to a point where some comments would be welcomed, so I've > put up a version of it online, in this directory: > > http://dpdx.net/context/latex-compat/ > > What you'll find there is a fair number of module files, along with a > couple of "latextest" files that I've been using to try out the > results. latextext.tex is to be compiled in ConTeXt; > latextext-latex.tex is to be compiled in LaTeX for purposes of > comparison. > > In any case, I think the implementation of \newcommand (and its > relatives) is about up to "beta" level. Ditto with LaTeX lengths. > And there's a working LaTeX-like counter implementation, based on > ConTeXt counters underneath. (It's not yet hooked into ConTeXt's > counters for footnotes and equations and pages, though; I'm not really > sure how to do that.) > > Also, environments are working, in a sort of hackish way. The "array" > environment works, but again a bit hackish; I'm planning to clean that > up soon, so both of those will get major revisions. > > 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; btw, i renamed the internal \end macro so that you can get away from stoptext refinitions (too messy) 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 -----------------------------------------------------------------