From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/35266 Path: news.gmane.org!not-for-mail From: "John R. Culleton" Newsgroups: gmane.comp.tex.context Subject: Re: whitespace in framedtext Date: Tue, 3 Jul 2007 10:55:31 -0400 Organization: WexfordPress Message-ID: <200707031055.31918.john@wexfordpress.com> References: <2ACA82D1-D638-48BC-AAD1-EC13FBBD68B5@science.uva.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1183480057 21355 80.91.229.12 (3 Jul 2007 16:27:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 3 Jul 2007 16:27:37 +0000 (UTC) Cc: Patrick Gundlach To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Tue Jul 03 18:27:34 2007 connect(): Connection refused Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1I5lDv-00030X-Ni for gctc-ntg-context-518@m.gmane.org; Tue, 03 Jul 2007 18:27:31 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 648F71FE68; Tue, 3 Jul 2007 18:27:12 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 20764-02-2; Tue, 3 Jul 2007 18:27:01 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7E9A01FE2D; Tue, 3 Jul 2007 18:27:01 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 293671FE24 for ; Tue, 3 Jul 2007 18:27:00 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 20345-02-6 for ; Tue, 3 Jul 2007 18:26:57 +0200 (CEST) Original-Received: from sccrmhc13.comcast.net (sccrmhc13.comcast.net [63.240.77.83]) by ronja.ntg.nl (Postfix) with ESMTP id 054F9200DD for ; Tue, 3 Jul 2007 17:00:33 +0200 (CEST) Original-Received: from c-69-138-74-89.hsd1.md.comcast.net ([69.138.74.89]) by comcast.net (sccrmhc13) with ESMTP id <20070703150032013005o0loe>; Tue, 3 Jul 2007 15:00:32 +0000 User-Agent: KMail/1.9.4 In-Reply-To: Content-Disposition: inline X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:35266 Archived-At: On Tuesday 03 July 2007 04:20, Patrick Gundlach wrote: > 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 First I woud try just a negative \vskip thus: \vskip -10pt I know we are not supposed to use \vskips in Context except when enclosed by \startstandardmakeup \stopstandardmakeup But I use them and thus far there have been no terrible bad effects. If you use \vskip and the sky falls in then there are the more complex but safer methods such as the one outlined by Patrick G. -- John Culleton ATTN Publishers/authors: If you don't read you don't succeed. Free short list of publishing/marketing books. http://wexfordpress.com/tex/shortlist.pdf ___________________________________________________________________________________ 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 ___________________________________________________________________________________