diff options
author | Karl Berry <karl@freefriends.org> | 2016-03-08 22:33:02 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2016-03-08 22:33:02 +0000 |
commit | edc6f5528c756c35762db362bc713fd19d9285f9 (patch) | |
tree | 1f2032669313edec501d7ccda53a1f89553d5c06 /Master/texmf-dist/tex/latex/chemmacros/chemmacros.module.base.code.tex | |
parent | 2198545a4a503b96c2d806d85c71439b6ac7fe3f (diff) |
chemmacros (8mar16)
git-svn-id: svn://tug.org/texlive/trunk@39973 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/chemmacros/chemmacros.module.base.code.tex')
-rw-r--r-- | Master/texmf-dist/tex/latex/chemmacros/chemmacros.module.base.code.tex | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/latex/chemmacros/chemmacros.module.base.code.tex b/Master/texmf-dist/tex/latex/chemmacros/chemmacros.module.base.code.tex index 1f20afb1e25..1cfdfaf7a30 100644 --- a/Master/texmf-dist/tex/latex/chemmacros/chemmacros.module.base.code.tex +++ b/Master/texmf-dist/tex/latex/chemmacros/chemmacros.module.base.code.tex @@ -151,6 +151,27 @@ } % -------------------------------------------------------------------------- +\cs_new_protected:Npn \chemmacros_define_keys:nn #1#2 + { \keys_define:nn {chemmacros/#1} {#2} } +\cs_generate_variant:Nn \chemmacros_define_keys:nn {x} + +\cs_new_protected:Npn \chemmacros_set_keys:nn #1#2 + { \keys_set:nn {chemmacros/#1} {#2} } +\cs_generate_variant:Nn \chemmacros_set_keys:nn {x,nx} + +\cs_new_protected:Npn \chemmacros_set_keys_groups:nnn #1#2#3 + { \keys_set_groups:nnn {chemmacros/#1} {#2} {#3} } + +\cs_new_protected:Npn \chemmacros_set_keys_filter:nnn #1#2#3 + { \keys_set_filter:nnn {chemmacros/#1} {#2} {#3} } + +\cs_new_protected:Npn \chemmacros_define_global_keys:n #1 + { \keys_define:nn {chemmacros} {#1} } + +\cs_new_protected:Npn \chemmacros_set_global_keys:n #1 + { \keys_set:nn {chemmacros} {#1} } + +% -------------------------------------------------------------------------- % basic tools: \cs_new:Npn \chemmacros_remove_backslash:N #1 { \exp_after:wN \use_none:n \token_to_str:N #1 } @@ -295,7 +316,7 @@ { \keys_set:nn {chemmacros/#1} {#2} } } -\keys_define:nn {chemmacros} +\chemmacros_define_global_keys:n { modules .code:n = \chemmacros_load_modules:n {#1} } % -------------------------------------------------------------------------- @@ -316,7 +337,7 @@ { \RequirePackage {#2} [#3] } { \RequirePackage [#1] {#2} [#3] } } - \keys_define:nn {chemmacros} + \chemmacros_define_global_keys:n { #2 .choice: , #2 / unknown .code:n = @@ -337,3 +358,4 @@ \chemmacros_if_document:TF 2015/10/14 - load `errorcheck' module 2016/02/09 - starred version of \NewChemMacroset +2016/03/07 - \chemmacros_define_keys:nn and friends |