From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/40660 Path: news.gmane.org!not-for-mail From: "Wolfgang Schuster" Newsgroups: gmane.comp.tex.context Subject: Re: \indenting[next] and math => no vertical space before the formula Date: Thu, 24 Apr 2008 13:29:35 +0200 Message-ID: <115224fb0804240429p195cf84bpf9cd25d1b75e3179@mail.gmail.com> References: 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 1209036668 25243 80.91.229.12 (24 Apr 2008 11:31:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 24 Apr 2008 11:31:08 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Thu Apr 24 13:31:42 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 1Jozfx-0001AS-2h for gctc-ntg-context-518@m.gmane.org; Thu, 24 Apr 2008 13:31:41 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 774481FBF1; Thu, 24 Apr 2008 13:30:56 +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 26364-04; Thu, 24 Apr 2008 13:30:14 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id F2B241FB74; Thu, 24 Apr 2008 13:30:13 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 676E11FB74 for ; Thu, 24 Apr 2008 13:30:12 +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 26928-02-3 for ; Thu, 24 Apr 2008 13:29:37 +0200 (CEST) Original-Received: from qb-out-0506.google.com (qb-out-0506.google.com [72.14.204.231]) by ronja.ntg.nl (Postfix) with ESMTP id 508AE1FADC for ; Thu, 24 Apr 2008 13:29:37 +0200 (CEST) Original-Received: by qb-out-0506.google.com with SMTP id c7so3079182qbc.16 for ; Thu, 24 Apr 2008 04:29:36 -0700 (PDT) Original-Received: by 10.140.88.11 with SMTP id l11mr1195981rvb.237.1209036575928; Thu, 24 Apr 2008 04:29:35 -0700 (PDT) Original-Received: by 10.140.133.21 with HTTP; Thu, 24 Apr 2008 04:29:35 -0700 (PDT) In-Reply-To: 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:40660 Archived-At: On Thu, Apr 24, 2008 at 12:15 PM, Mikael Persson wrote: > Dear all, > > I have a problem with \indenting[next] combined with math formulas. > Look at the example below. The space between the text above the > formula and the formula is way to small. This goes away if I change > next to for example yes. > > Btw, this happens on my TeXLive 2007 on ubuntu at home, my ConTeXt > minimal from 2007-04-03 at work and on live.contextgarden.net (with > pdfTeX but not LuaTeX). > > Do I misuse the indenting macros? > > Thanks, Micke P > > % test file > \setupindenting[yes,small] > \indenting[next] > > \starttext > Hello World! This is just some dumb text to show the problem. > \startformula > a=b > \stopformula > Goodbye World! The space below the formula is OK. > \stoptext 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 \bgroup \informulatrue %\forgetall % breaks side floats \else \bgroup \parskip\formulaparskip % ! ! \informulatrue %\forgetall % otherwise backgrounds fail \ifdim\lastskip<\zeropoint\else \par \ifvmode \ifdim\parskip>\zeropoint\relax \whitespace \vskip-\parskip % kind of forces and cancels again \fi \fi \fi \doif\displaygridcorrection{-\v!top}{\kern-\strutht}% new, currently only option/default \beforedisplayspace \par \ifvmode \ifindentfirstparagraph \verticalstrut \vskip-\struttotal \vskip-\baselineskip \fi \fi \fi $$\setdisplaydimensions \setpredisplaysize\lastlinewidth \startinnermath} I added the \ifindentfirstparagraph test before the last skip upwards is executed. 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 ___________________________________________________________________________________