improper sizes with pixel unit in MPinitialisation
Hi, I started using 'MPinitialisation' to store some global variables. Much easier than passing them over and over again to MP macros. Sadly this way is inaccurate with the unit 'px' (no such problems with 'pt'). See attached example. The frame gives the exact size, showing that the MP graphic is 'out of bounds'. MTXrun | current version: 2010.10.22 16:46 same result for both marks Peter
On 10/28/2010 12:12 PM, Peter Rolf wrote:
Hi,
I started using 'MPinitialisation' to store some global variables. Much easier than passing them over and over again to MP macros. Sadly this way is inaccurate with the unit 'px' (no such problems with 'pt'). See attached example. The frame gives the exact size, showing that the MP graphic is 'out of bounds'.
Probably because metapost calculates in printer points of 72pt/in, instead of tex's 72.27pt/in. So your mp scale factor is likely to be a little off. Best wishes, Taco
participants (2)
-
Peter Rolf
-
Taco Hoekwater