ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Erik Margraf <erik.margraf@googlemail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Clipping of text (or something equivalent)
Date: Mon, 7 Jun 2010 18:32:08 +0200	[thread overview]
Message-ID: <AANLkTilob6XnqgAQfQRzICE0_5nncXIFYi25K6n1ckLn@mail.gmail.com> (raw)
In-Reply-To: <4C0D0A0F.6080404@gmail.com>


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

Thanks!! For the hints to existing examples as well as for the
very instructive advice to clip to the enlarged unitsquare.

2010/6/7 Hongwen Qiu <qiuhongwen@gmail.com>

>  于 2010年06月07日 22:47, Erik Margraf 写道:
>
> 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
>
> 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.
>
>    - 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;
>
> take something like:
> clip currentpicture to unitsquare scaled 8cm;
> and you'll know what's the problem.
>
> \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
>
>
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
>
>
>
>
>
> ___________________________________________________________________________________
> 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
>
> ___________________________________________________________________________________
>
>

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

[-- Attachment #2: 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
___________________________________________________________________________________

      reply	other threads:[~2010-06-07 16:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-07 14:47 Erik Margraf
2010-06-07 15:02 ` Hongwen Qiu
2010-06-07 16:32   ` Erik Margraf [this message]

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=AANLkTilob6XnqgAQfQRzICE0_5nncXIFYi25K6n1ckLn@mail.gmail.com \
    --to=erik.margraf@googlemail.com \
    --cc=erik.margraf@gmail.com \
    --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).