diff options
author | Jonathan Kew <jfkthame@googlemail.com> | 2007-11-26 17:13:01 +0000 |
---|---|---|
committer | Jonathan Kew <jfkthame@googlemail.com> | 2007-11-26 17:13:01 +0000 |
commit | c8b2d7813bc758a8a26f21cb984ec9d26e99744d (patch) | |
tree | 724d4434c44b72050d812d4d64ed93a3cc381a51 /Master/texmf-dist/tex/xelatex/graphics/xetex.def | |
parent | f18ff670ae5e75d3632c678c98e41bf1cd5ec4c0 (diff) |
support EPS in xetex.def
git-svn-id: svn://tug.org/texlive/trunk@5603 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/xelatex/graphics/xetex.def')
-rw-r--r-- | Master/texmf-dist/tex/xelatex/graphics/xetex.def | 31 |
1 files changed, 29 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/xelatex/graphics/xetex.def b/Master/texmf-dist/tex/xelatex/graphics/xetex.def index feefc27f01d..b60dc9d0d7d 100644 --- a/Master/texmf-dist/tex/xelatex/graphics/xetex.def +++ b/Master/texmf-dist/tex/xelatex/graphics/xetex.def @@ -13,6 +13,9 @@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% Version History %% +%% 2007/10/25 [JK] Version v0.93 added EPS support from dvipdfmx.def +%% (for use with xdvipdfmx, default driver in xetex 0.997) +%% %% 2006/08/10 [JK] Version v0.92 correct type-check in \G@measure@QTm; %% remove \G@PDF@ext, apply \lowercase instead; %% make \XeTeXquote have catcode 12 rather than 11; @@ -417,8 +420,32 @@ % ... though this default rule will try QuickTime anyway ... \@namedef{Gin@rule@*}#1{{QTm}{QTm}{#1}} -% ... and add it's extension here -\def\Gin@extensions{.pdf,.png,.jpg,.bmp,.pict,.tif,.psd,.mac,.sga,.tga,.gif} +% ... and add its extension here +\def\Gin@extensions{.pdf,.eps,.ps,% + .png,.jpg,.bmp,.pict,.tif,.psd,.mac,.sga,.tga,.gif} + +% xdvipdfmx is now the default driver, and can support EPS images, +% so we borrow code for this from dvipdfmx.def (and add the extensions above) +\def\Ginclude@eps#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} +\@namedef{Gin@rule@.ps}#1{{eps}{.ps}{#1}} +\@namedef{Gin@rule@.eps}#1{{eps}{.eps}{#1}} % % Rotation & Scaling |