From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/17657 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Sidebars and versals Oh my! Date: Mon, 27 Dec 2004 20:29:18 +0100 Message-ID: <41D0628E.2090504@wxs.nl> References: <41CF2028.6050100@wxs.nl> <20041227113358.13693@news.comp.lancs.ac.uk> <200412271242.09149.john@wexfordpress.com> 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; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1104175777 8086 80.91.229.6 (27 Dec 2004 19:29:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 27 Dec 2004 19:29:37 +0000 (UTC) Cc: mailing list for ConTeXt users , Adam Lindsay Original-X-From: ntg-context-bounces@ntg.nl Mon Dec 27 20:29:30 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 1Cj0Yc-0003YI-00 for ; Mon, 27 Dec 2004 20:29:30 +0100 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 87004127B6; Mon, 27 Dec 2004 20:29:30 +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 12784-02-3; Mon, 27 Dec 2004 20:29:28 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 08922127AC; Mon, 27 Dec 2004 20:29:28 +0100 (CET) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id AA2211279E for ; Mon, 27 Dec 2004 20:29:26 +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 12784-02-2 for ; Mon, 27 Dec 2004 20:29:25 +0100 (CET) Original-Received: from mailrelay01.solcon.nl (unknown [212.45.32.200]) by ronja.ntg.nl (Postfix) with ESMTP id 92854127AC for ; Mon, 27 Dec 2004 20:29:25 +0100 (CET) Original-Received: from server-1.pragma-net.nl (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by mailrelay01.solcon.nl (8.12.11/SQL-8.12.11-5/8.12.11) with ESMTP id iBRJTFj3025651; Mon, 27 Dec 2004 20:29:15 +0100 Original-Received: by server-1.pragma-net.nl (Postfix, from userid 65534) id 2325C1855E; Mon, 27 Dec 2004 20:26:59 +0100 (CET) Original-Received: from [10.100.1.191] (unknown [10.100.1.191]) by server-1.pragma-net.nl (Postfix) with ESMTP id 9FCA31817A; Mon, 27 Dec 2004 19:26:57 +0000 (UTC) User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) X-Accept-Language: en-us, en Original-To: John Culleton In-Reply-To: <200412271242.09149.john@wexfordpress.com> X-Virus-Scanned: ClamAV 0.80/540/Tue Oct 19 14:59:23 2004 clamav-milter version 0.80j on mailrelay01 X-Virus-Status: Clean 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:17657 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:17657 John Culleton wrote: > 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. \starttext \setupcolors[state=start] \framed[corner=round,background=color,backgroundcolor=red]{HELLO} \framed[corner=round,background=screen,backgroundscreen=.6]{HELLO} \setupfloat [intermezzo] [leftmargindistance=-\outercombitotal, rightmargindistance=-\outercombitotal, default=outer] \setupcaption[intermezzo][location=none] \defineframedtext [myohmy] [width=7cm,bodyfont=small,corner=round,background=screen,backgroundscreen=.6] \showframe \input ward \placeintermezzo{}{\startmyohmy \input dawkins \relax\stopmyohmy} \dorecurse{3}{\input knuth \par} \stoptext ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------