From 3e9c5c6e1c118283b7775fd707379f8c9fdd3fd5 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Tue, 17 Oct 2023 03:01:53 +0000 Subject: CTAN sync 202310170301 --- macros/latex/contrib/crefthe/crefthe.sty | 28 +++++++++++++++++++++++----- 1 file changed, 23 insertions(+), 5 deletions(-) (limited to 'macros/latex/contrib/crefthe/crefthe.sty') 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 } } -- cgit v1.2.3