From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/26530 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: intertext for aligned equations Date: Mon, 27 Mar 2006 14:50:23 +0200 Message-ID: <4427DF8F.5020007@wxs.nl> References: <4427AA2E.1070203@elvenkind.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1143463846 19828 80.91.229.2 (27 Mar 2006 12:50:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 27 Mar 2006 12:50:46 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Mon Mar 27 14:50:45 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org 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 1FNrB1-0000wZ-GT for gctc-ntg-context-518@m.gmane.org; Mon, 27 Mar 2006 14:50:31 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1FC91127B0; Mon, 27 Mar 2006 14:50:31 +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 25282-04-3; Mon, 27 Mar 2006 14:50:26 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 358CC127B4; Mon, 27 Mar 2006 14:50:26 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 26ADC127B4 for ; Mon, 27 Mar 2006 14:50:25 +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 25282-04-2 for ; Mon, 27 Mar 2006 14:50:24 +0200 (CEST) Original-Received: from mail.pragma-ade.net (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by ronja.ntg.nl (Postfix) with SMTP id 68630127B0 for ; Mon, 27 Mar 2006 14:50:24 +0200 (CEST) Original-Received: from [10.100.1.102] (unverified [10.100.1.102]) by controller-1 (SurgeMail 3.5b3) with ESMTP id 9992 for ; Mon, 27 Mar 2006 16:50:24 +0400 User-Agent: Thunderbird 1.5 (Windows/20051201) Original-To: mailing list for ConTeXt users In-Reply-To: <4427AA2E.1070203@elvenkind.com> X-Server: High Performance Mail Server - http://surgemail.com r=-274017400 X-Authenticated-User: hagen@controller-1 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 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-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:26530 Archived-At: Taco Hoekwater wrote: > Hi, > > Aditya Mahajan wrote: > > >> This seems to be working fine. However, \intertext defined in >> amsmath.sty seems to be doing a lot more (I just can't figure out >> what it is doing?) Can someone suggest how to make the above command >> more robust on the lines of \intertext? >> > > It inserts a post/pre-display skip&penalty pair around the intertext, > then creates a \vbox for use a paragraph. The result is (almost) as if > it the text was part of the 'normal' text flow between two displays. > > I cannot tell you if this would work exactly the same as expected in > ConTeXt (needs further testing), but a context-like solution would > look like this: > > \def\startintertext#1\stopintertext{% > \noalign{\dointertext{#1}}\NR} > > \unexpanded\def\dointertext#1% > {\penalty\postdisplaypenalty > \afterdisplayspace % the matching \before... is not needed > \vbox{\forgetall \noindent #1\par}% > \penalty\postdisplaypenalty } > > added (preliminary) but i need an example of usage for the core-mat file/docu -) 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 -----------------------------------------------------------------