From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/14775 Path: main.gmane.org!not-for-mail From: Stefan Wachter Newsgroups: gmane.comp.tex.context Subject: Re: strange dependency between cbox and whitespace? Date: Fri, 20 Feb 2004 10:10:33 +0100 Sender: ntg-context-admin@ntg.nl Message-ID: References: <6.0.1.1.2.20040219181501.03313138@server-1> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1077268424 32341 80.91.224.253 (20 Feb 2004 09:13:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 20 Feb 2004 09:13:44 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Fri Feb 20 10:13:35 2004 Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Au6j1-00087L-00 for ; Fri, 20 Feb 2004 10:13:35 +0100 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 685B110B26; Fri, 20 Feb 2004 10:11:43 +0100 (MET) Original-Received: from main.gmane.org (main.gmane.org [80.91.224.249]) by ref.ntg.nl (Postfix) with ESMTP id E70E810B0D for ; Fri, 20 Feb 2004 10:10:58 +0100 (MET) Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1Au6iE-0003H6-00 for ; Fri, 20 Feb 2004 10:12:46 +0100 Original-Received: from p508b2d14.dip.t-dialin.net ([80.139.45.20]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri Feb 20 09:12:46 2004 Original-Received: from stefan.wachter by p508b2d14.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri Feb 20 09:12:46 2004 X-Injected-Via-Gmane: http://gmane.org/ Original-To: ntg-context@ref.ntg.nl Original-Lines: 47 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: p508b2d14.dip.t-dialin.net User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3.1) Gecko/20030425 X-Accept-Language: en-us, en In-Reply-To: <6.0.1.1.2.20040219181501.03313138@server-1> Errors-To: ntg-context-admin@ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.comp.tex.context:14775 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:14775 Hans Hagen wrote: > At 17:57 19/02/2004, you wrote: > >> Hi all! >> >> I came across the following behaviour: cboxes seem to suppress white >> space in certain conditions. >> >> In the following example there is no whitespace output between >> paragraph no. 2 und 3. Yet, if I change \setupwhitespace to 'none' or >> if I do not enclose the paragraphs in cboxes then the whitespaces >> between the paragraphs appear as expected. >> >> Does anyone know a workaround for this 'strange' behaviour of cboxes? >> >> Thanks for your attention, >> --Stefan >> >> >> \setupoutput[pdftex] >> \setupinteraction[openaction={firstpage,FitHeight},state=start] >> \setupwhitespace[small] >> \setupblank[100pt] >> \def\Para#1{\cbox{#1 \dorecurse{10}{this is some paragraph text}}\par} >> \starttext >> \Para{1} >> \blank[big] >> \Para{2} >> \blank[medium] >> \Para{3} >> \blank[small] >> \Para{4} >> \stoptext > > > has to do with the way tex handles vbox/vtop's (tex does not have dual > baseline boxes) > > \def\Para#1{\cbox{#1 \dorecurse{10}{\begstrut this is some paragraph > text \endstrut}}\par} > > or something: > > \long \def\Para#1#2\EndPar{\startalign[middle]#1 #2\stopalign} Thanks for the reply. I am using the \startalign option now.