From a78951f836b9edaab2dd593f38e33732f0d03cbd Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Tue, 5 Nov 2019 03:01:03 +0000 Subject: CTAN sync 201911050301 --- graphics/pgf/contrib/pgf-cmykshadings/README.md | 7 +- .../contrib/pgf-cmykshadings/pgf-cmykshadings.dtx | 83 ++++++++++++++++++++- .../contrib/pgf-cmykshadings/pgf-cmykshadings.ins | 4 +- .../contrib/pgf-cmykshadings/pgf-cmykshadings.pdf | Bin 470138 -> 522385 bytes 4 files changed, 87 insertions(+), 7 deletions(-) (limited to 'graphics') diff --git a/graphics/pgf/contrib/pgf-cmykshadings/README.md b/graphics/pgf/contrib/pgf-cmykshadings/README.md index ecb448ff59..4af6b8b5c8 100644 --- a/graphics/pgf/contrib/pgf-cmykshadings/README.md +++ b/graphics/pgf/contrib/pgf-cmykshadings/README.md @@ -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 @@ l3build install --full ## Licence ``` -Copyright (c) 2018 David Purton +Copyright (c) 2018-2019 David Purton This work may be distributed and/or modified under the conditions of the LaTeX Project Public License, either version 1.3c of this license diff --git a/graphics/pgf/contrib/pgf-cmykshadings/pgf-cmykshadings.dtx b/graphics/pgf/contrib/pgf-cmykshadings/pgf-cmykshadings.dtx index 4690901981..4842cd1eda 100644 --- a/graphics/pgf/contrib/pgf-cmykshadings/pgf-cmykshadings.dtx +++ b/graphics/pgf/contrib/pgf-cmykshadings/pgf-cmykshadings.dtx @@ -1,6 +1,6 @@ % \iffalse meta-comment % -%Copyright (c) 2018 David Purton +%Copyright (c) 2018-2019 David Purton % %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@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@setup@shading@model{% + \pgfshadingmodelrgbtrue + \pgfshadingmodelcmykfalse + \pgfshadingmodelgrayfalse + \XC@sdef\pgf@mod@test{\XC@tgt@mod{natural}}% + \def\pgf@shading@device{/DeviceRGB}% + \def\pgf@shading@ps@device{setrgbcolor}% + \def\pgf@shading@functional@range{0 1 0 1 0 1}% + \def\pgf@shading@model{rgb}% + \ifx\pgf@mod@test\XC@mod@natural + \ifpgfcmykshadingdefault + \def\pgf@shading@functional@range{0 1 0 1 0 1 0 1}% + \def\pgf@shading@device{/DeviceCMYK}% + \def\pgf@shading@ps@device{setcmykcolor}% + \def\pgf@shading@model{cmyk}% + \pgfshadingmodelrgbfalse + \pgfshadingmodelcmyktrue + \else + \def\pgf@shading@functional@range{0 1 0 1 0 1}% + \def\pgf@shading@device{/DeviceRGB}% + \def\pgf@shading@ps@device{setrgbcolor}% + \def\pgf@shading@model{rgb}% + \fi + \fi + \ifx\pgf@mod@test\XC@mod@cmyk + \def\pgf@shading@device{/DeviceCMYK}% + \def\pgf@shading@ps@device{setcmykcolor}% + \def\pgf@shading@functional@range{0 1 0 1 0 1 0 1}% + \def\pgf@shading@model{cmyk}% + \pgfshadingmodelrgbfalse + \pgfshadingmodelcmyktrue + \fi + \ifx\pgf@mod@test\XC@mod@gray + \def\pgf@shading@device{/DeviceGray}% + \def\pgf@shading@ps@device{setgray}% + \def\pgf@shading@functional@range{0 1}% + \def\pgf@shading@model{gray}% + \pgfshadingmodelrgbfalse + \pgfshadingmodelgraytrue + \fi + \edef\pgf@sys@driver@dvisvgm{pgfsys-dvisvgm.def}% + \ifx\pgfsysdriver\pgf@sys@driver@dvisvgm + \def\pgf@shading@model{rgb}% + \fi + \edef\pgf@sys@driver@texforht{pgfsys-tex4ht.def}% + \ifx\pgfsysdriver\pgf@sys@driver@texforht + \def\pgf@shading@model{rgb}% + \fi + }% + \endinput}{} +% \end{macrocode} +% % \noindent Replace dependence on \cs{pgf@convertrgbstring} and % \cs{pgf@rgbconv} with generic macros \cs{pgf@convertstring} and % \cs{pgf@conv}. diff --git a/graphics/pgf/contrib/pgf-cmykshadings/pgf-cmykshadings.ins b/graphics/pgf/contrib/pgf-cmykshadings/pgf-cmykshadings.ins index 8225b0f4ca..09cf29f420 100644 --- a/graphics/pgf/contrib/pgf-cmykshadings/pgf-cmykshadings.ins +++ b/graphics/pgf/contrib/pgf-cmykshadings/pgf-cmykshadings.ins @@ -1,6 +1,6 @@ \iffalse meta-comment -Copyright (c) 2018 David Purton +Copyright (c) 2018-2019 David Purton 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 @@ version 2005/12/01 or later. This is a generated file. -Copyright (c) 2018 David Purton +Copyright (c) 2018-2019 David Purton This work may be distributed and/or modified under the conditions of the LaTeX Project Public License, either version 1.3c of this license diff --git a/graphics/pgf/contrib/pgf-cmykshadings/pgf-cmykshadings.pdf b/graphics/pgf/contrib/pgf-cmykshadings/pgf-cmykshadings.pdf index 8997be41a2..ad93e7325c 100644 Binary files a/graphics/pgf/contrib/pgf-cmykshadings/pgf-cmykshadings.pdf and b/graphics/pgf/contrib/pgf-cmykshadings/pgf-cmykshadings.pdf differ -- cgit v1.2.3