diff options
author | Hans Hagen <pragma@wxs.nl> | 2010-04-07 17:58:00 +0200 |
---|---|---|
committer | Hans Hagen <pragma@wxs.nl> | 2010-04-07 17:58:00 +0200 |
commit | c63da592cc7ecde38ec1749525c072e79adebdcf (patch) | |
tree | 1c1f26222d9c7867d56ef32ecc5c993aec980354 /tex/context/base/colo-ext.mkiv | |
parent | 6de1d37f23278896de0a7f022c700ba5ff714904 (diff) | |
download | context-c63da592cc7ecde38ec1749525c072e79adebdcf.tar.gz |
beta 2010.04.07 17:58
Diffstat (limited to 'tex/context/base/colo-ext.mkiv')
-rw-r--r-- | tex/context/base/colo-ext.mkiv | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/tex/context/base/colo-ext.mkiv b/tex/context/base/colo-ext.mkiv index 3483c1536..00a4b1bf4 100644 --- a/tex/context/base/colo-ext.mkiv +++ b/tex/context/base/colo-ext.mkiv @@ -86,12 +86,18 @@ % test {\mycolorb OEPS} test % \stoptext -\def\defineintermediatecolor[#1]#2[#3,#4,#5]#6[#7]% no checking: \dotripleempty adds {} inside [] +\def\defineintermediatecolor + {\dotripleempty\dodefineintermediatecolor} + +\def\dodefineintermediatecolor[#1][#2][#3]% \dotripleempty adds {} inside [] + {\dododefineintermediatecolor[#1][#2][#3]} + +\def\dododefineintermediatecolor[#1][#2,#3,#4][#5]% {\ifconditional\collectcolorsinlist\collectcolorinlist{#1}\fi - \ctxlua{colors.defineintermediatecolor("#1",0#3, - \thecolorattribute{#4},\thecolorattribute{#5}, - \thetransparencyattribute{#4},\thetransparencyattribute{#5}, - "#7",false,\iffreezecolors true\else false\fi)}% not global + \ctxlua{colors.defineintermediatecolor("#1","#2", + \thecolorattribute{#3},\thecolorattribute{#4}, + \thetransparencyattribute{#3},\thetransparencyattribute{#4}, + "#5",false,\iffreezecolors true\else false\fi)}% not global \dodefinecolorcommand\setvalue{#1}} \protect \endinput |