From afdbbbd16958008d56b50ffd60d6d77e934392d5 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Fri, 26 Aug 2016 22:06:45 +0000 Subject: covington (26aug16) git-svn-id: svn://tug.org/texlive/trunk@41934 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/covington/covington.sty | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'Master/texmf-dist/tex/latex/covington') 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 -- cgit v1.2.3