From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/64866 Path: news.gmane.org!not-for-mail From: Sanjoy Mahajan Newsgroups: gmane.comp.tex.context Subject: framed float with offset Date: Sat, 1 Jan 2011 10:53:49 -0500 Message-ID: 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: dough.gmane.org 1293897762 28797 80.91.229.12 (1 Jan 2011 16:02:42 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 1 Jan 2011 16:02:42 +0000 (UTC) To: Original-X-From: ntg-context-bounces@ntg.nl Sat Jan 01 17:02:38 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 1PZ3ue-0006SF-Ru for gctc-ntg-context-518@m.gmane.org; Sat, 01 Jan 2011 17:02:36 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DA01BCA95B; Sat, 1 Jan 2011 17:02:35 +0100 (CET) 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 zJ1f5EkkL-Zl; Sat, 1 Jan 2011 17:02:33 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 57D0DCA95C; Sat, 1 Jan 2011 17:02:33 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A95FFCA95C for ; Sat, 1 Jan 2011 17:02:31 +0100 (CET) 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 BcSJtdoy-M3d for ; Sat, 1 Jan 2011 17:02:29 +0100 (CET) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by balder.ntg.nl (Postfix) with ESMTP id C214DCA95B for ; Sat, 1 Jan 2011 17:02:29 +0100 (CET) Original-Received: from EXCAS01.olin.edu (excas01.olin.edu [209.94.128.49]) by filter1-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p01G2R2A027459 for ; Sat, 1 Jan 2011 17:02:29 +0100 Original-Received: from approx.mit.edu (96.237.69.170) by smtps.olin.edu (10.1.15.25) with Microsoft SMTP Server (TLS) id 8.1.436.0; Sat, 1 Jan 2011 11:02:27 -0500 Original-Received: from sanjoy by approx.mit.edu with local (Exim 4.72) (envelope-from ) id 1PZ3m9-0006EU-22; Sat, 01 Jan 2011 10:53:49 -0500 X-Mailer: MH-E 8.2; nmh 1.3; GNU Emacs 23.2.1 X-Bayes-Prob: 0.5 (Score 0, tokens from: ) X-CanIt-Geo: ip=209.94.128.49; country=US; region=MA; city=Needham; postalcode=02492; latitude=42.2793; longitude=-71.2450; metrocode=506; areacode=781; http://maps.google.com/maps?q=42.2793,-71.2450&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 08DOg2sA6 - 3a7bb05edfa2 - 20110101 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.217 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:64866 Archived-At: Is there a way to have figures placed on a slightly larger colored background and then have paragraph text flow around the enlarged area? I tried the following (using ver 2009.11.26 16:28 MKII): \setupcolors[state=start] \starttext \placefigure[right,none]{}% {\externalfigure[sample/cow.pdf]% [scale=500, frame=on, frameoffset=20pt, framecolor=black, background=color, backgroundcolor=lightgray, backgroundoffset=20pt]} \input knuth \stoptext But the frame and background bleed into the text. I tried wrapping the externalfigure in a \framed, and also wrapping that in an \vbox or an \hbox (desperate measures, I admit). But somehow the \placefigure always knew exactly the size of the cow itself and used only that information, rather than the size of the enlarged background. Any suggestions appreciated. (I'd wikify in the framed section.) -Sanjoy ___________________________________________________________________________________ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________