From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/25212 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: strange stretching with \blank[...] Date: Sun, 15 Jan 2006 19:26:05 +0100 Message-ID: <43CA93BD.8080901@wxs.nl> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1137349585 12283 80.91.229.2 (15 Jan 2006 18:26:25 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 15 Jan 2006 18:26:25 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sun Jan 15 19:26:15 2006 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 ciao.gmane.org with esmtp (Exim 4.43) id 1EyCZq-0007L3-I2 for gctc-ntg-context-518@m.gmane.org; Sun, 15 Jan 2006 19:26:07 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 231AA1287B; Sun, 15 Jan 2006 19:26:06 +0100 (CET) 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 08951-08-5; Sun, 15 Jan 2006 19:26:04 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 013FF1286B; Sun, 15 Jan 2006 19:26:03 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6A5E61286B for ; Sun, 15 Jan 2006 19:26:02 +0100 (CET) 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 08951-08-4 for ; Sun, 15 Jan 2006 19:26:01 +0100 (CET) Original-Received: from mail.pragma-ade.net (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by ronja.ntg.nl (Postfix) with SMTP id 7E30912869 for ; Sun, 15 Jan 2006 19:26:01 +0100 (CET) Original-Received: from [10.100.1.102] (unverified [10.100.1.102]) by controller-1 (SurgeMail 3.5b3) with ESMTP id 716 for ; Sun, 15 Jan 2006 13:36:49 +0300 User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en Original-To: ntg-context@ntg.nl In-Reply-To: X-Server: High Performance Mail Server - http://surgemail.com r=-274017400 X-Authenticated-User: hagen@controller-1 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 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:25212 Archived-At: =EF=BF=BD wrote: >Hello, > >please consider the following example file: > >\setupalign[line] >\starttext >\input knuth >\blank[big] >\input knuth >\blank[2*big] % 2*big is much smaller than simple big ! >\input knuth >\placetable{bla}{\vbox to 18cm{bla}} >\stoptext > >But \blank[big,big] is working right. > >It seems, that we should replace all "2*big" by "big,big" in core-sec.te= x > =20 > no, this is a bug! (qualifies for stupid bug of the year) in core-spa you will find: % happens often, so we speed this up: \defineblankmethod [2*\v!line]=20 {\addblankskip+{2\openlineheight}{2\openlineheight}} \defineblankmethod [2*\v!big] {\addblankskip+{2\bigskipamount=20 }{2\openlineheight}} comment those two lines! multiplication makes the stretch/shrink=20 disappear (this is a tex feature and i should have know better) you can test the current situation with: \def\addblankskip#1#2#3% {before:\the\blankskip\endgraf \global\advance\blankskip#1\ifgridsnapping#3\else#2\fi after:\the\blankskip\endgraf} test \blank[big] test \blank[big,big] test \blank[2*big] I'll patch it. Hans