summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/covington
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2016-08-26 22:06:45 +0000
committerKarl Berry <karl@freefriends.org>2016-08-26 22:06:45 +0000
commitafdbbbd16958008d56b50ffd60d6d77e934392d5 (patch)
treedfc23a33e864f36182419cb1e695f6c74ff93833 /Master/texmf-dist/tex/latex/covington
parent30f80963660c534a32ea3ffc97e399a613185df1 (diff)
covington (26aug16)
git-svn-id: svn://tug.org/texlive/trunk@41934 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/covington')
-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