<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"><meta http-equiv="Content-Type" content="text/html charset=utf-8"><meta http-equiv="Content-Type" content="text/html charset=utf-8"><meta http-equiv="Content-Type" content="text/html charset=utf-8"><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi, all in the list.<div class=""><br class=""></div><div class="">I'm a faithful user of MacTeX/TeX Live+Emacs+AucTeX. One week ago, I worked with MacTeX 2016, Emacs 25.1, AucTex 11.90. Everything is fine. Since MacTeX 2017 is released, I updated it to the latest version. However, something wrong happened with dvipdfmx and xdvipdfmx in Emacs while similar procedure is ok under bash shell. Let me explain it with some LaTeX codes:</div><div class=""><br class=""></div><div class="">e.g.1 ---- sam1.tex</div><div class=""><div class="">,------------------------------------------------------------------------------------------------------------------------</div><div class="">% -*- coding: chinese-gbk -*-</div><div class="">\documentclass{article}</div><div class="">\usepackage{CJK}</div><div class="">\usepackage{graphicx}</div><div class="">\usepackage[active]{srcltx}</div><div class="">\begin{document}</div><div class="">\begin{CJK*}{GBK}{song}</div><div class="">\CJKtilde</div><div class="">你好!</div><div class="">\includegraphics[width=2.5cm]{./rose1.eps}</div><div class="">\end{CJK*}</div><div class="">\end{document}</div><div class=""><div class="">%%% Local Variables:</div><div class="">%%% mode: latex</div><div class="">%%% TeX-master: t</div><div class="">%%% End:</div></div></div><div class="">`------------------------------------------------------------------------------------------------------------------------</div><div class="">Now open iTerm.app and execute </div><div class="">,------------------------------------------------------------------------------------------------------------------------</div><div class="">$ latex sam1.tex</div><div class="">$ dvipdfmx sam1.dvi</div><div class="">`------------------------------------------------------------------------------------------------------------------------</div><div class="">PDF file is produced. If I open sam1.tex in Emacs, and click 'LaTeX' and 'Dvipdfmx' buttons sequentially on command menu, the following errors is reported:</div><div class=""><div class="">,------------------------------------------------------------------------------------------------------------------------</div><div class="">sam1.dvi -> sam1.pdf</div><div class="">[1Unable to read environment locale:exit now.</div><div class=""> </div><div class="">dvipdfmx:warning: Filtering file via command -->rungs -q -dNOPAUSE -dBATCH -sPAPERSIZE=a0 -sDEVICE=pdfwrite -dCompatibilityLevel=1.5 -dAutoFilterGrayImages=false -dGrayImageFilter=/FlateEncode -dAutoFilterColorImages=false -dColorImageFilter=/FlateEncode -dAutoRotatePages=/None -sOutputFile='/var/folders/6s/lrtlxdyd7yzb90kzmmxtn59h0000gn/T/dvipdfm-x.2dda2d0de523e91a71608460c742a9e0' './rose1.eps' -c quit<-- failed.</div><div class="">dvipdfmx:warning: Image format conversion for "./rose1.eps" failed...</div><div class="">dvipdfmx:fatal: pdf_ref_obj(): passed invalid object.</div><div class=""><br class=""></div><div class="">Output file removed.</div><div class="">`------------------------------------------------------------------------------------------------------------------------</div><div class=""><br class=""></div></div><div class=""><br class=""></div><div class="">e.g.2 --- sam2.tex</div><div class=""><div class="">,------------------------------------------------------------------------------------------------------------------------</div><div class="">% -*- coding: utf-8</div><div class="">\documentclass{article}</div><div class="">\usepackage{xeCJK}</div><div class="">\usepackage{graphicx}</div><div class="">\begin{document}</div><div class="">你好!</div><div class=""><br class=""></div><div class="">\includegraphics[width=2.5cm]{./rose1.eps}</div><div class="">\end{document}</div><div class="">%%% Local Variables:</div><div class="">%%% mode: latex</div><div class="">%%% TeX-master: t</div><div class="">%%% End:</div></div><div class="">`------------------------------------------------------------------------------------------------------------------------</div><div class="">PDF file is also generated properly under iTerm.app. If I use 'XeLaTeX' button on Emacs command menu to produce the corresponding PDF, xdvipdfmx is failed and Emacs complains that</div><div class=""><div class="">,------------------------------------------------------------------------------------------------------------------------</div><div class="">Running `XeLaTeX' on `sam2' with ``xelatex -synctex=-1 sam2.tex''</div><div class="">This is XeTeX, Version 3.14159265-2.6-0.99998 (TeX Live 2017) (preloaded format=xelatex)</div><div class=""> restricted \write18 enabled.</div><div class="">entering extended mode</div><div class="">(./sam2.tex</div><div class="">LaTeX2e <2017-04-15></div><div class="">Babel <3.10> and hyphenation patterns for 84 language(s) loaded.</div><div class="">(/usr/local/texlive/2017/texmf-dist/tex/latex/base/article.cls</div><div class="">Document Class: article 2014/09/29 v1.4h Standard LaTeX document class</div><div class="">(/usr/local/texlive/2017/texmf-dist/tex/latex/base/size10.clo))</div><div class="">(/usr/local/texlive/2017/texmf-dist/tex/xelatex/xecjk/xeCJK.sty</div><div class="">(/usr/local/texlive/2017/texmf-dist/tex/latex/l3kernel/expl3.sty</div><div class="">(/usr/local/texlive/2017/texmf-dist/tex/latex/l3kernel/expl3-code.tex)</div><div class="">(/usr/local/texlive/2017/texmf-dist/tex/latex/l3kernel/l3xdvipdfmx.def))</div><div class="">(/usr/local/texlive/2017/texmf-dist/tex/latex/l3packages/xtemplate/xtemplate.sty) (/usr/local/texlive/2017/texmf-dist/tex/latex/l3packages/xparse/xparse.sty)</div><div class="">(/usr/local/texlive/2017/texmf-dist/tex/latex/l3packages/l3keys2e/l3keys2e.sty)(/usr/local/texlive/2017/texmf-dist/tex/latex/fontspec/fontspec.sty</div><div class="">(/usr/local/texlive/2017/texmf-dist/tex/latex/fontspec/fontspec-xetex.sty</div><div class="">(/usr/local/texlive/2017/texmf-dist/tex/latex/base/fontenc.sty</div><div class="">(/usr/local/texlive/2017/texmf-dist/tex/latex/base/tuenc.def))</div><div class="">(/usr/local/texlive/2017/texmf-dist/tex/latex/fontspec/fontspec.cfg)))</div><div class="">(/usr/local/texlive/2017/texmf-dist/tex/xelatex/xecjk/xunicode-addon.sty</div><div class="">(/usr/local/texlive/2017/texmf-dist/tex/xelatex/xunicode/xunicode.sty</div><div class="">(/usr/local/texlive/2017/texmf-dist/tex/latex/tipa/t3enc.def)</div><div class="">(/usr/local/texlive/2017/texmf-dist/tex/latex/graphics/graphicx.sty</div><div class="">(/usr/local/texlive/2017/texmf-dist/tex/latex/graphics/keyval.sty)</div><div class="">(/usr/local/texlive/2017/texmf-dist/tex/latex/graphics/graphics.sty</div><div class="">(/usr/local/texlive/2017/texmf-dist/tex/latex/graphics/trig.sty)</div><div class="">(/usr/local/texlive/2017/texmf-dist/tex/latex/graphics-cfg/graphics.cfg)</div><div class="">(/usr/local/texlive/2017/texmf-dist/tex/latex/graphics-def/xetex.def)))))</div><div class="">(/usr/local/texlive/2017/texmf-dist/tex/xelatex/xunicode/xunicode.sty</div><div class="">*** Reloading Xunicode for encoding 'TU' ***</div><div class="">) (/usr/local/texlive/2017/texmf-dist/tex/xelatex/xecjk/xunicode-extra.def)</div><div class="">(/usr/local/texlive/2017/texmf-dist/tex/xelatex/xecjk/xeCJK.cfg))</div><div class="">*************************************************</div><div class="">* xeCJK warning: "fandol"</div><div class="">* </div><div class="">* Fandol is being set as the default font for CJK text.</div><div class="">* Please make sure it has been properly installed.</div><div class="">*************************************************</div><div class="">*************************************************</div><div class="">* fontspec warning: "script-not-exist"</div><div class="">* </div><div class="">* Font 'FandolSong-Regular' does not contain script 'CJK'.</div><div class="">*************************************************</div><div class="">No file sam2.aux.</div><div class="">(/usr/local/texlive/2017/texmf-dist/tex/latex/tipa/t3cmr.fd) <./rose1.eps></div><div class="">[1] (./sam2.aux)Unable to read environment locale:exit now.</div><div class=""><br class=""></div><div class="">xdvipdfmx:fatal: pdf_ref_obj(): passed invalid object.</div><div class=""><br class=""></div><div class="">Output file removed.</div><div class=""> )</div><div class="">Error 256 (driver return code) generating output;</div><div class="">file sam2.pdf may not be valid.</div><div class="">`------------------------------------------------------------------------------------------------------------------------</div><div class=""><br class=""></div><div class="">I can't figure out what happened. The configurations of Emacs is preserved during the upgrading process of MacTeX. </div><div class=""><br class=""></div><div class="">Any suggestion?</div><div class=""><br class=""></div><div 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="">---</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></div>
</div>
<br class=""></div></body></html>