summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-08-28 19:53:03 +0000
committerKarl Berry <karl@freefriends.org>2022-08-28 19:53:03 +0000
commit2ebf3159c9c1bc2d15a019c44c7e6eb4d1b4923e (patch)
tree447ce4fa1f83fe86a6bf72f9e8954c5b1b5433c0 /Master/texmf-dist/tex
parente0b13b7016db35134e9c96389e6023a6e55e2853 (diff)
crefthe (28aug22)
git-svn-id: svn://tug.org/texlive/trunk@64216 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r--Master/texmf-dist/tex/latex/crefthe/crefthe.sty36
1 files changed, 31 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/latex/crefthe/crefthe.sty b/Master/texmf-dist/tex/latex/crefthe/crefthe.sty
index 8a1aefe4a23..8fc93018ceb 100644
--- a/Master/texmf-dist/tex/latex/crefthe/crefthe.sty
+++ b/Master/texmf-dist/tex/latex/crefthe/crefthe.sty
@@ -12,7 +12,7 @@
\NeedsTeXFormat{LaTeX2e}[2022-06-01]
\ProvidesExplPackage
{crefthe}
- {2022/07/24} {}
+ {2022/08/28} {}
{Cross referencing with proper definite articles}
\keys_define:nn { crefthe }
@@ -34,10 +34,14 @@
\RequirePackage { cleveref }
\RequirePackage { regexpatch }
-\NewCommandCopy \crefthe_cref_original:w \cref
-\NewCommandCopy \crefthe_Cref_original:w \Cref
-\NewCommandCopy \crefthe_crefname_original:w \crefname
-\NewCommandCopy \crefthe_Crefname_original:w \Crefname
+\NewCommandCopy \crefthe_cref_original:w \cref
+\NewCommandCopy \crefthe_Cref_original:w \Cref
+\NewCommandCopy \crefthe_crefname_original:w \crefname
+\NewCommandCopy \crefthe_Crefname_original:w \Crefname
+\NewCommandCopy \crefthe_namecref_original:w \namecref
+\NewCommandCopy \crefthe_nameCref_original:w \nameCref
+\NewCommandCopy \crefthe_namecrefs_original:w \namecrefs
+\NewCommandCopy \crefthe_nameCrefs_original:w \nameCrefs
\str_new:N \l__crefthe_tmpa_str
@@ -61,6 +65,28 @@
\bool_gset_true:N \g__crefthe_uppercase_bool
\__crefthe_cref_general:NNNnnN #1 #2 #3 { #4 } { #5 } \crefthe_Cref_original:w
}
+
+\NewDocumentCommand \namecrefthe { t- t+ O{} m }
+ {
+ \bool_gset_false:N \g__crefthe_uppercase_bool
+ \__crefthe_cref_general:NNNnnN \c_false_bool #1 #2 { #3 } { #4 } \crefthe_namecref_original:w
+ }
+\NewDocumentCommand \nameCrefthe { t- t+ O{} m }
+ {
+ \bool_gset_true:N \g__crefthe_uppercase_bool
+ \__crefthe_cref_general:NNNnnN \c_false_bool #1 #2 { #3 } { #4 } \crefthe_nameCref_original:w
+ }
+\NewDocumentCommand \namecrefsthe { t- t+ O{} m }
+ {
+ \bool_gset_false:N \g__crefthe_uppercase_bool
+ \__crefthe_cref_general:NNNnnN \c_false_bool #1 #2 { #3 } { #4 } \crefthe_namecrefs_original:w
+ }
+\NewDocumentCommand \nameCrefsthe { t- t+ O{} m }
+ {
+ \bool_gset_true:N \g__crefthe_uppercase_bool
+ \__crefthe_cref_general:NNNnnN \c_false_bool #1 #2 { #3 } { #4 } \crefthe_nameCrefs_original:w
+ }
+
\cs_new_protected:Nn \__crefthe_cref_general:NNNnnN
{
\tl_if_blank:eTF { #4 }