diff options
author | Karl Berry <karl@freefriends.org> | 2022-02-20 21:16:41 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2022-02-20 21:16:41 +0000 |
commit | 2e856ecc8cc7a9bf86e4d6965a39a23cacbeed53 (patch) | |
tree | 384e886e8554593ff41756ffb6af0df8070dd030 /Master/texmf-dist/tex/latex | |
parent | 0066583838537d6f0acf049d703c50fade2724c0 (diff) |
crefthe (20feb22)
git-svn-id: svn://tug.org/texlive/trunk@62103 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r-- | Master/texmf-dist/tex/latex/crefthe/crefthe.sty | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/Master/texmf-dist/tex/latex/crefthe/crefthe.sty b/Master/texmf-dist/tex/latex/crefthe/crefthe.sty index 27fbe01122a..7edf7e1788d 100644 --- a/Master/texmf-dist/tex/latex/crefthe/crefthe.sty +++ b/Master/texmf-dist/tex/latex/crefthe/crefthe.sty @@ -13,7 +13,7 @@ \RequirePackage{l3keys2e} \ProvidesExplPackage {crefthe} - {2022/02/10} {} + {2022/02/20} {} {Cross referencing with proper definite articles} \keys_define:nn { crefthe } @@ -92,26 +92,23 @@ \NewDocumentCommand \crefthename { m O{} m O{} m } { - \__crefthe_name_general:nnnnnNN { #1 } { #2 } { #3 } { #4 } { #5 } - c \crefthe_crefname_original:w + \__crefthe_name_general:nnnnnn { #1 } { #2 } { #3 } { #4 } { #5 } { c } } \NewDocumentCommand \Crefthename { m O{} m O{} m } { - \__crefthe_name_general:nnnnnNN { #1 } { #2 } { #3 } { #4 } { #5 } - C \crefthe_Crefname_original:w + \__crefthe_name_general:nnnnnn { #1 } { #2 } { #3 } { #4 } { #5 } { C } } -\cs_new_protected:Npn \__crefthe_name_general:nnnnnNN #1 #2 #3 #4 #5 #6 #7 +\cs_new_protected:Npn \__crefthe_name_general:nnnnnn #1 #2 #3 #4 #5 #6 { % #6 is c or C - % #7 is \crefthe_crefname_original:w or \crefthe_Crefname_original:w \tl_if_blank:nTF { #2 } { - #7 { #1 } { #3 } { #5 } + \cs:w crefthe_#6refname_original:w \cs_end: { #1 } { #3 } { #5 } \cs_set:cn { #6ref_#1_format:nnn } { ##2 #3 ~ ##1 ##3 } \cs_set:cn { #6ref_#1_format_first:nnn } { ##2 #5 ~ ##1 ##3 } } { - #7 { #1 } { \crefthemark { #2 } #3 } { \crefthemark { #4 } #5 } + \cs:w crefthe_#6refname_original:w \cs_end: { #1 } { \crefthemark { #2 } #3 } { \crefthemark { #4 } #5 } \cs_set:cn { #6ref_#1_format:nnn } { \crefthemark { #2 } ##2 #3 ~ ##1 ##3 } \cs_set:cn { #6ref_#1_format_first:nnn } { \crefthemark { #4 } ##2 #5 ~ ##1 ##3 } } @@ -134,7 +131,7 @@ \bool_set_false:N \l__crefthe_uppercase_bool } -\prg_generate_conditional_variant:Nnn \str_case_e:nn { nv } { p, T, F, TF } +\prg_generate_conditional_variant:Nnn \str_case_e:nn { nv } { T, F, TF } \cs_new:Npn \crefthe_contraction:nn #1#2 { \exp_args:Ne \__crefthe_contraction:nnn |