[metapost] Problem with macros file

Maxime Chupin notezik at gmail.com
Sat Jun 30 14:25:45 CEST 2007


Hi.

I don't know how to solve your problem but i think :

verbatimtex
\end{document}
etex

is not necessary...

2007/6/29, Nicolas FRANCOIS <nicolas.francois at free.fr>:
>
> Hi.
>
> I have a reccuring problem with this situation : I have a metapost file
> containing some "btex gnagnagna etex" code. As I want to use latex
> commands, I have a preambule like this :
>
> verbatimtex
> %&latex
> \documentclass{arnaudies}
> \begin{document}
> etex
>
> input courbes;
>
> beginfig(401);
>   z.a = (0,0);
>   label.llft(btex $A_1$ etex,z.a);
> endfig;
>
> verbatimtex
> \end{document}
> etex
>
> end
>
> The problem comes from "input courbes". courbes.mp is a macro file (see
> Syracuse site : http://melusine.eu.org/syracuse/metapost/) which also
> contains some "btex gna etex" stuff, but no preambule. So this code fails
> with a message signaling that courbes.mpx can't be built.
>
> The only solutions I have found so far are :
>
> 1) some black magic consisting in doing "export TEX=tex; mpost fic.mp
> (error); export TEX=latex; mpost fic.mp (it works !)".
>
> 2) putting a preambule in courbes.mp, which sounds weird since the
> original author didn't seem to need those additional lines.
>
> Can you help me ?
>
> \bye
>
> --
>
>                    Nicolas FRANCOIS
>             http://nicolas.francois.free.fr
> A TRUE Klingon programmer does NOT comment his code
> --
> http://tug.org/mailman/listinfo/metapost
>



-- 
Maxime Chupin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tug.org/pipermail/metapost/attachments/20070630/d3829134/attachment.html 


More information about the metapost mailing list