From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/68063 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Pull quotes Date: Thu, 28 Apr 2011 19:16:18 +0200 Message-ID: <3A823857-1A2A-4416-B741-8EFF96F72DAD@googlemail.com> References: <20110427200858.GA15248@rae.vm.bytemark.co.uk> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1304011009 1839 80.91.229.12 (28 Apr 2011 17:16:49 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 28 Apr 2011 17:16:49 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Apr 28 19:16:42 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QFUpU-00046R-Vt for gctc-ntg-context-518@m.gmane.org; Thu, 28 Apr 2011 19:16:41 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3D6BACAC5A; Thu, 28 Apr 2011 19:16:39 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 6PTLUjWe6FRd; Thu, 28 Apr 2011 19:16:36 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1AE24CAC48; Thu, 28 Apr 2011 19:16:36 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6E79BCAC48 for ; Thu, 28 Apr 2011 19:16:34 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id iZa-X6Cl2gFm for ; Thu, 28 Apr 2011 19:16:23 +0200 (CEST) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by balder.ntg.nl (Postfix) with ESMTP id 51DDDCAC2D for ; Thu, 28 Apr 2011 19:16:23 +0200 (CEST) Original-Received: from mail-fx0-f41.google.com (mail-fx0-f41.google.com [209.85.161.41]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p3SHGMZq029902 for ; Thu, 28 Apr 2011 19:16:22 +0200 Original-Received: by fxm18 with SMTP id 18so2883138fxm.14 for ; Thu, 28 Apr 2011 10:16:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:content-type:mime-version:subject:from :in-reply-to:date:content-transfer-encoding:message-id:references:to :x-mailer; bh=xlWTkSrkoSWeknuc2S0Z8I98FO7CZjmOAafcAtzNuBw=; b=O8VmRZV7qPX2vtDaFFpt2A3TMiPgqfdtziTqOoY1ZBd9BEKdNiIIVsusBaPaxJKtKZ j4ho3PmWLco+O9EqzW/eiCDxydqFzPmljD/amBLwYUV756OBmGqbk58zVCJG/vVsD/Sd OzdYb2NkK6aqCdT8ZDju5xFeWOmsrYutWwYW8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; b=d+oxCsWrI6YBOL4Zxout/cY7rud+IUw+us/tWBkK2P6RbVHrSvz8rP9oq/zpooeF4L hQV00hQljscT1I5kFCIjY9mRfbHpa1IUtBaZNzmtVtunMP2M0ZmLThnT4q1YV4ILuVJC s0/5RsKotaP1wyXzVl0QDoxnPLmJ5gOklkWDA= Original-Received: by 10.223.74.83 with SMTP id t19mr508877faj.149.1304010982167; Thu, 28 Apr 2011 10:16:22 -0700 (PDT) Original-Received: from [192.168.2.31] (p5B2937EF.dip.t-dialin.net [91.41.55.239]) by mx.google.com with ESMTPS id j18sm645491faa.42.2011.04.28.10.16.20 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 28 Apr 2011 10:16:21 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.1084) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.161.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03EB5gmug - b241429b4a6f - 20110428 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.72 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:68063 Archived-At: Am 28.04.2011 um 18:27 schrieb mathew: > On Wed, Apr 27, 2011 at 15:08, Pontus Lurcock wrote: >> Why not just put it in a float? > = > OK, after some fiddling around, a combination of a framed text in a > float seems to work. > = > Definitions: > = > \definefloat[pullquote][pullquotes] % Define a new type of float > \setupcaption[pullquote][location=3Dnone] % Set it to have no captions > \defineframedtext[pullquote][frame=3Doff] % Define a new type of framed > text with no visible frame > = > Usage: > = > \placepullquote[right]{}{ > \startpullquote[width=3D4cm] > \tfc =93All work and no play makes Jack a dull boy.=94 > \stoppullquote} > = > The {} in the \placepullquote is the text for the caption, which in > this case is set up to be invisible. Obviously you could use the > caption feature to cite the source of quotations. As do now know what you want here is a solution from me (MkIV only): \usemodule[annotation] \define[2]\PullquoteCommand {\placefigure[\annotationparameter{location},none]{}% {\framedtext [frame=3Doff, width=3D\annotationparameter{width}, style=3D\annotationparameter{style}] % {=93#2=94}}} {\setupinterlinespace=93#2=94\par}}} \defineannotation [pullquote] [alternative=3Dcommand, command=3D\PullquoteCommand, location=3Dright, width=3Dfit, style=3D\tfc] \starttext \startpullquote[width=3D4cm] All work and no play makes Jack a dull boy. \stoppullquote \input knuth \blank \startpullquote[width=3D4cm,location=3Dleft] All work and no play makes Jack a dull boy. \stoppullquote \input knuth \stoptext Wolfgang ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________