From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/30926 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: displayed formula confuses parshape around figure Date: Thu, 21 Sep 2006 09:32:26 +0200 Message-ID: <20060921093226.a0921709.schuster.wolfgang@googlemail.com> References: <20060920130542.11ce6058.schuster.wolfgang@googlemail.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 1158823995 20394 80.91.229.2 (21 Sep 2006 07:33:15 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 21 Sep 2006 07:33:15 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Thu Sep 21 09:33:08 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 1GQJ3I-0001CZ-H5 for gctc-ntg-context-518@m.gmane.org; Thu, 21 Sep 2006 09:32:56 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 697D01FDFD; Thu, 21 Sep 2006 09:32:54 +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 13997-01; Thu, 21 Sep 2006 09:32:47 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7022B1FDEC; Thu, 21 Sep 2006 09:32:46 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 721231FDEC for ; Thu, 21 Sep 2006 09:32:42 +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 12645-02 for ; Thu, 21 Sep 2006 09:32:35 +0200 (CEST) Original-Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.187]) by ronja.ntg.nl (Postfix) with SMTP id 2195D1FDDF for ; Thu, 21 Sep 2006 09:32:34 +0200 (CEST) Original-Received: by nf-out-0910.google.com with SMTP id d4so658154nfe for ; Thu, 21 Sep 2006 00:32:34 -0700 (PDT) Original-Received: by 10.49.75.2 with SMTP id c2mr268154nfl; Thu, 21 Sep 2006 00:32:34 -0700 (PDT) Original-Received: from unknown ( [83.133.12.56]) by mx.gmail.com with ESMTP id r34sm4849326nfc.2006.09.21.00.32.32; Thu, 21 Sep 2006 00:32:34 -0700 (PDT) Original-To: ntg-context@ntg.nl In-Reply-To: X-Mailer: Sylpheed version 2.2.6 (GTK+ 2.6.10; i686-pc-mingw32) 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:30926 Archived-At: On Wed, 20 Sep 2006 14:36:33 +0100 Sanjoy Mahajan wrote: > > It works for me if put a \par or a empty line after the first > > \input. > > That's true, but doing so ends the paragraph. Shouldn't the displayed > math be part of the paragraph? The \input tufte's were just to make > the minimal example. It came from a paragraph with text and math that > begins with a figure: > > \placefigure[right,none]{}{\externalfigure[dummy]} > > Then lots of text about the figure, leading up to > \startformula > this equation > \stopformula > then more text discussing the equation... > > -Sanjoy > Ok, I playes yesterday I bit with your example and can you give now a solution for your problem. \starttext % This works \hangindent4cm \hangafter-3 \input tufte $$ A = a^\alpha b^\beta, $$ \input tufte \blank[line] % The group around the formula produces the error. I tried this also % with plain TeX and I worked without problems. A ConTeXt bug. \hangindent4cm \hangafter-3 \input tufte \bgroup $$ A = a^\alpha b^\beta, $$ \egroup \input tufte % Test if my path works also with intending %\setupindenting[yes,medium] %\setupformulas[indentnext=yes] % Patch for startformula/s, look a hangindent and hangafter. \unprotect \def\dostopformula {\doplaceformulanumber \getvalue{\e!stop\formulaparameter\c!alternative\v!formula}% \resetlastlinewidth \nonoindentation \dochecknextindentation{\??fm\currentformula}% \egroup \hangafter\minusone % added \hangindent\zeropoint % added \setfalse\handleformulanumber \dorechecknextindentation} % here ? \def\startformulas#1\stopformulas % new / to be internationalized {\bgroup \forgetdisplayskips \startdisplaymath \setlocalhsize \long\def\startformula##1\stopformula{\advance\scratchcounter \plusone}% \scratchcounter\zerocount #1% preroll \divide \hsize \scratchcounter \hbox to \localhsize \bgroup \hss \def\normalstartformula{\vskip-\strutdepth$$}% i hate this \def\normalstartformula{\vskip-\strutdepth$$}% i hate this \def\normalstopformula {$$}% \def\startformula{$\vcenter\bgroup\normalstartformula}% \def\stopformula {\normalstopformula\egroup$\hss}% #1% \egroup \stopdisplaymath \egroup \hangafter\minusone % added \hangindent\zeropoint} % added \protect % No longer a problem, my patch works. \hangindent4cm \hangafter-3 \input tufte \startformula A = a^\alpha b^\beta, \stopformula \input tufte \blank[line] \hangindent4cm \hangafter-3 \input tufte \startformulas \startformula A = a^\alpha b^\beta, \stopformula \stopformulas \input tufte \stoptext Wolfgang