[tex-live] eps inclusion by dvipdfmx and xdvipdfmx

Bruno Voisin bvoisin at icloud.com
Sun May 26 10:24:57 CEST 2013


The following replacement to \Ginclude at eps seems to implement what has been suggested and this seems to work:

\def\Ginclude at eps#1{%
 \message{<#1>}%
  \bgroup
  \def\@tempa{!}%
  \dimen@\Gin at urx\p@
  \advance\dimen@ -\Gin at llx\p@
  \Gin at defaultbp\Gin at urx\dimen@
  \dimen@\Gin at ury\p@
  \advance\dimen@ -\Gin at lly\p@
  \Gin at defaultbp\Gin at ury\dimen@
  \dimen@\Gin at req@width
  \dimen at ii.1bp%
  \divide\dimen@\dimen at ii
  \@tempdima\Gin at req@height
  \divide\@tempdima\dimen at ii
    \special{PSfile="#1"\space
      urx=\Gin at urx\space
      ury=\Gin at ury\space
      \ifx\Gin at scalex\@tempa\else rwi=\number\dimen@\space\fi
      \ifx\Gin at scaley\@tempa\else rhi=\number\@tempdima\space\fi
      \ifGin at clip clip\fi}%
  \egroup}

In terms of diff, that would mean:

$ diff -u xetex.def xetex-new.def
--- xetex.def	2013-04-30 01:47:19.000000000 +0200
+++ xetex-new.def	2013-05-26 09:54:54.000000000 +0200
@@ -467,18 +467,20 @@
  \message{<#1>}%
   \bgroup
   \def\@tempa{!}%
+  \dimen@\Gin at urx\p@
+  \advance\dimen@ -\Gin at llx\p@
+  \Gin at defaultbp\Gin at urx\dimen@
+  \dimen@\Gin at ury\p@
+  \advance\dimen@ -\Gin at lly\p@
+  \Gin at defaultbp\Gin at ury\dimen@
   \dimen@\Gin at req@width
   \dimen at ii.1bp%
   \divide\dimen@\dimen at ii
   \@tempdima\Gin at req@height
   \divide\@tempdima\dimen at ii
     \special{PSfile="#1"\space
-      llx=\Gin at llx\space
-      lly=\Gin at lly\space
       urx=\Gin at urx\space
       ury=\Gin at ury\space
-      hoffset=\Gin at llx\space
-      voffset=\Gin at lly\space
       \ifx\Gin at scalex\@tempa\else rwi=\number\dimen@\space\fi
       \ifx\Gin at scaley\@tempa\else rhi=\number\@tempdima\space\fi
       \ifGin at clip clip\fi}%

Beware: I'm really not an expert on these matters, this would need to be tested thoroughly.

Attached is a small test.

Bruno Voisin

-------------- next part --------------
A non-text attachment was scrubbed...
Name: essaiasy-latex.tex
Type: application/x-tex
Size: 281 bytes
Desc: not available
URL: <http://tug.org/pipermail/tex-live/attachments/20130526/20abf468/attachment.tex>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: essaiasy.eps
Type: image/eps
Size: 8567 bytes
Desc: not available
URL: <http://tug.org/pipermail/tex-live/attachments/20130526/20abf468/attachment.bin>
-------------- next part --------------




More information about the tex-live mailing list