From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/40745 Path: news.gmane.org!not-for-mail From: "Mikael Persson" Newsgroups: gmane.comp.tex.context Subject: Re: \indenting[next] and math => no vertical space before the formula Date: Mon, 28 Apr 2008 20:17:52 +0200 Message-ID: References: <115224fb0804240429p195cf84bpf9cd25d1b75e3179@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: ger.gmane.org 1209406792 4088 80.91.229.12 (28 Apr 2008 18:19:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 28 Apr 2008 18:19:52 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Mon Apr 28 20:20:18 2008 connect(): Connection refused 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 1JqXxJ-0000oV-IP for gctc-ntg-context-518@m.gmane.org; Mon, 28 Apr 2008 20:20:01 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2B0451FB8E; Mon, 28 Apr 2008 20:19:19 +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 19774-02-12; Mon, 28 Apr 2008 20:18:39 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B4BBA1FBC1; Mon, 28 Apr 2008 20:18:39 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 81C351FBC1 for ; Mon, 28 Apr 2008 20:18: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 19774-02-11 for ; Mon, 28 Apr 2008 20:18:00 +0200 (CEST) Original-Received: from yw-out-1718.google.com (yw-out-1718.google.com [74.125.46.155]) by ronja.ntg.nl (Postfix) with ESMTP id C034F1FB29 for ; Mon, 28 Apr 2008 20:17:59 +0200 (CEST) Original-Received: by yw-out-1718.google.com with SMTP id 5so628299ywm.74 for ; Mon, 28 Apr 2008 11:17:52 -0700 (PDT) Original-Received: by 10.150.212.12 with SMTP id k12mr4107354ybg.228.1209406672729; Mon, 28 Apr 2008 11:17:52 -0700 (PDT) Original-Received: by 10.150.227.7 with HTTP; Mon, 28 Apr 2008 11:17:52 -0700 (PDT) In-Reply-To: <115224fb0804240429p195cf84bpf9cd25d1b75e3179@mail.gmail.com> Content-Disposition: inline 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:40745 Archived-At: Hello again, * snip * > > I could reproduce the result and have also a fix but I don't know what > the correct > reults should be and other people like Aditya should decide if it makes sense > to change the current behaviour. > > \def\startdisplaymath > {\ifgridsnapping > \beforedisplayspace > \snapmathtogrid\vbox * snip * > Wolfgang This fix seems not to solve the problem entirely. With this fix applied, If one now put a formula inside an enumeration one gets "double" space before the formula. This is a test file that shows the problem: %%% Test file \setupindenting[yes,small] \indenting[next] \def\testtext{This is just some text so we see better what happens.} \def\testexpr{% \par \testtext \startformula f(x)= \sin(x) \stopformula \testtext \par } \defineenumeration[example] [text=Example, location=serried, width=fit, distance=0.5em, way=bysection, ] \starttext \testexpr % OK if fix is applied, otherwise to little space before the formula \startexample \testexpr % Too much space before the formula if the fix is applied, otherwise OK. \stopexample \stoptext %%% Stop testfile Best regards, Micke P PS Hans, I save the timing testing for next time I try LuaTeX. ___________________________________________________________________________________ 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 ___________________________________________________________________________________