diff options
author | Karl Berry <karl@freefriends.org> | 2016-04-07 20:53:37 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2016-04-07 20:53:37 +0000 |
commit | 858811a7e072ee761dab74144444d69e9645a8f3 (patch) | |
tree | e29235dd3d58ae9f227758a692180dd07f953ae1 /Master/texmf-dist/tex | |
parent | b658dbb1d36c3c2a010ab27547ff750aa3bd4509 (diff) |
dvipdfmx-def (6apr16)
git-svn-id: svn://tug.org/texlive/trunk@40328 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r-- | Master/texmf-dist/tex/latex/dvipdfmx-def/dvipdfmx.def | 41 |
1 files changed, 38 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/dvipdfmx-def/dvipdfmx.def b/Master/texmf-dist/tex/latex/dvipdfmx-def/dvipdfmx.def index d7c9c374837..0c836098e4c 100644 --- a/Master/texmf-dist/tex/latex/dvipdfmx-def/dvipdfmx.def +++ b/Master/texmf-dist/tex/latex/dvipdfmx-def/dvipdfmx.def @@ -1,7 +1,7 @@ %% This is file `dvipdfmx.def' for DVIPDFMx by J.-H. Cho and S. Hirata %% based upon `dvipdf.def' in the LaTeX `Graphics Bundle'. %% -%% Copyright 2005-2015 Jin-Hwan Cho, Shunsaku Hirata +%% Copyright 2005-2016 Jin-Hwan Cho, Shunsaku Hirata %% (with contributions from many others) %% %% This file is not part of the Standard LaTeX `Graphics Bundle'. @@ -22,7 +22,7 @@ %% % emacs-page \ProvidesFile{dvipdfmx.def} - [2015/11/04 v4.07 LaTeX color/graphics driver for dvipdfmx (TeX Live/ChoF)] + [2016/04/06 v4.08 LaTeX color/graphics driver for dvipdfmx (TeX Live/ChoF)] % \def\c@lor@arg#1{% \dimen@#1\p@ @@ -328,6 +328,39 @@ \ifx\Gin@scaley\@tempa\else rhi=\number\@tempdima\space\fi \ifGin@clip clip\fi}% \egroup} +% +% In the above \Ginclude@eps, llx, lly, urx, and ury are translated to match +% the -dEPSCrop option for Ghostscript to convert eps to pdf. +% In the case of eps files created by MetaPost, the files are included +% directly without the help of Ghostscript. That is, we have to translate +% the origin accordingly if we use \Ginclude@eps for eps files created by +% MetaPost. In TeX Live 2015, the translation of the origin was the default. +% After TeX Live 2016, however, the translation of the origin is enabled only +% if the --mvorigin option is given for dvipdfmx or xdvipdfmx. +% This may be a bit inconvenient, especially in the case of XeTeX where +% xdvipdfmx is usually called as a pipe. Therefore we introduce a new suffix +% .mps(or .MPS) to support inclusion of eps files created by MetaPost without +% the option --mvorigin. +% +\def\Ginclude@mps#1{% + \message{<#1>}% + \bgroup + \def\@tempa{!}% + \dimen@\Gin@req@width + \dimen@ii.1bp% + \divide\dimen@\dimen@ii + \@tempdima\Gin@req@height + \divide\@tempdima\dimen@ii + \special{PSfile="#1"\space + llx=\Gin@llx\space + lly=\Gin@lly\space + urx=\Gin@urx\space + ury=\Gin@ury\space + \ifx\Gin@scalex\@tempa\else rwi=\number\dimen@\space\fi + \ifx\Gin@scaley\@tempa\else rhi=\number\@tempdima\space\fi + \ifGin@clip clip\fi}% + \egroup} +% \def\Grot@start{% \special{pdf:btrans rotate \Grot@angle}} \def\Grot@end{\special{pdf:etrans}} @@ -341,7 +374,7 @@ \def\Gin@extensions{% order here is like xetex.def, except for PS .pdf,.PDF,.ai,.AI,% .png,.PNG,.jpg,.JPG,.jpeg,.JPEG,.jp2,.JP2,.jpf,.JPF,.bmp,.BMP,% - .ps,.PS,.eps,.EPS,% + .ps,.PS,.eps,.EPS,.mps,.MPS,% .pz,.eps.Z,.ps.Z,.ps.gz,.eps.gz} % \@namedef{Gin@rule@.pdf}#1{{pdf}{.xbb}{#1}} @@ -380,6 +413,8 @@ \@namedef{Gin@rule@.eps}#1{{eps}{.eps}{#1}} \@namedef{Gin@rule@.EPS}#1{{eps}{.eps}{#1}} % +\@namedef{Gin@rule@.mps}#1{{mps}{.mps}{#1}} +\@namedef{Gin@rule@.MPS}#1{{mps}{.mps}{#1}} % (don't bother with uppercase versions for these Unixish extensions) \@namedef{Gin@rule@.pz}#1{{eps}{.xbb}{`gunzip -c #1}} \@namedef{Gin@rule@.eps.Z}#1{{eps}{.eps.xbb}{`gunzip -c #1}} |