summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r--Master/texmf-dist/tex/latex/dvipdfmx-def/dvipdfmx.def16
1 files changed, 14 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/latex/dvipdfmx-def/dvipdfmx.def b/Master/texmf-dist/tex/latex/dvipdfmx-def/dvipdfmx.def
index 932eaa7bd1d..a50a4073beb 100644
--- a/Master/texmf-dist/tex/latex/dvipdfmx-def/dvipdfmx.def
+++ b/Master/texmf-dist/tex/latex/dvipdfmx-def/dvipdfmx.def
@@ -23,7 +23,7 @@
%%
% emacs-page
\ProvidesFile{dvipdfmx.def}
- [2015/03/26 v4.04 LaTeX color/graphics driver for dvipdfmx (TeX Live/ChoF)]
+ [2015/08/16 v4.05 LaTeX color/graphics driver for dvipdfmx (TeX Live/ChoF)]
%
\def\c@lor@arg#1{%
\dimen@#1\p@
@@ -98,7 +98,15 @@
\def\declareimagemask@i[#1]#2#3{%
\special{pdf:image @#2\space hide (#3) #1}}
+%
+% improved by N. Abe to cache BoundingBox for pdfpages package
+%
\def\Gread@pdf#1{%
+\edef\@tempa{pdf@bbox@cache\Gin@page @sep@#1}%
+\expandafter\expandafter\expandafter\@ifundefined\expandafter{\@tempa}{\Gread@@pdf{#1}}{%
+\edef\@gtempa{\csname\@tempa\endcsname}%
+\expandafter\Gread@parse@bb\@gtempa\\}}
+\def\Gread@@pdf#1{%
\begingroup
\@tempcnta\z@
\loop\ifnum\@tempcnta<\@xxxii
@@ -174,8 +182,12 @@
\fi
\fi
%
+% improved by N. Abe to cache BoundingBox for pdfpages package
%
- \ifGin@bbox\else
+ \ifGin@bbox
+ \edef\@tempa{pdf@bbox@cache\Gin@page @sep@#1}%
+ \expandafter\expandafter\expandafter\xdef\expandafter\csname\@tempa\endcsname{\@gtempa}%
+ \else
\@latex@error
{Cannot determine size of image (no BoundingBox)}%
\@ehc