texlive[64487] Master/texmf-dist: graphics-def (23sep22)

commits+karl at tug.org commits+karl at tug.org
Fri Sep 23 22:43:44 CEST 2022


Revision: 64487
          http://tug.org/svn/texlive?view=revision&revision=64487
Author:   karl
Date:     2022-09-23 22:43:44 +0200 (Fri, 23 Sep 2022)
Log Message:
-----------
graphics-def (23sep22)

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/dvips.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

Modified: trunk/Master/texmf-dist/doc/latex/graphics-def/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/graphics-def/README.md	2022-09-23 20:43:28 UTC (rev 64486)
+++ trunk/Master/texmf-dist/doc/latex/graphics-def/README.md	2022-09-23 20:43:44 UTC (rev 64487)
@@ -1,7 +1,7 @@
 LaTeX support for color and graphics
 ====================================
 
-Release 2022-04-16
+Release 2022-09-22
 
 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	2022-09-23 20:43:28 UTC (rev 64486)
+++ trunk/Master/texmf-dist/tex/latex/graphics-def/dvipdfmx.def	2022-09-23 20:43:44 UTC (rev 64487)
@@ -17,7 +17,7 @@
 %% https://github.com/latex3/graphics-def/issues
 %%
 \ProvidesFile{dvipdfmx.def}
-  [2022/04/16 v5.0l Graphics/color driver for dvipdfmx]
+  [2022/09/22 v5.0m Graphics/color driver for dvipdfmx]
 \def\GPT at space{ }
 \def\c at lor@arg#1{%
   \dimen@#1\p@
@@ -306,6 +306,8 @@
 {\expandafter\let\csname ifGin at setpagesize\expandafter\endcsname
 \csname iftrue\endcsname}
 {}
+\@ifundefined{stockwidth}{\newdimen\stockwidth}{}
+\@ifundefined{stockheight}{\newdimen\stockheight}{}
 \ifGin at setpagesize
 \ifx\paperwidth\@undefined\else
 \AtBeginDocument{%
@@ -314,16 +316,25 @@
 \ifnum\mag=\@m
 \AtBeginDvi{%
 \begingroup
-  \@ifundefined{stockwidth}{}
-    {%
-      \paperwidth\stockwidth
-      \paperheight\stockheight
-    }%
-\ifdim\paperwidth>\z@
-\ifdim\paperheight>\z@
-\special{pdf:pagesize width \the\paperwidth\GPT at space height \the\paperheight}%
-\fi
-\fi
+  \ifdim\stockwidth>\z@
+    \ifdim\stockheight>\z@
+      \special{papersize=\the\stockwidth,\the\stockheight}%
+    \else
+      \ifdim\paperwidth>\z@
+        \ifdim\paperheight>\z@
+          \special{papersize=\the\paperwidth,\the\paperheight}%
+        \fi
+      \fi
+    \fi
+  \else
+    \ifdim\stockwidth=\z@
+      \ifdim\paperwidth>\z@
+        \ifdim\paperheight>\z@
+          \special{papersize=\the\paperwidth,\the\paperheight}%
+        \fi
+      \fi
+    \fi
+  \fi
 \endgroup}%
 \fi
 }

Modified: trunk/Master/texmf-dist/tex/latex/graphics-def/dvips.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/graphics-def/dvips.def	2022-09-23 20:43:28 UTC (rev 64486)
+++ trunk/Master/texmf-dist/tex/latex/graphics-def/dvips.def	2022-09-23 20:43:44 UTC (rev 64487)
@@ -1,6 +1,6 @@
 %% dvips.def Copyright (C) 1994      David Carlisle Sebastian Rahtz
 %%           Copyright (C) 1995-1999 David Carlisle
-%%           Copyright (C) 2000-2017 David Carlisle, LaTeX3 Project
+%%           Copyright (C) 2000-2022 David Carlisle, LaTeX3 Project
 %%
 %% This work may be distributed and/or modified under the
 %% conditions of the LaTeX Project Public License, either version 1.3c
@@ -17,7 +17,7 @@
 %% https://github.com/latex3/graphics-def/issues
 %%
 \ProvidesFile{dvips.def}
-  [2017/06/20 v3.1d Graphics/color driver for dvips]
+  [2022/09/22 v3.1e Graphics/color driver for dvips]
 \def\GPT at space{ }
 \def\c at lor@arg#1{%
   \dimen@#1\p@
@@ -146,24 +146,35 @@
   {\expandafter\let\csname ifGin at setpagesize\expandafter\endcsname
                     \csname iftrue\endcsname}
   {}
+\@ifundefined{stockwidth}{\newdimen\stockwidth}{}
+\@ifundefined{stockheight}{\newdimen\stockheight}{}
 \ifGin at setpagesize
 \ifx\paperwidth\@undefined\else
   \AtBeginDocument{%
 % If a package has changed \mag, assume it knows what it is doing
 % and leave page size alone
-\ifnum\mag=\@m
+ \ifnum\mag=\@m
   \AtBeginDvi{%
     \begingroup
-      \@ifundefined{stockwidth}{}
-        {%
-          \paperwidth\stockwidth
-          \paperheight\stockheight
-        }%
-    \ifdim\paperwidth>\z@
-      \ifdim\paperheight>\z@
-        \special{papersize=\the\paperwidth,\the\paperheight}%
+      \ifdim\stockwidth>\z@
+        \ifdim\stockheight>\z@
+          \special{papersize=\the\stockwidth,\the\stockheight}%
+        \else
+          \ifdim\paperwidth>\z@
+            \ifdim\paperheight>\z@
+              \special{papersize=\the\paperwidth,\the\paperheight}%
+            \fi
+          \fi
+        \fi
+      \else
+        \ifdim\stockwidth=\z@
+          \ifdim\paperwidth>\z@
+            \ifdim\paperheight>\z@
+              \special{papersize=\the\paperwidth,\the\paperheight}%
+            \fi
+          \fi
+        \fi
       \fi
-    \fi
     \endgroup}%
     \fi
     }

Modified: trunk/Master/texmf-dist/tex/latex/graphics-def/dvisvgm.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/graphics-def/dvisvgm.def	2022-09-23 20:43:28 UTC (rev 64486)
+++ trunk/Master/texmf-dist/tex/latex/graphics-def/dvisvgm.def	2022-09-23 20:43:44 UTC (rev 64487)
@@ -16,7 +16,7 @@
 %%
 %% https://github.com/latex3/graphics-def/issues
 %
-\ProvidesFile{dvisvgm.def}[2022/02/19 v1.5 dvisvgm graphics driver for latex]
+\ProvidesFile{dvisvgm.def}[2022/09/22 v1.6 dvisvgm graphics driver for latex]
 % The following is copied from dvips.def:
 \def\GPT at space{ }
 \def\c at lor@arg#1{%
@@ -78,7 +78,7 @@
 \def\current at color{ Black}
 \def\set at color{\special{color push  \current at color}\aftergroup\reset at color}
 \def\reset at color{\special{color pop}}
-\def\set at page@color{\special{bgcolor \current at color}}
+\def\set at page@color{\special{background  \current at color}}
 \def\define at color@named#1#2{\expandafter\let\csname col@#1\endcsname\@nnil}
 \def\Grot at start{%
   \special{ps: gsave currentpoint currentpoint translate \Grot at angle\GPT at space neg rotate neg exch neg exch translate}%
@@ -254,4 +254,3 @@
 \endinput
 %%
 %% End of file `dvisvgm.def'.
-

Modified: trunk/Master/texmf-dist/tex/latex/graphics-def/luatex.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/graphics-def/luatex.def	2022-09-23 20:43:28 UTC (rev 64486)
+++ trunk/Master/texmf-dist/tex/latex/graphics-def/luatex.def	2022-09-23 20:43:44 UTC (rev 64487)
@@ -3,7 +3,7 @@
 %%                         Hans Hagen, Heiko Oberdiek and
 %%                         Martin Schr\"oder
 %% Copyright (C) 2016-2018 LaTeX3 project and Heiko Oberdiek
-%% Copyright (C) 2018-2020 LaTeX3 project
+%% Copyright (C) 2018-2022 LaTeX3 project
 %%
 %% This work may be distributed and/or modified under the
 %% conditions of the LaTeX Project Public License, either version 1.3c
@@ -20,7 +20,7 @@
 %% https://github.com/latex3/graphics-def/issues
 %%
 \ProvidesFile{luatex.def}
-  [2021/06/01 v1.2c Graphics/color driver for luatex]
+  [2022/09/22 v1.2d Graphics/color driver for luatex]
 \def\GPT at space{ }
 \def\c at lor@arg#1{%
   \dimen@#1\p@
@@ -563,10 +563,26 @@
 }{%
   \ifdim\stockwidth>0pt\relax
     \ifdim\stockheight>0pt\relax
-      \pagewidth=\stockwidth
-      \pageheight=\stockheight
+       \setlength{\pagewidth}{\stockwidth}%
+       \setlength{\pageheight}{\stockheight}%
+    \else
+      \ifdim\paperwidth>0pt\relax
+        \ifdim\paperheight>0pt\relax
+          \setlength{\pagewidth}{\paperwidth}%
+          \setlength{\pageheight}{\paperheight}%
+        \fi
+      \fi
     \fi
-  \fi
+   \else
+    \ifdim\stockwidth=0pt\relax
+      \ifdim\paperwidth>0pt\relax
+        \ifdim\paperheight>0pt\relax
+          \setlength{\pagewidth}{\paperwidth}%
+          \setlength{\pageheight}{\paperheight}%
+        \fi
+      \fi
+    \fi
+   \fi
 }%
 \fi
 }

Modified: trunk/Master/texmf-dist/tex/latex/graphics-def/pdftex.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/graphics-def/pdftex.def	2022-09-23 20:43:28 UTC (rev 64486)
+++ trunk/Master/texmf-dist/tex/latex/graphics-def/pdftex.def	2022-09-23 20:43:44 UTC (rev 64487)
@@ -3,7 +3,7 @@
 %%                         Hans Hagen, Heiko Oberdiek and
 %%                         Martin Schr\"oder
 %% Copyright (C) 2016-2018 LaTeX3 project and Heiko Oberdiek
-%% Copyright (C) 2018-2020 LaTeX3 project
+%% Copyright (C) 2018-2022 LaTeX3 project
 %%
 %% This work may be distributed and/or modified under the
 %% conditions of the LaTeX Project Public License, either version 1.3c
@@ -20,7 +20,7 @@
 %% https://github.com/latex3/graphics-def/issues
 %%
 \ProvidesFile{pdftex.def}
-  [2020/10/05 v1.2a Graphics/color driver for pdftex]
+  [2022/09/22 v1.2b Graphics/color driver for pdftex]
 \def\GPT at space{ }
 \def\c at lor@arg#1{%
   \dimen@#1\p@
@@ -555,6 +555,8 @@
   {\expandafter\let\csname ifGin at setpagesize\expandafter\endcsname
                     \csname iftrue\endcsname}
   {}
+\@ifundefined{stockwidth}{\newdimen\stockwidth}{}
+\@ifundefined{stockheight}{\newdimen\stockheight}{}
 \ifGin at setpagesize
 \ifx\paperwidth\@undefined\else
   \AtBeginDocument{%
@@ -561,24 +563,28 @@
 % If a package has changed \mag, assume it knows what it is doing
 % and leave page size alone
 \ifnum\mag=\@m
-  \@ifundefined{stockwidth}{%
-  \@ifundefined{paperwidth}{%
-  }{%
-    \ifdim\paperwidth>0pt\relax
-      \ifdim\paperheight>0pt\relax
-        \pdfpagewidth=\paperwidth
-        \pdfpageheight=\paperheight
-      \fi
-    \fi
-  }%
-}{%
   \ifdim\stockwidth>0pt\relax
     \ifdim\stockheight>0pt\relax
-      \pdfpagewidth=\stockwidth
-      \pdfpageheight=\stockheight
+      \setlength{\pdfpagewidth}{\stockwidth}%
+      \setlength{\pdfpageheight}{\stockheight}%
+    \else
+      \ifdim\paperwidth>0pt\relax
+        \ifdim\paperheight>0pt\relax
+          \setlength{\pdfpagewidth}{\paperwidth}%
+          \setlength{\pdfpageheight}{\paperheight}%
+        \fi
+      \fi
     \fi
+  \else
+    \ifdim\stockwidth=0pt\relax
+      \ifdim\paperwidth>0pt\relax
+        \ifdim\paperheight>0pt\relax
+          \setlength{\pdfpagewidth}{\paperwidth}%
+          \setlength{\pdfpageheight}{\paperheight}%
+        \fi
+      \fi
+    \fi
   \fi
-}%
 \fi
 }
 \fi

Modified: trunk/Master/texmf-dist/tex/latex/graphics-def/xetex.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/graphics-def/xetex.def	2022-09-23 20:43:28 UTC (rev 64486)
+++ trunk/Master/texmf-dist/tex/latex/graphics-def/xetex.def	2022-09-23 20:43:44 UTC (rev 64487)
@@ -17,7 +17,7 @@
 %% https://github.com/latex3/graphics-def/issues
 %%
 \ProvidesFile{xetex.def}
-  [2022/04/16 v5.0m Graphics/color driver for xetex]
+  [2022/09/22 v5.0n Graphics/color driver for xetex]
 \def\GPT at space{ }
 \def\c at lor@arg#1{%
   \dimen@#1\p@
@@ -400,6 +400,8 @@
 {\expandafter\let\csname ifGin at setpagesize\expandafter\endcsname
 \csname iftrue\endcsname}
 {}
+\@ifundefined{stockwidth}{\newdimen\stockwidth}{}
+\@ifundefined{stockheight}{\newdimen\stockheight}{}
 \ifGin at setpagesize
 \ifx\paperwidth\@undefined\else
 \AtBeginDocument{%
@@ -406,25 +408,29 @@
 % If a package has changed \mag, assume it knows what it is doing
 % and leave page size alone
 \ifnum\mag=\@m
-\@ifundefined{stockwidth}{%
-\@ifundefined{paperwidth}{%
-}{%
-\ifdim\paperwidth>0pt\relax
-\ifdim\paperheight>0pt\relax
-\pdfpagewidth=\paperwidth
-\pdfpageheight=\paperheight
+  \ifdim\stockwidth>0pt\relax
+    \ifdim\stockheight>0pt\relax
+      \setlength{\pdfpagewidth}{\stockwidth}%
+      \setlength{\pdfpageheight}{\stockheight}%
+    \else
+      \ifdim\paperwidth>0pt\relax
+        \ifdim\paperheight>0pt\relax
+           \setlength{\pdfpagewidth}{\paperwidth}%
+           \setlength{\pdfpageheight}{\paperheight}%
+        \fi
+      \fi
+    \fi
+  \else
+    \ifdim\stockwidth=0pt\relax
+      \ifdim\paperwidth>0pt\relax
+        \ifdim\paperheight>0pt\relax
+          \setlength{\pdfpagewidth}{\paperwidth}%
+          \setlength{\pdfpageheight}{\paperheight}%
+        \fi
+      \fi
+    \fi
+  \fi
 \fi
-\fi
-}%
-}{%
-\ifdim\stockwidth>0pt\relax
-\ifdim\stockheight>0pt\relax
-\pdfpagewidth=\stockwidth
-\pdfpageheight=\stockheight
-\fi
-\fi
-}%
-\fi
 }
 \fi
 \fi



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