diff options
Diffstat (limited to 'macros/latex/contrib/reptheorem')
-rw-r--r-- | macros/latex/contrib/reptheorem/reptheorem-doc.pdf (renamed from macros/latex/contrib/reptheorem/reptheorem.pdf) | bin | 286557 -> 288550 bytes | |||
-rw-r--r-- | macros/latex/contrib/reptheorem/reptheorem.dtx | 19 | ||||
-rw-r--r-- | macros/latex/contrib/reptheorem/reptheorem.ins | 6 |
3 files changed, 14 insertions, 11 deletions
diff --git a/macros/latex/contrib/reptheorem/reptheorem.pdf b/macros/latex/contrib/reptheorem/reptheorem-doc.pdf Binary files differindex 55b369d620..9e6568af57 100644 --- a/macros/latex/contrib/reptheorem/reptheorem.pdf +++ b/macros/latex/contrib/reptheorem/reptheorem-doc.pdf diff --git a/macros/latex/contrib/reptheorem/reptheorem.dtx b/macros/latex/contrib/reptheorem/reptheorem.dtx index e26daf2f5a..47a9492322 100644 --- a/macros/latex/contrib/reptheorem/reptheorem.dtx +++ b/macros/latex/contrib/reptheorem/reptheorem.dtx @@ -3,7 +3,7 @@ % Copyright (c) 2024- Jesse Straat % % This work may be distributed and/or modified under the -% conditions of the LaTeX Project Public License, either version 1.3 +% conditions of the LaTeX Project Public License, either version 1.3c % of this license or (at your option) any later version. % The latest version of this license is in % https://www.latex-project.org/lppl.txt @@ -89,7 +89,7 @@ License: [LPPL1.3c](https://www.latex-project.org/lppl.txt) \input docstrip.tex \Msg{************************************************************************} \Msg{* Installation} -\Msg{* Package: reptheorem 2024-09-22 v1.2} +\Msg{* Package: reptheorem 2024-10-07 v1.3} \Msg{************************************************************************} \keepsilent @@ -100,7 +100,7 @@ License: [LPPL1.3c](https://www.latex-project.org/lppl.txt) Copyright (c) 2024- Jesse Straat This work may be distributed and/or modified under the -conditions of the LaTeX Project Public License, either version 1.3 +conditions of the LaTeX Project Public License, either version 1.3c of this license or (at your option) any later version. The latest version of this license is in https://www.latex-project.org/lppl.txt @@ -214,7 +214,7 @@ colorlinks, %^^A % \tableofcontents %^^A -%\changes{v1.0}{2024-03-27}{First public release} +%\changes{v1.0}{2024/03/27}{First public release} %^^A %^^A %^^A @@ -352,7 +352,7 @@ colorlinks, % \section{Source code} % \begin{macrocode} %<*package> -\ProvidesPackage{reptheorem}[2024-09-22 v1.2 Reptheorem package] +\ProvidesPackage{reptheorem}[2024-10-07 v1.3 Reptheorem package] % \end{macrocode} % \begin{macro}{\theoremfile} % Using |\theoremfile| will output all saved theorems into an output file. @@ -384,7 +384,7 @@ colorlinks, % \end{macrocode} % \end{macro} % \begin{environment}{makethm} -% \changes{v1.1}{2024/05/03}{Now saves theorem environment type, breaking backwards compatibility} +% \changes{v1.1}{2024/05/03}{Now saves theorem environment type, breaking backwards compatibility.} % \changes{v1.2}{2024/09/21}{Environment end moved to fix vertical spacing.} % \changes{v1.2}{2024/09/22}{Theorem name is only saved if it exists.} % \changes{v1.2}{2024/09/22}{Renamed theorem output variable to be unique for each theorem.} @@ -435,8 +435,10 @@ colorlinks, % \end{macrocode} % \end{environment} % \begin{macro}{\repthm} -% \changes{v1.1}{2024/05/03}{Now saves theorem environment type, breaking backwards compatibility} +% \changes{v1.1}{2024/05/03}{Now saves theorem environment type, breaking backwards compatibility.} % \changes{v1.2}{2024/09/22}{Fixed bug where theorems got a name even if undefined.} +% \changes{v1.3}{2024/10/07}{Added hyperref named destination compatibility by setting counter to very low value} +% \changes{v1.3}{2024/10/07}{Changed thetheorem to csname to fix compatibility with theorem types not called ``theorem''.} % To repeat a theorem, use the |\repthm| command. % \begin{macrocode} \newcounter{old@counter} @@ -453,7 +455,8 @@ colorlinks, % % Save theorem counter so we don't increase it \setcounter{old@counter}{\value{\@@thmtype}} - \def\thetheorem{\ref{#1}} + \setcounter{\@@thmtype}{-900} + \expandafter\def\csname the\@@thmtype\endcsname{\ref{#1}} \let\@@theoremnotdefined\relax % \ifcsname thm@#1\endcsname% Check if theorem is even defined diff --git a/macros/latex/contrib/reptheorem/reptheorem.ins b/macros/latex/contrib/reptheorem/reptheorem.ins index cf6d514b27..a13a70f683 100644 --- a/macros/latex/contrib/reptheorem/reptheorem.ins +++ b/macros/latex/contrib/reptheorem/reptheorem.ins @@ -9,7 +9,7 @@ %% Copyright (c) 2024- Jesse Straat %% %% This work may be distributed and/or modified under the -%% conditions of the LaTeX Project Public License, either version 1.3 +%% conditions of the LaTeX Project Public License, either version 1.3c %% of this license or (at your option) any later version. %% The latest version of this license is in %% https://www.latex-project.org/lppl.txt @@ -27,7 +27,7 @@ \input docstrip.tex \Msg{************************************************************************} \Msg{* Installation} -\Msg{* Package: reptheorem 2024-09-22 v1.2} +\Msg{* Package: reptheorem 2024-10-07 v1.3} \Msg{************************************************************************} \keepsilent @@ -38,7 +38,7 @@ Copyright (c) 2024- Jesse Straat This work may be distributed and/or modified under the -conditions of the LaTeX Project Public License, either version 1.3 +conditions of the LaTeX Project Public License, either version 1.3c of this license or (at your option) any later version. The latest version of this license is in https://www.latex-project.org/lppl.txt |