texlive[62103] Master/texmf-dist: crefthe (20feb22)

commits+karl at tug.org commits+karl at tug.org
Sun Feb 20 22:16:41 CET 2022


Revision: 62103
          http://tug.org/svn/texlive?view=revision&revision=62103
Author:   karl
Date:     2022-02-20 22:16:41 +0100 (Sun, 20 Feb 2022)
Log Message:
-----------
crefthe (20feb22)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/crefthe/crefthe-doc.pdf
    trunk/Master/texmf-dist/doc/latex/crefthe/crefthe-doc.tex
    trunk/Master/texmf-dist/tex/latex/crefthe/crefthe.sty

Modified: trunk/Master/texmf-dist/doc/latex/crefthe/crefthe-doc.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/crefthe/crefthe-doc.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/crefthe/crefthe-doc.tex	2022-02-20 21:16:15 UTC (rev 62102)
+++ trunk/Master/texmf-dist/doc/latex/crefthe/crefthe-doc.tex	2022-02-20 21:16:41 UTC (rev 62103)
@@ -89,7 +89,7 @@
 
 \title{\crefthepackage{} - cross referencing with proper definite articles}
 \author{Jinwen XU}
-\thanks{Corresponding to: \texttt{\crefthepackage{} 2022/02/10}}
+\thanks{Corresponding to: \texttt{\crefthepackage{} 2022/02/20}}
 \date{February 2022, in Paris}
 
 \maketitle
@@ -237,8 +237,8 @@
 \section{Known issues}
 \begin{itemize}
     \item \crefthepackage{} currently works for French, Italian, Portuguese (European and Brazilian) and Spanish, certainly more would be added to this list.
-    \item The current mechanism does not work for German. The author plans to adopt a more refined approach in later versions in order to support the various situations in German. Meanwhile, you may consider the package \textsf{zref-clever}, which has a much more powerful and sophisticated interface for configure cross referencing.
-    \item The names of theorem-like environments are not provided --- for the moment you need to define them all by yourself. However, users are encouraged to use the \ProjLib{} toolkit, which already handles everything for you.
+    \item The current mechanism does not work for German. The author plans to adopt a more refined approach in later versions in order to support the various situations in German. Meanwhile, you may consider the package \textsf{zref-clever}, which has a much more powerful and sophisticated interface for configuring cross referencing.
+    \item The names of theorem-like environments are not provided here, you need to define them by yourself. However, users are encouraged to use the \ProjLib{} toolkit (more specifically, the internal package \textsf{create-theorem}), which already handles everything for you.
 \end{itemize}
 
 

Modified: trunk/Master/texmf-dist/tex/latex/crefthe/crefthe.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/crefthe/crefthe.sty	2022-02-20 21:16:15 UTC (rev 62102)
+++ trunk/Master/texmf-dist/tex/latex/crefthe/crefthe.sty	2022-02-20 21:16:41 UTC (rev 62103)
@@ -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



More information about the tex-live-commits mailing list.