ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: clipping bug [or the return of the long cat]
Date: Tue, 10 Jun 2008 00:26:48 +0200	[thread overview]
Message-ID: <484DAE28.6030907@wxs.nl> (raw)
In-Reply-To: <484D6961.8010201@gmx.net>

Peter Rolf wrote:
> * PUSH *
> 
> still not fixed.

meta-ini.mkiv

\def\grabMPclippath#1#2#3#4#5%
   {\blabelgroup
    \edef\width {#3\space}\let\overlaywidth \width
    \edef\height{#4\space}\let\overlayheight\height
    \doifdefinedelse{MPC:#1}
      {\xdef\MPclippath{\getvalue{MPC:#1}}%
       \ifx\MPclippath\empty\xdef\MPclippath{#5}\fi
       \setxvalue{MPC:#1}{\MPclippath}}
      {\xdef\MPclippath{#5}}%
    \elabelgroup}


> Peter Rolf schrieb:
>> hi,
>>
>> this time fully 'context live' approved, only with natural ingredients
>> and even more tasty. yummy yum :D
>>
>>
>>
>> % engine=luatex
>> \starttext
>>
>> \definelayer[stack]
>>
>> \setlayer[stack][x=0pt,y=0pt]{%
>> \clip[hoffset=0pt,voffset=0pt,width=20cm,height=1cm]%
>> {Clipping some layer text}}
>>
>> %\flushlayer[stack]
>>
>> \setbox\scratchbox\hbox{The cat was too long to fit in this small sentence.}
>> \framed[offset=overlay]{\clip[hoffset=0pt,voffset=0pt,width=110pt,height=15pt]{\box\scratchbox}}
>>
>> \stoptext
>>
>>
>>
>> the second clip uses the width value of the prior clip (20cm).
>> but if the layer is flushed, the second clip works nearly as expected 
>> (only frame is missing). interesting.
>> there also seems to be some mess (or only a side effect?) with the
>> setting of
>>
>> \setupsystem[\c!n=2,\c!m=2]
>>
>> sometimes the number one is used, sometimes the number two.
>> must break, it's supper time.
>>
>>
>> regards, peter
>>
>>
>> ___________________________________________________________________________________
>> 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  : https://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  : https://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________


-- 

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


  reply	other threads:[~2008-06-09 22:26 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-22 16:02 Peter Rolf
2008-06-09 17:33 ` Peter Rolf
2008-06-09 22:26   ` Hans Hagen [this message]
2008-06-10 10:42     ` Peter Rolf
2008-06-10 12:40       ` Hans Hagen
2008-06-10 13:17         ` Peter Rolf
2008-06-11 11:59         ` Wolfgang Schuster
2008-06-11 14:00         ` Peter Rolf
2008-06-11 14:21           ` Hans Hagen
2008-06-11 17:35             ` Peter Rolf
2008-06-11 17:54               ` Hans Hagen
2008-06-11 18:47                 ` Peter Rolf
2008-06-11 20:30                   ` Hans Hagen
2008-06-11 21:40                     ` Peter Rolf
2008-06-11 12:06       ` Wolfgang Schuster

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=484DAE28.6030907@wxs.nl \
    --to=pragma@wxs.nl \
    --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).