From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/23922 Path: news.gmane.org!not-for-mail From: Vit Zyka Newsgroups: gmane.comp.tex.context Subject: Re: shading box many times Date: Tue, 29 Nov 2005 14:14:30 +0100 Message-ID: <438C5436.7070303@seznam.cz> References: <438AC79A.7070806@seznam.cz> <438AE71A.2080906@wxs.nl> <438AF9E2.8070308@elvenkind.com> <438B0C95.6000700@wxs.nl> <438BA251.90007@seznam.cz> <438C185B.5060903@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1133273526 26229 80.91.229.2 (29 Nov 2005 14:12:06 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 29 Nov 2005 14:12:06 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Tue Nov 29 15:12:01 2005 Return-path: 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 1Eh5NP-00076u-FN for gctc-ntg-context-518@m.gmane.org; Tue, 29 Nov 2005 14:18:31 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1F448127D3; Tue, 29 Nov 2005 14:18:31 +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 23493-01; Tue, 29 Nov 2005 14:18:30 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 499F2127BC; Tue, 29 Nov 2005 14:14:22 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 431B4127BC for ; Tue, 29 Nov 2005 14:14:21 +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 22889-08 for ; Tue, 29 Nov 2005 14:14:20 +0100 (CET) Original-Received: from smtp.seznam.cz (smtp.seznam.cz [212.80.76.43]) by ronja.ntg.nl (Postfix) with SMTP id 01875127A0 for ; Tue, 29 Nov 2005 14:14:19 +0100 (CET) Original-Received: (qmail 22194 invoked from network); 29 Nov 2005 13:14:18 -0000 Original-Received: from unknown (HELO ?127.0.0.1?) (vit.zyka@62.240.166.134) by tic.go.seznam.cz with ESMTPA; 29 Nov 2005 13:14:18 -0000 User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: <438C185B.5060903@wxs.nl> X-Antivirus: avast! (VPS 0547-4, 24.11.2005), Outbound message X-Antivirus-Status: Clean X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 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:23922 Archived-At: Hans Hagen wrote: > Vit Zyka wrote: > >> Hans Hagen wrote: >> >>> Taco Hoekwater wrote: >>> >>>> Hans Hagen wrote: >>>> >>>>> Vit Zyka wrote: >>>>> >>>>>> Dear Metafun Wizards, >>>>>> >>>>>> I have noticed some strange behaviour with box shading. It works >>>>>> OK until some number of shadings. Please see example: >>>>>> http://typokvitek.com/tmp/shade-many.pdf >>>>>> Any idea for solving? Next not-minimal but small and illustrative >>>>>> example can help. >>>>> >>>>> works ok here; since it concerns independent mp runs, i cannot >>>>> imagine what goes wrong; mayeb a bad random numer; does your log >>>>> say something? >>>> >>>> My results are the same as Vit's example: The last 9 items are >>>> not shaded but have 3 black sides and 1 white one >>>> (with \write18 disabled, using a single \jobname-mpgraph.mp) >>>> >>>> I don't know what is going, but at least I can reproduce the problem. >>> >>> it's related to the fact that there can be 1000 specials only (this >>> /1000 in mp-spec) >>> >>> if you add: >>> >>> \def\MPrgbnumber#1{\expandafter\doMPrgbnumber#10000.00000\relax} >>> \def\doMPrgbnumber#1.#2#3#4#5#6\relax{#2#3#4#5} >>> >>> \startMPinclusions >>> _special_div_ := 10000 ; >>> \stopMPinclusions >>> >>> to the file, and change all 1000's in mp-spec.tex into _special_div_ >>> it works ok; so, the question (for taco is): does mp have the right >> >> >> >> Really? Hmmm, not for me. I have got the graphics with flat color per >> picture; every picture in the sequence has lighter and lighter color >> (starting from black). (After performing your instructions in the >> mp-spec.mp and refreshing metafun.mem.) > > > can you try the experimental zip i posted yesterday (.../temp/cont-tmf.zip) > forget about the definitions, just set \settrue \manyMPspecials in your > file > > should work > > Hans yes, it works! Now it works even on my old distrib also. Seems the crutial line was inside this vardef: vardef add_special_signal = % write the version number if (length _global_specials_ <> 0) or (length _local_specials_ <> 0) : special ("%%MetaPostSpecials: 2.0 " & decimal _special_signal_ & " " & decimal _special_div_) ; fi ; enddef ; Again many thanks, Hans Vit