From ee3028367e35946bd19a8bfd253e57aeb1c94d3c Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Tue, 5 Jun 2018 22:10:15 +0200 Subject: [PATCH] Added macros for primitive operations with pdfTeX color stack --- ucwmac.tex | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ucwmac.tex b/ucwmac.tex index bbee36d..a0b0fe1 100644 --- a/ucwmac.tex +++ b/ucwmac.tex @@ -295,6 +295,14 @@ \let\plaintilde=~ \protected\def~{\plaintilde} +%%% Colors %%% + +\chardef\colorstk=\pdfcolorstackinit page direct{0 g 0 G} +\def\colorpush#1{\pdfcolorstack\colorstk push{#1 rg #1 RG}} +\def\colorpushgray#1{\pdfcolorstack\colorstk push{#1 g #1 G}} +\def\colorpushcmyk#1{\pdfcolorstack\colorstk push{#1 k #1 K}} +\def\colorpop{\pdfcolorstack\colorstk pop} + %%% Localization %%% % Current language -- 2.39.2