Thanks!! For the hints to existing examples as well as for the
very instructive advice to clip to the enlarged unitsquare.
于 2010年06月07日 22:47, Erik Margraf 写道:Actually, you only have to clip one, either the upper half or the lower half, since the latter elements added onto the canvas will mask the former elements.Hi all,
I'd like to achieve in context something like I did in
the attachment (context.pdf). My idea was (and
that's the way how I did this in Inkscape):
- Create Text
- Double the text
- Clip one for the upper half, clip the other for the lower half
take something like:
- Connect the two halves.
My (probably naive) approach to clipping text in context was:
-----
\starttext
\startuniqueMPgraphic{context}
draw btex \bf Context etex xyscaled (4.0, 4.0) withcolor .8white ;
clip currentpicture to unitsquare;
clip currentpicture to unitsquare scaled 8cm;
and you'll know what's the problem.
\stopuniqueMPgraphic___________________________________________________________________________________ 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 ___________________________________________________________________________________
\null\dontcomplain
\uniqueMPgraphic{context}
-----
(Without the "clip" - line, the string "Context" is displayed. With
clipping, nothing is displayed.)
Any hint in the right direction towards clipping or maybe a better
way to achieve this is appreciated.
Thanks
Erik
___________________________________________________________________________________
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
___________________________________________________________________________________