summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/covington/covington.sty
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2023-12-12 03:00:44 +0000
committerNorbert Preining <norbert@preining.info>2023-12-12 03:00:44 +0000
commit20d530d28645a91e4362d87f1b7559a67cfd0e31 (patch)
tree7f82e96b8af3f57651baf0464c5bee8061e0b7f5 /macros/latex/contrib/covington/covington.sty
parent2bc01316d114d0fb18dec7c0f6f7b0aba6c21d66 (diff)
CTAN sync 202312120300
Diffstat (limited to 'macros/latex/contrib/covington/covington.sty')
-rw-r--r--macros/latex/contrib/covington/covington.sty10
1 files changed, 7 insertions, 3 deletions
diff --git a/macros/latex/contrib/covington/covington.sty b/macros/latex/contrib/covington/covington.sty
index cc17661c09..079d0eef9c 100644
--- a/macros/latex/contrib/covington/covington.sty
+++ b/macros/latex/contrib/covington/covington.sty
@@ -42,8 +42,8 @@
%%% Metadata
%%%
-\def\filedate{2023/12/02}
-\def\fileversion{2.13}
+\def\filedate{2023/12/11}
+\def\fileversion{2.14}
\def\filename{covington.sty}
% Macro to issue warnings
@@ -189,8 +189,10 @@
% Counter to generate unique example ID
\newcounter{explid}
+\def\ownexcounterprep{}
\ifownexcounter
\newcounter{covex}
+ \renewcommand{\thecovex}{\ownexcounterprep\arabic{covex}}%
\newcommand{\@exampleno}{\stepcounter{explid}\refstepcounter{covex}\thecovex}
\else
\newcommand{\@exampleno}{\stepcounter{explid}\refstepcounter{equation}\theequation}
@@ -538,7 +540,9 @@
\setcounter{covfnex}{\arabic{covexsave}}%
\else
\ifownexcounter
- \renewcommand{\thecovex}{\exfmt{covex}}%
+ \ifexfmtchanged%
+ \renewcommand{\thecovex}{\ownexcounterprep\exfmt{covex}}%
+ \fi%
\setcounter{covexsave}{\arabic{covex}}%
\usecounter{covex}% % sets it to zero, unwantedly
\setcounter{covex}{\arabic{covexsave}}% % restores previous value