Hello,<br><br>I've experienced a problem with \includegraphics command containing a full path, when run via the plainTeX interface to the graphicx package. For instance this would result into the problem:<br><pre style="font-family: arial,helvetica,sans-serif; margin-left: 40px;">
<code></code><code>\input graphicx<br>\input picture<br>\includegraphics{../pdf/bpms_0.pdf}%<br>\bye</code><br></pre><pre style="font-family: arial,helvetica,sans-serif;"><br>Tracking it down, it's been revealed (see <a href="https://sourceforge.net/projects/asymptote/forums/forum/409349/topic/3405573">https://sourceforge.net/projects/asymptote/forums/forum/409349/topic/3405573</a>) that it is caused by a wrong filename parsing in miniltx.tex. Here is a suggestion for improvement (it solves the problem):<br>
</pre><span style="font-family: courier new,monospace;">\def\filename@parse#1{%</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> \let\filename@area\@empty</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> \expandafter\filename@path#1/\\</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">}</span><br style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">\def\filename@path#1/#2\\{%</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> \ifx\\#2\\%</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> \def\reserved@a{\filename@simple#1.\\}%</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> \else</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> \edef\filename@area{\filename@area#1/}%</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> \def\reserved@a{\filename@path#2\\}%</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> \fi</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> \reserved@a</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">}</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> \def\filename@simple#1.#2\\{%</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> \ifx\\#2\\%</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> \let\filename@ext\relax</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> \else</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> \edef\filename@ext{\filename@dot#2\\}%</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> \fi</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> \edef\filename@base{#1}}</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> \def\filename@dot#1.\\{#1}</span><br><br><br>Cheers, Kašpi.<br><br clear="all"><br>-- <br>My web page: <a href="http://cern.ch/jkaspar/">http://cern.ch/jkaspar/</a><br>
My cell phone: +4176 206 5932<br>