From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/17652 Path: main.gmane.org!not-for-mail From: John Culleton Newsgroups: gmane.comp.tex.context Subject: Re: Sidebars and versals Oh my! Date: Mon, 27 Dec 2004 12:42:09 -0500 Organization: WexfordPress Message-ID: <200412271242.09149.john@wexfordpress.com> References: <41CF2028.6050100@wxs.nl> <20041227113358.13693@news.comp.lancs.ac.uk> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1104169881 26965 80.91.229.6 (27 Dec 2004 17:51:21 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 27 Dec 2004 17:51:21 +0000 (UTC) Cc: mailing list for ConTeXt users , Hans Hagen Original-X-From: ntg-context-bounces@ntg.nl Mon Dec 27 18:51:13 2004 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Ciz1V-0006Fr-00 for ; Mon, 27 Dec 2004 18:51:13 +0100 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6466D12798; Mon, 27 Dec 2004 18:51:13 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 12034-02; Mon, 27 Dec 2004 18:51:09 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 932BE12777; Mon, 27 Dec 2004 18:51:09 +0100 (CET) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0F5A412777 for ; Mon, 27 Dec 2004 18:51:08 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 11996-03 for ; Mon, 27 Dec 2004 18:51:07 +0100 (CET) Original-Received: from mta9.adelphia.net (unknown [68.168.78.199]) by ronja.ntg.nl (Postfix) with ESMTP id F26C6126F8 for ; Mon, 27 Dec 2004 18:51:06 +0100 (CET) Original-Received: from 69-174-190-44.frdrmd.adelphia.net ([69.174.190.44]) by mta9.adelphia.net (InterMail vM.6.01.03.02 201-2131-111-104-20040324) with ESMTP id <20041227175104.YRZG14945.mta9.adelphia.net@69-174-190-44.frdrmd.adelphia.net>; Mon, 27 Dec 2004 12:51:04 -0500 Original-To: "Adam Lindsay" User-Agent: KMail/1.6.2 In-Reply-To: <20041227113358.13693@news.comp.lancs.ac.uk> Content-Disposition: inline X-Virus-Scanned: by amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 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: by amavisd-new at ntg.nl Xref: main.gmane.org gmane.comp.tex.context:17652 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:17652 On Monday 27 December 2004 06:33, Adam Lindsay wrote: > plus-rul is interesting, but I'm 98% certain that when John talks about > sidebars, he means what you call intermezzos. My interpretation, using > the things I do know (or figured out this morning): > > \setupfloat [intermezzo] > [leftmargindistance=-\outercombitotal, > rightmargindistance=-\outercombitotal, > default=outer] > \setupcaption[intermezzo][location=none] > \starttext > \showframe > \input ward > \placeintermezzo{}{\framedtext[width=7cm]{\tfx\input dawkins }} > \dorecurse{3}{\input knuth \par} > \stoptext > > What I don't know, however, is: 1) how to force a width on flowed text > within a float without resorting to the internal \framedtext, or 2) how > to use this with \splitfloat, which is what I suspect people who think > about sidebars (intermezzo texts) are going to be worried about in a > batch-based system. For my applications I don't need a lengthy sidebar that will overflow to another page. I ran Adam's code as is and noted with interest the results. Then I added the gray background, rounded corners etc. Some things are still problems. 1. Two words in the main text (both "influenced") actually intrude into the sidebar. 1a. One word in the sidebar ("influencing") overflows the dimensions of the background. (but see 3 below.) 2. If I specify a background screen and a frame with rounded corners the background remains rectangular and does not round to match the frame. 3. If I specify frame=overlay then the text of the sidebar no longer overflows the background but the sidebar text goes out to the very edge of the background. Better to just add a hyphen to the single word. I may play with "offset=" or with the TeX \tolerance parameter. 4. The sidebar in the original test example goes out almost to the very edge of the paper. Printers don't like this :-) I will play with page layout dimensions a bit to see if I can fix this. Here is my current version: ---------------------------- \setupfloat [intermezzo] [leftmargindistance=-\outercombitotal, rightmargindistance=-\outercombitotal, default=outer] \setupcaption[intermezzo][location=none] \setupcolors[state=start] \starttext \showframe \input ward \placeintermezzo{} {\framedtext[width=7cm,frame=on,framecorner=round,frameradius=6pt, %framecolor=gray, background=screen,backgroundscreen=.7]{\tfx\input dawkins }} \dorecurse{3}{\input knuth \par} \stoptext -------------------------- -- John Culleton Short list of publishing/marketing books: http://wexfordpress.com/tex/shortlist.pdf