summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/graphics-def/luatex.def
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/graphics-def/luatex.def')
-rw-r--r--Master/texmf-dist/tex/latex/graphics-def/luatex.def16
1 files changed, 14 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/latex/graphics-def/luatex.def b/Master/texmf-dist/tex/latex/graphics-def/luatex.def
index ee4da891254..1af0d987494 100644
--- a/Master/texmf-dist/tex/latex/graphics-def/luatex.def
+++ b/Master/texmf-dist/tex/latex/graphics-def/luatex.def
@@ -1,4 +1,4 @@
-\ProvidesFile{luatex.def}[2016/08/17 v0.01g Graphics/Color for luaTeX]
+\ProvidesFile{luatex.def}[2017/01/12 v0.01h Graphics/Color for luaTeX]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% LaTeX Colour and Graphics support for luatex
@@ -6,7 +6,7 @@
%% License
%% =======
%%
-%% Copyright (C) 2000-2016 LaTeX3 Project
+%% Copyright (C) 2000-2017 LaTeX3 Project
%%
%% based on pdftex.def by the following authors
%% David Carlisle, Sebastian Rahtz, Hans Hagen,
@@ -62,6 +62,8 @@
% 2016/06/24 Version 0.01d support the (no)setpagesize option.
% 2016/06/17 Version 0.01e guards for contributed packages and plain TeX
% 2016/07/11 Version 0.01f test for \mag added to all drivers, missing \fi in pagebox
+% 2016/08/17 Version 0.01g Guard for non-LaTeX use
+% 2017/01/12 Version 0.01h graphics options as viewport for graphics/4499
%
% Prefix of internal commands for this file `luatex.def':
% \GPT@ (Graphics bundle PdfTex driver, even though this is for luatex)
@@ -802,6 +804,16 @@
}%
}
\def\Ginclude@pdftex#1{%
+ % basic faking of viewport settings so graphic-s- interface
+ % does something sensible
+ \ifx\GPT@AttrShort\@undefined
+ \GPT@info{Interpreting graphics options as viewport}%
+ \let\GPT@AttrShort\@empty
+ \let\Gin@vllx\Gin@llx
+ \let\Gin@vlly\Gin@lly
+ \let\Gin@vurx\Gin@urx
+ \let\Gin@vury\Gin@ury
+ \fi
\def\@tempa{!}%
\ifx\Gin@scaley\@tempa
\let\Gin@scaley\Gin@scalex