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