Trying to get figure frame corners to clip figure
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
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
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
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
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
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