From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/21559 Path: news.gmane.org!not-for-mail From: Brooks Moses Newsgroups: gmane.comp.tex.context Subject: LaTeX \newcommands in ConTeXt. Date: Sun, 24 Jul 2005 23:15:21 -0700 Message-ID: <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="us-ascii"; format=flowed X-Trace: sea.gmane.org 1122272161 20817 80.91.229.2 (25 Jul 2005 06:16:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 25 Jul 2005 06:16:01 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Mon Jul 25 08:15:56 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 1DwwFY-0003rk-3v for gctc-ntg-context-518@m.gmane.org; Mon, 25 Jul 2005 08:15:40 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 391EC1279E; Mon, 25 Jul 2005 08:15:39 +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 32463-07; Mon, 25 Jul 2005 08:15:34 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 39C4612799; Mon, 25 Jul 2005 08:15:34 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4913812799 for ; Mon, 25 Jul 2005 08:15:32 +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 32345-05 for ; Mon, 25 Jul 2005 08:15:31 +0200 (CEST) Original-Received: from smtp1.Stanford.EDU (smtp1.Stanford.EDU [171.67.16.123]) by ronja.ntg.nl (Postfix) with ESMTP id EE1B712793 for ; Mon, 25 Jul 2005 08:15:30 +0200 (CEST) Original-Received: from mindolluin.stanford.edu (DNab42a4bd.Stanford.EDU [171.66.164.189]) by smtp1.Stanford.EDU (8.12.11/8.12.11) with ESMTP id j6P6FQ23026530 for ; Sun, 24 Jul 2005 23:15:27 -0700 X-Sender: brooks@cits1.stanford.edu X-Mailer: QUALCOMM Windows Eudora Version 4.3.1 Original-To: ConTeXt users list 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:21559 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:21559 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. - Brooks