diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/knowledge/knowledge.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/knowledge/knowledge.sty | 30 |
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} |