ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Trying to get figure frame corners to clip figure
@ 2011-07-07  2:11 Kip Warner
  2011-07-07  3:48 ` Aditya Mahajan
  0 siblings, 1 reply; 6+ messages in thread
From: Kip Warner @ 2011-07-07  2:11 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 540 bytes --]

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

[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Trying to get figure frame corners to clip figure
  2011-07-07  2:11 Trying to get figure frame corners to clip figure Kip Warner
@ 2011-07-07  3:48 ` Aditya Mahajan
  2011-07-07  5:01   ` Kip Warner
  2011-07-07  5:18   ` Kip Warner
  0 siblings, 2 replies; 6+ messages in thread
From: Aditya Mahajan @ 2011-07-07  3:48 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Trying to get figure frame corners to clip figure
  2011-07-07  3:48 ` Aditya Mahajan
@ 2011-07-07  5:01   ` Kip Warner
  2011-07-07  5:18   ` Kip Warner
  1 sibling, 0 replies; 6+ messages in thread
From: Kip Warner @ 2011-07-07  5:01 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 467 bytes --]

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

[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Trying to get figure frame corners to clip figure
  2011-07-07  3:48 ` Aditya Mahajan
  2011-07-07  5:01   ` Kip Warner
@ 2011-07-07  5:18   ` Kip Warner
  2011-07-07  5:35     ` Wolfgang Schuster
  1 sibling, 1 reply; 6+ messages in thread
From: Kip Warner @ 2011-07-07  5:18 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 880 bytes --]

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

[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Trying to get figure frame corners to clip figure
  2011-07-07  5:18   ` Kip Warner
@ 2011-07-07  5:35     ` Wolfgang Schuster
  2011-07-08  1:04       ` Kip Warner
  0 siblings, 1 reply; 6+ messages in thread
From: Wolfgang Schuster @ 2011-07-07  5:35 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 955 bytes --]


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


[-- Attachment #1.2: Type: text/html, Size: 1612 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Trying to get figure frame corners to clip figure
  2011-07-07  5:35     ` Wolfgang Schuster
@ 2011-07-08  1:04       ` Kip Warner
  0 siblings, 0 replies; 6+ messages in thread
From: Kip Warner @ 2011-07-08  1:04 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 528 bytes --]

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

[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-07-08  1:04 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-07  2:11 Trying to get figure frame corners to clip figure Kip Warner
2011-07-07  3:48 ` Aditya Mahajan
2011-07-07  5:01   ` Kip Warner
2011-07-07  5:18   ` Kip Warner
2011-07-07  5:35     ` Wolfgang Schuster
2011-07-08  1:04       ` Kip Warner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).