diff options
author | Karl Berry <karl@freefriends.org> | 2021-07-30 20:16:24 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-07-30 20:16:24 +0000 |
commit | c10a33be6840662ca8be85974ba51638178812db (patch) | |
tree | 5bd44160252781bbf278d76b8f43fb394da912f0 /Master/texmf-dist/tex/latex | |
parent | c5b0b7223927e0d1ed15233367e14940f33d044a (diff) |
palette (30jul21)
git-svn-id: svn://tug.org/texlive/trunk@60119 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r-- | Master/texmf-dist/tex/latex/palette/colorpalette.sty | 16 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/palette/symbolpalette.sty | 24 |
2 files changed, 20 insertions, 20 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'}{}} diff --git a/Master/texmf-dist/tex/latex/palette/symbolpalette.sty b/Master/texmf-dist/tex/latex/palette/symbolpalette.sty index 170612dd207..1d050e16fe9 100644 --- a/Master/texmf-dist/tex/latex/palette/symbolpalette.sty +++ b/Master/texmf-dist/tex/latex/palette/symbolpalette.sty @@ -26,20 +26,20 @@ \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{symbolsuite} -[2021/07/27 v1.0.0 Create palettes for colors and symbols] +\ProvidesPackage{symbolpalette} +[2021/07/29 v1.1.0 Create palettes for colors and symbols] \RequirePackage{macrolist} \newcommand\newsuitetheme[1]{ - \newlist{symbolsuite@theme@#1@suites} - \newlist{symbolsuite@theme@#1@symbols} + \macronewlist{symbolsuite@theme@#1@suites} + \macronewlist{symbolsuite@theme@#1@symbols} } \newcommand\addsymboltotheme[2]{ \symbolsuite@themecheck{#1} - \listadd{symbolsuite@theme@#1@symbols}{#2} + \macrolistadd{symbolsuite@theme@#1@symbols}{#2} } \newcommand\newsuite[2]{ \symbolsuite@themecheck{#1} - \listadd{symbolsuite@theme@#1@suites}{#2} + \macrolistadd{symbolsuite@theme@#1@suites}{#2} } \newcommand\setsuitesymbol[4]{\expandafter\def\csname symbolsuite@#1@#2@#3\endcsname{#4}} \newcommand\activesuite[2]{ @@ -52,12 +52,12 @@ \symbolsuite@symbolcheck{#1}{#2}% \csname symbolsuite@#1@\csname symbolsuite@#1@active\endcsname @#2\endcsname% } -\newcommand\symbolsuite@themecheck[1]{\listexists{symbolsuite@theme@#1@suites}{}{\symbolsuite@error@theme{#1}}} -\newcommand\symbolsuite@suitecheck[2]{\listcontains{symbolsuite@theme@#1@suites}{#2}{}{\symbolsuite@error@suite{#1}{#2}}} -\newcommand\symbolsuite@symbolcheck[2]{\listcontains{symbolsuite@theme@#1@symbols}{#2}{}{\symbolsuite@error@symbol{#1}{#2}}} -\newcommand\symbolsuite@error@theme[1]{\PackageError{symbolsuite}{The theme `#1' passed in is not defined}{}} -\newcommand\symbolsuite@error@suite[2]{\PackageError{symbolsuite}{The suite `#2' passed in is not a defined suite of theme `#1'}{}} -\newcommand\symbolsuite@error@symbol[2]{\PackageError{symbolsuite}{The symbol `#2' passed in is not a defined color of theme `#1'}{}} +\newcommand\symbolsuite@themecheck[1]{\macrolistexists{symbolsuite@theme@#1@suites}{}{\symbolsuite@error@theme{#1}}} +\newcommand\symbolsuite@suitecheck[2]{\macrolistcontains{symbolsuite@theme@#1@suites}{#2}{}{\symbolsuite@error@suite{#1}{#2}}} +\newcommand\symbolsuite@symbolcheck[2]{\macrolistcontains{symbolsuite@theme@#1@symbols}{#2}{}{\symbolsuite@error@symbol{#1}{#2}}} +\newcommand\symbolsuite@error@theme[1]{\PackageError{symbolpalette}{The theme `#1' passed in is not defined}{}} +\newcommand\symbolsuite@error@suite[2]{\PackageError{symbolpalette}{The suite `#2' passed in is not a defined suite of theme `#1'}{}} +\newcommand\symbolsuite@error@symbol[2]{\PackageError{symbolpalette}{The symbol `#2' passed in is not a defined symbol of theme `#1'}{}} %% %% This package consists of the file palette.dtx, %% and the generated files colorpalette.sty, |