From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/59421 Path: news.gmane.org!not-for-mail From: Erik Margraf Newsgroups: gmane.comp.tex.context Subject: Re: Clipping of text (or something equivalent) Date: Mon, 7 Jun 2010 18:32:08 +0200 Message-ID: References: <4C0D0A0F.6080404@gmail.com> Reply-To: erik.margraf@gmail.com, mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1107394873==" X-Trace: dough.gmane.org 1275928339 3536 80.91.229.12 (7 Jun 2010 16:32:19 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 7 Jun 2010 16:32:19 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Jun 07 18:32:18 2010 connect(): No such file or directory Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OLfFI-0000f9-Rl for gctc-ntg-context-518@m.gmane.org; Mon, 07 Jun 2010 18:32:16 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id AD47DC9D01; Mon, 7 Jun 2010 18:32:15 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id IjQW9TDmZu91; Mon, 7 Jun 2010 18:32:12 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C001FC9D0D; Mon, 7 Jun 2010 18:32:12 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B9B1BC9D0D for ; Mon, 7 Jun 2010 18:32:11 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id TETL19GmAp7V for ; Mon, 7 Jun 2010 18:32:08 +0200 (CEST) Original-Received: from mail-bw0-f41.google.com (mail-bw0-f41.google.com [209.85.214.41]) by balder.ntg.nl (Postfix) with ESMTP id BDB3AC9D01 for ; Mon, 7 Jun 2010 18:32:08 +0200 (CEST) Original-Received: by bwz1 with SMTP id 1so1225779bwz.14 for ; Mon, 07 Jun 2010 09:32:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:received:reply-to :in-reply-to:references:date:message-id:subject:from:to:content-type; bh=cKhHVH3IGjn7akAwKx4jS2wEdlLGImXbYOs+GeYJAiE=; b=ryR06r39z/q2cAJ0yI513IImZT8rlXhE7xwmxGTGUHAbrigh++vRAeeyOTsk2eY+J8 WtInatYHFYDFi7t9ArvQWleXPI5jatM2ZkqFVFXv5X4L0Cdk0xxs0mUCRyi2j+Kt82WQ /evxHmbV9TkF/rCrIt/1M2++uNXSRLXKbTMbA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:content-type; b=NHaWog1rm8FOwNwMPTx9qpbPHK9mgkq0i+43g5tW7WjGj+7HBMSw9t6bh0Oc+idvzL AZUXhTHgSnJzWzSbkysnu0m9qYIoztd+SCS7gdTedO4jb/Kjlx3TvpyI99Hg8VEptu9i fZqjOwBxoef+NKgcsIkgUPWdwc5clQwNXmVF0= Original-Received: by 10.204.46.207 with SMTP id k15mr6940068bkf.106.1275928328310; Mon, 07 Jun 2010 09:32:08 -0700 (PDT) Original-Received: by 10.204.99.195 with HTTP; Mon, 7 Jun 2010 09:32:08 -0700 (PDT) In-Reply-To: <4C0D0A0F.6080404@gmail.com> X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:59421 Archived-At: --===============1107394873== Content-Type: multipart/alternative; boundary=0016e6db5c07c4919d04887336d7 --0016e6db5c07c4919d04887336d7 Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: quoted-printable 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 > =D3=DA 2010=C4=EA06=D4=C207=C8=D5 22:47, Erik Margraf =D0=B4=B5=C0: > > 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 forme= r > 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-co= ntext > 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 > > _________________________________________________________________________= __________ > > --0016e6db5c07c4919d04887336d7 Content-Type: text/html; charset=GB2312 Content-Transfer-Encoding: quoted-printable Thanks!! For the hints to existing examples as well as for the
very inst= ructive advice to clip to the enlarged unitsquare.

2010/6/7 Hongwen Qiu <qiuhongwen@gmail.com>
=20 =20
=D3=DA 2010=C4=EA06=D4=C207=C8=D5 22:47, Erik Margraf =D0=B4=B5=C0:
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 ha= lf
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 ;&n= bsp;
  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 dis= played. 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 t= he Wiki! maillist : ntg-cont= ext@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://ww= w.pragma-ade.nl / h= ttp://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://co= ntextgarden.net ___________________________________________________________________________= ________


_______________________________________________________________________= ____________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-context@ntg.nl / <= a href=3D"http://www.ntg.nl/mailman/listinfo/ntg-context" target=3D"_blank"= >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
___________________________________________________________________________= ________


--0016e6db5c07c4919d04887336d7-- --===============1107394873== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============1107394873==--