Am 2010-06-21 um 08:42 schrieb Taco Hoekwater:
Creating a semi-transparent backdrop with metapost is quite simple,
but I am not sure whether that works with cmyk, you'll have to try
yourself. Code goes something like this:

For the records: This is, how I'll use it:

\startuniqueMPgraphic{texthole}
for dx = 0 upto 40:
         dy := dx;
         wa := 10 + dx;
         wb := \overlaywidth - dx - 10;
         ha := dy + 10;
         hb := \overlayheight - dy - 10;
         fill (wa,ha)--(wb,ha)--(wb,hb)--(wa,hb)--cycle
                withcolor transparent("normal", .04, black);
endfor;
\stopuniqueMPgraphic

\defineoverlay[shaded][\useMPgraphic{texthole}]

\starttext

\rotate[rotation=12]{%
\framed[height=50mm, width=50mm, frame=off, background=shaded, backgroundoffset=5mm, align=middle]%
{\offset[x=1mm,y=-2mm]{\externalfigure[koe][width=50mm]}}%
}

\stoptext

I'm glad I found \offset, because framed's offset parameter can't distinguish x and y offset. Positive offset moves right and down, negative offset moves just up - I guess that's a buglet.


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

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

Reply via email to