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.sty13
1 files changed, 9 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/latex/covington/covington.sty b/Master/texmf-dist/tex/latex/covington/covington.sty
index 0161ab5e728..a9993405f84 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{2016/07/07}
-\def\fileversion{1.1a}
+\def\filedate{2016/08/26}
+\def\fileversion{1.2}
\def\filename{covington.sty}
% Force redefinition of environments?
@@ -154,10 +154,10 @@
\newenvironment{covexample}{\begin{covexamples}\item}{\end{covexamples}}
\@ifundefined{example}{%
- \newenvironment{example}{\begin{covexamples}\item}{\end{covexamples}}
+ \newenvironment{example}{\begin{covexample}}{\end{covexample}}
}{%
\ifforceredef
- \renewenvironment{example}{\begin{covexamples}\item}{\end{covexamples}}
+ \renewenvironment{example}{\begin{covexample}}{\end{covexample}}
\cov@warning{The example environment was already defined. Redefining it.}
\else
\cov@warning{The example environment was already defined.^^J
@@ -191,10 +191,15 @@
\newcounter{equationsave} % used in trick with equation number
+\newlength\examplenumbersep
+\setlength\examplenumbersep{0pt}
+
\newenvironment{covexamples}% % define "example" environment
{%
\begin{list}{(\theequation)}%
{%
+\addtolength{\labelwidth}{\examplenumbersep}%
+\addtolength{\leftmargin}{\examplenumbersep}%
\setcounter{equationsave}{\arabic{equation}}%
\usecounter{equation}% % sets it to zero, unwantedly
\setcounter{equation}{\arabic{equationsave}}% % restores previous value