From: Peter Rolf <indiego@gmx.net>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: clipping bug [or the return of the long cat]
Date: Thu, 22 May 2008 18:02:26 +0200 [thread overview]
Message-ID: <48359912.6040804@gmx.net> (raw)
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
___________________________________________________________________________________
next reply other threads:[~2008-05-22 16:02 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-22 16:02 Peter Rolf [this message]
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
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=48359912.6040804@gmx.net \
--to=indiego@gmx.net \
--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).