From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/10063 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Emulating AMS stuff in ConTeXt Date: Sun, 08 Dec 2002 21:26:14 +0100 Sender: ntg-context-admin@ntg.nl Message-ID: <5.1.0.14.1.20021208212025.03bb0510@remote-1> References: <1592367314.20021207192429@iol.it> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Trace: main.gmane.org 1039381250 7598 80.91.224.249 (8 Dec 2002 21:00:50 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 8 Dec 2002 21:00:50 +0000 (UTC) Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18L8Xh-0001yQ-00 for ; Sun, 08 Dec 2002 22:00:49 +0100 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id F110210AE9; Sun, 8 Dec 2002 22:00:55 +0100 (MET) Original-Received: from smtp01.wxs.nl (smtp01.wxs.nl [195.121.6.61]) by ref.ntg.nl (Postfix) with ESMTP id BE2E910AE9 for ; Sun, 8 Dec 2002 21:59:18 +0100 (MET) Original-Received: from LAPTOP-3.wxs.nl ([213.75.95.123]) by smtp01.wxs.nl (Netscape Messaging Server 4.15) with ESMTP id H6TJH800.EG2 for ; Sun, 8 Dec 2002 21:55:56 +0100 X-Sender: hagen-mail@remote-1 X-Mailer: QUALCOMM Windows Eudora Version 5.1 Original-To: ntg-context@ntg.nl In-Reply-To: <1592367314.20021207192429@iol.it> Errors-To: ntg-context-admin@ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.comp.tex.context:10063 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:10063 At 07:24 PM 12/7/2002 +0100, you wrote: >def\startalign{% > \startformula > \let\\\cr > \grabuntil{stopalign}\doeqalign >} >\def\doeqalign#1{\eqalign{#1\cr}\stopformula} ^^ better make that \crcr in order to catch users \\ >\let\stopalign\relax > >These allow me to write: > >\startalign > a & = b = \\ > & = c >\stopalign isn't \startmathalign a better choice? >and everything is fine. Yet I cannot do > >\placeformula[hook] >\startalign > a & = b = \\ > & = c >\stopalign > >because of expansion problems. Why? How can I define the stuff? took me a couple of cd's to uncover this -) (1) placeformula has to look ahead, and the next command is not seen as something math; so, (2) i made another lookahead, and then (3) we ran into those \cr & and # things that may not always show up everywhere, so (4) i had to rewrite a low level macro that i didn't like rewriting, i.e. (5) i had to use a variant i'd always thought that could be avoided so, you spoiled my afternoon -) btw, if you isolate/collect the ams math that's not yet in m-newmat, i can see if/how i can add it there in a configurable way, so if some things fails, we can look into it later you can try the version i just uploaded Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------