From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/36716 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Spacing between formula and texts Date: Thu, 20 Sep 2007 21:27:32 +0200 Message-ID: <20070920212732.6af9d513.schuster.wolfgang@googlemail.com> References: <769ba7780709190830i46affd9bm4dbd1faa74922918@mail.gmail.com> <20070919194420.ef3289db.schuster.wolfgang@googlemail.com> <769ba7780709191204o19fbe75cl868bd92248c6617d@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 1190358843 2268 80.91.229.12 (21 Sep 2007 07:14:03 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 21 Sep 2007 07:14:03 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Fri Sep 21 09:14:01 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 1IYci8-0005zl-TW for gctc-ntg-context-518@m.gmane.org; Fri, 21 Sep 2007 09:14:00 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2A316202F0; Fri, 21 Sep 2007 09:13:57 +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 30333-03; Fri, 21 Sep 2007 09:13:44 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id AEA4A202D9; Fri, 21 Sep 2007 09:13:43 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id CB434202D9 for ; Fri, 21 Sep 2007 09:13:37 +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 29113-03-3 for ; Fri, 21 Sep 2007 09:13:31 +0200 (CEST) Original-Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.174]) by ronja.ntg.nl (Postfix) with ESMTP id 5B048202CF for ; Fri, 21 Sep 2007 09:13:31 +0200 (CEST) Original-Received: by ug-out-1314.google.com with SMTP id h2so504756ugf for ; Fri, 21 Sep 2007 00:13:31 -0700 (PDT) Original-Received: by 10.66.225.17 with SMTP id x17mr4097669ugg.1190358810974; Fri, 21 Sep 2007 00:13:30 -0700 (PDT) Original-Received: from eve ( [89.51.237.113]) by mx.google.com with ESMTPS id q1sm1916560uge.2007.09.21.00.13.27 (version=SSLv3 cipher=OTHER); Fri, 21 Sep 2007 00:13:29 -0700 (PDT) In-Reply-To: <769ba7780709191204o19fbe75cl868bd92248c6617d@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:36716 Archived-At: On Thu, 20 Sep 2007 03:04:20 +0800 "Zhichu Chen" wrote: > Hi Wolfgang, > > On 9/20/07, Wolfgang Schuster wrote: > > > > 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. > > > Really! It works fine with "first" key. OK, I can just live with that, > although I hope Hans will have time to fix it, it's not so cool with the > first paragraph indented :) > > 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 Hi Chen, you use the following code for the moment (untested): \newif\ifquicksolution \quicksolutiontrue \def\beforedisplayspace {\doifnot{\formulaparameter\c!spacebefore}\v!none {\quicksolutionfalse\blank[\formulaparameter\c!spacebefore]}} \def\afterdisplayspace {\doifnot{\formulaparameter\c!spaceafter }\v!none {\blank[\formulaparameter\c!spaceafter ]\quicksolutiontrue}} \def\presetindentation {\doifoutervmode{\ifindentfirstparagraph\else\ifquicksolution\noindentation\fi\fi}} 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 ___________________________________________________________________________________