[NTG-context] clipping bug [or the return of the long cat]
Hans Hagen
pragma at wxs.nl
Tue Jun 10 00:26:48 CEST 2008
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 at 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 at 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
-----------------------------------------------------------------
More information about the ntg-context
mailing list