<html><body><div style="color:#000; background-color:#fff; font-family:verdana, helvetica, sans-serif;font-size:10pt"><div><span>Hi,</span></div><div><br><span></span></div><div><span>If I understand correctly, this means that I won't be able to use LaTeX in MetaPost, right? At least not with MiKTeX 2.9.</span></div><div><br><span></span></div><div><span>Kind regards,</span></div><div> </div><div><font color="#0000ff" face="verdana, helvetica, sans-serif" size="2"><b>Carlos Mallén</b></font></div><div><br></div> <div style="font-family: verdana, helvetica, sans-serif; font-size: 10pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> <hr size="1"> <b><span style="font-weight:bold;">From:</span></b> Reinhard Kotucha <reinhard.kotucha@web.de><br> <b><span style="font-weight: bold;">To:</span></b> Karel <akk64@quick.cz> <br><b><span style="font-weight:
bold;">Cc:</span></b> Carlos Mallen <varphi625-x@yahoo.com.mx>; "metapost@tug.org" <metapost@tug.org> <br> <b><span style="font-weight: bold;">Sent:</span></b> Tuesday, February 7, 2012 1:44 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [metapost] Problem using LaTeX in MetaPost<br> </font> </div> <br>
On 2012-02-07 at 19:06:12 +0100, Karel wrote:<br><br> > > This is TeX, Version 3.1415926 (MiKTeX 2.9) (preloaded format=tex <br> > > 2012.2.7) 7 FEB 2012 10:28<br> > > **mp632087.tex<br><br> > Maybe version 1.504 of MP does not write the texfile correctly.<br> > Try to look in the corresponding file (you will find its name in <br> > the log file), if %&latex would not be at the first line, then <br> > perhaps try to find older MikTeX version of MP (1.212 works fine, <br> > I hope).<br><br>Which program actually evaluates the %&latex line?<br><br> > > This is TeX, Version 3.1415926 (MiKTeX 2.9) (preloaded format=tex <br> > > 2012.2.7) 7 FEB 2012 10:28<br> > > **mp632087.tex<br><br>This is obviously Knuth's TeX but the LaTeX format requires pdftex. I<br>don't think the %&latex line can work here. A better solution is to<br>make etex the default engine. It's built
upon pdftex too.<br><br>In TeX Live etex is the default engine indeed. When I remove the<br>%&latex line, I get<br><br>This is pdfTeX, Version 3.1415926-2.3-1.40.12 (TeX Live 2011) (format=etex 2012.1.16) 7 FEB 2012 20:39<br>entering extended mode<br> restricted \write18 enabled.<br> %&-line parsing enabled.<br>**mpyty8eE.tex<br>(./mpyty8eE.tex<br>! Undefined control sequence.<br>l.1 \documentclass<br> {article}<br><br>So it's a bug in MiKTeX.<br><br>Regards,<br> Reinhard<br><br>-- <br>----------------------------------------------------------------------------<br>Reinhard Kotucha Phone: +49-511-3373112<br>Marschnerstr. 25<br>D-30167 Hannover
mailto:<a ymailto="mailto:reinhard.kotucha@web.de" href="mailto:reinhard.kotucha@web.de">reinhard.kotucha@web.de</a><br>----------------------------------------------------------------------------<br>Microsoft isn't the answer. Microsoft is the question, and the answer is NO.<br>----------------------------------------------------------------------------<br><br><br> </div> </div> </div></body></html>