summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/covington/covington.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/covington/covington.sty')
-rw-r--r--Master/texmf-dist/tex/latex/covington/covington.sty12
1 files changed, 8 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/latex/covington/covington.sty b/Master/texmf-dist/tex/latex/covington/covington.sty
index 3d1b8fc1a31..70edc42fb48 100644
--- a/Master/texmf-dist/tex/latex/covington/covington.sty
+++ b/Master/texmf-dist/tex/latex/covington/covington.sty
@@ -42,8 +42,8 @@
%%% Metadata
%%%
-\def\filedate{2019/06/21}
-\def\fileversion{2.3}
+\def\filedate{2020/01/02}
+\def\fileversion{2.4}
\def\filename{covington.sty}
% Force redefinition of environments?
@@ -951,7 +951,7 @@
%
% New in 1.1 (2016-07-06):
% We provide a covexercise environment and only (re)define
-% example if it does not yet exist or if redefinition is
+% exercise if it does not yet exist or if redefinition is
% forced by the "force" option. This prevents clashes
% with packages/classes that roll their own exercise environment.
@@ -968,7 +968,11 @@
% large curly brackets. Good for alternatives
% within sentences or PS-rules.
-\newtheorem{covexercise}{Exercise}[subsection]
+\ifcsname c@subsection\endcsname
+ \newtheorem{covexercise}{Exercise}[subsection]
+\else
+ \newtheorem{covexercise}{Exercise}
+\fi
% Exercise numbering resets to 0 not only at the start of
% a subsection, but also at the start of a section or chapter