summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/pgf-cmykshadings/pgf-cmykshadings.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/pgf-cmykshadings/pgf-cmykshadings.sty')
-rw-r--r--Master/texmf-dist/tex/latex/pgf-cmykshadings/pgf-cmykshadings.sty35
1 files changed, 18 insertions, 17 deletions
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 316c0e61b39..3ff21fe898a 100644
--- a/Master/texmf-dist/tex/latex/pgf-cmykshadings/pgf-cmykshadings.sty
+++ b/Master/texmf-dist/tex/latex/pgf-cmykshadings/pgf-cmykshadings.sty
@@ -25,7 +25,7 @@
%% pgf-cmykshadings.dtx, README.md, and the derived files
%% - pgf-cmykshadings.sty
%% - pgfsys-cmykshadings-pdftex.def
-%% - pgfsys-cmykshadgins-xetex.def
+%% - pgfsys-cmykshadings-xetex.def
%% - pgfsys-cmykshadings-luatex.def
%% - pgfsys-cmykshadings-dvipdfmx.def
%% - pgfsys-cmykshadings-dvipdfm.def
@@ -42,7 +42,8 @@
%% shadings.
%%
\ProvidesPackage{pgf-cmykshadings}%
- [2018/10/23 CMYK shadings support for PGF (DCP)]
+ [2018/10/24
+ CMYK and grayscale shadings support for PGF (DCP)]
\RequirePackage{pgf}
\def\pgf@parsefunc#1{%
\edef\temp{{#1}}%
@@ -247,9 +248,9 @@
\def\pgf@grabsemicolor;{%
\edef\pgf@conv{\pgf@conv; }\pgf@convert}
\def\pgf@gobblec c{\pgf@convert}
-\def\pgf@savecolor#1{
+\def\pgf@savecolor#1{%
\pgfutil@extractcolorspec{pgf@tempcol}{\pgf@tempcolor}%
- \expandafter\pgfutil@convertcolorspec\pgf@tempcolor%
+ \expandafter\pgfutil@convertcolorspec\pgf@tempcolor
{\pgf@shading@model}{\pgf@color}%
\expandafter\pgf@convget@\expandafter{\pgf@color}{#1}%
}
@@ -289,7 +290,7 @@
\pgf@sys@tonumber{\pgf@xc}\space}%
\expandafter\edef\csname\string#2black\endcsname{%
\pgf@sys@tonumber{\pgf@xd}\space}%
- \escapechar\c@pgf@counta%
+ \escapechar\c@pgf@counta
}
\def\pgfshading@cmyk#1,#2,#3,#4\relax{%
\pgf@xa=#1pt%
@@ -301,13 +302,13 @@
\pgfutil@colorlet{pgf@tempcol}{#1}%
\pgfutil@extractcolorspec{pgf@tempcol}{\pgf@tempcolor}%
\expandafter\pgfutil@convertcolorspec\pgf@tempcolor{gray}{\pgf@graycolor}%
- \expandafter\pgfshading@gray\pgf@graycolor\relax%
+ \expandafter\pgfshading@gray\pgf@graycolor\relax
\edef#2{\pgf@sys@tonumber{\pgf@xa}\space}%
- \c@pgf@counta\escapechar%
- \escapechar-1\relax%
+ \c@pgf@counta\escapechar
+ \escapechar-1\relax
\expandafter\edef\csname\string#2gray\endcsname{%
\pgf@sys@tonumber{\pgf@xa}\space}%
- \escapechar\c@pgf@counta%
+ \escapechar\c@pgf@counta
}
\def\pgfshading@gray#1\relax{%
\pgf@xa=#1pt%
@@ -326,7 +327,7 @@
\pgf@declareradialshading{\pgf@declareradialshading[]}}
\def\pgfdeclarefunctionalshading{%
\pgf@setup@model
- \pgfutil@ifnextchar[
+ \pgfutil@ifnextchar[%
\pgf@declarefunctionalshading{\pgf@declarefunctionalshading[]}}
\def\pgfuseshading#1{%
\edef\pgf@shadingname{@pgfshading#1}%
@@ -337,7 +338,7 @@
{%
{%
\pgf@setup@model
- \pgfutil@globalcolorsfalse%
+ \pgfutil@globalcolorsfalse
\def\pgf@shade@adds{}%
\pgfutil@ifundefined{pgf@deps\pgf@shadingname}%
{}%
@@ -349,7 +350,7 @@
{}{\applycolormixins{\@temp}}%
\pgfutil@extractcolorspec{\@temp}{\pgf@tempcolor}%
\expandafter\pgfutil@ifundefined\expandafter{%
- \pgf@shadingsavedmodel}
+ \pgf@shadingsavedmodel}%
{\expandafter\pgfutil@convertcolorspec\pgf@tempcolor{%
\pgf@shading@model}{\pgf@color}}%
{\expandafter\pgfutil@convertcolorspec\pgf@tempcolor{%
@@ -365,12 +366,12 @@
\expandafter\def\expandafter\@temp\expandafter{%
\csname pgf@func\pgf@shadingname\endcsname}%
\edef\@args{{\pgf@basename\pgf@shade@adds}}%
- \expandafter\expandafter\expandafter\def%
- \expandafter\expandafter\expandafter\@@args%
+ \expandafter\expandafter\expandafter\def
+ \expandafter\expandafter\expandafter\@@args
\expandafter\expandafter\expandafter{%
\csname pgf@args\pgf@shadingname\endcsname}%
\expandafter\expandafter\expandafter\@temp
- \expandafter\@args\@@args%
+ \expandafter\@args\@@args
}%
}%
{}%
@@ -395,7 +396,7 @@
\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@ps@device{setcmykcolor}%
\def\pgf@shading@model{cmyk}%
\pgfshadingmodelrgbfalse
\pgfshadingmodelcmyktrue
@@ -486,7 +487,7 @@
4 3 roll
}
\def\pgfutilgetcmykshadingsdriver{%
- \expandafter\pgfutil@getcmykshadingsdriver\pgfsysdriver[
+ \expandafter\pgfutil@getcmykshadingsdriver\pgfsysdriver[%
}
\def\pgfutil@getcmykshadingsdriver pgfsys-#1[{%
\edef\pgfsyscmykshadingsdriver{pgfsys-cmykshadings-#1}%