diff options
author | Norbert Preining <norbert@preining.info> | 2023-10-17 03:01:53 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2023-10-17 03:01:53 +0000 |
commit | 3e9c5c6e1c118283b7775fd707379f8c9fdd3fd5 (patch) | |
tree | 40f420b2cc25378ebd0cd509854828b1b7aa337f /macros/latex/contrib/crefthe/crefthe.sty | |
parent | c4125da665ac93db063e3c177f4fc5d172f5866f (diff) |
CTAN sync 202310170301
Diffstat (limited to 'macros/latex/contrib/crefthe/crefthe.sty')
-rw-r--r-- | macros/latex/contrib/crefthe/crefthe.sty | 28 |
1 files changed, 23 insertions, 5 deletions
diff --git a/macros/latex/contrib/crefthe/crefthe.sty b/macros/latex/contrib/crefthe/crefthe.sty index 4f7b382e74..bffa152b57 100644 --- a/macros/latex/contrib/crefthe/crefthe.sty +++ b/macros/latex/contrib/crefthe/crefthe.sty @@ -12,7 +12,7 @@ \NeedsTeXFormat{LaTeX2e}[2022-06-01] \ProvidesExplPackage {crefthe} - {2023/07/23a} {} + {2023/10/16} {} {Cross referencing with proper definite articles} \keys_define:nn { crefthe } @@ -48,6 +48,8 @@ \NewCommandCopy \crefthe_nameCref_original:w \nameCref \NewCommandCopy \crefthe_namecrefs_original:w \namecrefs \NewCommandCopy \crefthe_nameCrefs_original:w \nameCrefs +\NewCommandCopy \crefthe_cpageref_original:w \cpageref +\NewCommandCopy \crefthe_Cpageref_original:w \Cpageref \str_new:N \l__crefthe_tmpa_str @@ -92,6 +94,16 @@ \bool_gset_true:N \g__crefthe_uppercase_bool \__crefthe_cref_general:NNNnnN \c_false_bool #1 #2 { #3 } { #4 } \crefthe_nameCrefs_original:w } +\NewDocumentCommand \cpagerefthe { t- t+ O{} m } + { + \bool_gset_false:N \g__crefthe_uppercase_bool + \__crefthe_cref_general:NNNnnN \c_false_bool #1 #2 { #3 } { #4 } \crefthe_cpageref_original:w + } +\NewDocumentCommand \Cpagerefthe { t- t+ O{} m } + { + \bool_gset_true:N \g__crefthe_uppercase_bool + \__crefthe_cref_general:NNNnnN \c_false_bool #1 #2 { #3 } { #4 } \crefthe_Cpageref_original:w + } \keys_define:nn { crefthe-command } { @@ -476,10 +488,16 @@ { \bool_if:NT \l__crefthe_overwrite_bool { - \RenewCommandCopy \cref \crefthe - \RenewCommandCopy \Cref \Crefthe - \RenewCommandCopy \crefname \crefthename - \RenewCommandCopy \Crefname \Crefthename + \RenewCommandCopy \cref \crefthe + \RenewCommandCopy \Cref \Crefthe + \RenewCommandCopy \namecref \namecrefthe + \RenewCommandCopy \nameCref \nameCrefthe + \RenewCommandCopy \namecrefs \namecrefsthe + \RenewCommandCopy \nameCrefs \nameCrefsthe + \RenewCommandCopy \cpageref \cpagerefthe + \RenewCommandCopy \Cpageref \Cpagerefthe + \RenewCommandCopy \crefname \crefthename + \RenewCommandCopy \Crefname \Crefthename } } |