ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Patrick Gundlach <patrick@gundla.ch>
To: ntg-context@ntg.nl
Subject: Re: whitespace in framedtext
Date: Tue, 03 Jul 2007 10:20:12 +0200	[thread overview]
Message-ID: <m1wsxhvqyr.fsf@levana.de> (raw)
In-Reply-To: <2ACA82D1-D638-48BC-AAD1-EC13FBBD68B5@science.uva.nl> (Hans van der Meer's message of "Mon, 2 Jul 2007 17:43:33 +0200")

Hello Hans,


> I would like to shrink the whitespace at the top and the bottom of a
> framedtext.
> Like thus:
>
> 	not this                         but this
> ------------------------------      ------------------------------
> |                            |      |                            |
> |                            |      |   abcd                     |
> |   abcd                     |      |   abcd                     |
> |   abcd                     |      |                            |
> |                            |      ------------------------------
> |                            |
> ------------------------------
>
> I have tried a lot of things with [before, after, top, bottom].
> Although [depthcorrection=off] shaves somewhat off the whitespace, it
> is not much nor am I sure if this is on the right track; and it is
> not parametrized.
>
> Someone knows the trick?

perhaps with an overlay?

--------------------------------------------------
\def\TightFrame
  {\startoverlay
    {\framed[width=\overlaywidth,height=\dimexpr(\overlayheight - 5ex)]{}}{}\stopoverlay}
\defineoverlay[TightFrame][\TightFrame]


\starttext

\startframedtext [background=TightFrame,frame=off]
Hallo Welt
\input tufte

\input knuth
\stopframedtext
\stoptext
--------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


  parent reply	other threads:[~2007-07-03  8:20 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-02 15:43 Hans van der Meer
2007-07-03  6:32 ` Wolfgang Schuster
2007-07-03  8:20 ` Patrick Gundlach [this message]
2007-07-03 14:55   ` John R. Culleton
2007-07-04  7:36     ` Wolfgang Schuster
2007-07-03 17:00 ` Hans van der Meer

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=m1wsxhvqyr.fsf@levana.de \
    --to=patrick@gundla.ch \
    --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).