<br><br><div class="gmail_quote">On Wed, Oct 17, 2012 at 1:16 PM, Hans Hagen <span dir="ltr"><<a href="mailto:pragma@wxs.nl" target="_blank">pragma@wxs.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 16-10-2012 23:10, Fabien Vignes-Tourneret wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi everybody,<br>
<br>
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 <a href="http://test.mp" target="_blank">test.mp</a> :<br>
</blockquote>
><br></div>
> ...<div class="im"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
MPtoPDF 1.4.1 : running 'mpost --mem=mpost --tex=latex <a href="http://test.mp" target="_blank">test.mp</a>'<br>
This is MetaPost, version 1.504 (kpathsea version 6.1.0)<br>
(<a href="http://mpost.mp" target="_blank">mpost.mp</a> (/usr/local/texlive/2012/<u></u>texmf-dist/metapost/base/<a href="http://plain.mp" target="_blank">plain<u></u>.mp</a><br>
Preloading the plain mem file, version 1.004)) (./<a href="http://test.mp" target="_blank">test.mp</a><br>
(/usr/local/texlive/2012/<u></u>texmf-dist/metapost/context/<u></u>base/<a href="http://metafun.mp" target="_blank">metafun.mp</a><br>
(/usr/local/texlive/2012/<u></u>texmf-dist/metapost/context/<u></u>base/metafun.mpii<br>
(/usr/local/texlive/2012/<u></u>texmf-dist/metapost/context/<u></u>base/mp-base.mpii<br>
Preloading the plain mem file, version 0.63<br>
! Redundant equation.<br>
<to be read again><br>
;<br>
l.305 mm=2.83464;<br>
pt=0.99626; dd=1.06601; bp:=1;<br>
?<br>
! Emergency stop.<br>
<to be read again><br>
;<br>
l.305 mm=2.83464;<br>
pt=0.99626; dd=1.06601; bp:=1;<br>
Transcript written on test.log.<br>
<br>
MPtoPDF 1.4.1 : error while processing mp file<br>
</blockquote>
<br>
If I suppress the \input metafun; line, I get<br>
</blockquote>
<br></div>
metafun loads plain to so that's why there is a clash<br>
<br>
you can try running with --metafun<br>
<br>
alternatively, if you're not too dependent on latex you can wrap the mp code in<br>
<br>
\startMPpage<br>
...<br>
\stopMPpage<br>
<br>
and process that with the 'context' command. (In the latest context you can directly process mp files using the 'context' command.)<br>
<br>
Hans<br>
<br>
------------------------------<u></u>------------------------------<u></u>-----<br>
Hans Hagen | PRAGMA ADE<br>
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands<br>
tel: 038 477 53 69 | voip: 087 875 68 74 | <a href="http://www.pragma-ade.com" target="_blank">www.pragma-ade.com</a><br>
| <a href="http://www.pragma-pod.nl" target="_blank">www.pragma-pod.nl</a><br>
------------------------------<u></u>------------------------------<u></u>-----<br>
--<br>
<a href="http://tug.org/metapost/" target="_blank">http://tug.org/metapost/</a><br>
</blockquote></div><br><div>A second to Hans' suggestion: \startMPcode ... \stopMPcode in ConTeXt. It puts the metafun tools at hand and gives pdf output straight away.</div>