From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/24165 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Weird godown, dorecurse, colors and page-fitting interaction Date: Tue, 06 Dec 2005 11:00:51 +0100 Message-ID: <43956153.6070808@wxs.nl> References: <43948DBB.8050505@comp.lancs.ac.uk> 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: 7bit X-Trace: sea.gmane.org 1133863291 9438 80.91.229.2 (6 Dec 2005 10:01:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 6 Dec 2005 10:01:31 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Tue Dec 06 11:01:28 2005 Return-path: 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 1EjZdD-0002Fl-Pg for gctc-ntg-context-518@m.gmane.org; Tue, 06 Dec 2005 11:01:07 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 495B81283E; Tue, 6 Dec 2005 11:01: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 30497-02; Tue, 6 Dec 2005 11:01:01 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7BA3112821; Tue, 6 Dec 2005 11:01:01 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 3166E12821 for ; Tue, 6 Dec 2005 11:01:00 +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 30436-08 for ; Tue, 6 Dec 2005 11:00:59 +0100 (CET) Original-Received: from controller-1 (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by ronja.ntg.nl (Postfix) with ESMTP id 243BC127B4 for ; Tue, 6 Dec 2005 11:00:58 +0100 (CET) Original-Received: from [10.100.1.102] (unverified [10.100.1.102]) by controller-1 (SurgeMail 3.5b3) with ESMTP id 6568 for multiple; Tue, 06 Dec 2005 11:06:37 +0300 User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users , Taco Hoekwater In-Reply-To: <43948DBB.8050505@comp.lancs.ac.uk> 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:24165 Archived-At: Adam Lindsay wrote: > Hi all, > > What's happening here? > > \setupcolors[state=start] > \starttext > \startTEXpage > \dorecurse{2}{abc\godown[0pt]} > \stopTEXpage > \startTEXpage > \startcolor[yellow] > \dorecurse{2}{abc\godown[0pt]} > \stopcolor > \stopTEXpage > \stoptext > a long story ... to which ttp wizzard taco might want to add comment ok, a fix first (missing \fi) \def\godown[#1]% {\relax \ifhmode\endgraf\fi \ifvmode\nointerlineskip\vskip#1\relax\fi} what you observe is some interference; the fitting page macros use framed and when you set width and height to fit, it will use the reshaperr to determine the width; this mechanism fails as soon as nodes show up that cannot be \un-whatevered or \last-whatevered; also, some mechanisms have as side effect that they force the box to have a width of \hsize question for taco: how difficult would it be to have something: \squeezebox\scratchbox where the result is a box with a width equal to the max(natural width of lines) (that way we could replace the reshaper and get around those interfering and blocking nodes) you may see some of the side effects when you play with: \starttext \setupcolors[state=start] \startTEXpage \dorecurse{2}{abc\godown[0pt]} \stopTEXpage \startTEXpage[foregroundcolor=yellow] \dorecurse{2}{abc\godown[0pt]} \stopTEXpage \startTEXpage \startcolor[red]\dorecurse{2}{abc\godown[0pt]}\stopcolor \stopTEXpage \startTEXpage[width=fixed] \startcolor[green]\dorecurse{2}{abc\godown[0pt]}\stopcolor \stopTEXpage \startTEXpage[width=fixed] \dorecurse{2}{\startcolor[cyan]abc\stopcolor\godown[0pt]} \stopTEXpage \startTEXpage \dorecurse{2}{\startcolor[magenta]abc\stopcolor\godown[0pt]} \stopTEXpage \startTEXpage \vbox{\startcolor[blue]\dorecurse{2}{abc\godown[0pt]}\stopcolor} \stopTEXpage \stoptext so, there is no real solution unless you use the foreground color or box things yourself Hans