summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Master/texmf-dist/doc/latex/palette/README.md4
-rw-r--r--Master/texmf-dist/doc/latex/palette/palette.pdfbin180652 -> 182340 bytes
-rw-r--r--Master/texmf-dist/source/latex/palette/palette.dtx48
-rw-r--r--Master/texmf-dist/tex/latex/palette/colorpalette.sty16
-rw-r--r--Master/texmf-dist/tex/latex/palette/symbolpalette.sty24
5 files changed, 47 insertions, 45 deletions
diff --git a/Master/texmf-dist/doc/latex/palette/README.md b/Master/texmf-dist/doc/latex/palette/README.md
index ad518480507..f46fee937a1 100644
--- a/Master/texmf-dist/doc/latex/palette/README.md
+++ b/Master/texmf-dist/doc/latex/palette/README.md
@@ -1,8 +1,8 @@
-# The LaTeX package palette - version 1.0.0 (2021/07/27)
+# The LaTeX package palette - version 1.1.0 (2021/07/29)
**palette** provides the ability to create custom color palettes and symbol palettes ("symbol suites"), and swap one palette in for another easily. It also allows the user to create a variable that represents the selected palette, and provides checks in case the variable represents a palette that does not exist.
-The package is split into `colorpalette` and `symbolsuite`.
+The package is split into `colorpalette` and `symbolpalette`.
## Installation instructions
diff --git a/Master/texmf-dist/doc/latex/palette/palette.pdf b/Master/texmf-dist/doc/latex/palette/palette.pdf
index 12a95fc0b75..041375249ee 100644
--- a/Master/texmf-dist/doc/latex/palette/palette.pdf
+++ b/Master/texmf-dist/doc/latex/palette/palette.pdf
Binary files differ
diff --git a/Master/texmf-dist/source/latex/palette/palette.dtx b/Master/texmf-dist/source/latex/palette/palette.dtx
index b66fc4875e1..d4e09f3d8ad 100644
--- a/Master/texmf-dist/source/latex/palette/palette.dtx
+++ b/Master/texmf-dist/source/latex/palette/palette.dtx
@@ -17,11 +17,11 @@
\iffalse
%</internal>
%<*readme>
-# The LaTeX package palette - version 1.0.0 (2021/07/27)
+# The LaTeX package palette - version 1.1.0 (2021/07/29)
**palette** provides the ability to create custom color palettes and symbol palettes ("symbol suites"), and swap one palette in for another easily. It also allows the user to create a variable that represents the selected palette, and provides checks in case the variable represents a palette that does not exist.
-The package is split into `colorpalette` and `symbolsuite`.
+The package is split into `colorpalette` and `symbolpalette`.
## Installation instructions
@@ -123,14 +123,14 @@ This package consists of the file palette.dtx,
%
%<color|symbol>\NeedsTeXFormat{LaTeX2e}
%<color>\ProvidesPackage{colorpalette}
-%<symbol>\ProvidesPackage{symbolsuite}
-%<color|symbol>[2021/07/27 v1.0.0 Create palettes for colors and symbols]
+%<symbol>\ProvidesPackage{symbolpalette}
+%<color|symbol>[2021/07/29 v1.1.0 Create palettes for colors and symbols]
%<color>\RequirePackage{xcolor}
%<*color|symbol>
\RequirePackage{macrolist}
%</color|symbol>
%<*driver>
-\ProvidesFile{\jobname.dtx}[2021/07/27 v1.0.0 Create palettes for colors and symbols]
+\ProvidesFile{\jobname.dtx}[2021/07/29 v1.1.0 Create palettes for colors and symbols]
\documentclass{ltxdoc}
\EnableCrossrefs
@@ -147,6 +147,7 @@ This package consists of the file palette.dtx,
%
% \GetFileInfo{\jobname.dtx}
%
+% \changes{v1.1.0}{2021/07/29}{Update macrolist (to get compatibility with etoolbox)}
% \changes{v1.0.0}{2021/07/27}{Initial version}
%
% \title{\textsf{palette} -- Create palettes for colors and symbols}
@@ -160,7 +161,7 @@ This package consists of the file palette.dtx,
% \end{abstract}
%
% \section{Overview}
-% We will go over the basic structure of the user interface in broad terms first (i.e. no macros or environments yet). We will use \textsf{colorpalette} as our example here, but \textsf{symbolsuite} behaves virtually identically.
+% We will go over the basic structure of the user interface in broad terms first (i.e. no macros or environments yet). We will use \textsf{colorpalette} as our example here, but \textsf{symbolpalette} behaves virtually identically.
%
% First, the user can create palette \emph{themes}, which are independent from each other. Then, you can add colors to themes. Finally, you can make a palette associated with a theme and set its colors.
%
@@ -174,8 +175,8 @@ This package consists of the file palette.dtx,
% \iffalse
%<*color>
\newcommand\newpalettetheme[1]{
- \newlist{colorpalette@theme@#1@palettes}
- \newlist{colorpalette@theme@#1@colors}
+ \macronewlist{colorpalette@theme@#1@palettes}
+ \macronewlist{colorpalette@theme@#1@colors}
}
%</color>
% \fi
@@ -186,7 +187,7 @@ This package consists of the file palette.dtx,
%<*color>
\newcommand\addcolortotheme[2]{
\colorpalette@themecheck{#1}
- \listadd{colorpalette@theme@#1@colors}{#2}
+ \macrolistadd{colorpalette@theme@#1@colors}{#2}
}
%</color>
% \fi
@@ -201,7 +202,7 @@ This package consists of the file palette.dtx,
\newcommand\newpalette[2]{
% Check that the theme exists
\colorpalette@themecheck{#1}
- \listadd{colorpalette@theme@#1@palettes}{#2}
+ \macrolistadd{colorpalette@theme@#1@palettes}{#2}
}
%</color>
% \fi
@@ -266,9 +267,9 @@ This package consists of the file palette.dtx,
% \subsection{Error Messages}
% \iffalse
%<*color>
-\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}}}
%</color>
% \fi
%
@@ -307,8 +308,8 @@ This package consists of the file palette.dtx,
% \iffalse
%<*symbol>
\newcommand\newsuitetheme[1]{
- \newlist{symbolsuite@theme@#1@suites}
- \newlist{symbolsuite@theme@#1@symbols}
+ \macronewlist{symbolsuite@theme@#1@suites}
+ \macronewlist{symbolsuite@theme@#1@symbols}
}
%</symbol>
% \fi
@@ -319,7 +320,7 @@ This package consists of the file palette.dtx,
%<*symbol>
\newcommand\addsymboltotheme[2]{
\symbolsuite@themecheck{#1}
- \listadd{symbolsuite@theme@#1@symbols}{#2}
+ \macrolistadd{symbolsuite@theme@#1@symbols}{#2}
}
%</symbol>
% \fi
@@ -333,7 +334,7 @@ This package consists of the file palette.dtx,
%<*symbol>
\newcommand\newsuite[2]{
\symbolsuite@themecheck{#1}
- \listadd{symbolsuite@theme@#1@suites}{#2}
+ \macrolistadd{symbolsuite@theme@#1@suites}{#2}
}
%</symbol>
% \fi
@@ -373,9 +374,9 @@ This package consists of the file palette.dtx,
% \subsection{Error Messages}
% \iffalse
%<*symbol>
-\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@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}}}
%</symbol>
% \fi
%
@@ -383,21 +384,22 @@ This package consists of the file palette.dtx,
% \begin{verbatim}The palette passed in is not a defined palette of theme `#1'\end{verbatim}
% where |#1| is the name of the theme.
% \iffalse
-%<symbol>\newcommand\symbolsuite@error@theme[1]{\PackageError{symbolsuite}{The theme `#1' passed in is not defined}{}}
+%<symbol>\newcommand\symbolsuite@error@theme[1]{\PackageError{symbolpalette}{The theme `#1' passed in is not defined}{}}
% \fi
%
% If a suite that does not belong to a theme is passed in, the following error will be thrown:
% \begin{verbatim}The suite `#2' passed in is not a defined suite of theme `#1'\end{verbatim}
% where |#1| is the name of the theme and |#2| is the name of the suite.
% \iffalse
-%<symbol>\newcommand\symbolsuite@error@suite[2]{\PackageError{symbolsuite}{The suite `#2' passed in is not a defined suite of theme `#1'}{}}
+%<symbol>\newcommand\symbolsuite@error@suite[2]{\PackageError{symbolpalette}{The suite `#2' passed in is not a defined suite of theme `#1'}{}}
% \fi
%
% If a symbol that does not belong to a theme is passed in, the following error will be thrown:
% \begin{verbatim}The symbol `#2' passed in is not a defined symbol of theme `#1'\end{verbatim}
% where |#1| is the name of the theme and |#2| is the name of the symbol.
+% \changes{v1.0.1}{2020/07/28}{Make error message refer to symbol, not color}
% \iffalse
-%<symbol>\newcommand\symbolsuite@error@symbol[2]{\PackageError{symbolsuite}{The symbol `#2' passed in is not a defined color of theme `#1'}{}}
+%<symbol>\newcommand\symbolsuite@error@symbol[2]{\PackageError{symbolpalette}{The symbol `#2' passed in is not a defined symbol of theme `#1'}{}}
% \fi
% \Finale
%
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,