Hi.<br><br>I don&#39;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 &lt;<a href="mailto:nicolas.francois@free.fr">
nicolas.francois@free.fr</a>&gt;:</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 &quot;btex gnagnagna etex&quot; code. As I want to use latex<br>commands, I have a preambule like this :<br><br>verbatimtex<br>%&amp;latex<br>\documentclass{arnaudies}<br>\begin{document}<br>etex<br><br>
input courbes;<br><br>beginfig(401);<br>&nbsp;&nbsp;z.a = (0,0);<br>&nbsp;&nbsp;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 &quot;input courbes&quot;. <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 &quot;btex gna etex&quot; stuff, but no preambule. So this code fails
<br>with a message signaling that courbes.mpx can&#39;t be built.<br><br>The only solutions I have found so far are :<br><br>1) some black magic consisting in doing &quot;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 !)&quot;.<br><br>2) putting a preambule in <a href="http://courbes.mp">courbes.mp</a>, which sounds weird since the<br>original author didn&#39;t seem to need those additional lines.
<br><br>Can you help me ?<br><br>\bye<br><br>--<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Nicolas FRANCOIS<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<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