From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/31933 Path: news.gmane.org!not-for-mail From: Peter Rolf Newsgroups: gmane.comp.tex.context Subject: overlay problem with textext Date: Wed, 22 Nov 2006 15:42:01 +0100 Message-ID: <456461B9.3000300@gmx.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------060408000307090507040908" X-Trace: sea.gmane.org 1164208808 23019 80.91.229.2 (22 Nov 2006 15:20:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 22 Nov 2006 15:20:08 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Wed Nov 22 16:20:01 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1Gmtsh-00070d-Au for gctc-ntg-context-518@m.gmane.org; Wed, 22 Nov 2006 16:19:23 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id F182C1FC2F; Wed, 22 Nov 2006 16:18:07 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 16109-07-7; Wed, 22 Nov 2006 16:18:07 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 70C161FFA8; Wed, 22 Nov 2006 15:41:04 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 31A521FFAD for ; Wed, 22 Nov 2006 15:41:03 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 14620-04-5 for ; Wed, 22 Nov 2006 15:40:59 +0100 (CET) Original-Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by ronja.ntg.nl (Postfix) with SMTP id A1F4C1FFA7 for ; Wed, 22 Nov 2006 15:40:59 +0100 (CET) Original-Received: (qmail invoked by alias); 22 Nov 2006 14:42:04 -0000 Original-Received: from i577B99A7.versanet.de (EHLO [192.168.1.3]) [87.123.153.167] by mail.gmx.net (mp007) with SMTP; 22 Nov 2006 15:42:04 +0100 X-Authenticated: #24293357 User-Agent: Thunderbird 1.5.0.8 (Windows/20061025) Original-To: mailing list for ConTeXt users X-Enigmail-Version: 0.94.0.0 X-Y-GMX-Trusted: 0 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:31933 Archived-At: This is a multi-part message in MIME format. --------------060408000307090507040908 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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 --------------060408000307090507040908 Content-Type: text/plain; name="funny.tex" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="funny.tex" \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 --------------060408000307090507040908 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context --------------060408000307090507040908--