[tex-live] eps inclusion by dvipdfmx and xdvipdfmx

Akira Kakuto kakuto at fuk.kindai.ac.jp
Sat May 25 02:33:55 CEST 2013


Hello,

Recently, dvipdfmx.cfg is changed to use -dEPSCrop to convert from
eps to pdf by Ghostscript, and "hoffset", "voffset" specials are added to
dvipdfmx.def and xpdf.def.
I think "hoffset" and "voffset" specials are not working correctly,
probably because translation and scaling etc. are not commutative.
Outputs of pdflatex and xelatex are the same for the following
test1.tex, whereas the outputs for test2.tex are different
in the cases of pdflatex and xelatex.
Here grfig0.eps is a suitable eps figure.
I think that
if xetex.def and dvipdfmx.def are rewritten to become
urx = urx - llx
ury = ury - lly
llx = 0
lly = 0
without hoffset and voffset,
dvipdfmx and xdvipdfmx work correctly to include eps with -dEPSCrop.

%
% test1.tex
%
\documentclass{article}
\usepackage{graphicx}
\begin{document}
\includegraphics{grfig0.eps} 
\end{document}

%
% test2.tex
%
\documentclass{article}
\usepackage{graphicx}
\begin{document}
\includegraphics[scale=0.5]{grfig0.eps} 
\end{document}

Best regards,
Akira KAKUTO


More information about the tex-live mailing list