From: Hans Hagen <pragma@wxs.nl>
Subject: RE: Combining \inframed with \items
Date: Wed, 23 Jul 2003 11:39:04 -1000 [thread overview]
Message-ID: <5.2.0.9.1.20030723112747.028f2f80@localhost> (raw)
In-Reply-To: <MFEFJNAPONLOLJPIHFBIMEPCEIAA.dh@capdm.com>
At 14:22 23/07/2003 +0100, you wrote:
>Hi Willi, thanks very much.
>
>My problem is that I really need to set up multiple types of frames -
>especially the two defined ones - the "circled" style shown and a
>"highlighted" style which puts a background with no frame and normal
>corners - and be able to call them anywhere in the document. If I
>\setupframed with just the definition of one of them then all my \inframed
>will come out one way.
>
>Is there a way of naming a setupframed definition so that I can set up, for
>example, \circleframed{} and \highlightframed{} commands?
\starttext
\setupcolors[state=start]
\startuniqueMPgraphic{circled-x}{circlecolor,alternative}
path p ;
if \MPvar{alternative} = 1 :
p := OverlayBox ;
elseif \MPvar{alternative} = 2 :
p := fullcircle xyscaled (OverlayWidth,OverlayHeight) ;
elseif \MPvar{alternative} = 3 :
p := fullcircle xyscaled (OverlayWidth,OverlayHeight)
smoothed .25ExHeight ;
fi ;
draw p withcolor \MPvar{circlecolor} ;
\stopuniqueMPgraphic
\defineoverlay[circled-x][\uniqueMPgraphic{circled-x}]
\defineframed
[circleframed]
[frame=off,
background=circled-x,
circled-x:alternative=3,
circled-x:circlecolor=red]
\circleframed{test}
\stoptext
Hans
-------------------------------------------------------------------------
Hans Hagen | PRAGMA ADE | pragma@wxs.nl
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
information: http://www.pragma-ade.com/roadmap.pdf
documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------
next prev parent reply other threads:[~2003-07-23 21:39 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-07-18 13:55 Duncan Hothersall
2003-07-18 19:39 ` Willi Egger
2003-07-23 13:22 ` Duncan Hothersall
2003-07-23 14:21 ` Willi Egger
2003-07-23 16:55 ` Duncan Hothersall
2003-07-23 19:58 ` Hans Hagen
2003-07-23 21:39 ` Hans Hagen [this message]
2003-07-19 21:19 ` Hans Hagen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5.2.0.9.1.20030723112747.028f2f80@localhost \
--to=pragma@wxs.nl \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).