aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Alessi <alessi@robertalessi.net>2023-03-30 17:51:29 +0200
committerRobert Alessi <alessi@robertalessi.net>2023-03-30 17:55:53 +0200
commit3f6cd36a528ad63f2b0c387fc56d794aa6024fe4 (patch)
tree14855a8f1507d61bea889e2b4fe358a4503e630c
parent6bd23e94ef2b1b35e6ac5ae81a8dc100e01209f0 (diff)
downloadekdosis-3f6cd36a528ad63f2b0c387fc56d794aa6024fe4.tar.gz
bugfix: the value of \thepoemline was lost at the beginning of the stanzas
-rw-r--r--ekdosis.dtx35
1 files changed, 18 insertions, 17 deletions
diff --git a/ekdosis.dtx b/ekdosis.dtx
index 7ba58b9..f56aafb 100644
--- a/ekdosis.dtx
+++ b/ekdosis.dtx
@@ -59,7 +59,7 @@ Alessi <alessi@robertalessi.net>
59%<package>\NeedsTeXFormat{LaTeX2e}[1999/12/01] 59%<package>\NeedsTeXFormat{LaTeX2e}[1999/12/01]
60%<package>\ProvidesPackage{ekdosis} 60%<package>\ProvidesPackage{ekdosis}
61%<*package> 61%<*package>
62 [2023/03/25 v1.5-dev Typesetting TEI xml-compliant critical editions] 62 [2023/03/30 v1.5-dev Typesetting TEI xml-compliant critical editions]
63%</package> 63%</package>
64%<*driver> 64%<*driver>
65\begin{filecontents}[noheader,overwrite]{bibdata.xml} 65\begin{filecontents}[noheader,overwrite]{bibdata.xml}
@@ -8024,7 +8024,7 @@ Sample text with a \textcolor{red}{word} in red.
8024% \end{macrocode} 8024% \end{macrocode}
8025% \paragraph{\textsf{ekdosis} Symbol} 8025% \paragraph{\textsf{ekdosis} Symbol}
8026% \begin{macro}{\eKd} 8026% \begin{macro}{\eKd}
8027% \changes{v1.5}{2023/03/25}{Prints \textsf{ekdosis} indentifying 8027% \changes{v1.5}{2023/03/30}{Prints \textsf{ekdosis} indentifying
8028% symbol} As of v1.5, \pkg{ekdosis} has its own identifying 8028% symbol} As of v1.5, \pkg{ekdosis} has its own identifying
8029% symbol. It is produced by \cs{eKd} and best printed with the Old 8029% symbol. It is produced by \cs{eKd} and best printed with the Old
8030% Standard Greek font. 8030% Standard Greek font.
@@ -8287,7 +8287,7 @@ Sample text with a \textcolor{red}{word} in red.
8287% \begin{macro}{\teidirectE} 8287% \begin{macro}{\teidirectE}
8288% \changes{v1.3}{2021/08/18}{direct insertion of elements in the 8288% \changes{v1.3}{2021/08/18}{direct insertion of elements in the
8289% \texttt{TEI xml} file} 8289% \texttt{TEI xml} file}
8290% \changes{v1.5}{2023/03/25}{direct insertion of empty elements in the 8290% \changes{v1.5}{2023/03/30}{direct insertion of empty elements in the
8291% \texttt{TEI xml} file} 8291% \texttt{TEI xml} file}
8292% \cs{teidirect}\oarg{xml attributes}\marg{xml element}\marg{code} 8292% \cs{teidirect}\oarg{xml attributes}\marg{xml element}\marg{code}
8293% does nothing in \LaTeX. It is only used to insert elements in the 8293% does nothing in \LaTeX. It is only used to insert elements in the
@@ -8302,7 +8302,7 @@ Sample text with a \textcolor{red}{word} in red.
8302% \end{macro} 8302% \end{macro}
8303% \end{macro} 8303% \end{macro}
8304% \begin{macro}{\getTEIxmlid} 8304% \begin{macro}{\getTEIxmlid}
8305% \changes{v1.5}{2023/03/25}{returns \texttt{TEI xml:ids} from a 8305% \changes{v1.5}{2023/03/30}{returns \texttt{TEI xml:ids} from a
8306% csv-list of ids} This command returns from a csv-list of unique 8306% csv-list of ids} This command returns from a csv-list of unique
8307% identifiers declared in commands such as \cs{DeclareWitness} and the 8307% identifiers declared in commands such as \cs{DeclareWitness} and the
8308% like a space-separated list of their corresponding |xml:id|s, each 8308% like a space-separated list of their corresponding |xml:id|s, each
@@ -8778,7 +8778,7 @@ Sample text with a \textcolor{red}{word} in red.
8778\newlength{\ekd@app@localheight} 8778\newlength{\ekd@app@localheight}
8779% \end{macrocode} 8779% \end{macrocode}
8780% \begin{macro}{\localappheight} 8780% \begin{macro}{\localappheight}
8781% \changes{v1.5}{2023/03/25}{changes the height of the apparatus 8781% \changes{v1.5}{2023/03/30}{changes the height of the apparatus
8782% criticus} 8782% criticus}
8783% \cs{localappheight}\marg{dimen} can be used to change locally the 8783% \cs{localappheight}\marg{dimen} can be used to change locally the
8784% length of \cs{ekd@app@height} set by the |appheight| option of 8784% length of \cs{ekd@app@height} set by the |appheight| option of
@@ -8797,7 +8797,7 @@ Sample text with a \textcolor{red}{word} in red.
8797% \end{macrocode} 8797% \end{macrocode}
8798% \end{macro} 8798% \end{macro}
8799% \begin{macro}{\addtoappheight} 8799% \begin{macro}{\addtoappheight}
8800% \changes{v1.5}{2023/03/25}{increases or decreases the height of the 8800% \changes{v1.5}{2023/03/30}{increases or decreases the height of the
8801% apparatus criticus} 8801% apparatus criticus}
8802% As the name suggests, in contrast to \cs{localappheight}, 8802% As the name suggests, in contrast to \cs{localappheight},
8803% \cs{addtoappheight}\marg{dimen} is used to increase or decrease 8803% \cs{addtoappheight}\marg{dimen} is used to increase or decrease
@@ -9083,7 +9083,7 @@ Sample text with a \textcolor{red}{word} in red.
9083% The following commands are provided to set and control the maximum 9083% The following commands are provided to set and control the maximum
9084% number of lines printed on each page. 9084% number of lines printed on each page.
9085% \begin{macro}{\setmaxlines} 9085% \begin{macro}{\setmaxlines}
9086% \changes{v1.5}{2023/03/25}{limits the number of lines per page} 9086% \changes{v1.5}{2023/03/30}{limits the number of lines per page}
9087% \cs{setmaxlines}\marg{n}, where \meta{n} is a positive integer 9087% \cs{setmaxlines}\marg{n}, where \meta{n} is a positive integer
9088% $\geq 1$, can be used either in the preamble or at any point of the 9088% $\geq 1$, can be used either in the preamble or at any point of the
9089% document to set the maximum number of lines to be printed on each 9089% document to set the maximum number of lines to be printed on each
@@ -9094,7 +9094,7 @@ Sample text with a \textcolor{red}{word} in red.
9094% \end{macrocode} 9094% \end{macrocode}
9095% \end{macro} 9095% \end{macro}
9096% \begin{macro}{\localmaxlines} 9096% \begin{macro}{\localmaxlines}
9097% \changes{v1.5}{2023/03/25}{changes the maximum number of lines 9097% \changes{v1.5}{2023/03/30}{changes the maximum number of lines
9098% locally} 9098% locally}
9099% Once a maximum number of lines per page has been set, 9099% Once a maximum number of lines per page has been set,
9100% \cs{localmaxlines}\marg{n} can be used to adjust this number on a 9100% \cs{localmaxlines}\marg{n} can be used to adjust this number on a
@@ -9107,7 +9107,7 @@ Sample text with a \textcolor{red}{word} in red.
9107% \end{macrocode} 9107% \end{macrocode}
9108% \end{macro} 9108% \end{macro}
9109% \begin{macro}{\addtomaxlines} 9109% \begin{macro}{\addtomaxlines}
9110% \changes{v1.5}{2023/03/25}{adds or subtracts lines from a given page} 9110% \changes{v1.5}{2023/03/30}{adds or subtracts lines from a given page}
9111% Unlike \cs{localmaxlines}, \cs{addtomaxlines}\meta{n} takes as 9111% Unlike \cs{localmaxlines}, \cs{addtomaxlines}\meta{n} takes as
9112% argument the number of lines one wishes to add or substract from the 9112% argument the number of lines one wishes to add or substract from the
9113% number that has been set by \cs{setmaxlines}. As a result, \meta{n} 9113% number that has been set by \cs{setmaxlines}. As a result, \meta{n}
@@ -9120,7 +9120,7 @@ Sample text with a \textcolor{red}{word} in red.
9120% \end{macrocode} 9120% \end{macrocode}
9121% \end{macro} 9121% \end{macro}
9122% \begin{macro}{\nomaxlines} 9122% \begin{macro}{\nomaxlines}
9123% \changes{v1.5}{2023/03/25}{unsets \cs{setmaxlines}} 9123% \changes{v1.5}{2023/03/30}{unsets \cs{setmaxlines}}
9124% \cs{nomaxlines} unsets any limit previously set by \cs{setmaxlines}. 9124% \cs{nomaxlines} unsets any limit previously set by \cs{setmaxlines}.
9125% \begin{macrocode} 9125% \begin{macrocode}
9126\def\nomaxlines{\luadirect{tex.sprint(ekdosis.resetlocalmaxlines())}} 9126\def\nomaxlines{\luadirect{tex.sprint(ekdosis.resetlocalmaxlines())}}
@@ -9184,7 +9184,7 @@ Sample text with a \textcolor{red}{word} in red.
9184% \end{macrocode} 9184% \end{macrocode}
9185% \end{macro} 9185% \end{macro}
9186% \begin{macro}{\App} 9186% \begin{macro}{\App}
9187% \changes{v1.5}{2023/03/25}{To be used conjointly with 9187% \changes{v1.5}{2023/03/30}{To be used conjointly with
9188% \texttt{ekdosis.el}} 9188% \texttt{ekdosis.el}}
9189% In contrast to \cs{app}, \cs{App} takes two mandatory arguments and 9189% In contrast to \cs{app}, \cs{App} takes two mandatory arguments and
9190% accepts one optional argument like so: 9190% accepts one optional argument like so:
@@ -10068,7 +10068,7 @@ Sample text with a \textcolor{red}{word} in red.
10068% \end{macro} 10068% \end{macro}
10069% \paragraph{Lacunae} 10069% \paragraph{Lacunae}
10070% \begin{macro}{\ilabel} 10070% \begin{macro}{\ilabel}
10071% \changes{v1.5}{2023/03/25}{recalls and sets the ending label of 10071% \changes{v1.5}{2023/03/30}{recalls and sets the ending label of
10072% lemmas used to mark lacunae in witnesses} When \cs{lem} has been 10072% lemmas used to mark lacunae in witnesses} When \cs{lem} has been
10073% used with the optional argument |ilabel=<label>|, 10073% used with the optional argument |ilabel=<label>|,
10074% \cs{ilabel}\marg{label} must be used to mark the point where the 10074% \cs{ilabel}\marg{label} must be used to mark the point where the
@@ -10384,7 +10384,7 @@ Sample text with a \textcolor{red}{word} in red.
10384% \end{macrocode} 10384% \end{macrocode}
10385% \end{macro} 10385% \end{macro}
10386% \begin{macro}{\ekdEOprint} 10386% \begin{macro}{\ekdEOprint}
10387% \changes{v1.5}{2023/03/25}{Sets headers and footers on 10387% \changes{v1.5}{2023/03/30}{Sets headers and footers on
10388% \enquote{paired} facing pages} 10388% \enquote{paired} facing pages}
10389% To set headers and footers on \enquote{paired} facing pages, 10389% To set headers and footers on \enquote{paired} facing pages,
10390% \cs{ekdEOprint} accepts two mandatory, self-evident arguments, like 10390% \cs{ekdEOprint} accepts two mandatory, self-evident arguments, like
@@ -10424,7 +10424,7 @@ Sample text with a \textcolor{red}{word} in red.
10424% counter to set the value of the page numbers. This counter should be 10424% counter to set the value of the page numbers. This counter should be
10425% incremented every two pages. 10425% incremented every two pages.
10426% \begin{counter}{pairedpage} 10426% \begin{counter}{pairedpage}
10427% \changes{v1.5}{2023/03/25}{A counter incremented every two pages} 10427% \changes{v1.5}{2023/03/30}{A counter incremented every two pages}
10428% |pairedpage| is first set as a global counter:--- 10428% |pairedpage| is first set as a global counter:---
10429% \begin{macrocode} 10429% \begin{macrocode}
10430\newcounter{pairedpage} 10430\newcounter{pairedpage}
@@ -10432,19 +10432,19 @@ Sample text with a \textcolor{red}{word} in red.
10432% \end{macrocode} 10432% \end{macrocode}
10433% \end{counter} 10433% \end{counter}
10434% \begin{macro}{\setpairedpagenum} 10434% \begin{macro}{\setpairedpagenum}
10435% \changes{v1.5}{2023/03/25}{sets the same page number on paired 10435% \changes{v1.5}{2023/03/30}{sets the same page number on paired
10436% pages} \cs{setpairedpagenum}\marg{number} is used just ahead of 10436% pages} \cs{setpairedpagenum}\marg{number} is used just ahead of
10437% the alignment environment to set the number of the first left-hand 10437% the alignment environment to set the number of the first left-hand
10438% paired page. 10438% paired page.
10439% \begin{macro}{\setpairedpage} 10439% \begin{macro}{\setpairedpage}
10440% \changes{v1.5}{2023/03/25}{sets the page number of the first paired 10440% \changes{v1.5}{2023/03/30}{sets the page number of the first paired
10441% page} \cs{setpairedpage} is an argument-less command meant to be 10441% page} \cs{setpairedpage} is an argument-less command meant to be
10442% issued in commands used to set headers or footers before 10442% issued in commands used to set headers or footers before
10443% \cs{thepage}. This command has the counter |pairedpage| 10443% \cs{thepage}. This command has the counter |pairedpage|
10444% incremented on right-hand pages only, and sets |page| $\leftarrow$ 10444% incremented on right-hand pages only, and sets |page| $\leftarrow$
10445% |pairedpage| on every page. 10445% |pairedpage| on every page.
10446% \begin{macro}{\resetpagenumber} 10446% \begin{macro}{\resetpagenumber}
10447% \changes{v1.5}{2023/03/25}{resets normal running page numbers} 10447% \changes{v1.5}{2023/03/30}{resets normal running page numbers}
10448% \cs{resetpagenumber} must be used right out of \enquote{mirrored} 10448% \cs{resetpagenumber} must be used right out of \enquote{mirrored}
10449% paired pages alignment environments. This argument-less command 10449% paired pages alignment environments. This argument-less command
10450% corrects any numbering error on the page following the edition 10450% corrects any numbering error on the page following the edition
@@ -10737,6 +10737,7 @@ Sample text with a \textcolor{red}{word} in red.
10737 code type = \def\type@value{#1} 10737 code type = \def\type@value{#1}
10738} 10738}
10739\NewDocumentEnvironment{ekdstanza}{!O{}}{% 10739\NewDocumentEnvironment{ekdstanza}{!O{}}{%
10740 \resetvlinenumber[\thepoemline]%
10740 \leavevmode\unskip 10741 \leavevmode\unskip
10741 \ekvset{ekd@stanza}{#1}% 10742 \ekvset{ekd@stanza}{#1}%
10742 \ignorespaces 10743 \ignorespaces