texlive[56235] Master/texmf-dist: graphics-def (1sep20)

commits+karl at tug.org commits+karl at tug.org
Tue Sep 1 23:34:25 CEST 2020


Revision: 56235
          http://tug.org/svn/texlive?view=revision&revision=56235
Author:   karl
Date:     2020-09-01 23:34:25 +0200 (Tue, 01 Sep 2020)
Log Message:
-----------
graphics-def (1sep20)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/graphics-def/README.md
    trunk/Master/texmf-dist/tex/latex/graphics-def/dvipdfmx.def
    trunk/Master/texmf-dist/tex/latex/graphics-def/dvisvgm.def
    trunk/Master/texmf-dist/tex/latex/graphics-def/luatex.def
    trunk/Master/texmf-dist/tex/latex/graphics-def/pdftex.def
    trunk/Master/texmf-dist/tex/latex/graphics-def/xetex.def

Removed Paths:
-------------
    trunk/Master/texmf-dist/doc/latex/graphics-def/CONTRIBUTING.md

Deleted: trunk/Master/texmf-dist/doc/latex/graphics-def/CONTRIBUTING.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/graphics-def/CONTRIBUTING.md	2020-09-01 21:04:17 UTC (rev 56234)
+++ trunk/Master/texmf-dist/doc/latex/graphics-def/CONTRIBUTING.md	2020-09-01 21:34:25 UTC (rev 56235)
@@ -1,96 +0,0 @@
-Thanks for considering contributing to LaTeX2e: feedback, fixes and
-ideas are all useful. Here, we ([The LaTeX3
-Project](https://www.latex-project.org)) have collected together a few
-pointers to help things along.
-
-## Bugs
-
-There are thousands of packages and tools and the LaTeX Project Team
-only supports a few dozen core packages beside the kernel code. We
-also don't maintain any tools or the TeX-engines themselves! So if a
-bug is due to code from a contributed third-party package then the LaTeX
-Project Team is not able to help or fix the code as that is maintained
-by others. As such, we ask you follow the procedure below as it will
-help to weed cases where we cannot help.
-
-To report a bug it is important to provide a short test file that
-exhibits the issue. The [`latexbug`](https://github.com/latex3/latexbug)
-package should be loaded at the very top of any such test file used to
-report a bug in LaTeX as follows:
-
-```latex
-\RequirePackage{latexbug}    % <- first line
-\documentclass{article}      % or some other class
-...                          % code showing the problem
-```
-
-If the `latexbug` package is not part of your distribution you can
-download it
-[GitHub](https://raw.githubusercontent.com/latex3/latexbug/master/latexbug.sty).
-In that case simply place it in the directory next to your test file (or
-place it into your local `texmf` tree so that it will be always found –
-how to do that depends on the installation you use).
-
-If `latexbug` complains about third-party packages you should first
-remove those from your test file. If that is not possible, then the
-bug is most likely in one of these packages and you should report the
-problem to the maintainers of the package instead of opening an issue
-here.  However, if you think the bug is in core LaTeX (as maintained
-by the LaTeX Team) even though you need the third-party packages to
-demonstrate the problem, then please continue and send the bug report
-to us but explain this explicitly in your description of the bug.
-
-
-## Font related issues
-
-Problems that are clearly due to using a specific font setup or a
-specific font are normally out of scope as we do not maintain fonts
-for LaTeX and can't help with problems in that area. Especially with
-XeTeX and LuaTeX people may experience issues due to font usage that
-are either due to the font itself or to different versions or
-treatment on different platforms. So please use Computer Modern or
-Latin Modern fonts in the test files.
-
-
-
-## Layout and interface deficiencies
-
-Upfront we should probably stress that 'deficiencies' in the design of
-of the standard document classes (`article`, `report` and `book`) as
-well a questionable but long established interface behavior of commands
-is something that we will normally not change, even if we can all agree
-that a different behavior or a different layout would have been a better
-choice. You are, of course, welcome to report issues in these areas,
-using the procedure explained below, but in all likelihood such reports
-will be marked as 'won't fix'.
-
-The reason is is that the kernel interfaces and the document classes
-have been used for many years in essentially all documents (even
-documents using different classes often build them upon the standard
-classes in the background) and thus such changes would break or as a
-minimum noticeably change nearly all existing documents. See also the
-file [LaTeX2e News Issue
-07](https://www.latex-project.org/news/latex2e-news/ltnews07.pdf) with
-regard to this policy.
-
-## Code contributions
-
-If you want to discuss a possible contribution before (or instead of)
-making a pull request, drop a line to
-[the team](mailto:latex-team at latex-project.org).
-
-The stability of LaTeX is very important and this means that change in
-the kernel is necessarily very conservative. It also means that a lot of
-discussion happens before any changes are made. If you do decide to post
-a pull request, please bear this in mind: we do appreciate ideas, but
-cannot always integrate them into the kernel.
-
-If you are submitting a pull request, notice that
-
-- The first line of commit messages should be a short summary (up to about
-  50 chars); leave a blank line then give more detail if required
-- We use Travis-CI for (light) testing so add `[ci skip]` to documentation-only
-  commit messages
-- We favour a single linear history so will rebase accepted pull requests
-- Where a commit fixes or closes an issue, please include this information
-  in the first line of the commit message [`(fixes #X)` or similar]

Modified: trunk/Master/texmf-dist/doc/latex/graphics-def/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/graphics-def/README.md	2020-09-01 21:04:17 UTC (rev 56234)
+++ trunk/Master/texmf-dist/doc/latex/graphics-def/README.md	2020-09-01 21:34:25 UTC (rev 56235)
@@ -1,7 +1,7 @@
 LaTeX support for color and graphics
 ====================================
 
-Release 2020-03-24
+Release 2020-08-26
 
 This bundle contains the 'engine-dependent' part of support for
 color and graphics in LaTeX2e (the code here will also function

Modified: trunk/Master/texmf-dist/tex/latex/graphics-def/dvipdfmx.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/graphics-def/dvipdfmx.def	2020-09-01 21:04:17 UTC (rev 56234)
+++ trunk/Master/texmf-dist/tex/latex/graphics-def/dvipdfmx.def	2020-09-01 21:34:25 UTC (rev 56235)
@@ -1,5 +1,6 @@
-%% dvipdfmx.def Copyright (C) 2005-2017 LaTeX3 Project, Jin-Hwan Cho, Shunsaku Hirata
-%%                                      (with contributions from many others)
+%% dvipdfmx.def
+%% Copyright (C) 2005-2020 LaTeX3 Project, Jin-Hwan Cho, Shunsaku Hirata
+%%                         (with contributions from many others)
 %%
 %% This work may be distributed and/or modified under the
 %% conditions of the LaTeX Project Public License, either version 1.3c
@@ -16,7 +17,7 @@
 %% https://github.com/latex3/graphics-def/issues
 %%
 \ProvidesFile{dvipdfmx.def}
-  [2017/06/24 v5.0g Graphics/color driver for dvipdfmx]
+  [2020/08/26 v5.0h Graphics/color driver for dvipdfmx]
 \def\GPT at space{ }
 \def\c at lor@arg#1{%
   \dimen@#1\p@
@@ -83,7 +84,8 @@
         background \current at color}}
 \def\define at color@named#1#2{%
   \expandafter\let\csname col@#1\endcsname\@nnil}
-      \def\no at page@color{\special{background \string"newpath clip}}
+% white is special cased as "no background color" by dvipdfmx
+\def\no at page@color{\special{background gray 1}}
 \@ifundefined{Gin at decode}
   {\let\Gin at decode\@empty}
   {}
@@ -333,4 +335,4 @@
 \fi
 }
 \fi
-\fi 
+\fi

Modified: trunk/Master/texmf-dist/tex/latex/graphics-def/dvisvgm.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/graphics-def/dvisvgm.def	2020-09-01 21:04:17 UTC (rev 56234)
+++ trunk/Master/texmf-dist/tex/latex/graphics-def/dvisvgm.def	2020-09-01 21:34:25 UTC (rev 56235)
@@ -1,5 +1,6 @@
-% Copyright 2015 by Till Tantau
-% Copyright 2016 2018 by Till Tantau and LaTeX3 Project
+%% dvisvgm.def
+%% Copyright 2015 by Till Tantau
+%% Copyright 2016-2020 by Till Tantau and LaTeX3 Project
 %
 %% This work may be distributed and/or modified under the
 %% conditions of the LaTeX Project Public License, either version 1.3c

Modified: trunk/Master/texmf-dist/tex/latex/graphics-def/luatex.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/graphics-def/luatex.def	2020-09-01 21:04:17 UTC (rev 56234)
+++ trunk/Master/texmf-dist/tex/latex/graphics-def/luatex.def	2020-09-01 21:34:25 UTC (rev 56235)
@@ -1,7 +1,9 @@
-%% luatex.def Copyright (C) 2000-2015 David Carlisle, Sebastian Rahtz,
-%%                                    Hans Hagen, Heiko Oberdiek and
-%%                                    Martin Schr\"oder
-%%            Copyright (C) 2016-2018 LaTeX3 project and Heiko Oberdiek
+%% luatex.def
+%% Copyright (C) 2000-2015 David Carlisle, Sebastian Rahtz,
+%%                         Hans Hagen, Heiko Oberdiek and
+%%                         Martin Schr\"oder
+%% Copyright (C) 2016-2018 LaTeX3 project and Heiko Oberdiek
+%% Copyright (C) 2018-2020 LaTeX3 project
 %%
 %% This work may be distributed and/or modified under the
 %% conditions of the LaTeX Project Public License, either version 1.3c
@@ -18,7 +20,7 @@
 %% https://github.com/latex3/graphics-def/issues
 %%
 \ProvidesFile{luatex.def}
-  [2018/01/08 v1.0l Graphics/color driver for luatex]
+  [2020/08/26 v1.2 Graphics/color driver for luatex]
 \def\GPT at space{ }
 \def\c at lor@arg#1{%
   \dimen@#1\p@
@@ -71,7 +73,7 @@
   \aftergroup\reset at color}
 \def\reset at color{\pdfextension colorstack\@pdfcolorstack pop\relax}
 \newif\ifGPT at pagecolor
-\begingroup\expandafter\expandafter\expandafter\endgroup
+
 \def\set at page@color{%
   \global\GPT at pagecolortrue
   \global\let\current at page@color\current at color
@@ -125,6 +127,32 @@
 \def\no at page@color{%
   \global\GPT at pagecolorfalse
 }
+\def\@tempa{LaTeX2e}%
+\ifx\fmtname\@tempa
+  \expandafter\@firstofone
+\else
+  \expandafter\@gobble
+\fi
+ {%
+ \@ifl at t@r\fmtversion{2020/10/01}
+  {%
+    \def\set at page@color{%
+     \global\GPT at pagecolortrue
+     \global\let\current at page@color\current at color
+    }%
+    \g at addto@macro\@kernel at before@shipout at background
+     {%
+      \ifGPT at pagecolor
+        \put(-\hoffset,-\pageheight+\voffset)%
+          {%
+            \pdfextension colorstack\@pdfcolorstack push{\current at page@color}%
+            \aftergroup\reset at color
+            \rule{\pagewidth}{\pageheight}%
+          }%
+      \fi
+     }%
+  }%
+ }
 \AtBeginDocument{%
   \def\KV at Gin@bbllx{%
     \PackageError{luatex.def}{%
@@ -141,10 +169,41 @@
   \let\KV at Gin@natheight\KV at Gin@bbllx
   \def\KV at Gin@bb{%
     \PackageInfo{luatex.def}%
-      {Option `bb' equivalent to `viewport' for luatex driver}%
+      {Option `bb' equivalent to `viewport' with the luatex driver}%
     \KV at Gin@viewport
   }%
+  \let\Gin at iii\Gin at iii@vp
 }
+
+%%% this definition will be added to graphics.sty
+\def\Gin at iii@vp[#1,#2][#3,#4]#5{%
+  \begingroup
+  \let\Gin at viewport@code\Gin at viewport
+  \Gin at defaultbp\Gin at vllx{#1}%
+  \Gin at defaultbp\Gin at vlly{#2}%
+  \Gin at defaultbp\Gin at vurx{#3}%
+  \Gin at defaultbp\Gin at vury{#4}%
+  \Ginclude at graphics{#5}%
+  \endgroup}
+
+
+%%% this definition needs moving from graphicx.sty to graphics.sty
+\def\Gin at viewport{%
+  \let\Gin at ollx\Gin at llx
+  \let\Gin at olly\Gin at lly
+  \let\Gin at ourx\Gin at urx
+  \let\Gin at oury\Gin at ury
+  \dimen@\Gin at llx\p@\advance\dimen@ \Gin at vurx\p@
+                      \edef\Gin at urx{\strip at pt\dimen@}%
+  \dimen@\Gin at lly\p@\advance\dimen@ \Gin at vury\p@
+                      \edef\Gin at ury{\strip at pt\dimen@}%
+  \dimen@\Gin at llx\p@\advance\dimen@ \Gin at vllx\p@
+                      \edef\Gin at llx{\strip at pt\dimen@}%
+  \dimen@\Gin at lly\p@\advance\dimen@ \Gin at vlly\p@
+                      \edef\Gin at lly{\strip at pt\dimen@}}
+%%% end of temp addition
+
+
 \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.

Modified: trunk/Master/texmf-dist/tex/latex/graphics-def/pdftex.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/graphics-def/pdftex.def	2020-09-01 21:04:17 UTC (rev 56234)
+++ trunk/Master/texmf-dist/tex/latex/graphics-def/pdftex.def	2020-09-01 21:34:25 UTC (rev 56235)
@@ -1,7 +1,9 @@
-%% pdftex.def Copyright (C) 2000-2015 David Carlisle, Sebastian Rahtz,
-%%                                    Hans Hagen, Heiko Oberdiek and
-%%                                    Martin Schr\"oder
-%%            Copyright (C) 2016-2018 LaTeX3 project and Heiko Oberdiek
+%% pdftex.def
+%% Copyright (C) 2000-2015 David Carlisle, Sebastian Rahtz,
+%%                         Hans Hagen, Heiko Oberdiek and
+%%                         Martin Schr\"oder
+%% Copyright (C) 2016-2018 LaTeX3 project and Heiko Oberdiek
+%% Copyright (C) 2018-2020 LaTeX3 project
 %%
 %% This work may be distributed and/or modified under the
 %% conditions of the LaTeX Project Public License, either version 1.3c
@@ -18,7 +20,7 @@
 %% https://github.com/latex3/graphics-def/issues
 %%
 \ProvidesFile{pdftex.def}
-  [2018/01/08 v1.0l Graphics/color driver for pdftex]
+  [2020/08/26 v1.2 Graphics/color driver for pdftex]
 \def\GPT at space{ }
 \def\c at lor@arg#1{%
   \dimen@#1\p@
@@ -139,6 +141,33 @@
 \def\no at page@color{%
   \global\GPT at pagecolorfalse
 }
+
+\def\@tempa{LaTeX2e}%
+\ifx\fmtname\@tempa
+  \expandafter\@firstofone
+\else
+  \expandafter\@gobble
+\fi
+ {%
+ \@ifl at t@r\fmtversion{2020/10/01}
+  {%
+    \def\set at page@color{%
+     \global\GPT at pagecolortrue
+     \global\let\current at page@color\current at color
+    }%
+    \g at addto@macro\@kernel at before@shipout at background
+     {%
+      \ifGPT at pagecolor
+        \put(-\hoffset,-\pdfpageheight+\voffset)%
+          {%
+           \pdfcolorstack\@pdfcolorstack push{\current at page@color}%
+            \aftergroup\reset at color
+            \rule{\pdfpagewidth}{\pdfpageheight}%
+          }%
+      \fi
+     }%
+  }%
+ }
 \AtBeginDocument{%
   \def\KV at Gin@bbllx{%
     \PackageError{pdftex.def}{%
@@ -155,10 +184,41 @@
   \let\KV at Gin@natheight\KV at Gin@bbllx
   \def\KV at Gin@bb{%
     \PackageInfo{pdftex.def}%
-      {Option `bb' equivalent to `viewport' with pdftex driver}%
+      {Option `bb' equivalent to `viewport' with the pdftex driver}%
     \KV at Gin@viewport
   }%
+  \let\Gin at iii\Gin at iii@vp
 }
+
+%%% this definition will be added to graphics.sty
+\def\Gin at iii@vp[#1,#2][#3,#4]#5{%
+  \begingroup
+  \let\Gin at viewport@code\Gin at viewport
+  \Gin at defaultbp\Gin at vllx{#1}%
+  \Gin at defaultbp\Gin at vlly{#2}%
+  \Gin at defaultbp\Gin at vurx{#3}%
+  \Gin at defaultbp\Gin at vury{#4}%
+  \Ginclude at graphics{#5}%
+  \endgroup}
+
+
+%%% this definition needs moving from graphicx.sty to graphics.sty
+\def\Gin at viewport{%
+  \let\Gin at ollx\Gin at llx
+  \let\Gin at olly\Gin at lly
+  \let\Gin at ourx\Gin at urx
+  \let\Gin at oury\Gin at ury
+  \dimen@\Gin at llx\p@\advance\dimen@ \Gin at vurx\p@
+                      \edef\Gin at urx{\strip at pt\dimen@}%
+  \dimen@\Gin at lly\p@\advance\dimen@ \Gin at vury\p@
+                      \edef\Gin at ury{\strip at pt\dimen@}%
+  \dimen@\Gin at llx\p@\advance\dimen@ \Gin at vllx\p@
+                      \edef\Gin at llx{\strip at pt\dimen@}%
+  \dimen@\Gin at lly\p@\advance\dimen@ \Gin at vlly\p@
+                      \edef\Gin at lly{\strip at pt\dimen@}}
+%%% end of temp addition
+
+
 \def\Gread at pdftex#1{%
   \expandafter\ifx\expandafter\relax\pdffilesize{#1}\relax
     \expandafter\@secondoftwo

Modified: trunk/Master/texmf-dist/tex/latex/graphics-def/xetex.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/graphics-def/xetex.def	2020-09-01 21:04:17 UTC (rev 56234)
+++ trunk/Master/texmf-dist/tex/latex/graphics-def/xetex.def	2020-09-01 21:34:25 UTC (rev 56235)
@@ -1,5 +1,6 @@
-%% xetex.def Copyright (C) 2005-2017 LaTeX3 Project, Jin-Hwan Cho, Shunsaku Hirata
-%%                                      (with contributions from many others)
+%% xetex.def
+%% Copyright (C) 2005-2020 LaTeX3 Project, Jin-Hwan Cho, Shunsaku Hirata
+%%                         (with contributions from many others)
 %%
 %% This work may be distributed and/or modified under the
 %% conditions of the LaTeX Project Public License, either version 1.3c
@@ -16,7 +17,7 @@
 %% https://github.com/latex3/graphics-def/issues
 %%
 \ProvidesFile{xetex.def}
-  [2017/06/24 v5.0h Graphics/color driver for xetex]
+  [2020/08/26 v5.0i Graphics/color driver for xetex]
 \def\GPT at space{ }
 \def\c at lor@arg#1{%
   \dimen@#1\p@
@@ -83,7 +84,8 @@
         background \current at color}}
 \def\define at color@named#1#2{%
   \expandafter\let\csname col@#1\endcsname\@nnil}
-      \def\no at page@color{\special{background \string"newpath clip}}
+% white is special cased as "no bacground color" by dvipdfmx
+\def\no at page@color{\special{background gray 1}}
 \@ifundefined{Gin at decode}
   {\let\Gin at decode\@empty}
   {}



More information about the tex-live-commits mailing list.