summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/covington
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2018-12-07 22:50:18 +0000
committerKarl Berry <karl@freefriends.org>2018-12-07 22:50:18 +0000
commit5d57c7c06864a08c811765622587b93af1d8cd23 (patch)
treeb39661ce40f278e56106fe29781afe690da6d775 /Master/texmf-dist/tex/latex/covington
parenta1f7397ce297f5e4894be98f450e6357f5b9bb0e (diff)
covington (7dec18
git-svn-id: svn://tug.org/texlive/trunk@49343 c570f23f-e606-0410-a88d-b1316a301751
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%