From 5d57c7c06864a08c811765622587b93af1d8cd23 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Fri, 7 Dec 2018 22:50:18 +0000 Subject: covington (7dec18 git-svn-id: svn://tug.org/texlive/trunk@49343 c570f23f-e606-0410-a88d-b1316a301751 --- .../texmf-dist/tex/latex/covington/covington.sty | 23 +++++++++++++++------- 1 file changed, 16 insertions(+), 7 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 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% -- cgit v1.2.3