fix infinite recursion bug in claim counter. fix some spacing

Build branch master (47449c5) from kesslermaximilian/LatexPackages
This commit is contained in:
Maximilian Keßler 2022-01-09 19:21:33 +00:00
parent 425c68b027
commit 264898f2ae
2 changed files with 17 additions and 18 deletions

View file

@ -1,8 +1,8 @@
{ {
"build_time": "", "build_time": "",
"source files": { "source files": {
"version": "v2.4.4", "version": "v2.4.4-1-g47449c5",
"commit": "f4d079796adaa242d653de943b548a88fe9047ec", "commit": "47449c57cba8fb88e34a93f1427d697895039fdc",
"dirty": false "dirty": false
}, },
"pytex": { "pytex": {
@ -44,9 +44,9 @@
{ {
"name": "mkessler-refproof.sty", "name": "mkessler-refproof.sty",
"source file": "refproof.pysty", "source file": "refproof.pysty",
"build time": "2022/01/09 14:44", "build time": "2022/01/09 19:21",
"source version": "v2.4.4", "source version": "v2.4.4-1-g47449c5",
"source commit hash": "f4d079796adaa242d653de943b548a88fe9047ec", "source commit hash": "47449c57cba8fb88e34a93f1427d697895039fdc",
"pytex version": "v1.2.0-3-g5e077e7", "pytex version": "v1.2.0-3-g5e077e7",
"pytex commit hash": "5e077e77d88ec6b71ac0d39e21572fad5938b0c6", "pytex commit hash": "5e077e77d88ec6b71ac0d39e21572fad5938b0c6",
"dirty": false "dirty": false

View file

@ -27,7 +27,7 @@
% %
% Build details: % Build details:
% PyTeX version: v1.2.0-3-g5e077e7 (commit 5e077e7) % PyTeX version: v1.2.0-3-g5e077e7 (commit 5e077e7)
% Source code version: v2.4.4 (commit f4d0797) % Source code version: v2.4.4-1-g47449c5 (commit 47449c5)
% %
% This LaTeX package is free software and distributed under the MIT License. You % This LaTeX package is free software and distributed under the MIT License. You
% may use it freely for your purposes. The latest version of the package can be % may use it freely for your purposes. The latest version of the package can be
@ -131,28 +131,27 @@
\ifcsdef{themkessler@refproof@#2@save@claim}{ \ifcsdef{themkessler@refproof@#2@save@claim}{
\setcounter{claim}{\value{mkessler@refproof@#2@save@claim}} \setcounter{claim}{\value{mkessler@refproof@#2@save@claim}}
\def\mkessler@refproof@proofprefix{ \def\mkessler@refproof@proofprefix{
\IfBooleanTF{#1}{ \IfBooleanTF{#1}{%
\translate{Continuation of proof* of} \translate{Continuation of proof* of}%
}{ }{%
\translate{Continuation of proof of} \translate{Continuation of proof of}%
} }
} }
}{ }{
\newcounter{mkessler@refproof@#2@save@claim} \newcounter{mkessler@refproof@#2@save@claim}
\setcounter{claim}{0} \setcounter{claim}{0}
\def\mkessler@refproof@proofprefix{ \def\mkessler@refproof@proofprefix{%
\IfBooleanTF{#1}{ \IfBooleanTF{#1}{%
\translate{Proof* of} \translate{Proof* of}%
}{ }{%
\translate{Proof of} \translate{Proof of}%
} }
} }
} }
% Set up counter number printing as subindexed by numbering of the reference % Set up counter number printing as subindexed by numbering of the reference
\let\mkessler@refproof@theoldclaim\theclaim \def\theclaim{\getrefnumber{#2}.\arabic{claim}}
\def\theclaim{\getrefnumber{#2}.\mkessler@refproof@theoldclaim}
% Now, start the actual proof % Now, start the actual proof
\mkessler@refproof@saved@proof[ \mkessler@refproof@saved@proof[%
\mkessler@refproof@proofprefix\space\mkessler@refproof@autoref{#2}% \mkessler@refproof@proofprefix\space\mkessler@refproof@autoref{#2}%
\IfValueT{#3}{\space(#3)}% \IfValueT{#3}{\space(#3)}%
] ]