[latex3-commits] [git/graphics-def] master: Handle bb option for pdftex/luatex (9e6d682)
Joseph Wright
joseph.wright at morningstar2.co.uk
Mon Jan 1 19:37:54 CET 2018
Repository : https://github.com/latex3/graphics-def
On branch : master
Link : https://github.com/latex3/graphics-def/commit/9e6d682fe28c3811410e0faae70c75e586fc8b05
>---------------------------------------------------------------
commit 9e6d682fe28c3811410e0faae70c75e586fc8b05
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Mon Jan 1 18:15:09 2018 +0000
Handle bb option for pdftex/luatex
As "bb" is documented for graphic(s|x), and as it is equivalent to
viewport for pdftex and luatex, drop the warning and just print this
info. With hindsight one might avoid the entire bounding box
manipulation, but this is too late.
>---------------------------------------------------------------
9e6d682fe28c3811410e0faae70c75e586fc8b05
README.md | 2 +-
luatex.def | 19 +++++++++++++++++--
pdftex.def | 19 +++++++++++++++++--
3 files changed, 35 insertions(+), 5 deletions(-)
diff --git a/README.md b/README.md
index 4ff775c..1ab9ff3 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,7 @@
LaTeX support for color and graphics
====================================
-Release 2017-12-19
+Release 2018-01-01
This bundle contains the 'engine-dependent' part of support for
color and graphics in LaTeX2e (the code here will also function
diff --git a/luatex.def b/luatex.def
index 0f98cb2..173e9bc 100644
--- a/luatex.def
+++ b/luatex.def
@@ -1,7 +1,7 @@
%% luatex.def Copyright (C) 2000-2015 David Carlisle, Sebastian Rahtz,
%% Hans Hagen, Heiko Oberdiek and
%% Martin Schr\"oder
-%% Copyright (C) 2016-2017 LaTeX3 project and Heiko Oberdiek
+%% Copyright (C) 2016-2018 LaTeX3 project and Heiko Oberdiek
%%
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3c
@@ -18,7 +18,7 @@
%% https://github.com/latex3/graphics-def/issues
%%
\ProvidesFile{luatex.def}
- [2017/12/19 v1.0j Graphics/color driver for luatex]
+ [2018/01/01 v1.0k Graphics/color driver for luatex]
\def\GPT at space{ }
\def\c at lor@arg#1{%
\dimen@#1\p@
@@ -125,6 +125,21 @@
\def\no at page@color{%
\global\GPT at pagecolorfalse
}
+\def\KV at Gin@bbllx{%
+ \PackageError{pdftex.def}{%
+ Options `bblly', `bblly', `bburx' and `bbury'\MessageBreak
+ are not supported by luatex driver:\MessageBreak
+ use `viewport' instead%
+ }\@ehc
+}
+\let\KV at Gin@bblly\KV at Gin@bbllx
+\let\KV at Gin@bburx\KV at Gin@bbllx
+\let\KV at Gin@bbury\KV at Gin@bbllx
+\def\KV at Gin@bb{%
+ \PackageInfo{luatex.def}
+ {Option `bb' equivalent to `viewport` for pdftex driver}%
+ \KV at Gin@viewport
+}
\def\Gread at pdftex#1{%
% Use low level test here not \IfFileExists to match \Gread at pdftex in
% pdftex.def and \Gread at eps test in graphics.
diff --git a/pdftex.def b/pdftex.def
index be998ce..1d4d96f 100644
--- a/pdftex.def
+++ b/pdftex.def
@@ -1,7 +1,7 @@
%% pdftex.def Copyright (C) 2000-2015 David Carlisle, Sebastian Rahtz,
%% Hans Hagen, Heiko Oberdiek and
%% Martin Schr\"oder
-%% Copyright (C) 2016-2017 LaTeX3 project and Heiko Oberdiek
+%% Copyright (C) 2016-2018 LaTeX3 project and Heiko Oberdiek
%%
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3c
@@ -18,7 +18,7 @@
%% https://github.com/latex3/graphics-def/issues
%%
\ProvidesFile{pdftex.def}
- [2017/12/19 v1.0j Graphics/color driver for pdftex]
+ [2018/01/01 v1.0k Graphics/color driver for pdftex]
\def\GPT at space{ }
\def\c at lor@arg#1{%
\dimen@#1\p@
@@ -139,6 +139,21 @@ E \else
\def\no at page@color{%
\global\GPT at pagecolorfalse
}
+\def\KV at Gin@bbllx{%
+ \PackageError{pdftex.def}{%
+ Options `bblly', `bblly', `bburx' and `bbury'\MessageBreak
+ are not supported by pdftex driver:\MessageBreak
+ use `viewport' instead%
+ }\@ehc
+}
+\let\KV at Gin@bblly\KV at Gin@bbllx
+\let\KV at Gin@bburx\KV at Gin@bbllx
+\let\KV at Gin@bbury\KV at Gin@bbllx
+\def\KV at Gin@bb{%
+ \PackageInfo{pdftex.def}
+ {Option `bb' equivalent to `viewport` with pdftex driver}%
+ \KV at Gin@viewport
+}
\def\Gread at pdftex#1{%
\expandafter\ifx\expandafter\relax\pdffilesize{#1}\relax
\expandafter\@secondoftwo
More information about the latex3-commits
mailing list