[metapost] Metafun and TeXLive 2012
John Kitzmiller
jkitzm at gmail.com
Wed Oct 17 23:53:30 CEST 2012
On Wed, Oct 17, 2012 at 1:16 PM, Hans Hagen <pragma at wxs.nl> wrote:
> On 16-10-2012 23:10, Fabien Vignes-Tourneret wrote:
>
>> Hi everybody,
>>
>> I am having a problem with Metafun. I am running mac os 10.7.5 and have
>> recently installed TeXLive 2012. If I run mptopdf on the following
>> test.mp :
>>
> >
> > ...
>
>
>> MPtoPDF 1.4.1 : running 'mpost --mem=mpost --tex=latex test.mp'
>>> This is MetaPost, version 1.504 (kpathsea version 6.1.0)
>>> (mpost.mp (/usr/local/texlive/2012/**texmf-dist/metapost/base/plain**.mp<http://plain.mp>
>>> Preloading the plain mem file, version 1.004)) (./test.mp
>>> (/usr/local/texlive/2012/**texmf-dist/metapost/context/**base/metafun.mp
>>> (/usr/local/texlive/2012/**texmf-dist/metapost/context/**
>>> base/metafun.mpii
>>> (/usr/local/texlive/2012/**texmf-dist/metapost/context/**
>>> base/mp-base.mpii
>>> Preloading the plain mem file, version 0.63
>>> ! Redundant equation.
>>> <to be read again>
>>> ;
>>> l.305 mm=2.83464;
>>> pt=0.99626; dd=1.06601; bp:=1;
>>> ?
>>> ! Emergency stop.
>>> <to be read again>
>>> ;
>>> l.305 mm=2.83464;
>>> pt=0.99626; dd=1.06601; bp:=1;
>>> Transcript written on test.log.
>>>
>>> MPtoPDF 1.4.1 : error while processing mp file
>>>
>>
>> If I suppress the \input metafun; line, I get
>>
>
> metafun loads plain to so that's why there is a clash
>
> you can try running with --metafun
>
> alternatively, if you're not too dependent on latex you can wrap the mp
> code in
>
> \startMPpage
> ...
> \stopMPpage
>
> and process that with the 'context' command. (In the latest context you
> can directly process mp files using the 'context' command.)
>
> Hans
>
> ------------------------------**------------------------------**-----
> Hans Hagen | PRAGMA ADE
> Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
> | www.pragma-pod.nl
> ------------------------------**------------------------------**-----
> --
> http://tug.org/metapost/
>
A second to Hans' suggestion: \startMPcode ... \stopMPcode in ConTeXt. It
puts the metafun tools at hand and gives pdf output straight away.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/metapost/attachments/20121017/cbab2135/attachment.html>
More information about the metapost
mailing list