texlive[52635] Master/texmf-dist: pgf-cmykshadings (4nov19)

commits+karl at tug.org commits+karl at tug.org
Mon Nov 4 23:15:42 CET 2019


Revision: 52635
          http://tug.org/svn/texlive?view=revision&revision=52635
Author:   karl
Date:     2019-11-04 23:15:41 +0100 (Mon, 04 Nov 2019)
Log Message:
-----------
pgf-cmykshadings (4nov19)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/pgf-cmykshadings/README.md
    trunk/Master/texmf-dist/doc/latex/pgf-cmykshadings/pgf-cmykshadings.pdf
    trunk/Master/texmf-dist/source/latex/pgf-cmykshadings/pgf-cmykshadings.dtx
    trunk/Master/texmf-dist/source/latex/pgf-cmykshadings/pgf-cmykshadings.ins
    trunk/Master/texmf-dist/tex/latex/pgf-cmykshadings/pgf-cmykshadings.sty
    trunk/Master/texmf-dist/tex/latex/pgf-cmykshadings/pgfsys-cmykshadings-common-postscript.def
    trunk/Master/texmf-dist/tex/latex/pgf-cmykshadings/pgfsys-cmykshadings-dvipdfm.def
    trunk/Master/texmf-dist/tex/latex/pgf-cmykshadings/pgfsys-cmykshadings-dvipdfmx.def
    trunk/Master/texmf-dist/tex/latex/pgf-cmykshadings/pgfsys-cmykshadings-dvips.def
    trunk/Master/texmf-dist/tex/latex/pgf-cmykshadings/pgfsys-cmykshadings-luatex.def
    trunk/Master/texmf-dist/tex/latex/pgf-cmykshadings/pgfsys-cmykshadings-pdftex.def
    trunk/Master/texmf-dist/tex/latex/pgf-cmykshadings/pgfsys-cmykshadings-textures.def
    trunk/Master/texmf-dist/tex/latex/pgf-cmykshadings/pgfsys-cmykshadings-vtex.def
    trunk/Master/texmf-dist/tex/latex/pgf-cmykshadings/pgfsys-cmykshadings-xetex.def

Modified: trunk/Master/texmf-dist/doc/latex/pgf-cmykshadings/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/pgf-cmykshadings/README.md	2019-11-04 17:43:40 UTC (rev 52634)
+++ trunk/Master/texmf-dist/doc/latex/pgf-cmykshadings/README.md	2019-11-04 22:15:41 UTC (rev 52635)
@@ -1,5 +1,10 @@
 # pgf-cmykshadings — Support for CMYK and grayscale shadings in PGF/TikZ
 
+> **Note: This package is now deprecated. Support for CMYK and grayscale
+> shadings was added to `pgf` in version 3.1.3. Attempting to load it with
+> recent versions of `pgf` only changes the default shading colour model with
+> the `xcolor` `natural` colour model to CMYK.**
+
 The `pgf-cmykshadings` package provides support for CMYK and grayscale shadings
 for the `pgf` package. By default `pgf` only supports RGB shadings.
 `pgf-cmykshadings` attempts to produce shadings consistent with the currently
@@ -58,7 +63,7 @@
 ## Licence
 
 ```
-Copyright (c) 2018 David Purton <dcpurton at marshwiggle.net>
+Copyright (c) 2018-2019 David Purton <dcpurton at marshwiggle.net>
 
 This work may be distributed and/or modified under the conditions of
 the LaTeX Project Public License, either version 1.3c of this license

Modified: trunk/Master/texmf-dist/doc/latex/pgf-cmykshadings/pgf-cmykshadings.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/source/latex/pgf-cmykshadings/pgf-cmykshadings.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/pgf-cmykshadings/pgf-cmykshadings.dtx	2019-11-04 17:43:40 UTC (rev 52634)
+++ trunk/Master/texmf-dist/source/latex/pgf-cmykshadings/pgf-cmykshadings.dtx	2019-11-04 22:15:41 UTC (rev 52635)
@@ -1,6 +1,6 @@
 % \iffalse meta-comment
 %
-%Copyright (c) 2018 David Purton <dcpurton at marshwiggle.net>
+%Copyright (c) 2018-2019 David Purton <dcpurton at marshwiggle.net>
 %
 %This work may be distributed and/or modified under the conditions of
 %the LaTeX Project Public License, either version 1.3c of this license
@@ -24,14 +24,21 @@
 % \fi
 %
 % \changes{v1.0}{2018/10/17}{First public release}
+% \changes{v1.2}{2019/11/05}{Deprecate package}
 %
 % \title{The \pkg{pgf-cmykshadings} package}
 % \author{David Purton\thanks{Email: \url{dcpurton at marshwiggle.net}}}
-% \date{2018/10/24 v1.1a}
+% \date{2019/11/05 v1.2}
 %
 % \maketitle
 %
 % \begin{abstract}
+%   \textbf{Note: This package is now deprecated. Support for CMYK and grayscale
+%   shadings was added to \pkg{pgf} in version 3.1.3. Attempting to load it with
+%   recent versions of \pkg{pgf} only changes the default shading colour model
+%   with the \pkg{xcolor} |natural| colour model to CMYK. This documentation
+%   applies to versions of \pkg{pgf} prior to 3.1.3.}\medskip
+%
 %   The \pkg{pgf-cmykshadings} package provides support for CMYK and grayscale
 %   shadings for the \pkg{pgf} package. By default \pkg{pgf} only supports RGB
 %   shadings. \pkg{pgf-cmykshadings} attempts to produce shadings consistent
@@ -134,7 +141,7 @@
 %
 % \subsubsection{Package options}
 %
-% \pkg{pgd-cmykshadings} supports the following package options:
+% \pkg{pgf-cmykshadings} supports the following package options:
 %
 % \begin{description}
 %   \item[\mdseries |cmyk|] (default) to use CMYK shadings when the \pkg{xcolor}
@@ -561,7 +568,7 @@
 %
 %    \begin{macrocode}
 \ProvidesPackage{pgf-cmykshadings}%
-  [2018/10/24
+  [2019/11/05
    CMYK and grayscale shadings support for PGF (DCP)]
 %    \end{macrocode}
 %
@@ -569,6 +576,74 @@
 \RequirePackage{pgf}
 %    \end{macrocode}
 %
+% Set colour model to CMYK by default if version of \pkg{pgf} is at least
+% 3.1.3 then |\endinput|.
+%
+%    \begin{macrocode}
+\@ifpackagelater{pgf}{2019/05/14}{%
+  \PackageWarning{pgf-cmykshadings}{%
+    Package `pgf-cmykshadings' is now deprecated.}%
+  \newif\ifpgfcmykshadingdefault
+  \DeclareOption{cmyk}{%
+    \pgfcmykshadingdefaulttrue
+  }
+  \DeclareOption{rgb}{%
+    \pgfcmykshadingdefaultfalse
+  }
+  \ExecuteOptions{cmyk}
+  \ProcessOptions\relax
+  \def\pgf at setup@shading at model{%
+    \pgfshadingmodelrgbtrue
+    \pgfshadingmodelcmykfalse
+    \pgfshadingmodelgrayfalse
+    \XC at sdef\pgf at mod@test{\XC at tgt@mod{natural}}%
+    \def\pgf at shading@device{/DeviceRGB}%
+    \def\pgf at shading@ps at device{setrgbcolor}%
+    \def\pgf at shading@functional at range{0 1 0 1 0 1}%
+    \def\pgf at shading@model{rgb}%
+    \ifx\pgf at mod@test\XC at mod@natural
+      \ifpgfcmykshadingdefault
+        \def\pgf at shading@functional at range{0 1 0 1 0 1 0 1}%
+        \def\pgf at shading@device{/DeviceCMYK}%
+        \def\pgf at shading@ps at device{setcmykcolor}%
+        \def\pgf at shading@model{cmyk}%
+        \pgfshadingmodelrgbfalse
+        \pgfshadingmodelcmyktrue
+      \else
+        \def\pgf at shading@functional at range{0 1 0 1 0 1}%
+        \def\pgf at shading@device{/DeviceRGB}%
+        \def\pgf at shading@ps at device{setrgbcolor}%
+        \def\pgf at shading@model{rgb}%
+      \fi
+    \fi
+    \ifx\pgf at mod@test\XC at mod@cmyk
+      \def\pgf at shading@device{/DeviceCMYK}%
+      \def\pgf at shading@ps at device{setcmykcolor}%
+      \def\pgf at shading@functional at range{0 1 0 1 0 1 0 1}%
+      \def\pgf at shading@model{cmyk}%
+      \pgfshadingmodelrgbfalse
+      \pgfshadingmodelcmyktrue
+    \fi
+    \ifx\pgf at mod@test\XC at mod@gray
+      \def\pgf at shading@device{/DeviceGray}%
+      \def\pgf at shading@ps at device{setgray}%
+      \def\pgf at shading@functional at range{0 1}%
+      \def\pgf at shading@model{gray}%
+      \pgfshadingmodelrgbfalse
+      \pgfshadingmodelgraytrue
+    \fi
+    \edef\pgf at sys@driver at dvisvgm{pgfsys-dvisvgm.def}%
+    \ifx\pgfsysdriver\pgf at sys@driver at dvisvgm
+      \def\pgf at shading@model{rgb}%
+    \fi
+    \edef\pgf at sys@driver at texforht{pgfsys-tex4ht.def}%
+    \ifx\pgfsysdriver\pgf at sys@driver at texforht
+      \def\pgf at shading@model{rgb}%
+    \fi
+  }%
+  \endinput}{}
+%    \end{macrocode}
+%
 % \noindent Replace dependence on \cs{pgf at convertrgbstring} and
 % \cs{pgf at rgbconv} with generic macros \cs{pgf at convertstring} and
 % \cs{pgf at conv}.

Modified: trunk/Master/texmf-dist/source/latex/pgf-cmykshadings/pgf-cmykshadings.ins
===================================================================
--- trunk/Master/texmf-dist/source/latex/pgf-cmykshadings/pgf-cmykshadings.ins	2019-11-04 17:43:40 UTC (rev 52634)
+++ trunk/Master/texmf-dist/source/latex/pgf-cmykshadings/pgf-cmykshadings.ins	2019-11-04 22:15:41 UTC (rev 52635)
@@ -1,6 +1,6 @@
 \iffalse meta-comment
 
-Copyright (c) 2018 David Purton <dcpurton at marshwiggle.net>
+Copyright (c) 2018-2019 David Purton <dcpurton at marshwiggle.net>
 
 This work may be distributed and/or modified under the conditions of
 the LaTeX Project Public License, either version 1.3c of this license
@@ -19,7 +19,7 @@
 
 This is a generated file.
 
-Copyright (c) 2018 David Purton <dcpurton at marshwiggle.net>
+Copyright (c) 2018-2019 David Purton <dcpurton at marshwiggle.net>
 
 This work may be distributed and/or modified under the conditions of
 the LaTeX Project Public License, either version 1.3c of this license

Modified: trunk/Master/texmf-dist/tex/latex/pgf-cmykshadings/pgf-cmykshadings.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/pgf-cmykshadings/pgf-cmykshadings.sty	2019-11-04 17:43:40 UTC (rev 52634)
+++ trunk/Master/texmf-dist/tex/latex/pgf-cmykshadings/pgf-cmykshadings.sty	2019-11-04 22:15:41 UTC (rev 52635)
@@ -8,7 +8,7 @@
 %% 
 %% This is a generated file.
 %% 
-%% Copyright (c) 2018 David Purton <dcpurton at marshwiggle.net>
+%% Copyright (c) 2018-2019 David Purton <dcpurton at marshwiggle.net>
 %% 
 %% This work may be distributed and/or modified under the conditions of
 %% the LaTeX Project Public License, either version 1.3c of this license
@@ -42,9 +42,71 @@
 %% shadings.
 %% 
 \ProvidesPackage{pgf-cmykshadings}%
-  [2018/10/24
+  [2019/11/05
    CMYK and grayscale shadings support for PGF (DCP)]
 \RequirePackage{pgf}
+\@ifpackagelater{pgf}{2019/05/14}{%
+  \PackageWarning{pgf-cmykshadings}{%
+    Package `pgf-cmykshadings' is now deprecated.}%
+  \newif\ifpgfcmykshadingdefault
+  \DeclareOption{cmyk}{%
+    \pgfcmykshadingdefaulttrue
+  }
+  \DeclareOption{rgb}{%
+    \pgfcmykshadingdefaultfalse
+  }
+  \ExecuteOptions{cmyk}
+  \ProcessOptions\relax
+  \def\pgf at setup@shading at model{%
+    \pgfshadingmodelrgbtrue
+    \pgfshadingmodelcmykfalse
+    \pgfshadingmodelgrayfalse
+    \XC at sdef\pgf at mod@test{\XC at tgt@mod{natural}}%
+    \def\pgf at shading@device{/DeviceRGB}%
+    \def\pgf at shading@ps at device{setrgbcolor}%
+    \def\pgf at shading@functional at range{0 1 0 1 0 1}%
+    \def\pgf at shading@model{rgb}%
+    \ifx\pgf at mod@test\XC at mod@natural
+      \ifpgfcmykshadingdefault
+        \def\pgf at shading@functional at range{0 1 0 1 0 1 0 1}%
+        \def\pgf at shading@device{/DeviceCMYK}%
+        \def\pgf at shading@ps at device{setcmykcolor}%
+        \def\pgf at shading@model{cmyk}%
+        \pgfshadingmodelrgbfalse
+        \pgfshadingmodelcmyktrue
+      \else
+        \def\pgf at shading@functional at range{0 1 0 1 0 1}%
+        \def\pgf at shading@device{/DeviceRGB}%
+        \def\pgf at shading@ps at device{setrgbcolor}%
+        \def\pgf at shading@model{rgb}%
+      \fi
+    \fi
+    \ifx\pgf at mod@test\XC at mod@cmyk
+      \def\pgf at shading@device{/DeviceCMYK}%
+      \def\pgf at shading@ps at device{setcmykcolor}%
+      \def\pgf at shading@functional at range{0 1 0 1 0 1 0 1}%
+      \def\pgf at shading@model{cmyk}%
+      \pgfshadingmodelrgbfalse
+      \pgfshadingmodelcmyktrue
+    \fi
+    \ifx\pgf at mod@test\XC at mod@gray
+      \def\pgf at shading@device{/DeviceGray}%
+      \def\pgf at shading@ps at device{setgray}%
+      \def\pgf at shading@functional at range{0 1}%
+      \def\pgf at shading@model{gray}%
+      \pgfshadingmodelrgbfalse
+      \pgfshadingmodelgraytrue
+    \fi
+    \edef\pgf at sys@driver at dvisvgm{pgfsys-dvisvgm.def}%
+    \ifx\pgfsysdriver\pgf at sys@driver at dvisvgm
+      \def\pgf at shading@model{rgb}%
+    \fi
+    \edef\pgf at sys@driver at texforht{pgfsys-tex4ht.def}%
+    \ifx\pgfsysdriver\pgf at sys@driver at texforht
+      \def\pgf at shading@model{rgb}%
+    \fi
+  }%
+  \endinput}{}
 \def\pgf at parsefunc#1{%
   \edef\temp{{#1}}%
   \expandafter\pgf at convertstring\temp%

Modified: trunk/Master/texmf-dist/tex/latex/pgf-cmykshadings/pgfsys-cmykshadings-common-postscript.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/pgf-cmykshadings/pgfsys-cmykshadings-common-postscript.def	2019-11-04 17:43:40 UTC (rev 52634)
+++ trunk/Master/texmf-dist/tex/latex/pgf-cmykshadings/pgfsys-cmykshadings-common-postscript.def	2019-11-04 22:15:41 UTC (rev 52635)
@@ -8,7 +8,7 @@
 %% 
 %% This is a generated file.
 %% 
-%% Copyright (c) 2018 David Purton <dcpurton at marshwiggle.net>
+%% Copyright (c) 2018-2019 David Purton <dcpurton at marshwiggle.net>
 %% 
 %% This work may be distributed and/or modified under the conditions of
 %% the LaTeX Project Public License, either version 1.3c of this license

Modified: trunk/Master/texmf-dist/tex/latex/pgf-cmykshadings/pgfsys-cmykshadings-dvipdfm.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/pgf-cmykshadings/pgfsys-cmykshadings-dvipdfm.def	2019-11-04 17:43:40 UTC (rev 52634)
+++ trunk/Master/texmf-dist/tex/latex/pgf-cmykshadings/pgfsys-cmykshadings-dvipdfm.def	2019-11-04 22:15:41 UTC (rev 52635)
@@ -8,7 +8,7 @@
 %% 
 %% This is a generated file.
 %% 
-%% Copyright (c) 2018 David Purton <dcpurton at marshwiggle.net>
+%% Copyright (c) 2018-2019 David Purton <dcpurton at marshwiggle.net>
 %% 
 %% This work may be distributed and/or modified under the conditions of
 %% the LaTeX Project Public License, either version 1.3c of this license

Modified: trunk/Master/texmf-dist/tex/latex/pgf-cmykshadings/pgfsys-cmykshadings-dvipdfmx.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/pgf-cmykshadings/pgfsys-cmykshadings-dvipdfmx.def	2019-11-04 17:43:40 UTC (rev 52634)
+++ trunk/Master/texmf-dist/tex/latex/pgf-cmykshadings/pgfsys-cmykshadings-dvipdfmx.def	2019-11-04 22:15:41 UTC (rev 52635)
@@ -8,7 +8,7 @@
 %% 
 %% This is a generated file.
 %% 
-%% Copyright (c) 2018 David Purton <dcpurton at marshwiggle.net>
+%% Copyright (c) 2018-2019 David Purton <dcpurton at marshwiggle.net>
 %% 
 %% This work may be distributed and/or modified under the conditions of
 %% the LaTeX Project Public License, either version 1.3c of this license

Modified: trunk/Master/texmf-dist/tex/latex/pgf-cmykshadings/pgfsys-cmykshadings-dvips.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/pgf-cmykshadings/pgfsys-cmykshadings-dvips.def	2019-11-04 17:43:40 UTC (rev 52634)
+++ trunk/Master/texmf-dist/tex/latex/pgf-cmykshadings/pgfsys-cmykshadings-dvips.def	2019-11-04 22:15:41 UTC (rev 52635)
@@ -8,7 +8,7 @@
 %% 
 %% This is a generated file.
 %% 
-%% Copyright (c) 2018 David Purton <dcpurton at marshwiggle.net>
+%% Copyright (c) 2018-2019 David Purton <dcpurton at marshwiggle.net>
 %% 
 %% This work may be distributed and/or modified under the conditions of
 %% the LaTeX Project Public License, either version 1.3c of this license

Modified: trunk/Master/texmf-dist/tex/latex/pgf-cmykshadings/pgfsys-cmykshadings-luatex.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/pgf-cmykshadings/pgfsys-cmykshadings-luatex.def	2019-11-04 17:43:40 UTC (rev 52634)
+++ trunk/Master/texmf-dist/tex/latex/pgf-cmykshadings/pgfsys-cmykshadings-luatex.def	2019-11-04 22:15:41 UTC (rev 52635)
@@ -8,7 +8,7 @@
 %% 
 %% This is a generated file.
 %% 
-%% Copyright (c) 2018 David Purton <dcpurton at marshwiggle.net>
+%% Copyright (c) 2018-2019 David Purton <dcpurton at marshwiggle.net>
 %% 
 %% This work may be distributed and/or modified under the conditions of
 %% the LaTeX Project Public License, either version 1.3c of this license

Modified: trunk/Master/texmf-dist/tex/latex/pgf-cmykshadings/pgfsys-cmykshadings-pdftex.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/pgf-cmykshadings/pgfsys-cmykshadings-pdftex.def	2019-11-04 17:43:40 UTC (rev 52634)
+++ trunk/Master/texmf-dist/tex/latex/pgf-cmykshadings/pgfsys-cmykshadings-pdftex.def	2019-11-04 22:15:41 UTC (rev 52635)
@@ -8,7 +8,7 @@
 %% 
 %% This is a generated file.
 %% 
-%% Copyright (c) 2018 David Purton <dcpurton at marshwiggle.net>
+%% Copyright (c) 2018-2019 David Purton <dcpurton at marshwiggle.net>
 %% 
 %% This work may be distributed and/or modified under the conditions of
 %% the LaTeX Project Public License, either version 1.3c of this license

Modified: trunk/Master/texmf-dist/tex/latex/pgf-cmykshadings/pgfsys-cmykshadings-textures.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/pgf-cmykshadings/pgfsys-cmykshadings-textures.def	2019-11-04 17:43:40 UTC (rev 52634)
+++ trunk/Master/texmf-dist/tex/latex/pgf-cmykshadings/pgfsys-cmykshadings-textures.def	2019-11-04 22:15:41 UTC (rev 52635)
@@ -8,7 +8,7 @@
 %% 
 %% This is a generated file.
 %% 
-%% Copyright (c) 2018 David Purton <dcpurton at marshwiggle.net>
+%% Copyright (c) 2018-2019 David Purton <dcpurton at marshwiggle.net>
 %% 
 %% This work may be distributed and/or modified under the conditions of
 %% the LaTeX Project Public License, either version 1.3c of this license

Modified: trunk/Master/texmf-dist/tex/latex/pgf-cmykshadings/pgfsys-cmykshadings-vtex.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/pgf-cmykshadings/pgfsys-cmykshadings-vtex.def	2019-11-04 17:43:40 UTC (rev 52634)
+++ trunk/Master/texmf-dist/tex/latex/pgf-cmykshadings/pgfsys-cmykshadings-vtex.def	2019-11-04 22:15:41 UTC (rev 52635)
@@ -8,7 +8,7 @@
 %% 
 %% This is a generated file.
 %% 
-%% Copyright (c) 2018 David Purton <dcpurton at marshwiggle.net>
+%% Copyright (c) 2018-2019 David Purton <dcpurton at marshwiggle.net>
 %% 
 %% This work may be distributed and/or modified under the conditions of
 %% the LaTeX Project Public License, either version 1.3c of this license

Modified: trunk/Master/texmf-dist/tex/latex/pgf-cmykshadings/pgfsys-cmykshadings-xetex.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/pgf-cmykshadings/pgfsys-cmykshadings-xetex.def	2019-11-04 17:43:40 UTC (rev 52634)
+++ trunk/Master/texmf-dist/tex/latex/pgf-cmykshadings/pgfsys-cmykshadings-xetex.def	2019-11-04 22:15:41 UTC (rev 52635)
@@ -8,7 +8,7 @@
 %% 
 %% This is a generated file.
 %% 
-%% Copyright (c) 2018 David Purton <dcpurton at marshwiggle.net>
+%% Copyright (c) 2018-2019 David Purton <dcpurton at marshwiggle.net>
 %% 
 %% This work may be distributed and/or modified under the conditions of
 %% the LaTeX Project Public License, either version 1.3c of this license



More information about the tex-live-commits mailing list