From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/24148 Path: news.gmane.org!not-for-mail From: "John R. Culleton" Newsgroups: gmane.comp.tex.context Subject: Re: Back to sidebars. Date: Mon, 5 Dec 2005 14:57:52 -0500 Organization: WexfordPress Message-ID: <200512051457.52194.john@wexfordpress.com> References: <200512051128.58177.john@wexfordpress.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1133816588 13901 80.91.229.2 (5 Dec 2005 21:03:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 5 Dec 2005 21:03:08 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Mon Dec 05 22:03:04 2005 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1EjNTY-0002WN-Qq for gctc-ntg-context-518@m.gmane.org; Mon, 05 Dec 2005 22:02:20 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9029B1281A; Mon, 5 Dec 2005 22:02:20 +0100 (CET) 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 22625-08; Mon, 5 Dec 2005 22:02:20 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id CFB6312805; Mon, 5 Dec 2005 21:58:52 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C85BE12805 for ; Mon, 5 Dec 2005 21:58:50 +0100 (CET) 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 22625-06 for ; Mon, 5 Dec 2005 21:58:49 +0100 (CET) Original-Received: from mta10.adelphia.net (mta10.adelphia.net [68.168.78.202]) by ronja.ntg.nl (Postfix) with ESMTP id 9D1701277F for ; Mon, 5 Dec 2005 21:58:49 +0100 (CET) Original-Received: from 69-174-190-44.frdrmd.adelphia.net ([69.174.190.44]) by mta10.adelphia.net (InterMail vM.6.01.05.02 201-2131-123-102-20050715) with ESMTP id <20051205205848.FYXK1186.mta10.adelphia.net@69-174-190-44.frdrmd.adelphia.net> for ; Mon, 5 Dec 2005 15:58:48 -0500 Original-To: ntg-context@ntg.nl User-Agent: KMail/1.7.2 In-Reply-To: <200512051128.58177.john@wexfordpress.com> Content-Disposition: inline X-Virus-Scanned: 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: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:24148 Archived-At: On Monday 05 December 2005 11:28 am, John R. Culleton wrote: > Some time back (maybe three years ago) Hans showed me a way to > create a sidebar, with optional background and hanging out half > way into the margin. Now I would like to encapsulate the commands > into a simple \start \stop sequence. But I don't know how to do > it. > > Hans started off with some definitions: > > \setupfloat > [intermezzo] > [leftmargindistance=-\outercombitotal, > rightmargindistance=-\outercombitotal, > default={outer,high}] > \setupcaption[intermezzo][location=none] > > \defineframedtext > [myohmy] > [width=6cm,bodyfont=small, > frame=off, > backgroundcorner=round, > backgroundradius=16pt,background=screen,backgroundscreen=.7] > > > Then he called these two definitions with a sequence like: > (some text) > \placeintermezzo{}{\startmyohmy\input dawkins \relax\stopmyohmy} > (some text) > > What I would like to do is boil down the last mentioned command > sequence into > > \startsidebar > (some text) > \stopsidebar > > But I am stumped by the task. If there were a \startintermezzo > and \stopintermezzo pairing then the task would be simpler. > > John Culleton After writing the above I went back to my roots and came up with this: \long\def\sidebar#1{\placeintermezzo{}{\startmyohmy #1 \relax\stopmyohmy}} ...which seems to work. Can anyone find a hole in this method? Thanks, John C.