]> mj.ucw.cz Git - ucwmac.git/commitdiff
Added macros for primitive operations with pdfTeX color stack
authorMartin Mares <mj@ucw.cz>
Tue, 5 Jun 2018 20:10:15 +0000 (22:10 +0200)
committerMartin Mares <mj@ucw.cz>
Tue, 5 Jun 2018 20:10:15 +0000 (22:10 +0200)
ucwmac.tex

index bbee36d376e4aa3553613630549682d7fdc5e544..a0b0fe128195bdeadd41efe60e092afb6c1d2aa0 100644 (file)
 \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