texlive[72495] Master/texmf-dist: reptheorem (8oct24)

commits+karl at tug.org commits+karl at tug.org
Tue Oct 8 22:00:16 CEST 2024


Revision: 72495
          https://tug.org/svn/texlive?view=revision&revision=72495
Author:   karl
Date:     2024-10-08 22:00:16 +0200 (Tue, 08 Oct 2024)
Log Message:
-----------
reptheorem (8oct24)

Modified Paths:
--------------
    trunk/Master/texmf-dist/source/latex/reptheorem/reptheorem.dtx
    trunk/Master/texmf-dist/source/latex/reptheorem/reptheorem.ins
    trunk/Master/texmf-dist/tex/latex/reptheorem/reptheorem.sty

Added Paths:
-----------
    trunk/Master/texmf-dist/doc/latex/reptheorem/reptheorem-doc.pdf

Removed Paths:
-------------
    trunk/Master/texmf-dist/doc/latex/reptheorem/reptheorem.pdf

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

Index: trunk/Master/texmf-dist/doc/latex/reptheorem/reptheorem-doc.pdf
===================================================================
--- trunk/Master/texmf-dist/doc/latex/reptheorem/reptheorem-doc.pdf	2024-10-08 20:00:02 UTC (rev 72494)
+++ trunk/Master/texmf-dist/doc/latex/reptheorem/reptheorem-doc.pdf	2024-10-08 20:00:16 UTC (rev 72495)

Property changes on: trunk/Master/texmf-dist/doc/latex/reptheorem/reptheorem-doc.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Deleted: trunk/Master/texmf-dist/doc/latex/reptheorem/reptheorem.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/source/latex/reptheorem/reptheorem.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/reptheorem/reptheorem.dtx	2024-10-08 20:00:02 UTC (rev 72494)
+++ trunk/Master/texmf-dist/source/latex/reptheorem/reptheorem.dtx	2024-10-08 20:00:16 UTC (rev 72495)
@@ -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 @@
 \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 @@
 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 @@
 %^^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 @@
 % \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 @@
 %    \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 @@
 %    \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 at counter}
@@ -453,7 +455,8 @@
 		%
 		% Save theorem counter so we don't increase it
 		\setcounter{old at 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

Modified: trunk/Master/texmf-dist/source/latex/reptheorem/reptheorem.ins
===================================================================
--- trunk/Master/texmf-dist/source/latex/reptheorem/reptheorem.ins	2024-10-08 20:00:02 UTC (rev 72494)
+++ trunk/Master/texmf-dist/source/latex/reptheorem/reptheorem.ins	2024-10-08 20:00:16 UTC (rev 72495)
@@ -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

Modified: trunk/Master/texmf-dist/tex/latex/reptheorem/reptheorem.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/reptheorem/reptheorem.sty	2024-10-08 20:00:02 UTC (rev 72494)
+++ trunk/Master/texmf-dist/tex/latex/reptheorem/reptheorem.sty	2024-10-08 20:00:16 UTC (rev 72495)
@@ -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
@@ -25,7 +25,7 @@
 %% reptheorem.sty, reptheorem.pdf, reptheorem.ins
 %% 
 
-\ProvidesPackage{reptheorem}[2024-09-22 v1.2 Reptheorem package]
+\ProvidesPackage{reptheorem}[2024-10-07 v1.3 Reptheorem package]
 \def\reptheorem at theoremfile{\relax}
 \NewDocumentCommand{\theoremfile}{ O{\jobname.thm} }{
   \def\reptheorem at theoremfile{#1}
@@ -82,7 +82,8 @@
 \def\@@thmtype{theorem}%
 \fi%
 \setcounter{old at 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
 \expandafter\let\expandafter\@@thm\csname thm@#1\endcsname



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