[metapost] Metafun and TeXLive 2012
John Kitzmiller
jkitzm at gmail.com
Wed Oct 17 01:45:30 CEST 2012
On Tue, Oct 16, 2012 at 5:10 PM, Fabien Vignes-Tourneret <
fabien.vignes at gmail.com> 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:
>
> prologues:=3;
> verbatimtex
> %&latex
> \documentclass[12pt]{article}
> \begin{document}
> etex
>
> \input metafun;
>
> beginfig(1);
> numeric u;
> endfig;
>
> verbatimtex
> \end{document}
> etex
> end
>
>
> I get
>
>
> 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
> 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
>
>
> 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
> Preloading the plain mem file, version 1.004)) (./test.mp [1] )
> 1 output file written: test.1
> Transcript written on test.log.
> This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012)
> restricted \write18 enabled.
> [MP to PDF] (./test.1) [warning: the width is less than 1in]
> [warning: the height is less than 1in] [1]
> Output written on test.pdf (1 page, 1235 bytes).
> Transcript written on test.log.
>
> MPtoPDF 1.4.1 : test is converted to test-1.pdf
>
>
>
> With TeXLive 2011, everything works fine. Any idea on this issue?
>
> Thanks a lot for your help.
>
>
> Fabien
>
>
> --
> http://tug.org/metapost/
>
The following changes worked here under same system parameters.
prologues:=3;
verbatimtex
%&latex
\documentclass[12pt]{article}
\usepackage{metafun}
\begin{document}
etex
%\input metafun; % do not need the backslash here?
beginfig(1);
numeric u;
draw (0,0) -- (100,100);
endfig;
%verbatimtex % no need for these 3 lines?
%\end{document}
%etex
end;
Compiled under mpost and then mptopdf.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/metapost/attachments/20121016/e8c6a424/attachment.html>
More information about the metapost
mailing list