ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Stefan Wachter <stefan.wachter@gmx.de>
Subject: Re: strange dependency between cbox and    whitespace?
Date: Fri, 20 Feb 2004 10:10:33 +0100	[thread overview]
Message-ID: <c14j2c$v53$1@sea.gmane.org> (raw)
In-Reply-To: <6.0.1.1.2.20040219181501.03313138@server-1>

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.

      reply	other threads:[~2004-02-20  9:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-19 16:57 Stefan Wachter
2004-02-19 17:15 ` Hans Hagen
2004-02-20  9:10   ` Stefan Wachter [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='c14j2c$v53$1@sea.gmane.org' \
    --to=stefan.wachter@gmx.de \
    --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).