From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/69836 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Trying to get figure frame corners to clip figure Date: Thu, 7 Jul 2011 07:35:37 +0200 Message-ID: References: <1310004686.12352.41.camel@kip-laptop> <1310015924.12352.48.camel@kip-laptop> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: multipart/mixed; boundary="===============0804430155==" X-Trace: dough.gmane.org 1310016971 12668 80.91.229.12 (7 Jul 2011 05:36:11 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 7 Jul 2011 05:36:11 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Jul 07 07:36:00 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 1QehFo-0003GQ-ND for gctc-ntg-context-518@m.gmane.org; Thu, 07 Jul 2011 07:36:00 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D8319CAE12; Thu, 7 Jul 2011 07:35:59 +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 sK-agDXdan-W; Thu, 7 Jul 2011 07:35:56 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9FDFFCAE09; Thu, 7 Jul 2011 07:35:56 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9D3A8CAE09 for ; Thu, 7 Jul 2011 07:35:55 +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 Q+aAwyadfFN7 for ; Thu, 7 Jul 2011 07:35:43 +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 42455CADFB for ; Thu, 7 Jul 2011 07:35:43 +0200 (CEST) Original-Received: from mail-fx0-f42.google.com (mail-fx0-f42.google.com [209.85.161.42]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p675ZfgY014970 for ; Thu, 7 Jul 2011 07:35:42 +0200 Original-Received: by fxe23 with SMTP id 23so732364fxe.15 for ; Wed, 06 Jul 2011 22:35:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=from:mime-version:content-type:subject:date:in-reply-to:to :references:message-id:x-mailer; bh=CC25xgZTTcYD3Gms1BpSGR/fLm6zL8kWD4y56pdM3Qc=; b=kyQNrGiOibGjZS6R8vR02PpHi5mfMBlq0gBpZeOb2QXuPx14Kx9JMsBxeVo+eFMy11 V60SXXjsdB/LUU4xXj20+rAi6A4yxRl31rbKcSFHh38ScLMIM5UmU5AWU48vAnsmqffa hZxtANsyzPL5L8z1yXul54JVHZO6PSyP++Qv4= Original-Received: by 10.223.69.65 with SMTP id y1mr654087fai.60.1310016941769; Wed, 06 Jul 2011 22:35:41 -0700 (PDT) Original-Received: from [192.168.2.31] (p5B0EE627.dip.t-dialin.net [91.14.230.39]) by mx.google.com with ESMTPS id w15sm6477616faj.23.2011.07.06.22.35.39 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 06 Jul 2011 22:35:40 -0700 (PDT) In-Reply-To: <1310015924.12352.48.camel@kip-laptop> X-Mailer: Apple Mail (2.1084) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.161.42; 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: 03F4RzGWT - 44583533972b - 20110707 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:69836 Archived-At: --===============0804430155== Content-Type: multipart/alternative; boundary=Apple-Mail-3-997256354 --Apple-Mail-3-997256354 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Am 07.07.2011 um 07:18 schrieb Kip Warner: > On Wed, 2011-07-06 at 23:48 -0400, Aditya Mahajan wrote: >> You can use >>=20 >> \clip[mp=3D...]{\framed[...]{...}} >>=20 >> (I think that the metafun manual gives an example). >>=20 >> Aditya >=20 > Aditya, correct me if wrong, but it looks like \clip performs > rectangular clipping only? >=20 > As I mentioned earlier, I'd like the rounded corners of my figure's > frame to clip off the outside corners of the image so they aren't > sticking out. This is what I'm making do with so far: >=20 > \setupexternalfigures > [frame=3Don, > corner=3D25, > framecolor=3Dcolour_frame_border, > background=3Dcolor,=20 > backgroundcolor=3Dcolour_page, > rulethickness=3D2pt] >=20 > What would the syntax for \setupclipping look like to have that done? = I > can find scant documentation for either that or \clip. There is a example in the metafun manual: = http://pragma-ade.com/show-man-7.htm Wolfgang --Apple-Mail-3-997256354 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii
On = Wed, 2011-07-06 at 23:48 -0400, Aditya Mahajan wrote:
You can use

\clip[mp=3D...]{\framed[...]{...}}

(I think = that the metafun manual gives an example).

Aditya

Aditya, correct me if wrong, = but it looks like \clip performs
rectangular clipping only?

As = I mentioned earlier, I'd like the rounded corners of my = figure's
frame to clip off the outside corners of the image so they = aren't
sticking out. This is what I'm making do with so = far:

\setupexternalfigures
 [frame=3Don,
=   corner=3D25,
=   framecolor=3Dcolour_frame_border,
=   background=3Dcolor,
=   backgroundcolor=3Dcolour_page,
=   rulethickness=3D2pt]

What would the syntax for = \setupclipping look like to have that done? I
can find scant = documentation for either that or = \clip.

There is a example in the = metafun manual: http://pragma-ade.com/show-m= an-7.htm

Wolfgang

= = --Apple-Mail-3-997256354-- --===============0804430155== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============0804430155==--