From 20d530d28645a91e4362d87f1b7559a67cfd0e31 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Tue, 12 Dec 2023 03:00:44 +0000 Subject: CTAN sync 202312120300 --- macros/latex/contrib/covington/covington.tex | 32 +++++++++++++++++++++++++--- 1 file changed, 29 insertions(+), 3 deletions(-) (limited to 'macros/latex/contrib/covington/covington.tex') diff --git a/macros/latex/contrib/covington/covington.tex b/macros/latex/contrib/covington/covington.tex index 696bfe139c..78861d588e 100644 --- a/macros/latex/contrib/covington/covington.tex +++ b/macros/latex/contrib/covington/covington.tex @@ -97,8 +97,8 @@ % % Titling % -\def\pversion{Version 2.13} -\def\pdate{December 2, 2023} +\def\pversion{Version 2.14} +\def\pdate{December 11, 2023} \title{\textbf{The \cvt\ Package\\\Large Macros for Linguistics}} \author{Michael A. Covington \and J\"urgen Spitzm\"uller\thanks{Current maintainer. @@ -163,7 +163,8 @@ to your document preamble. The package has the following options to customize it By default, \cvt\ uses \LaTeX's equation counter for example numbering, so that if you use equations and numbered examples in the same paper, you get a single continuous series of numbers. While some people (including the original author of this package) consider this a feature, others might prefer to number equations and linguistic examples separately. If you count to the latter sort, - use this option. + use this option. Note that the default appearance of the own counter and the equation counter differs if the document has chapters. + See sec.~\ref{sec:cbc} for details. \item{\joption{fnexamplecounter=\jparam{main|own|own-reset}}} Default: \emph{main}. Specifics of the counter for numbered examples in footnotes. @@ -890,6 +891,24 @@ as in \pxref{expl} and \pxref{sbex}. It is defined as follows and can be redefin \end{lstlisting} +\subsection{Numbering per chapter or continuously}\label{sec:cbc} + +With the default (equation) counter which is used for examples, examples automatically get numbered +per chapter if the document has chapters (e.g., (2.1) for the first example in chapter~2). +If you want continuously numbered examples instead, use +\begin{lstlisting}[moretexcs={counterwithout}] +\counterwithout{equation}{chapter} +\end{lstlisting} +which also will change the equation numbering behavior. + +With \joption{owncounter}, on the other hand, examples are always continuously numbered by default. +If you want examples numbered per chapter, do: +\begin{lstlisting}[moretexcs={counterwithin,ownexcounterprep}] +\counterwithin*{covex}{chapter} +\renewcommand\ownexcounterprep{\thechapter.} +\end{lstlisting} + + \section{Glossing sentences word-by-word}\label{sec:gloss} To gloss a sentence is to annotate it word-by-word. Most commonly, a @@ -1647,6 +1666,13 @@ it. \section{Release history} +\subsection*{2.14 (2023 December 11)} +\begin{itemize} + \item Add \jcsmacro{ownexcounterprep} macro to add a prefix (e.g., the chapter) + to the (owncounter) example counter. See sec.~\ref{sec:cbc}. + \item Document how to (not) number examples per chapter. +\end{itemize} + \subsection*{2.13 (2023 December 2)} \begin{itemize} \item Fix example numbering with chapters. -- cgit v1.2.3