From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/25268 Path: news.gmane.org!not-for-mail From: David Arnold Newsgroups: gmane.comp.tex.context Subject: Re: math align Date: Mon, 16 Jan 2006 10:42:25 -0800 Message-ID: References: <43CACEB2.7030708@wxs.nl> <43CB6121.6080100@elvenkind.com> <32913C44-E504-4DA9-AC9A-63C40A0C8E77@cox.net> <43CBE301.90206@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v746.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1137437107 31374 80.91.229.2 (16 Jan 2006 18:45:07 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 16 Jan 2006 18:45:07 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Mon Jan 16 19:45:00 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 1EyZKV-0002R9-9c for gctc-ntg-context-518@m.gmane.org; Mon, 16 Jan 2006 19:43:47 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id DA2B81285C; Mon, 16 Jan 2006 19:43:46 +0100 (CET) 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 02361-04-3; Mon, 16 Jan 2006 19:43:43 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1695E12844; Mon, 16 Jan 2006 19:43:43 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D29B912844 for ; Mon, 16 Jan 2006 19:43:41 +0100 (CET) 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 02361-04-2 for ; Mon, 16 Jan 2006 19:43:40 +0100 (CET) Original-Received: from fed1rmmtao02.cox.net (fed1rmmtao02.cox.net [68.230.241.37]) by ronja.ntg.nl (Postfix) with SMTP id 522F412800 for ; Mon, 16 Jan 2006 19:43:40 +0100 (CET) Original-Received: from [10.0.1.2] (really [70.191.56.23]) by fed1rmmtao02.cox.net (InterMail vM.6.01.05.02 201-2131-123-102-20050715) with ESMTP id <20060116184143.QRBM17006.fed1rmmtao02.cox.net@[10.0.1.2]> for ; Mon, 16 Jan 2006 13:41:43 -0500 In-Reply-To: <43CBE301.90206@wxs.nl> Original-To: mailing list for ConTeXt users X-Mailer: Apple Mail (2.746.2) 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-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:25268 Archived-At: Hans, Willi, et al, I was thinking there are pros and cons to each solution, Hans' and Willi's. So I tried: Here are some simple examples of adding fractions already having common denominators. %output=pdf \input math-ext \starttext \placeformula[-] \startformula \startalign[m=2,distance=5em] \frac5{21}-\frac3{21}&=\frac{5-3}{21} & \frac{2}{x+2}-\frac{x-3}{x+2}&=\frac{2-(x-3)}{x+2}\\ &=\frac2{21} & &=\frac{2-x+3}{x+2}\\ &&&=\frac{5-x}{x+2} \stopalign \stopformula \startbuffer[1] \framed[frame=on,width=fit] {\startformula \eqalign{ \frac{5}{21}-\frac{3}{21} &=\frac{5-3}{21}\cr &=\frac{2}{21}} \stopformula} \stopbuffer \startbuffer[2] \framed[frame=on,width=fit] {\startformula \eqalign{ \frac2{x+2}-\frac{x-3}{x+2} &=\frac{2-(x-3)}{x+2}\cr &=\frac{2-x+3}{x+2}\cr &=\frac{5-x}{x+2}} \stopformula} \stopbuffer \startbuffer \startcombination[2*1] {\externalfigure[1][width=0.45\textwidth,type=buffer]}{} {\externalfigure[2][width=0.45\textwidth,type=buffer]}{} \stopcombination \stopbuffer \placefigure [][-] {none} {\getbuffer} \stoptext As you can see, Hans' solution works perfectly, but note the very ugly source code for that section. Willi's source is cleaner, much easier to read (especially at a later date when I will have to revisit for revisions), but it doesn't work (the output is scaled of course). Any suggestions as to how I can fix Willi's approach so it doesn't scale?