Re: Decorative frame for enumeration
Aditya Mahajan <[email protected]> Sun, 14 Jun 2026 13:08:48 -0400 (EDT)
| Newsgroups | gmane.comp.tex.context |
|---|---|
| Message-ID | <[email protected]> |
Not related to your question but ...
On Sat, 13 Jun 2026, Jethro Djan wrote:
> \startuseMPgraphic{WEFrame}
> numeric w, h ;
> w := OverlayWidth ; h := OverlayHeight ;
> fill (0,0)--(0,h)--(w,h)--(w,0)--cycle withcolor (.93, .96, 1.0) ;
> setbounds currentpicture to unitsquare xyscaled(w,h) ;
> \stopuseMPgraphic
>
> [...]
>
> \startuseMPgraphic{WETitleFrame}
> numeric w, h ;
> w := OverlayWidth ; h := OverlayHeight ;
> fill (0,0)--(0,h)--(w,h)--(w,0)--cycle withcolor (.2, .4, .75) ;
> setbounds currentpicture to unitsquare xyscaled(w,h) ;
> \stopuseMPgraphic
Both of these can just be
fill OverlayBox withcolor (...);
setbounds currentpicture to OverlayBox;
Aditya
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : [email protected] / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________