ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Subject: Re: strange stretching with \blank[...]
Date: Sun, 15 Jan 2006 19:26:05 +0100	[thread overview]
Message-ID: <43CA93BD.8080901@wxs.nl> (raw)
In-Reply-To: <Pine.LNX.4.58.0601141812460.3797@gaston.free.fr>

� 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.tex
>  
>
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] 
{\addblankskip+{2\openlineheight}{2\openlineheight}}
\defineblankmethod     [2*\v!big] {\addblankskip+{2\bigskipamount 
}{2\openlineheight}}

comment those two lines!  multiplication makes the stretch/shrink 
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

      parent reply	other threads:[~2006-01-15 18:26 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-14 17:25 Peter Münster
2006-01-15 14:53 ` Taco Hoekwater
2006-01-15 18:34   ` Hans Hagen
2006-01-15 18:26 ` Hans Hagen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=43CA93BD.8080901@wxs.nl \
    --to=pragma@wxs.nl \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).