From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/10072 Path: main.gmane.org!not-for-mail From: Giuseppe Bilotta Newsgroups: gmane.comp.tex.context Subject: Re[2]: Emulating AMS stuff in ConTeXt Date: Sun, 8 Dec 2002 22:36:43 +0100 Sender: ntg-context-admin@ntg.nl Message-ID: <329594486.20021208223643@iol.it> References: <5.1.0.14.1.20021208212025.03bb0510@remote-1> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1039383889 16331 80.91.224.249 (8 Dec 2002 21:44:49 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 8 Dec 2002 21:44:49 +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 18L9EF-0004F9-00 for ; Sun, 08 Dec 2002 22:44:47 +0100 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 77CCF10AE8; Sun, 8 Dec 2002 22:44:54 +0100 (MET) Original-Received: from smtp3.libero.it (smtp3.libero.it [193.70.192.127]) by ref.ntg.nl (Postfix) with ESMTP id 805B010AE7 for ; Sun, 8 Dec 2002 22:43:04 +0100 (MET) Original-Received: from [151.29.141.240] (151.29.141.240) by smtp3.libero.it (6.7.015) id 3DF0A6F400107C4A for ntg-context@ntg.nl; Sun, 8 Dec 2002 22:43:02 +0100 X-Mailer: The Bat! (v1.62 Christmas Edition) Business X-Priority: 3 (Normal) Original-To: ntg-context@ntg.nl In-Reply-To: <5.1.0.14.1.20021208212025.03bb0510@remote-1> Errors-To: ntg-context-admin@ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk X-Reply-To: Giuseppe Bilotta 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:10072 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:10072 Sunday, December 8, 2002 Hans Hagen wrote: HH> 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} HH> ^^ better make that \crcr in order to catch HH> users \\ Will fix. I just "copied" the AMS defs ... >>\let\stopalign\relax >> >>These allow me to write: >> >>\startalign >> a & = b = \\ >> & = c >>\stopalign HH> isn't \startmathalign a better choice? Maybe. I just "converted" the AMS-LaTeX "align" environment, so I kept the align name. >>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? HH> took me a couple of cd's to uncover this -) HH> (1) placeformula has to look ahead, and the next command is not seen as HH> something math; so, HH> (2) i made another lookahead, and then HH> (3) we ran into those \cr & and # things that may not always show up HH> everywhere, so HH> (4) i had to rewrite a low level macro that i didn't like rewriting, i.e. HH> (5) i had to use a variant i'd always thought that could be avoided HH> so, you spoiled my afternoon -) :P Sorry, but it's your choice to work on sundays ;) HH> btw, if you isolate/collect the ams math that's not yet in m-newmat, i can HH> see if/how i can add it there in a configurable way, so if some things HH> fails, we can look into it later Ok. I'm "filling it up" as it comes while typesetting/converting some notes (part of them were hand-written, part of the in LaTeX form). HH> you can try the version i just uploaded Will do. -- Giuseppe "Oblomov" Bilotta