[metapost] latexmp problem

Denis Roegel Denis.Roegel at loria.fr
Mon Aug 21 16:31:55 CEST 2006


Hi all,

I am having a small problem with a file generated with latexmp.
The input file is:

input latexmp;
beginfig(1);
  for i=1 upto 5:
    label(textext("$i=" & (decimal i) & "$"),(0,10*i));
  endfor
endfig;

end

The problem I have is that I only get

i
i
i
i
i 1

when I include the file with latex+dvips:

\documentclass{article}
\usepackage{graphicx}
\begin{document}
%\DeclareGraphicsRule{*}{mps}{*}{}
\includegraphics{test.1}
\end{document}

but I do get the correct result with pdflatex:

i=5
i=4
i=3
i=2
i=1

\documentclass{article}
\usepackage{graphicx}
\begin{document}
\DeclareGraphicsRule{*}{mps}{*}{}
\includegraphics{test.1}
\end{document}

In both cases the file test.1 is the same. Could anybody
enlighten me on the cause of this problem?

Thanks,

Denis Roegel



More information about the metapost mailing list