From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/13305 Path: main.gmane.org!not-for-mail From: "Pawel Jackowski na Onet" Newsgroups: gmane.comp.tex.context Subject: Re: Vertical alignment of formulas Date: Wed, 17 Sep 2003 19:24:21 +0200 Sender: ntg-context-admin@ntg.nl Message-ID: <002901c37d40$8ff0ae80$0500a8c0@best> References: <5.2.0.9.1.20030917181431.01af5db8@server-1> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1063820162 6615 80.91.224.253 (17 Sep 2003 17:36:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 17 Sep 2003 17:36:02 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Wed Sep 17 19:36:00 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 19zgDg-0002Uh-00 for ; Wed, 17 Sep 2003 19:36:00 +0200 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 3FB4D10B4B; Wed, 17 Sep 2003 19:35:57 +0200 (MEST) Original-Received: from smtp3.poczta.onet.pl (smtp3.poczta.onet.pl [213.180.130.29]) by ref.ntg.nl (Postfix) with ESMTP id 83FF910B2A for ; Wed, 17 Sep 2003 19:25:18 +0200 (MEST) Original-Received: from pa36.debniki.sdi.tpnet.pl ([213.77.147.36]:25604 "HELO best") by ps3.test.onet.pl with SMTP id ; Wed, 17 Sep 2003 19:24:33 +0200 Original-To: X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 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:13305 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:13305 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. % ------------------------------------------------------------------------ Regards