diff options
Diffstat (limited to 'macros/latex/contrib/easybook/easybook.dtx')
-rw-r--r-- | macros/latex/contrib/easybook/easybook.dtx | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/macros/latex/contrib/easybook/easybook.dtx b/macros/latex/contrib/easybook/easybook.dtx index 701abb0ff0..0765fb3ecc 100644 --- a/macros/latex/contrib/easybook/easybook.dtx +++ b/macros/latex/contrib/easybook/easybook.dtx @@ -15,7 +15,7 @@ %<*class> \NeedsTeXFormat{LaTeX2e}[2020/10/01] \RequirePackage{l3keys2e} -\ProvidesExplClass{easybook}{2021/12/14}{1.41T} +\ProvidesExplClass{easybook}{2021/12/15}{1.41U} {Typeset Chinese theses or books} \bool_set_false:N \l__eb_compile_draft_bool @@ -308,12 +308,13 @@ %<*package> \NeedsTeXFormat{LaTeX2e}[2020/10/01] \RequirePackage{l3keys2e,etoolbox} -\ProvidesExplPackage{easybase}{2021/12/14}{1.41T} +\ProvidesExplPackage{easybase}{2021/12/15}{1.41U} {Typeset Chinese theses or books} \cs_generate_variant:Nn \dim_set:Nn { NV } \cs_generate_variant:Nn \dim_sign:n { V } \cs_generate_variant:Nn \int_to_arabic:n { v } +\cs_generate_variant:Nn \msg_warning:nnn { nnV } \cs_generate_variant:Nn \prop_set_from_keyval:Nn { NV } \cs_generate_variant:Nn \skip_set:Nn { NV } \cs_generate_variant:Nn \seq_set_from_clist:Nn { No } @@ -472,7 +473,7 @@ } } \cs_new:Npn \eb_msg_abandon_option:n #1 - { \msg_warning:nnx { easybase } { abandon-#1 } { \l_keys_key_str } } + { \msg_warning:nnV { easybase } { abandon-#1 } \l_keys_key_str } \cs_if_exist:NF \chapter { \newcounter{chapter} @@ -840,7 +841,7 @@ \str_if_eq:nnTF {#1} { match } { \tl_set:cv { l__eb_fn#2_#3shift_tl } - { l__spb_super_script_#3shift_dim } + { l__spb_super_#3shift_dim } } { \tl_set:cn { l__eb_fn#2_#3shift_tl } {#1} } } @@ -1079,16 +1080,18 @@ } } -\ProvideDocumentCommand{\super}{omo}{\textsuperscript{#2}} +\ProvideDocumentCommand{\super}{mo}{\textsuperscript{#1}} \providecommand{\spbset}{\use_none:n} \NewDocumentCommand{\eb@fnmate@super}{sm} { \IfBooleanTF{#1} - {\super[\l__eb_fntext_vshift_tl]{#2}[0pt]} + {\super{#2}[vshift = \l__eb_fntext_vshift_tl,nohshift]} { - \super[\l__eb_fnmark_vshift_tl] - {\l__eb_fnmate_format_tl{#2}} - [\l__eb_fnmark_hshift_tl] + \super{#2}[ + cmd = \l__eb_fnmate_format_tl, + vshift = \l__eb_fnmark_vshift_tl, + hshift = \l__eb_fnmark_hshift_tl + ] } } \cs_new_protected:Npn \eb_fnmate_format_initial: @@ -2071,7 +2074,7 @@ { \sisetup { - mode = match, + number-mode = match, table-parse-only, text-family-to-math, text-series-to-math, @@ -2429,7 +2432,7 @@ } %</package> %<*tcolorbox> -\ProvidesExplFile{eb-tcolorbox.cfg}{2021/12/14}{1.41T} +\ProvidesExplFile{eb-tcolorbox.cfg}{2021/12/15}{1.41U} {Customization of tcolorbox for easybook} \cs_set_protected:Npn \setexercise #1 |