diff options
author | Karl Berry <karl@freefriends.org> | 2019-11-04 22:15:41 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2019-11-04 22:15:41 +0000 |
commit | bd547f9a58f95681b9c23afc95c65d520b78b01a (patch) | |
tree | a7df7fd1d2f12bc810f1b4220caa57bfbbf462b5 /Master/texmf-dist/source/latex/pgf-cmykshadings | |
parent | c1d130c74639a443eed74458c817369a29e7286f (diff) |
pgf-cmykshadings (4nov19)
git-svn-id: svn://tug.org/texlive/trunk@52635 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/pgf-cmykshadings')
-rw-r--r-- | Master/texmf-dist/source/latex/pgf-cmykshadings/pgf-cmykshadings.dtx | 83 | ||||
-rw-r--r-- | Master/texmf-dist/source/latex/pgf-cmykshadings/pgf-cmykshadings.ins | 4 |
2 files changed, 81 insertions, 6 deletions
diff --git a/Master/texmf-dist/source/latex/pgf-cmykshadings/pgf-cmykshadings.dtx b/Master/texmf-dist/source/latex/pgf-cmykshadings/pgf-cmykshadings.dtx index 4690901981e..4842cd1edad 100644 --- a/Master/texmf-dist/source/latex/pgf-cmykshadings/pgf-cmykshadings.dtx +++ b/Master/texmf-dist/source/latex/pgf-cmykshadings/pgf-cmykshadings.dtx @@ -1,6 +1,6 @@ % \iffalse meta-comment % -%Copyright (c) 2018 David Purton <dcpurton@marshwiggle.net> +%Copyright (c) 2018-2019 David Purton <dcpurton@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@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/Master/texmf-dist/source/latex/pgf-cmykshadings/pgf-cmykshadings.ins b/Master/texmf-dist/source/latex/pgf-cmykshadings/pgf-cmykshadings.ins index 8225b0f4caf..09cf29f420b 100644 --- a/Master/texmf-dist/source/latex/pgf-cmykshadings/pgf-cmykshadings.ins +++ b/Master/texmf-dist/source/latex/pgf-cmykshadings/pgf-cmykshadings.ins @@ -1,6 +1,6 @@ \iffalse meta-comment -Copyright (c) 2018 David Purton <dcpurton@marshwiggle.net> +Copyright (c) 2018-2019 David Purton <dcpurton@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 @@ version 2005/12/01 or later. This is a generated file. -Copyright (c) 2018 David Purton <dcpurton@marshwiggle.net> +Copyright (c) 2018-2019 David Purton <dcpurton@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 |