summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/knowledge
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2017-10-19 21:29:32 +0000
committerKarl Berry <karl@freefriends.org>2017-10-19 21:29:32 +0000
commit37cb1b919cacac86c043ec2e7bc5e3d00493f649 (patch)
treecbc711c4e883cc1d32cd85bea6e8e9e42ac2147d /Master/texmf-dist/tex/latex/knowledge
parentd0dff5f38ce105539c271129dbd93a2d85cd3b41 (diff)
knowledge (19oct17)
git-svn-id: svn://tug.org/texlive/trunk@45560 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/knowledge')
-rw-r--r--Master/texmf-dist/tex/latex/knowledge/knowledge.sty30
1 files changed, 24 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/latex/knowledge/knowledge.sty b/Master/texmf-dist/tex/latex/knowledge/knowledge.sty
index 5bdb9ba13bc..dff9e0a83a7 100644
--- a/Master/texmf-dist/tex/latex/knowledge/knowledge.sty
+++ b/Master/texmf-dist/tex/latex/knowledge/knowledge.sty
@@ -4,11 +4,11 @@
%%
%% The original source files were:
%%
-%% knowledge.dtx (with options: `head')
+%% knowledge-code.dtx (with options: `head')
%% knowledge-utils.dtx (with options: `package')
-%% knowledge.dtx (with options: `package')
+%% knowledge-code.dtx (with options: `package')
%% knowledge-configuration.dtx (with options: `package')
-%% knowledge.dtx (with options: `tail')
+%% knowledge-code.dtx (with options: `tail')
%%
%% This is a generated file. Copyright (C) 2017 by Thomas Colcombet
%%
@@ -23,7 +23,7 @@
%% LaTeX version 1999/12/01 or later.
%%
\usepackage{expl3}
-\ProvidesExplPackage{knowledge}{2017/10/10}{v1.07}{}
+\ProvidesExplPackage{knowledge}{2017/10/18}{1.07}{}
%%%%%%%%%%
\RequirePackage{l3keys2e}
\RequirePackage{etoolbox}
@@ -2825,9 +2825,27 @@
\NewKnowledgeParamPackageError{#1}{#2}}}
\NewKnowledgeParamTl*{color}
\NewKnowledgeParamTl*{colorbox}
-
\knowledge_directives_require_aci_package:nn
- {color,colorbox}{xcolor}
+ {color,colorbox,cyclic~color}{xcolor}
+\tl_new:N\knowledge_cyclic_colors_tl
+\tl_new:N\knowledge_cyclic_color_tl
+\keys_define:nn{ knowledge~configuration~options }{
+ cyclic~colors .code:n = {\tl_gset:Nn\knowledge_cyclic_colors_tl{#1}}
+}
+\knowledgeconfigure{cyclic~colors =
+ {red,green,blue,cyan,magenta,yellow,gray,brown,lime,olive,orange,pink,purple,teal,violet}}
+\cs_new:Npn\__knowledge_cyclic_color_next:w#1,#2\__knowledge_cyclic_end
+ {\tl_gset:Nn\knowledge_cyclic_colors_tl{#2,{#1}}
+ \tl_gset:Nn\knowledge_cyclic_color_tl{#1}}
+\cs_new:Nn\knowledge_cycle_colors:
+ {\expandafter\__knowledge_cyclic_color_next:w\knowledge_cyclic_colors_tl\__knowledge_cyclic_end}
+
+\keys_define:nn{ knowledge~directives }{
+ cyclic~color .code:n = {
+ \knowledge_cycle_colors:
+ \knowledge_delay_directive:x
+ {color = {\knowledge_cyclic_color_tl}}}
+}
\NewKnowledgeParamTl*{url}
\NewKnowledgeParamTl*{ref}