ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* clipping bug [or the return of the long cat]
@ 2008-05-22 16:02 Peter Rolf
  2008-06-09 17:33 ` Peter Rolf
  0 siblings, 1 reply; 15+ messages in thread
From: Peter Rolf @ 2008-05-22 16:02 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2008-06-11 21:40 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-22 16:02 clipping bug [or the return of the long cat] Peter Rolf
2008-06-09 17:33 ` Peter Rolf
2008-06-09 22:26   ` Hans Hagen
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

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