<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Thank you, Voisin.<br class=""><div apple-content-edited="true" class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="orphans: 2; widows: 2;" class=""><br class=""></div></div></div></div><div><blockquote type="cite" class="">Trying here with your sam2.tex and a rose.eps file, everything works fine with XeLaTeX on TeXShop.<br class=""></blockquote><div><br class=""></div>It should be pointed out that everything is well without using emacs.  TeXShop certainly gets along well with XeLaTex installed in MacTeX 2017<br class=""><br class=""><blockquote type="cite" class=""><blockquote type="cite" class="">This has been already fixed upstream, you only need to update your AUCTeX package. The fix is present in the latest ELPA version (11.90.2), which is by far the best and simplest way to install (and then update) the package.<br class=""></blockquote><br class="">Could this be connected?<br class=""></blockquote><br class=""></div><div>In fact, my AUCTeX package is the latest version installed by ELPA. It's still no luck to me. Emacs always complains that "xdvipdfmx:fatal: pdf_ref_obj(): passed invalid object." only if dvipdfmx called by Emacs handles the eps files, even under eshell.</div><div><br class=""></div><div><div style="orphans: 2; widows: 2;" class="">---</div><div style="orphans: 2; widows: 2;" class="">Best regards,</div><div style="orphans: 2; widows: 2;" class=""><br class=""></div><div style="orphans: 2; widows: 2;" class="">Jun-Qi Hu</div></div><br class=""></body></html>