texlive[49343] Master/texmf-dist: covington (7dec18
commits+karl at tug.org
commits+karl at tug.org
Fri Dec 7 23:50:18 CET 2018
Revision: 49343
http://tug.org/svn/texlive?view=revision&revision=49343
Author: karl
Date: 2018-12-07 23:50:18 +0100 (Fri, 07 Dec 2018)
Log Message:
-----------
covington (7dec18
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/covington/README
trunk/Master/texmf-dist/doc/latex/covington/covington.pdf
trunk/Master/texmf-dist/doc/latex/covington/covington.tex
trunk/Master/texmf-dist/tex/latex/covington/covington.sty
Modified: trunk/Master/texmf-dist/doc/latex/covington/README
===================================================================
--- trunk/Master/texmf-dist/doc/latex/covington/README 2018-12-07 22:50:03 UTC (rev 49342)
+++ trunk/Master/texmf-dist/doc/latex/covington/README 2018-12-07 22:50:18 UTC (rev 49343)
@@ -31,6 +31,12 @@
== CHANGES ==
+* Version 1.8 (2018-12-07):
+
+ - Fix font markup of second gloss line (do not force rm).
+ - Add possibility to customize gloss line font setting.
+ - Add possibility to customize example number display.
+
* Version 1.7 (2018-09-08):
- Fix alignment in subexamples.
Modified: trunk/Master/texmf-dist/doc/latex/covington/covington.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/covington/covington.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/covington/covington.tex 2018-12-07 22:50:03 UTC (rev 49342)
+++ trunk/Master/texmf-dist/doc/latex/covington/covington.tex 2018-12-07 22:50:18 UTC (rev 49343)
@@ -92,8 +92,8 @@
%
% Titling
%
-\def\pversion{Version 1.7}
-\def\pdate{September 8, 2018}
+\def\pversion{Version 1.8}
+\def\pdate{December 7, 2018}
\title{\textbf{The \cvt\ Package\\Macros for Linguistics}}
\author{Michael A. Covington \and J\"urgen Spitzm\"uller\thanks{Current maintainer.
@@ -344,9 +344,18 @@
is always available as a fallback. If you use the package option \joption{force}, \cvt\ will override
existing \jenv{subexamples} environments. The package will issue a warning if \jenv{subexamples} is already defined.
-If you do not want the subexample letter in parentheses, you can redefine (via \jfcsmacro{renewcommand*}) the macro
-\jcsmacro{covsubexnumber} which has the following default definition:
+
+\subsection{Customizing the numbering}\label{sec:custno}
+
+You can change the display of the example number by redefining (via \jfcsmacro{renewcommand*}) the macro
+\jcsmacro{covexnumber} which has the following default definition:
\begin{lstlisting}
+\newcommand*\covexnumber[1]{(#1)}
+\end{lstlisting}
+
+In the same vein, you can customize the display of the subexample letter by redefining (also via \jfcsmacro{renewcommand*})
+the macro \jcsmacro{covsubexnumber} which has the following default definition:
+\begin{lstlisting}
\newcommand*\covsubexnumber[1]{(#1)}
\end{lstlisting}
@@ -355,7 +364,7 @@
\jcsmacro{subexamplenumbersep} (preset to \texttt{0pt} as well). In both cases, a positive value will increase, a negative
value will decrease the respective distance.
Doing
-\begin{lstlisting}
+\begin{lstlisting}[moretexcs={setlength}]
\setlength{\examplenumbersep}{-0.5em}
\setlength{\subexamplenumbersep}{0.5em}
\end{lstlisting}
@@ -380,7 +389,10 @@
in section~\ref{sec:ex} would be printed as \ref{expl}, a reference to the sub-example
in section~\ref{sec:subexs} as \ref{sbex}.
For convenience, though, \cvt\ provides a command \jcsmacro{pxref} that also prints the parentheses,
-as in \pxref{expl} and \pxref{sbex}.
+as in \pxref{expl} and \pxref{sbex}. It is defined as followed:
+\begin{lstlisting}[moretexcs={providecommand}]
+\providecommand*\pxref[1]{(\ref{#1})}
+\end{lstlisting}
\section{Glossing sentences word-by-word}\label{sec:gloss}
@@ -494,6 +506,15 @@
with \jcsmacro{glend}. Layout is critical in the part preceding
\jcsmacro{glt} or \jcsmacro{gln}, and fairly free afterward.
+The font settings of each gloss line can be customized by redefining these macros:
+\begin{lstlisting}
+\newcommand*\glosslineone{\normalfont\itshape}% font settings 1st gloss line
+\newcommand*\glosslinetwo{\normalfont\upshape}% font settings 2nd gloss line
+\newcommand*\glosslinethree{\normalfont\upshape}% font settings 3rd gloss line
+\end{lstlisting}
+The markup of the translation line has to be done manually.
+
+
\section{Phrase structure rules}
To print phrase structure rules such as \psr{S}{NP~VP} you can use \texttt{covington's} macro
@@ -728,6 +749,14 @@
\section{Release history}
+\subsection*{1.8 (2018 December 7)}
+
+\begin{itemize}
+ \item Fix font markup of second gloss line (do not force rm).
+ \item Add possibility to customize gloss line font setting. See sec.~\ref{sec:custno}.
+ \item Add possibility to customize example number display. See sec.~\ref{sec:custno}.
+\end{itemize}
+
\subsection*{1.7 (2018 September 8)}
\begin{itemize}
Modified: trunk/Master/texmf-dist/tex/latex/covington/covington.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/covington/covington.sty 2018-12-07 22:50:03 UTC (rev 49342)
+++ trunk/Master/texmf-dist/tex/latex/covington/covington.sty 2018-12-07 22:50:18 UTC (rev 49343)
@@ -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,6 +204,8 @@
% 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
@@ -210,9 +212,11 @@
\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,13 +437,18 @@
\def\cov at normalfont{\rm}%
}{%
\def\cov at emphasized{\normalfont\itshape}%
- \def\cov at normalfont{\normalfont\rmfamily}%
+ \def\cov at normalfont{\normalfont\upshape}%
}
-\let\eachwordone=\cov at emphasized
-\let\eachwordtwo=\cov at normalfont
-\let\eachwordthree=\cov at normalfont
+% Font settings for gloss lines
+\newcommand*\glosslineone{\cov at emphasized}
+\newcommand*\glosslinetwo{\cov at normalfont}
+\newcommand*\glosslinethree{\cov at 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%
\global\setbox#3=\lastbox
More information about the tex-live-commits
mailing list