summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/covington
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2020-01-02 22:11:37 +0000
committerKarl Berry <karl@freefriends.org>2020-01-02 22:11:37 +0000
commit0e0bd066d77cf9938b4bb8f742c95fe6a1279b1f (patch)
treec8d3ff0338a3162d25262fe15d8c79586875228b /Master/texmf-dist/tex/latex/covington
parentc81130743af75af12dec15e0a346778e8c8d87a7 (diff)
covington (2jan20)
git-svn-id: svn://tug.org/texlive/trunk@53303 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/covington')
-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