From: Peter Rolf <indiego@gmx.net>
Subject: overlay problem with textext
Date: Wed, 22 Nov 2006 15:42:01 +0100 [thread overview]
Message-ID: <456461B9.3000300@gmx.net> (raw)
[-- Attachment #1: Type: text/plain, Size: 460 bytes --]
Hi all,
the attached example works with the version from 17.11.|20.11., but not
with the current (22.11.06, 11:02) one. The problem seems to be in the
use of textext, as it 'works' (background is visible) when I exchange
p:= textext.rt(\MPstring{FunnyFrame}) ;
with
p:= nullpicture ;
I couldn't test the current version on contextgarden (still 20.11.,
which works ok), so I'm unsure, if it's my messy tex tree or a general
problem.
Greetings, Peter
[-- Attachment #2: funny.tex --]
[-- Type: text/plain, Size: 976 bytes --]
\setupoutput[pdftex]
\setupcolors[state=start]
\startuseMPgraphic{FunnyFrame}
picture p ;
numeric o ;
path a,b ;
pair c ;
p:= textext.rt(\MPstring{FunnyFrame}) ;
o:= BodyFontSize ;
a:= unitsquare xyscaled(OverlayWidth,OverlayHeight) ;
p:= p shifted(2o,OverlayHeight-ypart center p) ;
drawoptions(withpen pencircle scaled 1pt withcolor .625red) ;
b:= a superellipsed .95 ;
fill b withcolor .85white ;
draw b ;
b:= (boundingbox p) superellipsed .95 ;
fill b withcolor .85white ;
draw b ;
draw p withcolor black ;
setbounds currentpicture to a ;
\stopuseMPgraphic
\defineoverlay[FunnyFrame]
[\useMPgraphic{FunnyFrame}]
\defineframedtext[FunnyText]
[frame=off,
background=FunnyFrame]
\def\StartFrame{\startFunnyText}
\def\StopFrame{\stopFunnyText}
\def\FrameTitle#1%
{\setMPtext{FunnyFrame}{\hbox spread1em{\hss\strut#1\hss}}}
\setMPtext{FunnyFrame}{}%initializethetextvariable
\starttext
\FrameTitle{Test}
\StartFrame
\input zapf\relax
\StopFrame
\stoptext
[-- Attachment #3: Type: text/plain, Size: 139 bytes --]
_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
next reply other threads:[~2006-11-22 14:42 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-22 14:42 Peter Rolf [this message]
2006-11-23 2:03 ` Mojca Miklavec
2006-11-23 4:08 ` Mojca Miklavec
2006-11-23 8:59 ` Taco Hoekwater
2006-11-23 10:01 ` Hans Hagen
2006-11-23 10:22 ` Peter Rolf
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=456461B9.3000300@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).