From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/13325 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Vertical alignment of formulas Date: Thu, 18 Sep 2003 08:38:33 +0200 Sender: ntg-context-admin@ntg.nl Message-ID: <5.2.0.9.1.20030918083641.012e4170@server-1> References: <5.2.0.9.1.20030917181431.01af5db8@server-1> <002901c37d40$8ff0ae80$0500a8c0@best> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Trace: sea.gmane.org 1063870291 3291 80.91.224.253 (18 Sep 2003 07:31:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 18 Sep 2003 07:31:31 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Thu Sep 18 09:31:30 2003 Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19ztGE-00068S-00 for ; Thu, 18 Sep 2003 09:31:30 +0200 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id A2E0910B27; Thu, 18 Sep 2003 09:31:27 +0200 (MEST) Original-Received: from mail.solcon.net (mail.solcon.net [212.45.33.5]) by ref.ntg.nl (Postfix) with ESMTP id 4110610B34 for ; Thu, 18 Sep 2003 09:00:53 +0200 (MEST) Original-Received: from server-1.pragma-net.nl (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by mail.solcon.net (8.11.6/8.9.3) with ESMTP id h8I70nZ13008 for ; Thu, 18 Sep 2003 09:00:49 +0200 Original-Received: by server-1.pragma-net.nl (Postfix, from userid 65534) id 6D4E117D6D; Thu, 18 Sep 2003 09:00:43 +0200 (CEST) Original-Received: from laptop-3.wxs.nl (unknown [10.100.1.191]) by server-1.pragma-net.nl (Postfix) with ESMTP id 860B217EBA for ; Thu, 18 Sep 2003 07:00:37 +0000 (UTC) X-Sender: hagen-mail@server-1 X-Mailer: QUALCOMM Windows Eudora Version 5.2.0.9 Original-To: ntg-context@ntg.nl In-Reply-To: <002901c37d40$8ff0ae80$0500a8c0@best> Original-References: <5.2.0.9.1.20030917181431.01af5db8@server-1> 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:13325 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:13325 At 19:24 17/09/2003 +0200, you wrote: >Hi > > > one complication is that the last line width is not available outside math > > mode (which is a pain) > >If really needed one can use quite old plain macro which try to soften this >pain... However for short >paragraphs it needs some changes (\prevgraf can't be less then zero). Meybe >this is not very nice but... > >\newif\ifmeasdisp \measdispfalse >\newcount\lineno >\newdimen\linesize >\def\measline{\ifhmode > \bgroup > \parfillskip=0pt plus 1fil > \predisplaypenalty=10000 > \postdisplaypenalty=10000 > \displaywidowpenalty=\widowpenalty > \abovedisplayskip=-\baselineskip > \belowdisplayskip=-\baselineskip > \abovedisplayshortskip=-\baselineskip > \belowdisplayshortskip=-\baselineskip > $$\global\linesize=\predisplaysize$$ > \global\advance\linesize by -2em > \global\lineno=\prevgraf > \global\advance\lineno by -3 > \ifmeasdisp\immediate\write16{>>\the\lineno: \the\linesize}\fi > \global\advance\lineno by -1 > \global\prevgraf=\lineno > \kern\linesize > \egroup > \else > \immediate\write16{! I'M IN VMODE---MEASURING IGNORED}% > \fi} >% ------------------------------------------------------------------------ >% Author: B. Jackowski, 22 V 1990. >% ------------------------------------------------------------------------ this 'using a fake formula' is more or less the way i determine the last line length, but keep in mind that this only works in situations like: some text \measline and not in some text \par (or empty line) \measline 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 -------------------------------------------------------------------------