texlive[69019] Master/texmf-dist: covington (2dec23)
commits+karl at tug.org
commits+karl at tug.org
Sat Dec 2 21:54:03 CET 2023
Revision: 69019
https://tug.org/svn/texlive?view=revision&revision=69019
Author: karl
Date: 2023-12-02 21:54:02 +0100 (Sat, 02 Dec 2023)
Log Message:
-----------
covington (2dec23)
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 2023-12-02 16:48:05 UTC (rev 69018)
+++ trunk/Master/texmf-dist/doc/latex/covington/README 2023-12-02 20:54:02 UTC (rev 69019)
@@ -31,6 +31,9 @@
== CHANGES ==
+* Version 2.13 (2023-12-02)
+ - Fix example numbering with chapters (#16).
+
* Version 2.12 (2023-06-25)
- Fix issue with redefinitions of \glosslineone/\glosslinetwo/\glosslinethree,
which could get lost along the text (#13).
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 2023-12-02 16:48:05 UTC (rev 69018)
+++ trunk/Master/texmf-dist/doc/latex/covington/covington.tex 2023-12-02 20:54:02 UTC (rev 69019)
@@ -97,8 +97,8 @@
%
% Titling
%
-\def\pversion{Version 2.12}
-\def\pdate{June 25, 2023}
+\def\pversion{Version 2.13}
+\def\pdate{December 2, 2023}
\title{\textbf{The \cvt\ Package\\\Large Macros for Linguistics}}
\author{Michael A. Covington \and J\"urgen Spitzm\"uller\thanks{Current maintainer.
@@ -129,7 +129,7 @@
\footnote{The package has a long history. It started off as a collection of private macros back in the
\LaTeX\ 2.09 days and was initially released as \texttt{covingtn.sty} (following the old 8.3 \textsc{fat}
file name limit). In em\TeX\ under \textsc{ms-dos}, the file was distributed as \texttt{covingto.sty}.
-Eventually, it has been renamed to \cvt\ and adapted to \LaTeXe. The current version requires a resonably
+Eventually, it has been renamed to \cvt\ and adapted to \LaTeXe. The current version requires a reasonably
recent version of \LaTeXe, as it employs some newer kernel features.}
To use \cvt, load the package as usual by adding the command
@@ -364,6 +364,10 @@
For instance, \verb|numberformat={[a.]}| results in lower alphabetic numbering followed by a dot,
embraced in brackets.
+
+ Note that if the equation counter is used with chapters, this resets the separator between chapter
+ number and example number to the default (a dot). To override this, you might redefine the macro
+ \jcsmacro{covchapexsep}, which is predefined to \verb|{.}|.
\item[\joption{fnnumberformat=\{\jparam{template}\}}] Default: \verb|{(i)}|.
The format of the example number if \joption{fnexamplecounter=own} or \joption{fnexamplecounter=own-reset}
and example is in a footnote. For the template format, see \joption{numberformat}.
@@ -1643,6 +1647,11 @@
\section{Release history}
+\subsection*{2.13 (2023 December 2)}
+\begin{itemize}
+ \item Fix example numbering with chapters.
+\end{itemize}
+
\subsection*{2.12 (2023 June 25)}
\begin{itemize}
\item Fix issue with redefinitions of \jcsmacro{glosslineone}\slash\jcsmacro{glosslinetwo}\slash
Modified: trunk/Master/texmf-dist/tex/latex/covington/covington.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/covington/covington.sty 2023-12-02 16:48:05 UTC (rev 69018)
+++ trunk/Master/texmf-dist/tex/latex/covington/covington.sty 2023-12-02 20:54:02 UTC (rev 69019)
@@ -42,8 +42,8 @@
%%% Metadata
%%%
-\def\filedate{2023/06/25}
-\def\fileversion{2.12}
+\def\filedate{2023/12/02}
+\def\fileversion{2.13}
\def\filename{covington.sty}
% Macro to issue warnings
@@ -342,6 +342,10 @@
% 2023.06.04 (v. 2.11): judge marks
\newcommand*\cov at judge@fs{\normalfont\upshape}
+% Track whether example format was changed via template
+\newif\ifexfmtchanged
+\newif\ifexfmtgchanged
+
\DeclareKeys[covexpl]
{
% font settings
@@ -363,7 +367,10 @@
% addnumbersep
addnumbersep.code = { \setlength{\examplenumbersep}{#1} },
% numberformat={template}
- numberformat.code = { \cov at parse@number at template{#1}{exfmt}{covexnumber} },
+ numberformat.code = {
+ \cov at parse@number at template{#1}{exfmt}{covexnumber}
+ \exfmtchangedtrue
+ },
% fnnumberformat={template}
fnumberformat.code = { \cov at parse@number at template{#1}{fnexfmt}{covexnumberfn} },
% judge=text
@@ -387,6 +394,11 @@
\newenvironment{covexample}[1][]{%
\@cov at insingleextrue%
\let\cov at judge@ex at text\cov at judge@ex at text@global%
+ \ifexfmtgchanged%
+ \exfmtchangedtrue%
+ \else
+ \exfmtchangedfalse%
+ \fi%
\SetKeys[covexpl]{#1}%
\begin{covexamples}
\@ifundefined{cov at judge@ex at text}{\item}{\item<\cov at judge@ex at text>}%
@@ -469,6 +481,8 @@
\def\cov at judge@marker{}
+\def\covchapexsep{.}
+
\newenvironment{covexamples}[1][]{% % define "examples" environment
\if at cov@insubex%
\let\cov at judge@ex at text\relax%
@@ -475,6 +489,11 @@
\else%
\if at cov@insingleex\else%
\let\cov at judge@ex at text\cov at judge@ex at text@global%
+ \ifexfmtgchanged%
+ \exfmtchangedtrue%
+ \else
+ \exfmtchangedfalse%
+ \fi%
\fi%
\fi%
\ifx{#1}{\empty}\else\SetKeys[covexpl]{#1}\fi%
@@ -524,7 +543,9 @@
\usecounter{covex}% % sets it to zero, unwantedly
\setcounter{covex}{\arabic{covexsave}}% % restores previous value
\else
- \renewcommand{\theequation}{\exfmt{equation}}%
+ \ifexfmtchanged%
+ \renewcommand{\theequation}{\ifnum\c at chapter>\z@\thechapter\covchapexsep\fi\exfmt{equation}}%
+ \fi%
\setcounter{covexsave}{\arabic{equation}}%
\usecounter{equation}% % sets it to zero, unwantedly
\setcounter{equation}{\arabic{covexsave}}% % restores previous value
@@ -612,7 +633,10 @@
% addnumbersep
addsubnumbersep.code = { \setlength{\subexamplenumbersep}{#1} },
% numberformat={template}
- numberformat.code = { \cov at parse@number at template{#1}{exfmt}{covexnumber} },
+ numberformat.code = {
+ \cov at parse@number at template{#1}{exfmt}{covexnumber}
+ \exfmtchangedtrue
+ },
% fnnumberformat={template}
fnumberformat.code = { \cov at parse@number at template{#1}{fnexfmt}{covexnumberfn} },
% subnumberformat={template}
@@ -690,6 +714,11 @@
\let\cov at xp\relax%
\let\cov at xpst\relax%
\let\cov at judge@ex at text\relax%
+ \ifexfmtgchanged%
+ \exfmtchangedtrue%
+ \else
+ \exfmtchangedfalse%
+ \fi%
\ifx{#1}{\empty}\else\SetKeys[covsubexpl]{#1}\fi%
\begin{covexample}%
\@ifundefined{cov at sxp}{}{\bgroup\subexpreamblefs\cov at sxp\egroup}% insert preamble if given
@@ -755,7 +784,10 @@
% addsubnumbersep
addsubnumbersep.code = { \setlength{\subexamplenumbersep}{#1} },
% numberformat={template}
- numberformat.code = { \cov at parse@number at template{#1}{exfmt}{covexnumber} },
+ numberformat.code = {
+ \cov at parse@number at template{#1}{exfmt}{covexnumber}
+ \exfmtgchangedtrue
+ },
% fnnumberformat={template}
fnumberformat.code = { \cov at parse@number at template{#1}{fnexfmt}{covexnumberfn} },
% subnumberformat={template}
More information about the tex-live-commits
mailing list.