From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/36126 Path: news.gmane.org!not-for-mail From: Oliver Buerschaper Newsgroups: gmane.comp.tex.context Subject: Mysterious clipping for shaded MetaFun page background Date: Mon, 20 Aug 2007 21:02:47 +0200 Message-ID: <07BFC3D5-FE5C-4388-B547-CF0AA45D91AD@mpq.mpg.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1187636728 2620 80.91.229.12 (20 Aug 2007 19:05:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 20 Aug 2007 19:05:28 +0000 (UTC) To: mailing ConTeXt users list for Original-X-From: ntg-context-bounces@ntg.nl Mon Aug 20 21:05:03 2007 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 lo.gmane.org with esmtp (Exim 4.50) id 1INCYc-0007Mz-S3 for gctc-ntg-context-518@m.gmane.org; Mon, 20 Aug 2007 21:04:58 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 763E420168; Mon, 20 Aug 2007 21:04:58 +0200 (CEST) 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 29120-03; Mon, 20 Aug 2007 21:04:58 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 445BD20161; Mon, 20 Aug 2007 21:03:09 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2D39920168 for ; Mon, 20 Aug 2007 21:02:59 +0200 (CEST) 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 28504-04-4 for ; Mon, 20 Aug 2007 21:02:49 +0200 (CEST) Original-Received: from post.rzg.mpg.de (post.rzg.mpg.de [130.183.7.21]) by ronja.ntg.nl (Postfix) with ESMTP id 33A2820151 for ; Mon, 20 Aug 2007 21:02:49 +0200 (CEST) Original-Received: from [129.187.50.247] (b247.ext.vpn.lrz-muenchen.de [129.187.50.247]) by post.rzg.mpg.de (8.9.2/8.9.2) with ESMTP id VAA5267650 for ; Mon, 20 Aug 2007 21:02:48 +0200 X-Envelope-To: X-Mailer: Apple Mail (2.752.2) X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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:36126 Archived-At: Dear folks, can anyone reproduce this? (Live ConTeXt on the garden seems to run into this \faststartcolor thing ... with pdfTeX.) Uncomment the page background overlay and the top bit of the frames' titles will be chipped off ... doesn't happen for the plain vanilla color background on my machine. --- \enableregime[utf] \setupcolors[state=start] \usetypescript[palatino][\defaultencoding] \setupbodyfont[palatino,30pt] \startMPenvironment \usetypescript[palatino][\defaultencoding] \switchtobodyfont[palatino,30pt] \stopMPenvironment \startuseMPgraphic{FunnyFrame} picture pic; path a,b; a := unitsquare xyscaled (OverlayWidth,OverlayHeight); pic := textext(\MPstring{FunnyFrame}); setbounds pic to (boundingbox pic) enlarged (BodyFontSize/5); pic := pic shifted (OverlayWidth/2,OverlayHeight+(ypart ulcorner pic)/2); drawoptions(withpen pencircle scaled OverlayLineWidth withcolor OverlayLineColor); b := a topenlarged (ypart center pic-OverlayHeight); b := b smoothed BodyFontSize; fill b withcolor white; draw b; b := (boundingbox pic) smoothed (BodyFontSize/2); fill b withcolor yellow; draw b; draw pic withcolor black; setbounds currentpicture to a; \stopuseMPgraphic \defineoverlay[FunnyFrame][\useMPgraphic{FunnyFrame}] \defineframedtext [FunnyText] [background=FunnyFrame, frame=off, rulethickness=3pt, width=\textwidth] \def\startFrame#1{% \setMPtext{FunnyFrame}{\hbox spread 1em{\hss\strut#1\hss}}% \startFunnyText} \def\stopFrame{\stopFunnyText} \startuniqueMPgraphic{shade} path p; p := unitsquare xyscaled (OverlayWidth,OverlayHeight); linear_shade(p,6,blue,white); \stopuniqueMPgraphic \defineoverlay[shade][\useMPgraphic{shade}] %\setupbackgrounds % [page] % [background=shade] %\setupbackgrounds % [page] % [background=color, % backgroundcolor=blue] \noheaderandfooterlines \starttext \showframe \startFrame{Test 1} The quick brown fox jumps over the lazy dog. \stopFrame \startFrame{Test 2} The quick brown fox jumps over the lazy dog. \stopFrame \stoptext --- Cheerio, Oliver ___________________________________________________________________________________ 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 ___________________________________________________________________________________