<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2014-05-28 16:04 GMT+02:00 Philip Taylor <span dir="ltr"><<a href="mailto:P.Taylor@rhul.ac.uk" target="_blank">P.Taylor@rhul.ac.uk</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class=""><br>
<br>
Vafa Karen-Pahlav wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I also have experienced some strange problems with recent versions of<br>
xetex; include an image in a document on Windows and the result is<br>
perfectly fine but you try to compile the same document on a different<br>
operating system, then images are placed strangely (i.e. the image width<br>
exceeds the textwidth and is placed on the right or left hand side).<br>
This issue is very annoying and existed for few years now. I try to send<br>
some minimal example for this later today.<br>
</blockquote>
<br></div>
Images are indeed apparently treated as second-class citizens by XeTeX,<br>
and I have found that the most reliable way to embed them is to embed<br>
them within an \hbox (or possibly a \vbox :  not convinced I have tried<br>
the latter) and then use the resulting \box (or \copy) in lieu of the<br>
\XeTeXpicfile itself.  \XeTeXpdffile does not seem to suffer from<br>
similar problems and requires no prior embedding before deployment.<span class="HOEnZb"><font color="#888888"><br></font></span></blockquote><div><br></div><div>TeX does not know how to use images. It can only be done via \special. With some graphics formats it is possible to write a macro that can extract the size. Inclusion is done by the driver, in case of XeTeX it is xdvipdfmx. However, xdvipdfmx can include PDF, not EPS. If you wish to include EPS, xdvipdfmx asks ghostscript to convert EPS to PDF. Thus the difference is not in XeTeX, not in xdvipdfmx, but in ghostscript. Unfortunatelly many programs create EPS which are not EPS according to the specification but they often work. These nonconformant files may give different results with different versions of ghostscript. Try Akira's suggestion, it might be sufficient.<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="HOEnZb"><font color="#888888">
<br>
Philip Taylor</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
<br>
<br>
------------------------------<u></u>--------------------<br>
Subscriptions, Archive, and List information, etc.:<br>
 <a href="http://tug.org/mailman/listinfo/xetex" target="_blank">http://tug.org/mailman/<u></u>listinfo/xetex</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Zdeněk Wagner<br><a href="http://hroch486.icpf.cas.cz/wagner/" target="_blank">http://hroch486.icpf.cas.cz/wagner/</a><br><a href="http://icebearsoft.euweb.cz" target="_blank">http://icebearsoft.euweb.cz</a>
</div></div>