auctex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[AUCTeX] strange behaviour of dvipdfmx and xdvipdfmx in Emacs


From: 军其 胡
Subject: [AUCTeX] strange behaviour of dvipdfmx and xdvipdfmx in Emacs
Date: Fri, 09 Jun 2017 08:52:18 +0800

Hi, all in the list.

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:

e.g.1 ---- sam1.tex
,------------------------------------------------------------------------------------------------------------------------
% -*- coding: chinese-gbk -*-
\documentclass{article}
\usepackage{CJK}
\usepackage{graphicx}
\usepackage[active]{srcltx}
\begin{document}
\begin{CJK*}{GBK}{song}
\CJKtilde
你好!
\includegraphics[width=2.5cm]{./rose1.eps}
\end{CJK*}
\end{document}
%%% Local Variables:
%%% mode: latex
%%% TeX-master: t
%%% End:
`------------------------------------------------------------------------------------------------------------------------
Now open iTerm.app and execute 
,------------------------------------------------------------------------------------------------------------------------
$ latex sam1.tex
$ dvipdfmx sam1.dvi
`------------------------------------------------------------------------------------------------------------------------
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:
,------------------------------------------------------------------------------------------------------------------------
sam1.dvi -> sam1.pdf
[1Unable to read environment locale:exit now.
 
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.
dvipdfmx:warning: Image format conversion for "./rose1.eps" failed...
dvipdfmx:fatal: pdf_ref_obj(): passed invalid object.

Output file removed.
`------------------------------------------------------------------------------------------------------------------------


e.g.2 --- sam2.tex
,------------------------------------------------------------------------------------------------------------------------
% -*- coding: utf-8
\documentclass{article}
\usepackage{xeCJK}
\usepackage{graphicx}
\begin{document}
你好!

\includegraphics[width=2.5cm]{./rose1.eps}
\end{document}
%%% Local Variables:
%%% mode: latex
%%% TeX-master: t
%%% End:
`------------------------------------------------------------------------------------------------------------------------
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
,------------------------------------------------------------------------------------------------------------------------
Running `XeLaTeX' on `sam2' with ``xelatex -synctex=-1 sam2.tex''
This is XeTeX, Version 3.14159265-2.6-0.99998 (TeX Live 2017) (preloaded format=xelatex)
 restricted \write18 enabled.
entering extended mode
(./sam2.tex
LaTeX2e <2017-04-15>
Babel <3.10> and hyphenation patterns for 84 language(s) loaded.
(/usr/local/texlive/2017/texmf-dist/tex/latex/base/article.cls
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
(/usr/local/texlive/2017/texmf-dist/tex/latex/base/size10.clo))
(/usr/local/texlive/2017/texmf-dist/tex/xelatex/xecjk/xeCJK.sty
(/usr/local/texlive/2017/texmf-dist/tex/latex/l3kernel/expl3.sty
(/usr/local/texlive/2017/texmf-dist/tex/latex/l3kernel/expl3-code.tex)
(/usr/local/texlive/2017/texmf-dist/tex/latex/l3kernel/l3xdvipdfmx.def))
(/usr/local/texlive/2017/texmf-dist/tex/latex/l3packages/xtemplate/xtemplate.sty) (/usr/local/texlive/2017/texmf-dist/tex/latex/l3packages/xparse/xparse.sty)
(/usr/local/texlive/2017/texmf-dist/tex/latex/l3packages/l3keys2e/l3keys2e.sty)(/usr/local/texlive/2017/texmf-dist/tex/latex/fontspec/fontspec.sty
(/usr/local/texlive/2017/texmf-dist/tex/latex/fontspec/fontspec-xetex.sty
(/usr/local/texlive/2017/texmf-dist/tex/latex/base/fontenc.sty
(/usr/local/texlive/2017/texmf-dist/tex/latex/base/tuenc.def))
(/usr/local/texlive/2017/texmf-dist/tex/latex/fontspec/fontspec.cfg)))
(/usr/local/texlive/2017/texmf-dist/tex/xelatex/xecjk/xunicode-addon.sty
(/usr/local/texlive/2017/texmf-dist/tex/xelatex/xunicode/xunicode.sty
(/usr/local/texlive/2017/texmf-dist/tex/latex/tipa/t3enc.def)
(/usr/local/texlive/2017/texmf-dist/tex/latex/graphics/graphicx.sty
(/usr/local/texlive/2017/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/local/texlive/2017/texmf-dist/tex/latex/graphics/graphics.sty
(/usr/local/texlive/2017/texmf-dist/tex/latex/graphics/trig.sty)
(/usr/local/texlive/2017/texmf-dist/tex/latex/graphics-cfg/graphics.cfg)
(/usr/local/texlive/2017/texmf-dist/tex/latex/graphics-def/xetex.def)))))
(/usr/local/texlive/2017/texmf-dist/tex/xelatex/xunicode/xunicode.sty
*** Reloading Xunicode for encoding 'TU' ***
) (/usr/local/texlive/2017/texmf-dist/tex/xelatex/xecjk/xunicode-extra.def)
(/usr/local/texlive/2017/texmf-dist/tex/xelatex/xecjk/xeCJK.cfg))
*************************************************
* xeCJK warning: "fandol"
* Fandol is being set as the default font for CJK text.
* Please make sure it has been properly installed.
*************************************************
*************************************************
* fontspec warning: "script-not-exist"
* Font 'FandolSong-Regular' does not contain script 'CJK'.
*************************************************
No file sam2.aux.
(/usr/local/texlive/2017/texmf-dist/tex/latex/tipa/t3cmr.fd) <./rose1.eps>
[1] (./sam2.aux)Unable to read environment locale:exit now.

xdvipdfmx:fatal: pdf_ref_obj(): passed invalid object.

Output file removed.
 )
Error 256 (driver return code) generating output;
file sam2.pdf may not be valid.
`------------------------------------------------------------------------------------------------------------------------

I can't figure out what happened. The configurations of Emacs is preserved during the upgrading process of MacTeX. 

Any suggestion?

---
Best regards,

Jun-Qi Hu

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail


reply via email to

[Prev in Thread] Current Thread [Next in Thread]