From bd547f9a58f95681b9c23afc95c65d520b78b01a Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 4 Nov 2019 22:15:41 +0000 Subject: pgf-cmykshadings (4nov19) git-svn-id: svn://tug.org/texlive/trunk@52635 c570f23f-e606-0410-a88d-b1316a301751 --- .../latex/pgf-cmykshadings/pgf-cmykshadings.sty | 66 +++++++++++++++++++++- .../pgfsys-cmykshadings-common-postscript.def | 2 +- .../pgfsys-cmykshadings-dvipdfm.def | 2 +- .../pgfsys-cmykshadings-dvipdfmx.def | 2 +- .../pgf-cmykshadings/pgfsys-cmykshadings-dvips.def | 2 +- .../pgfsys-cmykshadings-luatex.def | 2 +- .../pgfsys-cmykshadings-pdftex.def | 2 +- .../pgfsys-cmykshadings-textures.def | 2 +- .../pgf-cmykshadings/pgfsys-cmykshadings-vtex.def | 2 +- .../pgf-cmykshadings/pgfsys-cmykshadings-xetex.def | 2 +- 10 files changed, 73 insertions(+), 11 deletions(-) (limited to 'Master/texmf-dist/tex/latex/pgf-cmykshadings') diff --git a/Master/texmf-dist/tex/latex/pgf-cmykshadings/pgf-cmykshadings.sty b/Master/texmf-dist/tex/latex/pgf-cmykshadings/pgf-cmykshadings.sty index 3ff21fe898a..8114b3f4849 100644 --- a/Master/texmf-dist/tex/latex/pgf-cmykshadings/pgf-cmykshadings.sty +++ b/Master/texmf-dist/tex/latex/pgf-cmykshadings/pgf-cmykshadings.sty @@ -8,7 +8,7 @@ %% %% 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 @@ -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@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}{} \def\pgf@parsefunc#1{% \edef\temp{{#1}}% \expandafter\pgf@convertstring\temp% diff --git a/Master/texmf-dist/tex/latex/pgf-cmykshadings/pgfsys-cmykshadings-common-postscript.def b/Master/texmf-dist/tex/latex/pgf-cmykshadings/pgfsys-cmykshadings-common-postscript.def index 585e69a7a7b..4ffb3dc4282 100644 --- a/Master/texmf-dist/tex/latex/pgf-cmykshadings/pgfsys-cmykshadings-common-postscript.def +++ b/Master/texmf-dist/tex/latex/pgf-cmykshadings/pgfsys-cmykshadings-common-postscript.def @@ -8,7 +8,7 @@ %% %% 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/Master/texmf-dist/tex/latex/pgf-cmykshadings/pgfsys-cmykshadings-dvipdfm.def b/Master/texmf-dist/tex/latex/pgf-cmykshadings/pgfsys-cmykshadings-dvipdfm.def index 49768f0be21..a407a2e8362 100644 --- a/Master/texmf-dist/tex/latex/pgf-cmykshadings/pgfsys-cmykshadings-dvipdfm.def +++ b/Master/texmf-dist/tex/latex/pgf-cmykshadings/pgfsys-cmykshadings-dvipdfm.def @@ -8,7 +8,7 @@ %% %% 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/Master/texmf-dist/tex/latex/pgf-cmykshadings/pgfsys-cmykshadings-dvipdfmx.def b/Master/texmf-dist/tex/latex/pgf-cmykshadings/pgfsys-cmykshadings-dvipdfmx.def index 89cf7f18190..2e3553eb1cb 100644 --- a/Master/texmf-dist/tex/latex/pgf-cmykshadings/pgfsys-cmykshadings-dvipdfmx.def +++ b/Master/texmf-dist/tex/latex/pgf-cmykshadings/pgfsys-cmykshadings-dvipdfmx.def @@ -8,7 +8,7 @@ %% %% 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/Master/texmf-dist/tex/latex/pgf-cmykshadings/pgfsys-cmykshadings-dvips.def b/Master/texmf-dist/tex/latex/pgf-cmykshadings/pgfsys-cmykshadings-dvips.def index b4756167c3a..9559944bfbf 100644 --- a/Master/texmf-dist/tex/latex/pgf-cmykshadings/pgfsys-cmykshadings-dvips.def +++ b/Master/texmf-dist/tex/latex/pgf-cmykshadings/pgfsys-cmykshadings-dvips.def @@ -8,7 +8,7 @@ %% %% 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/Master/texmf-dist/tex/latex/pgf-cmykshadings/pgfsys-cmykshadings-luatex.def b/Master/texmf-dist/tex/latex/pgf-cmykshadings/pgfsys-cmykshadings-luatex.def index 91da115559b..93184de8dc6 100644 --- a/Master/texmf-dist/tex/latex/pgf-cmykshadings/pgfsys-cmykshadings-luatex.def +++ b/Master/texmf-dist/tex/latex/pgf-cmykshadings/pgfsys-cmykshadings-luatex.def @@ -8,7 +8,7 @@ %% %% 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/Master/texmf-dist/tex/latex/pgf-cmykshadings/pgfsys-cmykshadings-pdftex.def b/Master/texmf-dist/tex/latex/pgf-cmykshadings/pgfsys-cmykshadings-pdftex.def index 6073ffea8e2..9d28dbece54 100644 --- a/Master/texmf-dist/tex/latex/pgf-cmykshadings/pgfsys-cmykshadings-pdftex.def +++ b/Master/texmf-dist/tex/latex/pgf-cmykshadings/pgfsys-cmykshadings-pdftex.def @@ -8,7 +8,7 @@ %% %% 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/Master/texmf-dist/tex/latex/pgf-cmykshadings/pgfsys-cmykshadings-textures.def b/Master/texmf-dist/tex/latex/pgf-cmykshadings/pgfsys-cmykshadings-textures.def index c58ceb607fe..0b8f85b9ec4 100644 --- a/Master/texmf-dist/tex/latex/pgf-cmykshadings/pgfsys-cmykshadings-textures.def +++ b/Master/texmf-dist/tex/latex/pgf-cmykshadings/pgfsys-cmykshadings-textures.def @@ -8,7 +8,7 @@ %% %% 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/Master/texmf-dist/tex/latex/pgf-cmykshadings/pgfsys-cmykshadings-vtex.def b/Master/texmf-dist/tex/latex/pgf-cmykshadings/pgfsys-cmykshadings-vtex.def index fe39c7eaa26..7e2fb8569e1 100644 --- a/Master/texmf-dist/tex/latex/pgf-cmykshadings/pgfsys-cmykshadings-vtex.def +++ b/Master/texmf-dist/tex/latex/pgf-cmykshadings/pgfsys-cmykshadings-vtex.def @@ -8,7 +8,7 @@ %% %% 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/Master/texmf-dist/tex/latex/pgf-cmykshadings/pgfsys-cmykshadings-xetex.def b/Master/texmf-dist/tex/latex/pgf-cmykshadings/pgfsys-cmykshadings-xetex.def index 0f9d33c271b..c11b21d1dbf 100644 --- a/Master/texmf-dist/tex/latex/pgf-cmykshadings/pgfsys-cmykshadings-xetex.def +++ b/Master/texmf-dist/tex/latex/pgf-cmykshadings/pgfsys-cmykshadings-xetex.def @@ -8,7 +8,7 @@ %% %% 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 -- cgit v1.2.3