Trying to get figure frame corners to clip figure
![](https://secure.gravatar.com/avatar/e4119be23c6b43ebdb1041bb53ac9e67.jpg?s=120&d=mm&r=g)
Hey list, 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: \setupexternalfigures [frame=on, corner=25, framecolor=colour_frame_border, background=color, backgroundcolor=colour_page, rulethickness=2pt] It almost works, but the image still sticks out at the corners beyond the frame edge. -- Kip Warner -- Software Engineer OpenPGP encrypted/signed mail preferred http://www.thevertigo.com
![](https://secure.gravatar.com/avatar/c5ae4f9aa0d3a9bd5376e92b322c3e50.jpg?s=120&d=mm&r=g)
On Wed, 6 Jul 2011, Kip Warner wrote:
Hey list,
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:
\setupexternalfigures [frame=on, corner=25, framecolor=colour_frame_border, background=color, backgroundcolor=colour_page, rulethickness=2pt]
It almost works, but the image still sticks out at the corners beyond the frame edge.
You can use \clip[mp=...]{\framed[...]{...}} (I think that the metafun manual gives an example). Aditya
![](https://secure.gravatar.com/avatar/e4119be23c6b43ebdb1041bb53ac9e67.jpg?s=120&d=mm&r=g)
On Wed, 2011-07-06 at 23:48 -0400, Aditya Mahajan wrote:
You can use
\clip[mp=...]{\framed[...]{...}}
(I think that the metafun manual gives an example).
Aditya
Thanks Aditya, I'll look into it. I searched both the reference and tutorial pdf and there is no description of \clip, but I found some things that use it on the wiki. -- Kip Warner -- Software Engineer OpenPGP encrypted/signed mail preferred http://www.thevertigo.com
![](https://secure.gravatar.com/avatar/e4119be23c6b43ebdb1041bb53ac9e67.jpg?s=120&d=mm&r=g)
On Wed, 2011-07-06 at 23:48 -0400, Aditya Mahajan wrote:
You can use
\clip[mp=...]{\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=on, corner=25, framecolor=colour_frame_border, background=color, backgroundcolor=colour_page, rulethickness=2pt] What would the syntax for \setupclipping look like to have that done? I can find scant documentation for either that or \clip. -- Kip Warner -- Software Engineer OpenPGP encrypted/signed mail preferred http://www.thevertigo.com
![](https://secure.gravatar.com/avatar/93131e1e6e2204bd13501390d768dbdc.jpg?s=120&d=mm&r=g)
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
\clip[mp=...]{\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=on, corner=25, framecolor=colour_frame_border, background=color, backgroundcolor=colour_page, rulethickness=2pt]
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
![](https://secure.gravatar.com/avatar/e4119be23c6b43ebdb1041bb53ac9e67.jpg?s=120&d=mm&r=g)
On Thu, 2011-07-07 at 07:35 +0200, Wolfgang Schuster wrote:
There is a example in the metafun manual: http://pragma-ade.com/show-man-7.htm
Wolfgang
Wolfgang, I appreciate the effort, but you've linked me to a 657 page manual which is totally useless to me. I don't have time to learn another language. I've already spent a great deal of time just trying to learn ConTeXt and get that up and running. -- Kip Warner -- Software Engineer OpenPGP encrypted/signed mail preferred http://www.thevertigo.com
participants (3)
-
Aditya Mahajan
-
Kip Warner
-
Wolfgang Schuster