diff options
author | Karl Berry <karl@freefriends.org> | 2022-08-23 20:22:42 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2022-08-23 20:22:42 +0000 |
commit | 773e4f73523a344ef29afc18e834bdfcaa145201 (patch) | |
tree | 28bab692f3a1e1091df1869c76fd13ec4e66bc52 /Master/texmf-dist/tex/latex | |
parent | 7a56dfacda86e4e827037995a1bf905b9713c935 (diff) |
pseudo (23aug22)
git-svn-id: svn://tug.org/texlive/trunk@64179 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r-- | Master/texmf-dist/tex/latex/pseudo/pseudo.sty | 33 |
1 files changed, 23 insertions, 10 deletions
diff --git a/Master/texmf-dist/tex/latex/pseudo/pseudo.sty b/Master/texmf-dist/tex/latex/pseudo/pseudo.sty index 850b19fa141..2634ab7d38f 100644 --- a/Master/texmf-dist/tex/latex/pseudo/pseudo.sty +++ b/Master/texmf-dist/tex/latex/pseudo/pseudo.sty @@ -20,8 +20,8 @@ % OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE % SOFTWARE. % -\def \pseudoversion {1.2} -\def \pseudodate {2022/07/14} +\def \pseudoversion {1.2.1} +\def \pseudodate {2022/08/23} \RequirePackage{expl3} \ProvidesExplPackage {pseudo} @@ -44,9 +44,10 @@ \int_new:N \g__pseudo_indent_level_int \int_new:N \l__pseudo_initial_indent_level_int \bool_new:N \l__pseudo_in_eol_bool -\cs_generate_variant:Nn \quark_if_no_value:nTF { VTF } -\cs_generate_variant:Nn \tl_if_novalue:nTF { VTF } -\cs_generate_variant:Nn \tl_set:Nn { Ne } +\cs_generate_variant:Nn \quark_if_no_value:nTF { VTF } +\cs_generate_variant:Nn \tl_if_novalue:nTF { VTF } +\cs_generate_variant:Nn \tl_set:Nn { Ne } +\exp_args_generate:n { NNVNNV } \cs_new:Npn \__pseudo_undef_col:n #1 { \tl_set_eq:cN { NC@find@ \token_to_str:N #1 } \scan_stop: } @@ -455,10 +456,11 @@ } \cs_new:Npn \__pseudo_keys_set_overlay:nnn #1 #2 #3 { \bool_if:NT \c__pseudo_beamer_bool { - \only<#1>{ \keys_set:nn { #2 } { #3 } } + \tl_if_novalue:nF { #1 } { + \only<#1>{ \keys_set:nn { #2 } { #3 } } + } } } -\cs_generate_variant:Nn \__pseudo_keys_set_overlay:nnn { VnV } \msg_new:nnn { pseudo } { unknown-key } { Unknown~key~'#1'~ignored. } @@ -466,6 +468,10 @@ \keys_define:nn { pseudo } { unknown .code:n = { \group_begin: + \int_zero:N \l_tmpa_int + \int_zero:N \l_tmpb_int + \tl_clear:N \l_tmpa_tl + \tl_clear:N \l_tmpb_tl \tl_map_inline:Nn \l_keys_key_tl { \tl_if_eq:nnTF { ##1 } { < } { \int_incr:N \l_tmpa_int @@ -491,9 +497,14 @@ \tl_if_blank:nF{ #1 } { \tl_put_right:Nn \l_tmpb_tl {= #1} } - \__pseudo_keys_set_overlay:VnV - \l__pseudo_overlay_tl { pseudo } \l_tmpb_tl + \tl_set:Nn \l_tmpa_tl { + \__pseudo_keys_set_overlay:nnn + } + \tl_put_right:Nx \l_tmpa_tl { { \l__pseudo_overlay_tl } } + \tl_put_right:Nn \l_tmpa_tl { { pseudo } } + \tl_put_right:Nx \l_tmpa_tl { { \l_tmpb_tl } } } { + \tl_clear:N \l_tmpa_tl \bool_if:nTF { \bool_lazy_and_p:nn { \l__pseudo_in_eol_bool } @@ -508,9 +519,11 @@ { \l_keys_path_str } } } - \exp_args:NNNV + \exp_args:NNNVNNV \group_end: \tl_set:Nn \l__pseudo_extra_space_tl \l__pseudo_extra_space_tl + \tl_set:Nn \l_tmpa_tl \l_tmpa_tl + \l_tmpa_tl } } \cs_new:Npn \__pseudo_set:n #1 { \keys_set:nn { pseudo } { #1 } } |