From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/10049 Path: main.gmane.org!not-for-mail From: Giuseppe Bilotta Newsgroups: gmane.comp.tex.context Subject: Emulating AMS stuff in ConTeXt Date: Sat, 7 Dec 2002 19:24:29 +0100 Sender: ntg-context-admin@ntg.nl Message-ID: <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 Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1039288250 29538 80.91.224.249 (7 Dec 2002 19:10:50 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 7 Dec 2002 19:10: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 18KkLg-0007gH-00 for ; Sat, 07 Dec 2002 20:10:48 +0100 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id CA11810AF6; Sat, 7 Dec 2002 20:10:53 +0100 (MET) Original-Received: from smtp3.libero.it (smtp3.libero.it [193.70.192.127]) by ref.ntg.nl (Postfix) with ESMTP id 1C92110AE8 for ; Sat, 7 Dec 2002 20:08:44 +0100 (MET) Original-Received: from [151.29.129.26] (151.29.129.26) by smtp3.libero.it (6.7.015) id 3DF0A6F40009582E for ntg-context@ntg.nl; Sat, 7 Dec 2002 20:08:42 +0100 X-Mailer: The Bat! (v1.62 Beta/17) Business X-Priority: 3 (Normal) Original-To: ntg-context@ntg.nl 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:10049 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:10049 Hello, while trying to build an AMS emulation layer on top of ConTeXt math macros, I defined (among the other) the following macros: \def\startalign{% \startformula \let\\\cr \grabuntil{stopalign}\doeqalign } \def\doeqalign#1{\eqalign{#1\cr}\stopformula} \let\stopalign\relax These allow me to write: \startalign a & = b = \\ & = c \stopalign 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? -- Giuseppe "Oblomov" Bilotta