texlive[60119] Master/texmf-dist: palette (30jul21)
commits+karl at tug.org
commits+karl at tug.org
Fri Jul 30 22:16:24 CEST 2021
Revision: 60119
http://tug.org/svn/texlive?view=revision&revision=60119
Author: karl
Date: 2021-07-30 22:16:24 +0200 (Fri, 30 Jul 2021)
Log Message:
-----------
palette (30jul21)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/palette/README.md
trunk/Master/texmf-dist/doc/latex/palette/palette.pdf
trunk/Master/texmf-dist/source/latex/palette/palette.dtx
trunk/Master/texmf-dist/tex/latex/palette/colorpalette.sty
trunk/Master/texmf-dist/tex/latex/palette/symbolpalette.sty
Modified: trunk/Master/texmf-dist/doc/latex/palette/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/palette/README.md 2021-07-30 20:15:57 UTC (rev 60118)
+++ trunk/Master/texmf-dist/doc/latex/palette/README.md 2021-07-30 20:16:24 UTC (rev 60119)
@@ -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
Modified: trunk/Master/texmf-dist/doc/latex/palette/palette.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/source/latex/palette/palette.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/palette/palette.dtx 2021-07-30 20:15:57 UTC (rev 60118)
+++ trunk/Master/texmf-dist/source/latex/palette/palette.dtx 2021-07-30 20:16:24 UTC (rev 60119)
@@ -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 @@
%
%<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 @@
%
% \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 @@
% \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 @@
% \iffalse
%<*color>
\newcommand\newpalettetheme[1]{
- \newlist{colorpalette at theme@#1 at palettes}
- \newlist{colorpalette at theme@#1 at colors}
+ \macronewlist{colorpalette at theme@#1 at palettes}
+ \macronewlist{colorpalette at theme@#1 at colors}
}
%</color>
% \fi
@@ -186,7 +187,7 @@
%<*color>
\newcommand\addcolortotheme[2]{
\colorpalette at themecheck{#1}
- \listadd{colorpalette at theme@#1 at colors}{#2}
+ \macrolistadd{colorpalette at theme@#1 at colors}{#2}
}
%</color>
% \fi
@@ -201,7 +202,7 @@
\newcommand\newpalette[2]{
% Check that the theme exists
\colorpalette at themecheck{#1}
- \listadd{colorpalette at theme@#1 at palettes}{#2}
+ \macrolistadd{colorpalette at theme@#1 at palettes}{#2}
}
%</color>
% \fi
@@ -266,9 +267,9 @@
% \subsection{Error Messages}
% \iffalse
%<*color>
-\newcommand\colorpalette at themecheck[1]{\listexists{colorpalette at theme@#1 at palettes}{}{\colorpalette at error@theme{#1}}}
-\newcommand\colorpalette at palettecheck[2]{\listcontains{colorpalette at theme@#1 at palettes}{#2}{}{\colorpalette at error@palette{#1}{#2}}}
-\newcommand\colorpalette at colorcheck[2]{\listcontains{colorpalette at theme@#1 at colors}{#2}{}{\colorpalette at error@color{#1}{#2}}}
+\newcommand\colorpalette at themecheck[1]{\macrolistexists{colorpalette at theme@#1 at palettes}{}{\colorpalette at error@theme{#1}}}
+\newcommand\colorpalette at palettecheck[2]{\macrolistcontains{colorpalette at theme@#1 at palettes}{#2}{}{\colorpalette at error@palette{#1}{#2}}}
+\newcommand\colorpalette at colorcheck[2]{\macrolistcontains{colorpalette at theme@#1 at colors}{#2}{}{\colorpalette at error@color{#1}{#2}}}
%</color>
% \fi
%
@@ -307,8 +308,8 @@
% \iffalse
%<*symbol>
\newcommand\newsuitetheme[1]{
- \newlist{symbolsuite at theme@#1 at suites}
- \newlist{symbolsuite at theme@#1 at symbols}
+ \macronewlist{symbolsuite at theme@#1 at suites}
+ \macronewlist{symbolsuite at theme@#1 at symbols}
}
%</symbol>
% \fi
@@ -319,7 +320,7 @@
%<*symbol>
\newcommand\addsymboltotheme[2]{
\symbolsuite at themecheck{#1}
- \listadd{symbolsuite at theme@#1 at symbols}{#2}
+ \macrolistadd{symbolsuite at theme@#1 at symbols}{#2}
}
%</symbol>
% \fi
@@ -333,7 +334,7 @@
%<*symbol>
\newcommand\newsuite[2]{
\symbolsuite at themecheck{#1}
- \listadd{symbolsuite at theme@#1 at suites}{#2}
+ \macrolistadd{symbolsuite at theme@#1 at suites}{#2}
}
%</symbol>
% \fi
@@ -373,9 +374,9 @@
% \subsection{Error Messages}
% \iffalse
%<*symbol>
-\newcommand\symbolsuite at themecheck[1]{\listexists{symbolsuite at theme@#1 at suites}{}{\symbolsuite at error@theme{#1}}}
-\newcommand\symbolsuite at suitecheck[2]{\listcontains{symbolsuite at theme@#1 at suites}{#2}{}{\symbolsuite at error@suite{#1}{#2}}}
-\newcommand\symbolsuite at symbolcheck[2]{\listcontains{symbolsuite at theme@#1 at symbols}{#2}{}{\symbolsuite at error@symbol{#1}{#2}}}
+\newcommand\symbolsuite at themecheck[1]{\macrolistexists{symbolsuite at theme@#1 at suites}{}{\symbolsuite at error@theme{#1}}}
+\newcommand\symbolsuite at suitecheck[2]{\macrolistcontains{symbolsuite at theme@#1 at suites}{#2}{}{\symbolsuite at error@suite{#1}{#2}}}
+\newcommand\symbolsuite at symbolcheck[2]{\macrolistcontains{symbolsuite at theme@#1 at symbols}{#2}{}{\symbolsuite at error@symbol{#1}{#2}}}
%</symbol>
% \fi
%
@@ -383,7 +384,7 @@
% \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 at error@theme[1]{\PackageError{symbolsuite}{The theme `#1' passed in is not defined}{}}
+%<symbol>\newcommand\symbolsuite at 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:
@@ -390,14 +391,15 @@
% \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 at error@suite[2]{\PackageError{symbolsuite}{The suite `#2' passed in is not a defined suite of theme `#1'}{}}
+%<symbol>\newcommand\symbolsuite at 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 at error@symbol[2]{\PackageError{symbolsuite}{The symbol `#2' passed in is not a defined color of theme `#1'}{}}
+%<symbol>\newcommand\symbolsuite at error@symbol[2]{\PackageError{symbolpalette}{The symbol `#2' passed in is not a defined symbol of theme `#1'}{}}
% \fi
% \Finale
%
Modified: trunk/Master/texmf-dist/tex/latex/palette/colorpalette.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/palette/colorpalette.sty 2021-07-30 20:15:57 UTC (rev 60118)
+++ trunk/Master/texmf-dist/tex/latex/palette/colorpalette.sty 2021-07-30 20:16:24 UTC (rev 60119)
@@ -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 at theme@#1 at palettes}
- \newlist{colorpalette at theme@#1 at colors}
+ \macronewlist{colorpalette at theme@#1 at palettes}
+ \macronewlist{colorpalette at theme@#1 at colors}
}
\newcommand\addcolortotheme[2]{
\colorpalette at themecheck{#1}
- \listadd{colorpalette at theme@#1 at colors}{#2}
+ \macrolistadd{colorpalette at theme@#1 at colors}{#2}
}
\newcommand\newpalette[2]{
% Check that the theme exists
\colorpalette at themecheck{#1}
- \listadd{colorpalette at theme@#1 at palettes}{#2}
+ \macrolistadd{colorpalette at theme@#1 at palettes}{#2}
}
\newcommand\setpalettecolor[3]{
\colorpalette at themecheck{#1}
@@ -66,9 +66,9 @@
\colorpalette at colorcheck{#1}{#2}%
\color{\getcolor{#1}{#2}}%
}
-\newcommand\colorpalette at themecheck[1]{\listexists{colorpalette at theme@#1 at palettes}{}{\colorpalette at error@theme{#1}}}
-\newcommand\colorpalette at palettecheck[2]{\listcontains{colorpalette at theme@#1 at palettes}{#2}{}{\colorpalette at error@palette{#1}{#2}}}
-\newcommand\colorpalette at colorcheck[2]{\listcontains{colorpalette at theme@#1 at colors}{#2}{}{\colorpalette at error@color{#1}{#2}}}
+\newcommand\colorpalette at themecheck[1]{\macrolistexists{colorpalette at theme@#1 at palettes}{}{\colorpalette at error@theme{#1}}}
+\newcommand\colorpalette at palettecheck[2]{\macrolistcontains{colorpalette at theme@#1 at palettes}{#2}{}{\colorpalette at error@palette{#1}{#2}}}
+\newcommand\colorpalette at colorcheck[2]{\macrolistcontains{colorpalette at theme@#1 at colors}{#2}{}{\colorpalette at error@color{#1}{#2}}}
\newcommand\colorpalette at error@theme[1]{\PackageError{colorpalette}{The theme `#1' passed in is not defined}{}}
\newcommand\colorpalette at error@palette[2]{\PackageError{colorpalette}{The palette `#2' passed in is not a defined palette of theme `#1'}{}}
\newcommand\colorpalette at error@color[2]{\PackageError{colorpalette}{The color `#2' passed in is not a defined color of theme `#1'}{}}
Modified: trunk/Master/texmf-dist/tex/latex/palette/symbolpalette.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/palette/symbolpalette.sty 2021-07-30 20:15:57 UTC (rev 60118)
+++ trunk/Master/texmf-dist/tex/latex/palette/symbolpalette.sty 2021-07-30 20:16:24 UTC (rev 60119)
@@ -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 at theme@#1 at suites}
- \newlist{symbolsuite at theme@#1 at symbols}
+ \macronewlist{symbolsuite at theme@#1 at suites}
+ \macronewlist{symbolsuite at theme@#1 at symbols}
}
\newcommand\addsymboltotheme[2]{
\symbolsuite at themecheck{#1}
- \listadd{symbolsuite at theme@#1 at symbols}{#2}
+ \macrolistadd{symbolsuite at theme@#1 at symbols}{#2}
}
\newcommand\newsuite[2]{
\symbolsuite at themecheck{#1}
- \listadd{symbolsuite at theme@#1 at suites}{#2}
+ \macrolistadd{symbolsuite at theme@#1 at suites}{#2}
}
\newcommand\setsuitesymbol[4]{\expandafter\def\csname symbolsuite@#1@#2@#3\endcsname{#4}}
\newcommand\activesuite[2]{
@@ -52,12 +52,12 @@
\symbolsuite at symbolcheck{#1}{#2}%
\csname symbolsuite@#1@\csname symbolsuite@#1 at active\endcsname @#2\endcsname%
}
-\newcommand\symbolsuite at themecheck[1]{\listexists{symbolsuite at theme@#1 at suites}{}{\symbolsuite at error@theme{#1}}}
-\newcommand\symbolsuite at suitecheck[2]{\listcontains{symbolsuite at theme@#1 at suites}{#2}{}{\symbolsuite at error@suite{#1}{#2}}}
-\newcommand\symbolsuite at symbolcheck[2]{\listcontains{symbolsuite at theme@#1 at symbols}{#2}{}{\symbolsuite at error@symbol{#1}{#2}}}
-\newcommand\symbolsuite at error@theme[1]{\PackageError{symbolsuite}{The theme `#1' passed in is not defined}{}}
-\newcommand\symbolsuite at error@suite[2]{\PackageError{symbolsuite}{The suite `#2' passed in is not a defined suite of theme `#1'}{}}
-\newcommand\symbolsuite at error@symbol[2]{\PackageError{symbolsuite}{The symbol `#2' passed in is not a defined color of theme `#1'}{}}
+\newcommand\symbolsuite at themecheck[1]{\macrolistexists{symbolsuite at theme@#1 at suites}{}{\symbolsuite at error@theme{#1}}}
+\newcommand\symbolsuite at suitecheck[2]{\macrolistcontains{symbolsuite at theme@#1 at suites}{#2}{}{\symbolsuite at error@suite{#1}{#2}}}
+\newcommand\symbolsuite at symbolcheck[2]{\macrolistcontains{symbolsuite at theme@#1 at symbols}{#2}{}{\symbolsuite at error@symbol{#1}{#2}}}
+\newcommand\symbolsuite at error@theme[1]{\PackageError{symbolpalette}{The theme `#1' passed in is not defined}{}}
+\newcommand\symbolsuite at error@suite[2]{\PackageError{symbolpalette}{The suite `#2' passed in is not a defined suite of theme `#1'}{}}
+\newcommand\symbolsuite at 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,
More information about the tex-live-commits
mailing list.