From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/36685 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Spacing between formula and texts Date: Wed, 19 Sep 2007 19:44:20 +0200 Message-ID: <20070919194420.ef3289db.schuster.wolfgang@googlemail.com> References: <769ba7780709190830i46affd9bm4dbd1faa74922918@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1190234310 11393 80.91.229.12 (19 Sep 2007 20:38:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 19 Sep 2007 20:38:30 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Wed Sep 19 22:38:25 2007 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 lo.gmane.org with esmtp (Exim 4.50) id 1IY6JM-0008LK-Ux for gctc-ntg-context-518@m.gmane.org; Wed, 19 Sep 2007 22:38:17 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BED441FE3E; Wed, 19 Sep 2007 22:37:49 +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 00870-01-2; Wed, 19 Sep 2007 22:37:44 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id EE83220128; Wed, 19 Sep 2007 19:46:54 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6E43220128 for ; Wed, 19 Sep 2007 19:46:52 +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 18529-02 for ; Wed, 19 Sep 2007 19:46:45 +0200 (CEST) Original-Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.168]) by ronja.ntg.nl (Postfix) with ESMTP id CF49D200EE for ; Wed, 19 Sep 2007 19:45:09 +0200 (CEST) Original-Received: by ug-out-1314.google.com with SMTP id h2so283558ugf for ; Wed, 19 Sep 2007 10:45:09 -0700 (PDT) Original-Received: by 10.67.30.3 with SMTP id h3mr2205098ugj.1190223909422; Wed, 19 Sep 2007 10:45:09 -0700 (PDT) Original-Received: from eve ( [89.51.234.19]) by mx.google.com with ESMTPS id t38sm1386919ugc.2007.09.19.10.44.54 (version=SSLv3 cipher=OTHER); Wed, 19 Sep 2007 10:45:07 -0700 (PDT) In-Reply-To: <769ba7780709190830i46affd9bm4dbd1faa74922918@mail.gmail.com> X-Mailer: Sylpheed 2.4.4 (GTK+ 2.10.13; i686-pc-mingw32) X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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:36685 Archived-At: On Wed, 19 Sep 2007 23:30:26 +0800 "Zhichu Chen" wrote: > \usemodule[units] > > \setupindenting[big] > \indenting[always,next] > % no, not, yes, always, never, first, next > > % \setupformulas[spacebefore=5em] > > \starttext > > Blah, > blah, blah, blah, blah, blah, blah, blah, blah, > blah, blah, blah, blah, blah, blah, blah, blah, > blah, blah, blah, blah, blah, blah, blah, blah, > blah, blah, blah, blah, blah, blah, blah, blah, > I love the following formula: > \placeformula[-] > \startformula > 6.670 \times 10^{-11} \Newton \Times \Square \Meter \Per \Square \Kilo > \Gram > \stopformula > which is very cool. > which is very cool. > which is very cool. > which is very cool. > which is very cool. > > % \showmathcharacters > > \stoptext Hi Chen, I can't give a real solution but only a workaround, the problem lies in the macro \beforedisplayspace which calls \docomplexdoblank which calls itself \presetindentation and this macro causes your real problem. You solve this now by placing \let\presetindentation\relax at the begin in your document or remove the next key for \setupindenting. This is all what I can do for you in a few minutes, the rest is up to Hans to make a extra test in \beforedisplay or somewhere else to disable \preetindentation before a display formula. Wolfgang ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________