texlive[63466] Master/texmf-dist: create-theorem (1jun22)

commits+karl at tug.org commits+karl at tug.org
Wed Jun 1 22:04:27 CEST 2022


Revision: 63466
          http://tug.org/svn/texlive?view=revision&revision=63466
Author:   karl
Date:     2022-06-01 22:04:27 +0200 (Wed, 01 Jun 2022)
Log Message:
-----------
create-theorem (1jun22)

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

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

Modified: trunk/Master/texmf-dist/doc/latex/create-theorem/create-theorem-doc.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/create-theorem/create-theorem-doc.tex	2022-06-01 20:04:13 UTC (rev 63465)
+++ trunk/Master/texmf-dist/doc/latex/create-theorem/create-theorem-doc.tex	2022-06-01 20:04:27 UTC (rev 63466)
@@ -97,7 +97,7 @@
 
 \begin{document}
 
-\def\PackageVersion{2022/05/31}
+\def\PackageVersion{2022/06/01}
 
 \title{\createtheorempackage{}\\\smallskip\itshape Initializing theorem-like environments with multilingual support}
 \author{Jinwen XU}
@@ -476,7 +476,6 @@
 \begin{itemize}
     \item The current mechanism does not work well for German, a problem originated in the package \textsf{crefthe}. The author plans to adopt a more refined approach in a later version so as to support the various grammatical situations in German.
     \item \createtheorempackage{} modifies some undocumented internal macros of \textsf{cleveref}, so the behaviour might not be stable if \textsf{cleveref} gets updated.
-    \item \createtheorempackage{} is not fully compatible with \textsf{thmtools}, especially its \texttt{autoref} module.
     \item There may be inaccuracies in the translation of those preset names.
 \end{itemize}
 

Modified: trunk/Master/texmf-dist/tex/latex/create-theorem/create-theorem.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/create-theorem/create-theorem.sty	2022-06-01 20:04:13 UTC (rev 63465)
+++ trunk/Master/texmf-dist/tex/latex/create-theorem/create-theorem.sty	2022-06-01 20:04:27 UTC (rev 63466)
@@ -13,7 +13,7 @@
 \RequirePackage{l3keys2e}
 \ProvidesExplPackage
   {create-theorem}
-  {2022/05/31} {}
+  {2022/06/01} {}
   {Initializing theorem-like environments with multilingual support}
 
 \keys_define:nn { create-theorem }
@@ -39,11 +39,6 @@
   }
 \ProcessKeysOptions { create-theorem }
 
-\hook_gput_code:nnn { package/thmtools/after } { crthm }
-  {
-    \let\thmt at autorefsetup\relax
-  }
-
 \RequirePackage { aliascnt }
 
 \bool_if:NT \l__crthm_nameinlink_bool
@@ -54,6 +49,15 @@
 \RequirePackage { crefthe }
 
 
+\IfPackageLoadedTF { thmtools }
+  {
+    \cs_gset_eq:NN \crthm_newtheorem:w \thmt at original@newtheorem
+  }
+  {
+    \cs_gset_eq:NN \crthm_newtheorem:w \newtheorem
+  }
+
+
 % Users should consider appending their languages to this list as needed,
 % otherwise the naming functionality may not work in monolingual documents.
 \clist_new:N   \g_crthm_supported_language_clist
@@ -813,10 +817,10 @@
                   }
                 \bool_if:NTF \l__crthm_creating_numberless_bool
                   {
-                    \newtheorem*{ #1 _crthm_regional } { \tl_use:c { g_crthm_name_heading_ #1 _ \languagename _tl } }
+                    \crthm_newtheorem:w*{ #1 _crthm_regional } { \tl_use:c { g_crthm_name_heading_ #1 _ \languagename _tl } }
                   }
                   {
-                    \newtheorem { #1 _crthm_regional } [#1] { \tl_use:c { g_crthm_name_heading_ #1 _ \languagename _tl } }
+                    \crthm_newtheorem:w { #1 _crthm_regional } [#1] { \tl_use:c { g_crthm_name_heading_ #1 _ \languagename _tl } }
                   }
                 \group_end:
                 \NewDocumentEnvironment { #1 } { O{} }
@@ -841,7 +845,7 @@
                   }
                 \bool_if:NT \l__crthm_creating_create_starred_bool
                   {
-                    \newtheorem*{ #1 * } { \tl_use:c { g_crthm_name_heading_ #1 _ \languagename _tl } }
+                    \crthm_newtheorem:w*{ #1 * } { \tl_use:c { g_crthm_name_heading_ #1 _ \languagename _tl } }
                   }
                 \keys_set:nn { create-theorem-creating / counter-management } { #2 }
               }



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