ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Subject: Re: strange dependency between cbox and whitespace?
Date: Thu, 19 Feb 2004 18:15:41 +0100	[thread overview]
Message-ID: <6.0.1.1.2.20040219181501.03313138@server-1> (raw)
In-Reply-To: <c12q1p$d6q$1@sea.gmane.org>

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}

  reply	other threads:[~2004-02-19 17:15 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 [this message]
2004-02-20  9:10   ` Stefan Wachter

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=6.0.1.1.2.20040219181501.03313138@server-1 \
    --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).