summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/covington
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/covington')
-rw-r--r--Master/texmf-dist/tex/latex/covington/covington.sty23
1 files changed, 16 insertions, 7 deletions
diff --git a/Master/texmf-dist/tex/latex/covington/covington.sty b/Master/texmf-dist/tex/latex/covington/covington.sty
index fe1d356f863..4d40d34bd4a 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{2018/09/08}
-\def\fileversion{1.7}
+\def\filedate{2018/12/07}
+\def\fileversion{1.8}
\def\filename{covington.sty}
% Force redefinition of environments?
@@ -204,15 +204,19 @@
% forced by the "force" option. This prevents clashes
% with packages/classes that roll their own examples environment
% (such as beamer).
+%
+% New in 1.8 (2018-12-07): Allow to redefine label (\covexnumber)
\newcounter{equationsave} % used in trick with equation number
\newlength\examplenumbersep
\setlength\examplenumbersep{0pt}
+\newcommand*\covexnumber[1]{(#1)}
+
\newenvironment{covexamples}% % define "example" environment
{%
-\begin{list}{(\theequation)}%
+\begin{list}{\covexnumber{\theequation}}%
{%
\addtolength{\labelwidth}{\examplenumbersep}%
\addtolength{\leftmargin}{\examplenumbersep}%
@@ -433,12 +437,17 @@
\def\cov@normalfont{\rm}%
}{%
\def\cov@emphasized{\normalfont\itshape}%
- \def\cov@normalfont{\normalfont\rmfamily}%
+ \def\cov@normalfont{\normalfont\upshape}%
}
-\let\eachwordone=\cov@emphasized
-\let\eachwordtwo=\cov@normalfont
-\let\eachwordthree=\cov@normalfont
+% Font settings for gloss lines
+\newcommand*\glosslineone{\cov@emphasized}
+\newcommand*\glosslinetwo{\cov@normalfont}
+\newcommand*\glosslinethree{\cov@normalfont}
+
+\def\eachwordone{\glosslineone}
+\def\eachwordtwo{\glosslinetwo}
+\def\eachwordthree{\glosslinethree}
\def\lastword#1#2#3% #1 = \each, #2 = line box, #3 = word box
{\setbox#2=\vbox{\unvbox#2%