From 792c43808b2ced93e83dbc1f8779593cf60e2f7c Mon Sep 17 00:00:00 2001 From: Robert Alessi Date: Wed, 20 Apr 2022 09:26:44 +0200 Subject: \ekdmark needed more work for "paired" facing pages. new command \ekdEOprint --- ekdosis.dtx | 142 +++++++++++++++++++++++++++++++++++++++++++++++++++++------- ekdosis.el | 4 +- 2 files changed, 129 insertions(+), 17 deletions(-) diff --git a/ekdosis.dtx b/ekdosis.dtx index 91e2452..5faf7fa 100644 --- a/ekdosis.dtx +++ b/ekdosis.dtx @@ -61,7 +61,7 @@ along with this program. If not, see %\NeedsTeXFormat{LaTeX2e}[1999/12/01] %\ProvidesPackage{ekdosis} %<*package> - [2022/01/17 v1.5-dev Typesetting TEI xml-compliant critical editions] + [2022/04/20 v1.5-dev Typesetting TEI xml-compliant critical editions] % %<*driver> \begin{filecontents}[noheader,overwrite]{bibdata.xml} @@ -3321,13 +3321,16 @@ texts=latin[xml:lang="la"]+\textcolor{red}{;}+ % \underLine{semicolon}-separated list of previously defined % environments that shall receive at least one layer of apparatus % criticus.\\ -% \DescribeOption{paired} |paired|$=$\verb+true|false+% +% \DescribeOption{paired} |paired|$=$\verb+true|false+%^^A +% \phts\label{ref:paired-opt}%^^A % \hfill\tcboxverb{Default: true (initially not set)}\\ % This named argument does not need a value as it defaults to |true| % if used. By default, \pkg{ekdosis} follows the \LaTeX{} page % numbering scheme when multiple texts are arranged on facing % pages. The |paired| option leaves every right-hand page number -% unchanged, so that both facing pages hold the same page number.\\ +% unchanged, so that both facing pages hold the same page +% number.\footnote{For setting headers and footers in this arrangement +% of text, see \vpageref{sec:header-paired-pages}.}\\ % \DescribeOption{lineation} |lineation|$=$\verb+page|document+ % \hfill\tcboxverb{Default: document}\\ % This option applies to edition texts initially set to receive an @@ -5904,6 +5907,50 @@ subtype="arabtex">'inna 'abI kAna mina % % \fi % +% \paragraph{\enquote{Paired} facing pages} +% \phts\label{sec:header-paired-pages} +% As already described \vpageref{ref:paired-opt}\===the +% \textooquote|paired|\textcoquote\ option\===\pkg{ekdosis} can +% arrange texts on facing pages with every right-hand page number +% unchanged, so that both facing pages hold the same number, as in the +% \enquote{Budé} series. As a result of this layout, the distinction +% between left- and right-hand pages does not apply and headers and +% footers have to be set as if the whole edition text and the +% translation were intended for single-sided printing. To return to +% the example just given, the three optional arguments of \cs{sethead} +% are inoperative, as are the symbolic letters |E| and |O| of +% \cs{ekdprintmark}. Both letters must be omitted, which boils down to +% using the following six selectors, instead of twelve: |HL|, |HC|, +% |HR|, |FL|, |FC| and |FR|. +% +% \DescribeMacro{\ekdEOprint}\newfeature[v1.5] Finally, to make up for +% commands and arguments designed to set headers and footers on +% left-hand pages, \pkg{ekdosis} provides \cs{ekdEOprint}. This +% command accepts two mandatory, self-evident arguments, like so: +% \cs{ekdEOprint}\marg{left-hand mark}\marg{right-hand mark}. +% +% As an illustration, the example provided above would read as follows +% for editions laid out on \enquote{paired} facing pages:--- +% +% \iffalse +%<*example> +% \fi +\begin{minted}[linenos=false]{latex} +% Preamble: +\usepackage{titleps} +\newpagestyle{edition}{ + \sethead{\ekdprintmark{HL}{\ekdEOprint{\thepage}{}}} + {\ekdprintmark{HC}{\ekdEOprint{Hippocratis}{% + Epidemiarum liber II, \ekdmark}}} + {\ekdprintmark{HR}{\ekdEOprint{}{\thepage}}} +} +% Apply the page style: +\pagestyle{edition} +\end{minted} +% \iffalse +% +% \fi +% % \DescribeMacro{\ekdnohfmarks} Once all signposts are marked with % \cs{ekdprintmark}, \cs{ekdnohfmarks} can be used at any point of the % document with the same effect as the \LaTeX\ standard command @@ -8063,7 +8110,7 @@ Sample text with a \textcolor{red}{word} in red. % \end{macrocode} % \paragraph{\textsf{ekdosis} Symbol} % \begin{macro}{\eKd} -% \changes{v1.5}{2022/01/17}{Prints \textsf{ekdosis} indentifying +% \changes{v1.5}{2022/04/20}{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. @@ -8324,7 +8371,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}{2022/01/17}{direct insertion of empty elements in the +% \changes{v1.5}{2022/04/20}{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 @@ -8339,7 +8386,7 @@ Sample text with a \textcolor{red}{word} in red. % \end{macro} % \end{macro} % \begin{macro}{\getTEIxmlid} -% \changes{v1.5}{2022/01/17}{returns \texttt{TEI xml:ids} from a +% \changes{v1.5}{2022/04/20}{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 @@ -9915,7 +9962,7 @@ Sample text with a \textcolor{red}{word} in red. % \end{macro} % \paragraph{Lacunae} % \begin{macro}{\ilabel} -% \changes{v1.5}{2022/01/17}{recalls and sets the ending label of +% \changes{v1.5}{2022/04/20}{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=