texlive[58539] Master/texmf-dist: graphics-def (19mar21)

commits+karl at tug.org commits+karl at tug.org
Fri Mar 19 22:27:27 CET 2021


Revision: 58539
          http://tug.org/svn/texlive?view=revision&revision=58539
Author:   karl
Date:     2021-03-19 22:27:27 +0100 (Fri, 19 Mar 2021)
Log Message:
-----------
graphics-def (19mar21)

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/xetex.def

Modified: trunk/Master/texmf-dist/doc/latex/graphics-def/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/graphics-def/README.md	2021-03-19 21:27:11 UTC (rev 58538)
+++ trunk/Master/texmf-dist/doc/latex/graphics-def/README.md	2021-03-19 21:27:27 UTC (rev 58539)
@@ -1,7 +1,7 @@
 LaTeX support for color and graphics
 ====================================
 
-Release 2021-02-26
+Release 2021-03-18
 
 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	2021-03-19 21:27:11 UTC (rev 58538)
+++ trunk/Master/texmf-dist/tex/latex/graphics-def/dvipdfmx.def	2021-03-19 21:27:27 UTC (rev 58539)
@@ -17,7 +17,7 @@
 %% https://github.com/latex3/graphics-def/issues
 %%
 \ProvidesFile{dvipdfmx.def}
-  [2021/03/02 v5.0i Graphics/color driver for dvipdfmx]
+  [2021/03/18 v5.0j Graphics/color driver for dvipdfmx]
 \def\GPT at space{ }
 \def\c at lor@arg#1{%
   \dimen@#1\p@
@@ -260,8 +260,7 @@
 \def\Gin at extensions{% order here is like xetex.def, except for PS
   .pdf,.PDF,.ai,.AI,%
   .png,.PNG,.jpg,.JPG,.jpeg,.JPEG,.jp2,.JP2,.jpf,.JPF,.bmp,.BMP,%
-  .ps,.PS,.eps,.EPS,.mps,.MPS,%
-  .pz,.eps.Z,.ps.Z,.ps.gz,.eps.gz}
+  .ps,.PS,.eps,.EPS,.mps,.MPS}
 %
 \@namedef{Gin at rule@.pdf}#1{{pdf}{.xbb}{#1}}
 \@namedef{Gin at rule@.PDF}#1{{pdf}{.xbb}{#1}}
@@ -301,12 +300,6 @@
 %
 \@namedef{Gin at rule@.mps}#1{{mps}{.mps}{#1}}
 \@namedef{Gin at rule@.MPS}#1{{mps}{.mps}{#1}}
-% (don't bother with uppercase versions for these Unixish extensions)
-\@namedef{Gin at rule@.pz}#1{{eps}{.xbb}{`gunzip -c #1}}
-\@namedef{Gin at rule@.eps.Z}#1{{eps}{.eps.xbb}{`gunzip -c #1}}
-\@namedef{Gin at rule@.ps.Z}#1{{eps}{.ps.xbb}{`gunzip -c #1}}
-\@namedef{Gin at rule@.ps.gz}#1{{eps}{.ps.xbb}{`gunzip -c #1}}
-\@namedef{Gin at rule@.eps.gz}#1{{eps}{.eps.xbb}{`gunzip -c #1}}
 %
 \@namedef{Gin at rule@*}#1{{eps}{\Gin at ext}{#1}}
 \@ifundefined{ifGin at setpagesize}
@@ -336,6 +329,8 @@
 }
 \fi
 \fi
+% Disable use of new multiple stacks pending further testing
+\endinput
 % Updates for newer dvipdfmx versions
 % Loaded last as we can then bail-out if not required
 \begingroup
@@ -409,3 +404,24 @@
 \def\reset at color{%
   \special{pdfcolorstack \@pdfcolorstack pop}%
 }
+% Reinsert stack color to over-ride built-in reinsertion of pdf:bc color
+\def\Grot at end{\special{pdf:etrans}\special{pdfcolorstack \@pdfcolorstack current}}
+\let\Gscale at end\Grot at end
+\def\GPT at clipbox#1{%
+  \setbox#1=\hbox{%
+    \Gin at defaultbp\WIDTH{\wd#1}%
+    \Gin at defaultbp\DEPTH{\dp#1}%
+    \@tempdima\ht#1%
+    \advance\@tempdima\dp#1%
+    \Gin at defaultbp\TOTALHEIGHT{\@tempdima}%
+    \special{x:gsave}%
+    \special{%
+      pdf:literal
+      0 -\DEPTH\GPT at space \WIDTH\GPT at space \TOTALHEIGHT\GPT at space re  W n
+    }%
+    \rlap{\box#1}%
+    \special{x:grestore}%
+    \special{pdfcolorstack \@pdfcolorstack current}%
+    \hskip\wd#1%
+  }%
+}

Modified: trunk/Master/texmf-dist/tex/latex/graphics-def/xetex.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/graphics-def/xetex.def	2021-03-19 21:27:11 UTC (rev 58538)
+++ trunk/Master/texmf-dist/tex/latex/graphics-def/xetex.def	2021-03-19 21:27:27 UTC (rev 58539)
@@ -17,7 +17,7 @@
 %% https://github.com/latex3/graphics-def/issues
 %%
 \ProvidesFile{xetex.def}
-  [2021/03/02 v5.0j Graphics/color driver for xetex]
+  [2021/03/18 v5.0k Graphics/color driver for xetex]
 \def\GPT at space{ }
 \def\c at lor@arg#1{%
   \dimen@#1\p@
@@ -84,7 +84,7 @@
         background \current at color}}
 \def\define at color@named#1#2{%
   \expandafter\let\csname col@#1\endcsname\@nnil}
-% white is special cased as "no bacground color" by dvipdfmx
+% 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}
@@ -354,8 +354,7 @@
 \def\Gin at extensions{% order here is like pdftex.def, except for PS
   .pdf,.PDF,.ai,.AI,%
   .png,.PNG,.jpg,.JPG,.jpeg,.JPEG,.jp2,.JP2,.jpf,.JPF,.bmp,.BMP,%
-  .ps,.PS,.eps,.EPS,.mps,.MPS,%
-  .pz,.eps.Z,.ps.Z,.ps.gz,.eps.gz}
+  .ps,.PS,.eps,.EPS,.mps,.MPS}
 %
 \@namedef{Gin at rule@.pdf}#1{{pdf}{.xbb}{#1}}
 \@namedef{Gin at rule@.PDF}#1{{pdf}{.xbb}{#1}}
@@ -395,12 +394,6 @@
 %
 \@namedef{Gin at rule@.mps}#1{{mps}{.mps}{#1}}
 \@namedef{Gin at rule@.MPS}#1{{mps}{.mps}{#1}}
-% (don't bother with uppercase versions for these Unixish extensions)
-\@namedef{Gin at rule@.pz}#1{{eps}{.xbb}{`gunzip -c #1}}
-\@namedef{Gin at rule@.eps.Z}#1{{eps}{.eps.xbb}{`gunzip -c #1}}
-\@namedef{Gin at rule@.ps.Z}#1{{eps}{.ps.xbb}{`gunzip -c #1}}
-\@namedef{Gin at rule@.ps.gz}#1{{eps}{.ps.xbb}{`gunzip -c #1}}
-\@namedef{Gin at rule@.eps.gz}#1{{eps}{.eps.xbb}{`gunzip -c #1}}
 %
 \@namedef{Gin at rule@*}#1{{eps}{\Gin at ext}{#1}}
 \@ifundefined{ifGin at setpagesize}
@@ -435,6 +428,8 @@
 }
 \fi
 \fi
+% Disable use of new multiple stacks pending further testing
+\endinput
 % Updates for newer dvipdfmx versions
 % Loaded last as we can then bail-out if not required
 \begingroup
@@ -508,3 +503,24 @@
 \def\reset at color{%
   \special{pdfcolorstack \@pdfcolorstack pop}%
 }
+% Reinsert stack color to over-ride built-in reinsertion of pdf:bc color
+\def\Grot at end{\special{pdf:etrans}\special{pdfcolorstack \@pdfcolorstack current}}
+\let\Gscale at end\Grot at end
+\def\GPT at clipbox#1{%
+  \setbox#1=\hbox{%
+    \Gin at defaultbp\WIDTH{\wd#1}%
+    \Gin at defaultbp\DEPTH{\dp#1}%
+    \@tempdima\ht#1%
+    \advance\@tempdima\dp#1%
+    \Gin at defaultbp\TOTALHEIGHT{\@tempdima}%
+    \special{x:gsave}%
+    \special{%
+      pdf:literal
+      0 -\DEPTH\GPT at space \WIDTH\GPT at space \TOTALHEIGHT\GPT at space re  W n
+    }%
+    \rlap{\box#1}%
+    \special{x:grestore}%
+    \special{pdfcolorstack \@pdfcolorstack current}%
+    \hskip\wd#1%
+  }%
+}



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