ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Taco Hoekwater <taco@elvenkind.com>
Subject: Re: shading box many times
Date: Mon, 28 Nov 2005 15:45:54 +0100	[thread overview]
Message-ID: <438B1822.5040107@elvenkind.com> (raw)
In-Reply-To: <438B0C95.6000700@wxs.nl>



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

  reply	other threads:[~2005-11-28 14:45 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-28  9:02 Vit Zyka
2005-11-28 11:16 ` Hans Hagen
2005-11-28 12:36   ` Taco Hoekwater
2005-11-28 13:38     ` Vit Zyka
2005-11-28 16:37       ` Peter Rolf
2005-11-28 13:56     ` Hans Hagen
2005-11-28 14:45       ` Taco Hoekwater [this message]
2005-11-28 15:43         ` Hans Hagen
2005-11-29  0:35       ` Vit Zyka
2005-11-29  8:59         ` Hans Hagen
2005-11-29 13:14           ` Vit Zyka
2005-11-29 14:42             ` Hans Hagen
2005-11-28 13:02   ` Vit Zyka

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=438B1822.5040107@elvenkind.com \
    --to=taco@elvenkind.com \
    --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).