summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/palette/colorpalette.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/palette/colorpalette.sty')
-rw-r--r--Master/texmf-dist/tex/latex/palette/colorpalette.sty16
1 files changed, 8 insertions, 8 deletions
diff --git a/Master/texmf-dist/tex/latex/palette/colorpalette.sty b/Master/texmf-dist/tex/latex/palette/colorpalette.sty
index cdf3e2265a3..a73223a7b5f 100644
--- a/Master/texmf-dist/tex/latex/palette/colorpalette.sty
+++ b/Master/texmf-dist/tex/latex/palette/colorpalette.sty
@@ -27,21 +27,21 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{colorpalette}
-[2021/07/27 v1.0.0 Create palettes for colors and symbols]
+[2021/07/29 v1.1.0 Create palettes for colors and symbols]
\RequirePackage{xcolor}
\RequirePackage{macrolist}
\newcommand\newpalettetheme[1]{
- \newlist{colorpalette@theme@#1@palettes}
- \newlist{colorpalette@theme@#1@colors}
+ \macronewlist{colorpalette@theme@#1@palettes}
+ \macronewlist{colorpalette@theme@#1@colors}
}
\newcommand\addcolortotheme[2]{
\colorpalette@themecheck{#1}
- \listadd{colorpalette@theme@#1@colors}{#2}
+ \macrolistadd{colorpalette@theme@#1@colors}{#2}
}
\newcommand\newpalette[2]{
% Check that the theme exists
\colorpalette@themecheck{#1}
- \listadd{colorpalette@theme@#1@palettes}{#2}
+ \macrolistadd{colorpalette@theme@#1@palettes}{#2}
}
\newcommand\setpalettecolor[3]{
\colorpalette@themecheck{#1}
@@ -66,9 +66,9 @@
\colorpalette@colorcheck{#1}{#2}%
\color{\getcolor{#1}{#2}}%
}
-\newcommand\colorpalette@themecheck[1]{\listexists{colorpalette@theme@#1@palettes}{}{\colorpalette@error@theme{#1}}}
-\newcommand\colorpalette@palettecheck[2]{\listcontains{colorpalette@theme@#1@palettes}{#2}{}{\colorpalette@error@palette{#1}{#2}}}
-\newcommand\colorpalette@colorcheck[2]{\listcontains{colorpalette@theme@#1@colors}{#2}{}{\colorpalette@error@color{#1}{#2}}}
+\newcommand\colorpalette@themecheck[1]{\macrolistexists{colorpalette@theme@#1@palettes}{}{\colorpalette@error@theme{#1}}}
+\newcommand\colorpalette@palettecheck[2]{\macrolistcontains{colorpalette@theme@#1@palettes}{#2}{}{\colorpalette@error@palette{#1}{#2}}}
+\newcommand\colorpalette@colorcheck[2]{\macrolistcontains{colorpalette@theme@#1@colors}{#2}{}{\colorpalette@error@color{#1}{#2}}}
\newcommand\colorpalette@error@theme[1]{\PackageError{colorpalette}{The theme `#1' passed in is not defined}{}}
\newcommand\colorpalette@error@palette[2]{\PackageError{colorpalette}{The palette `#2' passed in is not a defined palette of theme `#1'}{}}
\newcommand\colorpalette@error@color[2]{\PackageError{colorpalette}{The color `#2' passed in is not a defined color of theme `#1'}{}}