summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/covington/covington.sty
diff options
context:
space:
mode:
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