From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/36680 Path: news.gmane.org!not-for-mail From: "Zhichu Chen" Newsgroups: gmane.comp.tex.context Subject: Re: Spacing between formula and texts Date: Thu, 20 Sep 2007 03:04:20 +0800 Message-ID: <769ba7780709191204o19fbe75cl868bd92248c6617d@mail.gmail.com> References: <769ba7780709190830i46affd9bm4dbd1faa74922918@mail.gmail.com> <20070919194420.ef3289db.schuster.wolfgang@googlemail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1862933873==" X-Trace: sea.gmane.org 1190228864 23148 80.91.229.12 (19 Sep 2007 19:07:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 19 Sep 2007 19:07:44 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Wed Sep 19 21:07:24 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 1IY4rj-0005Jv-DJ for gctc-ntg-context-518@m.gmane.org; Wed, 19 Sep 2007 21:05:47 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id CCC45200D3; Wed, 19 Sep 2007 21:05:36 +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 31070-02-2; Wed, 19 Sep 2007 21:05:25 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 47C881FEE9; Wed, 19 Sep 2007 21:05:25 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 352B81FC0D for ; Wed, 19 Sep 2007 21:05:23 +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 30985-02 for ; Wed, 19 Sep 2007 21:05:16 +0200 (CEST) Original-Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.183]) by ronja.ntg.nl (Postfix) with ESMTP id 64B3B200C5 for ; Wed, 19 Sep 2007 21:04:22 +0200 (CEST) Original-Received: by wa-out-1112.google.com with SMTP id m16so367446waf for ; Wed, 19 Sep 2007 12:04:21 -0700 (PDT) Original-Received: by 10.115.32.1 with SMTP id k1mr279361waj.1190228661027; Wed, 19 Sep 2007 12:04:21 -0700 (PDT) Original-Received: by 10.114.126.16 with HTTP; Wed, 19 Sep 2007 12:04:20 -0700 (PDT) In-Reply-To: <20070919194420.ef3289db.schuster.wolfgang@googlemail.com> 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:36680 Archived-At: --===============1862933873== Content-Type: multipart/alternative; boundary="----=_Part_27174_27236259.1190228661025" ------=_Part_27174_27236259.1190228661025 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 > > ___________________________________________________________________________________ > 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 > > ___________________________________________________________________________________ > -- Best Regards Chen ---------------------------------------------------------------- Zhi-chu Chen | Shanghai Synchrotron Radiation Facility No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China tel: 086 21 5955 3405 | zhichu.chen.googlepages.com | www.sinap.ac.cn ---------------------------------------------------------------- ------=_Part_27174_27236259.1190228661025 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi Wolfgang,

On 9/20/07, Wolfgang Schuster <schuster.wolfgang@googlemail.com> wrote:
On Wed, 19 Sep 2007 23:30:26 +0800
"Zhichu Chen" <zhichu.chen@gmail.com> 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
___________________________________________________________________________________
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
___________________________________________________________________________________



--
Best Regards
Chen
----------------------------------------------------------------

          Zhi-chu Chen | Shanghai Synchrotron Radiation Facility
         No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China
             tel: 086 21 5955 3405 | zhichu.chen.googlepages.com
                                               | www.sinap.ac.cn
---------------------------------------------------------------- ------=_Part_27174_27236259.1190228661025-- --===============1862933873== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============1862933873==--