[metapost] latexmp problem
Piotr Zielinski
piotr.zielinski at gmail.com
Mon Aug 21 19:26:31 CEST 2006
Are you viewing your ps file with ghostview? It might be the case that
ghostscript can't find proper math fonts. Try enabling debugging in
ghostview, to find out more; also see if you have any errors if you
type "gs yourfile.ps" instead of "ghostview yourfile.ps".
Here are things some things that might help
1. Putting "prologues := 2;" at the beginning of your mp file
2. Setting
GS_LIB=$(dirname $(kpsewhich cmr10.pfb)):$(dirname $(kpsewhich lasy10.pfb)):
before invoking ghostview (note the colon at the end).
Thanks,
Piotr
On 21/08/06, Denis Roegel <Denis.Roegel at loria.fr> wrote:
> 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
>
> _______________________________________________
> metapost mailing list
> http://tug.org/mailman/listinfo/metapost
>
--
Piotr Zielinski, Research Associate
Cavendish Laboratory, University of Cambridge, UK
http://www.cl.cam.ac.uk/~pz215/
More information about the metapost
mailing list