Skip to content

Commit

Permalink
xetex.def: pagebox support for 'read' phase
Browse files Browse the repository at this point in the history
  • Loading branch information
josephwright committed Jun 3, 2017
1 parent 564fddb commit 69f0c34
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions xetex.def
Expand Up @@ -78,6 +78,9 @@
\@ifundefined{Gin@page}
{\let\Gin@page\@empty}
{}
\@ifundefined{Gin@pagebox}
{\def\Gin@pagebox{cropbox}}
{}
\@ifundefined{Gin@interpolate}
{\csname newif\endcsname\ifGin@interpolate}
{}
Expand All @@ -87,6 +90,7 @@
}
\def\Gread@bmp#1{%
\let\Gin@page\@empty
\let\Gin@pagebox\@empty
\Gread@@xetex\XeTeXpicfile
}
\def\Gread@@xetex#1{%
Expand All @@ -96,6 +100,10 @@
}
\def\Gread@@xetex@aux#1{%
\edef\Gin@attr@hash{%
\ifx\Gin@pagebox\@empty
\else
:\Gin@pagebox
\fi
\ifx\Gin@page\@empty
\else
:P\Gin@page
Expand All @@ -107,6 +115,7 @@
\setbox\@tempboxa=\hbox{%
#1"\Gin@@name"
\ifx\Gin@page\@empty\else page \Gin@page\fi
\ifx\Gin@pagebox\@empty\else\expandafter\Gread@@xetex@box\Gin@pagebox\fi
}%
\def\Gin@llx{0}\let\Gin@lly\Gin@llx
\Gin@defaultbp\Gin@urx{\wd\@tempboxa}%
Expand All @@ -123,6 +132,7 @@
{\csname \Gin@@name\space height\Gin@attr@hash\endcsname}%
}%
}
\def\Gread@@xetex@box#1box{#1}
\def\Ginclude@pdf#1{%
\Gin@interpolatefalse
\Ginclude@xetex{#1}{epdf}%
Expand Down

0 comments on commit 69f0c34

Please sign in to comment.