summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/pgf/systemlayer/pgfsys-common-postscript.def
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/generic/pgf/systemlayer/pgfsys-common-postscript.def')
-rw-r--r--Master/texmf-dist/tex/generic/pgf/systemlayer/pgfsys-common-postscript.def32
1 files changed, 14 insertions, 18 deletions
diff --git a/Master/texmf-dist/tex/generic/pgf/systemlayer/pgfsys-common-postscript.def b/Master/texmf-dist/tex/generic/pgf/systemlayer/pgfsys-common-postscript.def
index 81d4527146d..0f8ce5d0157 100644
--- a/Master/texmf-dist/tex/generic/pgf/systemlayer/pgfsys-common-postscript.def
+++ b/Master/texmf-dist/tex/generic/pgf/systemlayer/pgfsys-common-postscript.def
@@ -191,7 +191,7 @@
\pgf@sys@bp@correct{\pgf@x}%
\pgf@y=\pgf@max%
\pgf@sys@bp@correct{\pgf@y}%
- \xdef\pgfutil@tempa{\hbox to \the\pgf@max{%
+ \expandafter\xdef\csname @pgfshading#1!\endcsname{\hbox to \the\pgf@max{%
\noexpand\vrule width0pt height\the\pgf@xa%
\noexpand\pgfsys@beginpurepicture%
\noexpand\pgfsys@rect{0pt}{0pt}{\the\pgf@max}{\the\pgf@xa}%
@@ -201,7 +201,6 @@
\hss%
\noexpand\pgfsys@endpurepicture}}%
}%
- \expandafter\let\csname @pgfshading#1!\endcsname=\pgfutil@tempa
}
\def\pgfsys@vertshading#1#2#3{%
{%
@@ -211,7 +210,7 @@
\pgf@sys@bp@correct{\pgf@x}%
\pgf@y=\pgf@max%
\pgf@sys@bp@correct{\pgf@y}%
- \xdef\pgfutil@tempa{\hbox to \the\pgf@max{%
+ \expandafter\xdef\csname @pgfshading#1!\endcsname{\hbox to\the\pgf@xa{%
\noexpand\vrule width0pt height\the\pgf@max%
\noexpand\pgfsys@beginpurepicture%
\noexpand\pgfsys@rect{0pt}{0pt}{\the\pgf@xa}{\the\pgf@max}%
@@ -221,7 +220,6 @@
\hss%
\noexpand\pgfsys@endpurepicture}}%
}%
- \expandafter\let\csname @pgfshading#1!\endcsname=\pgfutil@tempa
}
\def\pgfsys@radialshading#1#2#3{%
{%
@@ -233,7 +231,7 @@
\pgf@sys@bp@correct{\pgf@max}%
\advance\pgf@x by \pgf@max%
\advance\pgf@y by \pgf@max%
- \xdef\pgfutil@tempa{\hbox to \the\pgf@max{%
+ \expandafter\xdef\csname @pgfshading#1!\endcsname{\hbox to \the\pgf@xa{%
\noexpand\vrule width0pt height\the\pgf@xa%
\noexpand\pgfsys@beginpurepicture%
\noexpand\pgfsys@invoke{%
@@ -242,7 +240,6 @@
\hss%
\noexpand\pgfsys@endpurepicture}}%
}%
- \expandafter\let\csname @pgfshading#1!\endcsname=\pgfutil@tempa
}
\def\pgfsys@functionalshading#1#2#3#4{%
{%
@@ -260,13 +257,13 @@
\pgf@sys@bp@correct{\pgf@yb}%
\pgf@xc=-\pgf@xa%
\pgf@yc=-\pgf@ya%
- \xdef\pgfutil@tempa{%
+ \expandafter\xdef\csname @pgfshading#1!\endcsname{%
\hbox to\the\pgf@x{\vbox to\the\pgf@y{\vfil
\noexpand\pgfsys@beginpurepicture%
\noexpand\pgfsys@invoke{%
\pgf@sys@tonumber{\pgf@xc} \pgf@sys@tonumber{\pgf@yc} translate
1.1 setlinewidth [] 0 setdash 0 setlinecap
- /pgfproc {#4} bind def
+ /pgfproc {#4} bind def
\pgf@sys@tonumber{\pgf@ya} 1 \pgf@sys@tonumber{\pgf@yb}
{
\pgf@sys@tonumber{\pgf@xa} 1 \pgf@sys@tonumber{\pgf@xb}
@@ -274,13 +271,12 @@
for
pop
}
- for
+ for
}%
\noexpand\pgfsys@endpurepicture
}\hfil}%
}%
}%
- \expandafter\let\csname @pgfshading#1!\endcsname=\pgfutil@tempa
}
%
@@ -291,7 +287,7 @@
\def\pgfsys@declarepattern#1#2#3#4#5#6#7#8#9{%
% Start building the pattern dictionary:
\pgf@xa=#2\relax%
- \pgf@ya=#3\relax%
+ \pgf@ya=#3\relax%
\pgf@xb=#4\relax%
\pgf@yb=#5\relax%
\pgf@xc=#6\relax%
@@ -354,13 +350,13 @@
/pgfheight exch def 0.75 setlinewidth [] 0 setdash
/pgfshade {pgfA} def /pgfdir { dup 0 moveto
dup 5 index lineto } bind def} bind def}%
-
+
% Parameters to vertical pre axishade: \pgf@domb x
\pgf@sys@postscript@header{/pgfV{%
/pgfheight exch def 0.75 setlinewidth [] 0 setdash
/pgfshade {pgfA} def /pgfdir { dup 0 exch moveto dup 5 index
exch lineto } bind def} bind def}%
-
+
% Parameters to axishade: end x, start x, r-, g-, b- of first color, r-, g-, b- of second color
% Stack afterwards: end x
\pgf@sys@postscript@header{/pgfA{
@@ -377,7 +373,7 @@
4 -1 roll 6 index add % green += incgreen
4 -1 roll 5 index add % blue += incblue
4 -1 roll .5 sub % x += 0.5
- } repeat
+ } repeat
mark 15 1 roll cleartomark exch pop % leave only start x on stack
}bind def }
@@ -397,7 +393,7 @@
}bind def }
% Parameters to radialshade post: \pgf@firstcolor \pgf@doma
- \pgf@sys@postscript@header{/pgfR2{
+ \pgf@sys@postscript@header{/pgfR2{
newpath 0.5 add pgfcircx pgfcircy 3 2 roll 0 360 arc
setrgbcolor fill pop}bind def }%
@@ -425,7 +421,7 @@
4 -1 roll .25 sub % x += 0.25
/pgfcircx pgfcircx pgfxstep add def
/pgfcircy pgfcircy pgfystep add def
- } repeat
+ } repeat
mark 14 1 roll cleartomark exch pop % leave only start x on stack
}bind def}
}
@@ -433,6 +429,6 @@
\endinput
-%%% Local Variables:
+%%% Local Variables:
%%% mode: latex
-%%% End:
+%%% End: