From dfccfa00e569921faa22ce88a996818e5debac79 Mon Sep 17 00:00:00 2001
From: Robert Alessi <alessi@robertalessi.net>
Date: Sat, 17 Jun 2023 09:27:01 +0200
Subject: a glitch in ekd@align

---
 ekdosis.dtx | 59 ++++++++++++++++++++++++++++++++++-------------------------
 1 file changed, 34 insertions(+), 25 deletions(-)

(limited to 'ekdosis.dtx')

diff --git a/ekdosis.dtx b/ekdosis.dtx
index e85d6fb..203415b 100644
--- a/ekdosis.dtx
+++ b/ekdosis.dtx
@@ -59,7 +59,7 @@ Alessi <alessi@robertalessi.net>
 %<package>\NeedsTeXFormat{LaTeX2e}[1999/12/01]
 %<package>\ProvidesPackage{ekdosis}
 %<*package>
-    [2023/05/21 v1.5-dev Typesetting TEI xml-compliant critical editions]
+    [2023/06/17 v1.5-dev Typesetting TEI xml-compliant critical editions]
 %</package>
 %<*driver>
 \begin{filecontents}[noheader,overwrite]{bibdata.xml}
@@ -3385,12 +3385,14 @@ texts=latin[xml:lang="la"]+\textcolor{red}{;}+
 % number.\footnote{For setting headers and footers in this arrangement
 % of text, but also for the current limitations attached to this
 % option, see \vpageref{sec:header-paired-pages}.}\\
-% \DescribeOption{lineation} |lineation|$=$\verb+page|document+
+% \DescribeOption{lineation} |lineation|$=$\verb+page|document|none+
 % \hfill\tcboxverb{Default: document}\\
 % This option applies to edition texts initially set to receive an
 % apparatus criticus. By default, lines are continuously numbered
 % throughout the document. |lineation=page| sets the numbering to
-% start afresh at the top of each page.\\
+% start afresh at the top of each page. |none| does the same as |page|
+% but prevents the numbers from being printed in
+% the margins while keeping them in use in the apparatus criticus.\\
 % \DescribeOption{flush} |flush|$=$\verb+true|false+
 % \hfill\tcboxverb{Default: false}\\
 % This named argument does not need a value as it defaults to |true|
@@ -8223,7 +8225,7 @@ Sample text with a \textcolor{red}{word} in red.
 %    \end{macrocode}
 % \paragraph{\textsf{ekdosis} Symbol}
 % \begin{macro}{\eKd}
-% \changes{v1.5}{2023/05/21}{Prints \textsf{ekdosis} indentifying
+% \changes{v1.5}{2023/06/17}{Prints \textsf{ekdosis} indentifying
 % symbol} As of v1.5, \pkg{ekdosis} has its own identifying
 % symbol. It is produced by \cs{eKd} and best printed with the Old
 % Standard Greek font.
@@ -8486,7 +8488,7 @@ Sample text with a \textcolor{red}{word} in red.
 % \begin{macro}{\teidirectE}
 % \changes{v1.3}{2021/08/18}{direct insertion of elements in the
 % \texttt{TEI xml} file}
-% \changes{v1.5}{2023/05/21}{direct insertion of empty elements in the
+% \changes{v1.5}{2023/06/17}{direct insertion of empty elements in the
 % \texttt{TEI xml} file}
 % \cs{teidirect}\oarg{xml attributes}\marg{xml element}\marg{code}
 % does nothing in \LaTeX. It is only used to insert elements in the
@@ -8501,7 +8503,7 @@ Sample text with a \textcolor{red}{word} in red.
 % \end{macro}
 % \end{macro}
 % \begin{macro}{\getTEIxmlid}
-% \changes{v1.5}{2023/05/21}{returns \texttt{TEI xml:ids} from a
+% \changes{v1.5}{2023/06/17}{returns \texttt{TEI xml:ids} from a
 % csv-list of ids} This command returns from a csv-list of unique
 % identifiers declared in commands such as \cs{DeclareWitness} and the
 % like a space-separated list of their corresponding |xml:id|s, each
@@ -8977,7 +8979,7 @@ Sample text with a \textcolor{red}{word} in red.
 \newlength{\ekd@app@localheight}
 %    \end{macrocode}
 % \begin{macro}{\localappheight}
-% \changes{v1.5}{2023/05/21}{changes the height of the apparatus
+% \changes{v1.5}{2023/06/17}{changes the height of the apparatus
 % criticus}
 % \cs{localappheight}\marg{dimen} can be used to change locally the
 % length of \cs{ekd@app@height} set by the |appheight| option of
@@ -8996,7 +8998,7 @@ Sample text with a \textcolor{red}{word} in red.
 %    \end{macrocode}
 % \end{macro}
 % \begin{macro}{\addtoappheight}
-% \changes{v1.5}{2023/05/21}{increases or decreases the height of the
+% \changes{v1.5}{2023/06/17}{increases or decreases the height of the
 % apparatus criticus}
 % As the name suggests, in contrast to \cs{localappheight},
 % \cs{addtoappheight}\marg{dimen} is used to increase or decrease
@@ -9193,6 +9195,7 @@ Sample text with a \textcolor{red}{word} in red.
 % numbering should start afresh at the top of each page.
 %    \begin{macrocode}
 \newif\ifekd@pagelineation
+\newif\ifekd@hidelinenumbers
 \newif\ifekd@pagevlineation
 %    \end{macrocode}
 % Two counters (|ekd@lnperpage| and |ekd@locallnperpage|) are defined
@@ -9211,7 +9214,7 @@ Sample text with a \textcolor{red}{word} in red.
   choice lineation = {page = \ekd@pagelineationtrue,
     document = \ekd@pagelineationfalse,
     none = \ekd@pagelineationtrue
-           \renewcommand\thelinenumber{}},
+           \ekd@hidelinenumberstrue},
   unknown-choice lineation = \PackageError{ekdosis}{unknown
     lineation=#1}{`lineation' must be either `page' or `document'.},
   choice vlineation = {page = \ekd@pagevlineationtrue,
@@ -9282,7 +9285,7 @@ Sample text with a \textcolor{red}{word} in red.
 % The following commands are provided to set and control the maximum
 % number of lines printed on each page.
 % \begin{macro}{\setmaxlines}
-% \changes{v1.5}{2023/05/21}{limits the number of lines per page}
+% \changes{v1.5}{2023/06/17}{limits the number of lines per page}
 % \cs{setmaxlines}\marg{n}, where \meta{n} is a positive integer
 % $\geq 1$, can be used either in the preamble or at any point of the
 % document to set the maximum number of lines to be printed on each
@@ -9293,7 +9296,7 @@ Sample text with a \textcolor{red}{word} in red.
 %    \end{macrocode}
 % \end{macro}
 % \begin{macro}{\localmaxlines}
-% \changes{v1.5}{2023/05/21}{changes the maximum number of lines
+% \changes{v1.5}{2023/06/17}{changes the maximum number of lines
 % locally}
 % Once a maximum number of lines per page has been set,
 % \cs{localmaxlines}\marg{n} can be used to adjust this number on a
@@ -9306,7 +9309,7 @@ Sample text with a \textcolor{red}{word} in red.
 %    \end{macrocode}
 % \end{macro}
 % \begin{macro}{\addtomaxlines}
-% \changes{v1.5}{2023/05/21}{adds or subtracts lines from a given page}
+% \changes{v1.5}{2023/06/17}{adds or subtracts lines from a given page}
 % Unlike \cs{localmaxlines}, \cs{addtomaxlines}\meta{n} takes as
 % argument the number of lines one wishes to add or substract from the
 % number that has been set by \cs{setmaxlines}. As a result, \meta{n}
@@ -9319,7 +9322,7 @@ Sample text with a \textcolor{red}{word} in red.
 %    \end{macrocode}
 % \end{macro}
 % \begin{macro}{\nomaxlines}
-% \changes{v1.5}{2023/05/21}{unsets \cs{setmaxlines}}
+% \changes{v1.5}{2023/06/17}{unsets \cs{setmaxlines}}
 % \cs{nomaxlines} unsets any limit previously set by \cs{setmaxlines}.
 %    \begin{macrocode}
 \def\nomaxlines{\luadirect{tex.sprint(ekdosis.resetlocalmaxlines())}}
@@ -9383,7 +9386,7 @@ Sample text with a \textcolor{red}{word} in red.
 %    \end{macrocode}
 % \end{macro}
 % \begin{macro}{\App}
-% \changes{v1.5}{2023/05/21}{To be used conjointly with
+% \changes{v1.5}{2023/06/17}{To be used conjointly with
 % \texttt{ekdosis.el}}
 % In contrast to \cs{app}, \cs{App} takes two mandatory arguments and
 % accepts one optional argument like so:
@@ -10267,7 +10270,7 @@ Sample text with a \textcolor{red}{word} in red.
 % \end{macro}
 % \paragraph{Lacunae}
 % \begin{macro}{\ilabel}
-% \changes{v1.5}{2023/05/21}{recalls and sets the ending label of
+% \changes{v1.5}{2023/06/17}{recalls and sets the ending label of
 % lemmas used to mark lacunae in witnesses} When \cs{lem} has been
 % used with the optional argument |ilabel=<label>|,
 % \cs{ilabel}\marg{label} must be used to mark the point where the
@@ -10354,9 +10357,12 @@ Sample text with a \textcolor{red}{word} in red.
   store apparatus = \apparatus@value,
   bool paired = \ifekd@paired,
   choice lineation = {page = \ekd@pagelineationtrue,
-                      document = \ekd@pagelineationfalse},
+    document = \ekd@pagelineationfalse,
+    none = \ekd@pagelineationtrue
+           \ekd@hidelinenumberstrue},
   unknown-choice lineation = \PackageError{ekdosis}{unknown
-    lineation=#1}{`lineation' must be either `page' or `document'.},
+    lineation=#1}{`lineation' must be either `page', `document' or
+    `none'.},
   choice segmentation = {auto = \def\segmentation@val{auto},
                          noauto = \def\segmentation@val{noauto}},
   unknown-choice segmentation = \PackageError{ekdosis}{unknown
@@ -10393,9 +10399,9 @@ Sample text with a \textcolor{red}{word} in red.
 % by \pkg{ekdosis}.
 %    \begin{macrocode}
 \NewDocumentCommand{\EkdosisColStart}{}{%
-  \ekd@setlineno%
+  \ekd@setlineno
   \runninglinenumbers
-  \ekd@storecol%
+  \ekd@storecol
   \stepcounter{ekd@lab}%
   \zlabel{ekd:\theekd@lab}%
   \luadirect{%
@@ -10404,6 +10410,9 @@ Sample text with a \textcolor{red}{word} in red.
   \ifekd@pagelineation
     \luadirect{tex.sprint(ekdosis.checkresetlineno())}
   \fi
+  \ifekd@hidelinenumbers
+    \def\thelinenumber{}%
+  \fi
 }
 \NewDocumentCommand{\EkdosisColStop}{}{%
   \stepcounter{ekd@lab}%
@@ -10411,7 +10420,7 @@ Sample text with a \textcolor{red}{word} in red.
   \luadirect{%
     ekdosis.storeabspg(\luastring{\zref@extract{ekd:\theekd@lab}{abspage}},
     "pg_ii")}%
-  \endrunninglinenumbers%
+  \endrunninglinenumbers
 }
 %    \end{macrocode}
 % \begin{environment}{alignment}
@@ -10583,7 +10592,7 @@ Sample text with a \textcolor{red}{word} in red.
 %    \end{macrocode}
 % \end{macro}
 % \begin{macro}{\ekdEOprint}
-% \changes{v1.5}{2023/05/21}{Sets headers and footers on
+% \changes{v1.5}{2023/06/17}{Sets headers and footers on
 % \enquote{paired} facing pages}
 % To set headers and footers on \enquote{paired} facing pages,
 % \cs{ekdEOprint} accepts two mandatory, self-evident arguments, like
@@ -10623,7 +10632,7 @@ Sample text with a \textcolor{red}{word} in red.
 % counter to set the value of the page numbers. This counter should be
 % incremented every two pages.
 % \begin{counter}{pairedpage}
-% \changes{v1.5}{2023/05/21}{A counter incremented every two pages}
+% \changes{v1.5}{2023/06/17}{A counter incremented every two pages}
 % |pairedpage| is first set as a global counter:---
 %    \begin{macrocode}
 \newcounter{pairedpage}
@@ -10631,19 +10640,19 @@ Sample text with a \textcolor{red}{word} in red.
 %    \end{macrocode}
 % \end{counter}
 % \begin{macro}{\setpairedpagenum}
-%   \changes{v1.5}{2023/05/21}{sets the same page number on paired
+%   \changes{v1.5}{2023/06/17}{sets the same page number on paired
 %   pages} \cs{setpairedpagenum}\marg{number} is used just ahead of
 %   the alignment environment to set the number of the first left-hand
 %   paired page.
 % \begin{macro}{\setpairedpage}
-%   \changes{v1.5}{2023/05/21}{sets the page number of the first paired
+%   \changes{v1.5}{2023/06/17}{sets the page number of the first paired
 %   page} \cs{setpairedpage} is an argument-less command meant to be
 %   issued in commands used to set headers or footers before
 %   \cs{thepage}. This command has the counter |pairedpage|
 %   incremented on right-hand pages only, and sets |page| $\leftarrow$
 %   |pairedpage| on every page.
 % \begin{macro}{\resetpagenumber}
-%   \changes{v1.5}{2023/05/21}{resets normal running page numbers}
+%   \changes{v1.5}{2023/06/17}{resets normal running page numbers}
 %   \cs{resetpagenumber} must be used right out of \enquote{mirrored}
 %   paired pages alignment environments. This argument-less command
 %   corrects any numbering error on the page following the edition
-- 
cgit v1.2.3

