diff options
author | Karl Berry <karl@freefriends.org> | 2016-02-20 23:37:36 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2016-02-20 23:37:36 +0000 |
commit | e9f61ed7121f3980dee02d7bc39309bbb7fd3c4a (patch) | |
tree | 2f4070d7595a75a8ac8ef28e9f9ecfa12c1e881e /Master/texmf-dist/tex/latex/hobby/pml3array.sty | |
parent | 535d67e143d4f05c107c2c973fcd3247884ea5ff (diff) |
hobby (20feb16)
git-svn-id: svn://tug.org/texlive/trunk@39793 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/hobby/pml3array.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/hobby/pml3array.sty | 33 |
1 files changed, 13 insertions, 20 deletions
diff --git a/Master/texmf-dist/tex/latex/hobby/pml3array.sty b/Master/texmf-dist/tex/latex/hobby/pml3array.sty index d8722d9f75d..6f9d18148c5 100644 --- a/Master/texmf-dist/tex/latex/hobby/pml3array.sty +++ b/Master/texmf-dist/tex/latex/hobby/pml3array.sty @@ -84,7 +84,7 @@ \exp_args:NNx \prop_get:NnN #1 {\int_eval:n {#2}} #3 } \cs_new:Npn \array_get:Nn #1#2 { - \exp_args:NNf \prop_get:Nn #1 { \int_eval:n {#2} } + \exp_args:NNf \prop_item:Nn #1 { \int_eval:n {#2} } } \cs_new:Npn \array_get:NnNTF #1#2#3#4#5 { \exp_args:NNx \prop_get:NnNTF #1 {\int_eval:n {#2}} #3 {#4}{#5} @@ -97,6 +97,7 @@ \prg_return_false: \fi: } +\prg_new_eq_conditional:NNn \array_if_exist:N \cs_if_exist:N { p, T, F, TF } \cs_new_eq:NN \array_new:N \prop_new:N \cs_new_eq:NN \array_clear:N \prop_clear:N \cs_new_eq:NN \array_gclear:N \prop_gclear:N @@ -166,7 +167,7 @@ { \__prg_map_break:Nn \array_map_break: { } } \cs_new_nopar:Npn \array_map_break:n { \__prg_map_break:Nn \array_map_break: } -\__msg_kernel_new:nnn { kernel } { show-array } +\msg_new:nnn { kernel } { show-array } { The~array~\token_to_str:N #1~ \array_if_empty:NTF #1 @@ -175,22 +176,13 @@ } \cs_new_protected:Npn \array_show:N #1 { - \tl_clear:N \l_array_show_tl - \array_map_function:NN #1 \array_show_aux:nn - \__msg_show_variable:Nno - #1 + \__msg_show_variable:NNNnn + #1 + \array_if_exist:NTF + \array_if_empty:NTF { array } - { \l_array_show_tl } + { \array_map_function:NN #1 \__msg_show_item:nn } } -\cs_generate_variant:Nn \__msg_show_variable:Nnn { Nno } - -\cs_new_protected:Npn \array_show_aux:nn #1#2 -{ - \tl_if_eq:nnTF {#2} {\q_no_value} {} - { - \tl_put_right:No \l_array_show_tl {\__msg_show_item:nn {#1}{#2}} - } -} \cs_generate_variant:Nn \array_show:N { c } \cs_new_protected:Npn \array_push:Nn #1#2 { @@ -280,11 +272,11 @@ } \cs_new:Npn \array_top:N #1 { - \array_get:Nn #1 {\prop_get:Nn #1 {top}} + \array_get:Nn #1 {\prop_item:Nn #1 {top}} } \cs_new:Npn \array_base:N #1 { - \array_get:Nn #1 {\prop_get:Nn #1 {base}} + \array_get:Nn #1 {\prop_item:Nn #1 {base}} } \cs_new_protected:Npn \array_del:Nn #1#2 { @@ -378,7 +370,7 @@ } \cs_new_protected:Npn \array_length:N #1 { - \int_eval:n {\prop_get:Nn #1 {top} - \prop_get:Nn #1 {base}} + \int_eval:n {\prop_item:Nn #1 {top} - \prop_item:Nn #1 {base}} } \ExplSyntaxOff %% @@ -402,9 +394,10 @@ %% and the derived files hobby.code.tex %% pgflibraryhobby.code.tex %% tikzlibraryhobby.code.tex +%% pml3array.sty %% hobby.ins %% hobby.pdf -%% hobby_doc.pdf +%% hobby_code.pdf %% README.txt %% %% |