ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans van der Meer <hansm@science.uva.nl>
Subject: Re: extra white in framedtext
Date: Tue, 13 Jun 2006 12:07:35 +0200	[thread overview]
Message-ID: <544A5C7F-1838-4B2D-AD73-11C744B49D8B@science.uva.nl> (raw)
In-Reply-To: <448DDD1A.9020905@wxs.nl>


On Jun 12, 2006, at 23:31, Hans Hagen wrote:

> Hans van der Meer wrote:
>> I did want to typeset material within framedtext with some white
>> before and after each line.
>> Appropriate for this seems to me: \null\quad material \quad\null\crlf
>> etc.; the preceding \null preventing disappearence of the first  
>> \quad.
>>
>> The strange thing is that the \null in the first line induces an  
>> extra
>> vertical whitespace between the top of the frame and the first line
>> inside the frame.
>>
>> An impression of the result:
>>
>> -----------------------
>> |� �� �� �� �� �� �� �|� with \null  
>> in first line
>> |� �� �first line� � �|
>> |� �� �second line � �|
>> -----------------------
>>
>> -----------------------
>> |� �� �first line� � �|� without \null in first line
>> |� �� �second line � �|
>> -----------------------
>>
>> It seems counterintuitive to withhold the \null in the first line in
>> order to have the framing correct.
>> A minimal example on which I encountered this follows:
>>
>> \setupbodyfont[cmr]
> interesting, cmr

Yes, my default font setup sometimes seems to play havoc with me.
It turns automagically into lm.

As for the above problem, my brains were a bit rusty I think.
Just a leavevmode did the trick:

\startframedtext[middle][width=fit]
\leavevmode % <= the solution
\null\quad\type{with leavevmode: no more extra vertical space}\quad 
\null\crlf
\null\quad\type{normal vertical space}\quad\null
\stopframedtext

Hans van der Meer



_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

  reply	other threads:[~2006-06-13 10:07 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-12 19:58 Hans van der Meer
2006-06-12 21:31 ` Hans Hagen
2006-06-13 10:07   ` Hans van der Meer [this message]
2006-06-13 10:10     ` Hans Hagen
2006-06-13 12:07   ` Nikolai Weibull
2006-06-15 12:46     ` Hans Hagen
2006-06-16  6:55       ` Nikolai Weibull

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=544A5C7F-1838-4B2D-AD73-11C744B49D8B@science.uva.nl \
    --to=hansm@science.uva.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).