ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Clipping of text (or something equivalent)
@ 2010-06-07 14:47 Erik Margraf
  2010-06-07 15:02 ` Hongwen Qiu
  0 siblings, 1 reply; 3+ messages in thread
From: Erik Margraf @ 2010-06-07 14:47 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

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
   - 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;
\stopuniqueMPgraphic
\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

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

[-- Attachment #2: context.pdf --]
[-- Type: application/pdf, Size: 13498 bytes --]

[-- Attachment #3: Type: text/plain, Size: 486 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] 3+ messages in thread

end of thread, other threads:[~2010-06-07 16:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-07 14:47 Clipping of text (or something equivalent) Erik Margraf
2010-06-07 15:02 ` Hongwen Qiu
2010-06-07 16:32   ` Erik Margraf

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).