[metapost] Re: all intersections between two paths

Hans Hagen pragma at wxs.nl
Thu Jan 20 18:45:19 CET 2005


Dan Luecking wrote:
> At 03:00 AM 1/20/2005, you wrote:
> 
>> Larry Siebenmann wrote:
>>
>>> When writing macros common to MF and MP, is there
>>> a *conventional* way for macros to decide which of MF or MP
>>> is running?
>>
>>
>> boolean ThisIsMp ;
>>
>> ThisIsMp := known miterlimit ;
>>
>> message if ThisIsMp : "METAPOST" else : "METAFONT" fi ;
>>
>> end .
> 
> 
> This is what I use in grafbase.mf,mp (part of mfpic):
> 
> boolean METAPOST;
> METAPOST := known color Karl Frederich Gauss; % :-)
> 
> While MF doesn't know miterlimit by default, it could conceivably
> be defined as a variable by some previously loaded macro package.

ha, for the same reason i rejected things to do with color -)

the safest thing to do is probably to ask Don & John to add something

   mpversion
   mfversion

or maybe

   base_meta, being "font" or "post"

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------



More information about the metapost mailing list