From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/23879 Path: news.gmane.org!not-for-mail From: Taco Hoekwater Newsgroups: gmane.comp.tex.context Subject: Re: shading box many times Date: Mon, 28 Nov 2005 15:45:54 +0100 Message-ID: <438B1822.5040107@elvenkind.com> References: <438AC79A.7070806@seznam.cz> <438AE71A.2080906@wxs.nl> <438AF9E2.8070308@elvenkind.com> <438B0C95.6000700@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 1133189384 2110 80.91.229.2 (28 Nov 2005 14:49:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 28 Nov 2005 14:49:44 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Mon Nov 28 15:49:43 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 1EgkHc-0007jf-3L for gctc-ntg-context-518@m.gmane.org; Mon, 28 Nov 2005 15:47:08 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B6B2A127FB; Mon, 28 Nov 2005 15:47: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 08231-01; Mon, 28 Nov 2005 15:47:07 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id F2490127F7; Mon, 28 Nov 2005 15:45:12 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5EA93127F7 for ; Mon, 28 Nov 2005 15:45:11 +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 08018-03 for ; Mon, 28 Nov 2005 15:45:10 +0100 (CET) Original-Received: from glenfiddich.elvenkind.com (elvenknd.xs4all.nl [213.84.171.68]) by ronja.ntg.nl (Postfix) with ESMTP id 756FF127BE for ; Mon, 28 Nov 2005 15:45:07 +0100 (CET) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by glenfiddich.elvenkind.com (Postfix) with ESMTP id CA71518347 for ; Mon, 28 Nov 2005 15:45:07 +0100 (CET) Original-Received: from glenfiddich.elvenkind.com ([127.0.0.1]) by localhost (glenfiddich.elvenkind.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 10386-02 for ; Mon, 28 Nov 2005 15:45:07 +0100 (CET) Original-Received: from [10.10.0.6] (glenlivet.elvenkind.com [10.10.0.6]) by glenfiddich.elvenkind.com (Postfix) with ESMTP id 7593B16B0A for ; Mon, 28 Nov 2005 15:45:07 +0100 (CET) User-Agent: Mozilla Thunderbird 1.0 (X11/20041206) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: <438B0C95.6000700@wxs.nl> X-Virus-Scanned: by amavisd-new at elvenkind.net 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:23879 Archived-At: Hans Hagen wrote: > > it's related to the fact that there can be 1000 specials only (this > /1000 in mp-spec) Why? > 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 > precission (it looks ok to me, unless we need to start calculating with it) I am not sure what you are doing, but ... in general the fractional part of a dimension in TeX, divided by an integer, maps to an identical fraction (of a bp) in metapost, since both use the same 16-bit (% 65536) calculus algorithm. Same quantity, different unit. Whether or not that makes dividing by 10.000 safe is not clear to me. I have to read up on what is going on first. Taco