From 080ee0cef1631f16ed37bc76f13c6be3be525f05 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 23 Aug 2021 20:51:47 +0000 Subject: semantex (23aug21) git-svn-id: svn://tug.org/texlive/trunk@60312 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/semantex/semantex.sty | 160 ++++++++++++++++++--- .../tex/latex/semantex/stripsemantex.sty | 2 +- 2 files changed, 141 insertions(+), 21 deletions(-) (limited to 'Master/texmf-dist/tex/latex/semantex') diff --git a/Master/texmf-dist/tex/latex/semantex/semantex.sty b/Master/texmf-dist/tex/latex/semantex/semantex.sty index 5d7e6070a1c..325f2dbec59 100644 --- a/Master/texmf-dist/tex/latex/semantex/semantex.sty +++ b/Master/texmf-dist/tex/latex/semantex/semantex.sty @@ -1,5 +1,5 @@ \RequirePackage{xparse,l3keys2e,leftindex,semtex} -\ProvidesExplPackage{semantex}{2021/08/10}{0.512}{} +\ProvidesExplPackage{semantex}{2021/08/23}{0.513}{} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % @@ -10,7 +10,7 @@ % % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -\tl_set:Nn\SemantexVersion{0.512} +\tl_set:Nn\SemantexVersion{0.513} \cs_set_eq:NN \semantex_keyval_parse:NNn \keyval_parse:NNn \cs_set:Npn \semantex_singlekey_parse:Nn#1#2 { \clist_map_function:nN { #2 } #1 } @@ -1574,13 +1574,15 @@ \exp_not:N\semantex_base_object_valuekey:nnn { \l__semantex_render_object_associated_to_output_class_tempt_tl } { lower~put~left } { \semantex_data_tl_get_exp_not:nn { #1 } { lower } } \exp_not:N\semantex_base_object_valuekey:nnn { \l__semantex_render_object_associated_to_output_class_tempt_tl } - { pre~upper } { \semantex_data_tl_get_exp_not:nn { #1 } { pre~upper } } + { pre~upper~put~left } { \semantex_data_tl_get_exp_not:nn { #1 } { pre~upper } } \exp_not:N\semantex_base_object_valuekey:nnn { \l__semantex_render_object_associated_to_output_class_tempt_tl } - { post~upper } { \semantex_data_tl_get_exp_not:nn { #1 } { post~upper } } + { post~upper~put~right } { \semantex_data_tl_get_exp_not:nn { #1 } { post~upper } } \exp_not:N\semantex_base_object_valuekey:nnn { \l__semantex_render_object_associated_to_output_class_tempt_tl } - { pre~lower } { \semantex_data_tl_get_exp_not:nn { #1 } { pre~lower } } + { pre~lower~put~left } { \semantex_data_tl_get_exp_not:nn { #1 } { pre~lower } } \exp_not:N\semantex_base_object_valuekey:nnn { \l__semantex_render_object_associated_to_output_class_tempt_tl } - { post~lower } { \semantex_data_tl_get_exp_not:nn { #1 } { post~lower } } + { post~lower~put~right } { \semantex_data_tl_get_exp_not:nn { #1 } { post~lower } } + \exp_not:N\semantex_base_object_valuekey:nnn { \l__semantex_render_object_associated_to_output_class_tempt_tl } + { slanting~phantom } { } % reset slanting phantom \exp_not:N\semantex_base_object_valuekey:nnn { \l__semantex_render_object_associated_to_output_class_tempt_tl } { math~class } { \semantex_data_tl_get_exp_not:nn { #1 } { math~class } } \exp_not:V \l__semantex_render_output_options_temp_tl @@ -1609,13 +1611,13 @@ \exp_not:N\semantex_base_object_valuekey:nnn { \l__semantex_render_object_associated_to_output_class_tempt_tl } { lower~left~put~right } { \semantex_data_tl_get_exp_not:nn { #1 } { lower~left } } \exp_not:N\semantex_base_object_valuekey:nnn { \l__semantex_render_object_associated_to_output_class_tempt_tl } - { pre~upper~left } { \semantex_data_tl_get_exp_not:nn { #1 } { pre~upper~left } } + { pre~upper~left~put~left } { \semantex_data_tl_get_exp_not:nn { #1 } { pre~upper~left } } \exp_not:N\semantex_base_object_valuekey:nnn { \l__semantex_render_object_associated_to_output_class_tempt_tl } - { post~upper~left } { \semantex_data_tl_get_exp_not:nn { #1 } { post~upper~left } } + { post~upper~left~put~right } { \semantex_data_tl_get_exp_not:nn { #1 } { post~upper~left } } \exp_not:N\semantex_base_object_valuekey:nnn { \l__semantex_render_object_associated_to_output_class_tempt_tl } - { pre~lower~left } { \semantex_data_tl_get_exp_not:nn { #1 } { pre~lower~left } } + { pre~lower~left~put~left } { \semantex_data_tl_get_exp_not:nn { #1 } { pre~lower~left } } \exp_not:N\semantex_base_object_valuekey:nnn { \l__semantex_render_object_associated_to_output_class_tempt_tl } - { post~lower~left } { \semantex_data_tl_get_exp_not:nn { #1 } { post~lower~left } } + { post~lower~left~put~right } { \semantex_data_tl_get_exp_not:nn { #1 } { post~lower~left } } \exp_not:N\semantex_base_object_valuekey:nnn { \l__semantex_render_object_associated_to_output_class_tempt_tl } { height~phantom } { \semantex_data_tl_get_exp_not:nn { #1 } { height~phantom } } \exp_not:N\semantex_base_object_valuekey:nnn { \l__semantex_render_object_associated_to_output_class_tempt_tl } @@ -1651,21 +1653,21 @@ \exp_not:N\semantex_base_object_valuekey:nnn { \l__semantex_render_object_associated_to_output_class_tempt_tl } { lower~left~put~right } { \semantex_data_tl_get_exp_not:nn { #1 } { lower~left } } \exp_not:N\semantex_base_object_valuekey:nnn { \l__semantex_render_object_associated_to_output_class_tempt_tl } - { pre~upper } { \semantex_data_tl_get_exp_not:nn { #1 } { pre~upper } } + { pre~upper~put~left } { \semantex_data_tl_get_exp_not:nn { #1 } { pre~upper } } \exp_not:N\semantex_base_object_valuekey:nnn { \l__semantex_render_object_associated_to_output_class_tempt_tl } - { post~upper } { \semantex_data_tl_get_exp_not:nn { #1 } { post~upper } } + { post~upper~put~right } { \semantex_data_tl_get_exp_not:nn { #1 } { post~upper } } \exp_not:N\semantex_base_object_valuekey:nnn { \l__semantex_render_object_associated_to_output_class_tempt_tl } - { pre~lower } { \semantex_data_tl_get_exp_not:nn { #1 } { pre~lower } } + { pre~lower~put~left } { \semantex_data_tl_get_exp_not:nn { #1 } { pre~lower } } \exp_not:N\semantex_base_object_valuekey:nnn { \l__semantex_render_object_associated_to_output_class_tempt_tl } - { post~lower } { \semantex_data_tl_get_exp_not:nn { #1 } { post~lower } } + { post~lower~put~right } { \semantex_data_tl_get_exp_not:nn { #1 } { post~lower } } \exp_not:N\semantex_base_object_valuekey:nnn { \l__semantex_render_object_associated_to_output_class_tempt_tl } - { pre~upper~left } { \semantex_data_tl_get_exp_not:nn { #1 } { pre~upper~left } } + { pre~upper~left~put~left } { \semantex_data_tl_get_exp_not:nn { #1 } { pre~upper~left } } \exp_not:N\semantex_base_object_valuekey:nnn { \l__semantex_render_object_associated_to_output_class_tempt_tl } - { post~upper~left } { \semantex_data_tl_get_exp_not:nn { #1 } { post~upper~left } } + { post~upper~left~put~right } { \semantex_data_tl_get_exp_not:nn { #1 } { post~upper~left } } \exp_not:N\semantex_base_object_valuekey:nnn { \l__semantex_render_object_associated_to_output_class_tempt_tl } - { pre~lower~left } { \semantex_data_tl_get_exp_not:nn { #1 } { pre~lower~left } } + { pre~lower~left~put~left } { \semantex_data_tl_get_exp_not:nn { #1 } { pre~lower~left } } \exp_not:N\semantex_base_object_valuekey:nnn { \l__semantex_render_object_associated_to_output_class_tempt_tl } - { post~lower~left } { \semantex_data_tl_get_exp_not:nn { #1 } { post~lower~left } } + { post~lower~left~put~right } { \semantex_data_tl_get_exp_not:nn { #1 } { post~lower~left } } \exp_not:N\semantex_base_object_valuekey:nnn { \l__semantex_render_object_associated_to_output_class_tempt_tl } { height~phantom } { \semantex_data_tl_get_exp_not:nn { #1 } { height~phantom } } \exp_not:N\semantex_base_object_valuekey:nnn { \l__semantex_render_object_associated_to_output_class_tempt_tl } @@ -7828,8 +7830,34 @@ {arg~without~keyval~set}{ execute={ \semantex_arg_without_keyval:nn { ##1 } { #1 } } }, {set~arg~without~keyval~x}{ execute={ \semantex_arg_without_keyval:nx { ##1 } { #1 } } }, {arg~without~keyval~set~x}{ execute={ \semantex_arg_without_keyval:nx { ##1 } { #1 } } }, - {pre~arg}{ execute={ \semantex_data_tl_put_right:nnn { ##1 } { pre~arg } { #1 } } }, - {post~arg}{ execute={ \semantex_data_tl_put_left:nnn { ##1 } { post~arg } { #1 } } }, + {pre~arg}{ + execute={ + \tl_if_blank:nF{#1}{ + \semantex_data_tl_put_right:nnn { ##1 } { pre~arg } { #1 } + } + }, + }, + {pre~arg~put~left}{ + execute={ + \tl_if_blank:nF{#1}{ + \semantex_data_tl_put_left:nnn { ##1 } { pre~arg } { #1 } + } + }, + }, + {post~arg}{ + execute={ + \tl_if_blank:nF{#1}{ + \semantex_data_tl_put_left:nnn { ##1 } { post~arg } { #1 } + } + }, + }, + {post~arg~put~right}{ + execute={ + \tl_if_blank:nF{#1}{ + \semantex_data_tl_put_right:nnn { ##1 } { post~arg } { #1 } + } + }, + }, {set~arg~sep}{ execute={ \semantex_data_tl_set:nnn { ##1 } { arg~sep } { #1 } } }, {set~arg~slot}{ execute={ \semantex_data_tl_set:nnn { ##1 } { arg~slot } { #1 } } }, {set~arg~dots}{ execute={ \semantex_data_tl_set:nnn { ##1 } { arg~dots } { #1 } } }, @@ -8073,6 +8101,13 @@ } }, }, + {pre~upper~put~left}{ + execute={ + \tl_if_blank:nF{#1}{ + \semantex_data_tl_put_left:nnn { ##1 } { pre~upper } { #1 } + } + }, + }, {post~upper}{ execute={ \tl_if_blank:nF{#1}{ @@ -8080,6 +8115,13 @@ } }, }, + {post~upper~put~right}{ + execute={ + \tl_if_blank:nF{#1}{ + \semantex_data_tl_put_right:nnn { ##1 } { post~upper } { #1 } + } + }, + }, {upper~put~left}{ execute={ \tl_if_blank:nF { #1 } @@ -8245,6 +8287,13 @@ } }, }, + {pre~lower~put~left}{ + execute={ + \tl_if_blank:nF{#1}{ + \semantex_data_tl_put_left:nnn { ##1 } { pre~lower } { #1 } + } + }, + }, {post~lower}{ execute={ \tl_if_blank:nF{#1}{ @@ -8252,6 +8301,13 @@ } }, }, + {post~lower~put~right}{ + execute={ + \tl_if_blank:nF{#1}{ + \semantex_data_tl_put_right:nnn { ##1 } { post~lower } { #1 } + } + }, + }, {lower~put~left}{ execute={ \tl_if_blank:nF { #1 } @@ -8417,6 +8473,13 @@ } }, }, + {pre~upper~left~put~left}{ + execute={ + \tl_if_blank:nF{#1}{ + \semantex_data_tl_put_left:nnn { ##1 } { pre~upper~left } { #1 } + } + }, + }, {post~upper~left}{ execute={ \tl_if_blank:nF{#1}{ @@ -8424,6 +8487,13 @@ } }, }, + {post~upper~left~put~right}{ + execute={ + \tl_if_blank:nF{#1}{ + \semantex_data_tl_put_right:nnn { ##1 } { post~upper~left } { #1 } + } + }, + }, {upper~left~put~right}{ execute={ \tl_if_blank:nF { #1 } @@ -8589,6 +8659,13 @@ } }, }, + {pre~lower~left~put~left}{ + execute={ + \tl_if_blank:nF{#1}{ + \semantex_data_tl_put_left:nnn { ##1 } { pre~lower~left } { #1 } + } + }, + }, {post~lower~left}{ execute={ \tl_if_blank:nF{#1}{ @@ -8596,6 +8673,13 @@ } }, }, + {post~lower~left~put~right}{ + execute={ + \tl_if_blank:nF{#1}{ + \semantex_data_tl_put_right:nnn { ##1 } { post~lower~left } { #1 } + } + }, + }, {lower~left~put~right}{ execute={ \tl_if_blank:nF { #1 } @@ -8786,6 +8870,15 @@ pre~lower={#1}, }, }, + {pre~d~put~left}{ + bool~if~TF={upper~grading} + { + pre~upper~put~left={#1}, + } + { + pre~lower~put~left={#1}, + }, + }, {post~d}{ bool~if~TF={upper~grading} { @@ -8795,6 +8888,15 @@ post~lower={#1}, }, }, + {post~d~put~right}{ + bool~if~TF={upper~grading} + { + post~upper~put~right={#1}, + } + { + post~lower~put~right={#1}, + }, + }, {d~put~left}{ bool~if~TF={upper~grading} { @@ -9013,6 +9115,15 @@ pre~upper={#1}, }, }, + {pre~i~put~left}{ + bool~if~TF={upper~grading} + { + pre~lower~put~left={#1}, + } + { + pre~upper~put~left={#1}, + }, + }, {post~i}{ bool~if~TF={upper~grading} { @@ -9022,6 +9133,15 @@ post~upper={#1}, }, }, + {post~i~put~right}{ + bool~if~TF={upper~grading} + { + post~lower~put~right={#1}, + } + { + post~upper~put~right={#1}, + }, + }, {i~put~left}{ bool~if~TF={upper~grading} { diff --git a/Master/texmf-dist/tex/latex/semantex/stripsemantex.sty b/Master/texmf-dist/tex/latex/semantex/stripsemantex.sty index c674680d6cf..4e5dafc2ee4 100644 --- a/Master/texmf-dist/tex/latex/semantex/stripsemantex.sty +++ b/Master/texmf-dist/tex/latex/semantex/stripsemantex.sty @@ -1,5 +1,5 @@ \RequirePackage{xparse} -\ProvidesExplPackage{stripsemantex}{2021/08/10}{0.512}{} +\ProvidesExplPackage{stripsemantex}{2021/08/23}{0.513}{} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % -- cgit v1.2.3