diff options
-rw-r--r-- | ekdosis.dtx | 41 |
1 files changed, 30 insertions, 11 deletions
diff --git a/ekdosis.dtx b/ekdosis.dtx index e7594ac..23db1aa 100644 --- a/ekdosis.dtx +++ b/ekdosis.dtx | |||
@@ -61,7 +61,7 @@ along with this program. If not, see | |||
61 | %<package>\NeedsTeXFormat{LaTeX2e}[1999/12/01] | 61 | %<package>\NeedsTeXFormat{LaTeX2e}[1999/12/01] |
62 | %<package>\ProvidesPackage{ekdosis} | 62 | %<package>\ProvidesPackage{ekdosis} |
63 | %<*package> | 63 | %<*package> |
64 | [2022/04/28 v1.5-dev Typesetting TEI xml-compliant critical editions] | 64 | [2022/05/01 v1.5-dev Typesetting TEI xml-compliant critical editions] |
65 | %</package> | 65 | %</package> |
66 | %<*driver> | 66 | %<*driver> |
67 | \begin{filecontents}[noheader,overwrite]{bibdata.xml} | 67 | \begin{filecontents}[noheader,overwrite]{bibdata.xml} |
@@ -393,6 +393,16 @@ along with this program. If not, see | |||
393 | version = {3.7o} | 393 | version = {3.7o} |
394 | } | 394 | } |
395 | 395 | ||
396 | @Software{marginnote, | ||
397 | title = {The Marginnote package}, | ||
398 | titleaddon = {Notes in the margin, even where \textbackslash | ||
399 | marginpar fails}, | ||
400 | author = {Kohm, Markus}, | ||
401 | url = {https://komascript.de/marginnote}, | ||
402 | date = {2018-08-09}, | ||
403 | version = {1.4b}, | ||
404 | } | ||
405 | |||
396 | @Software{paracol, | 406 | @Software{paracol, |
397 | title = {The Paracol package}, | 407 | title = {The Paracol package}, |
398 | titleaddon = {Multiple columns with texts “in parallel”}, | 408 | titleaddon = {Multiple columns with texts “in parallel”}, |
@@ -6508,6 +6518,10 @@ subtype="arabtex">'inna 'abI kAna mina | |||
6508 | % \cs{pagebreak}\meta{\oarg{1-4}} & no output \\ | 6518 | % \cs{pagebreak}\meta{\oarg{1-4}} & no output \\ |
6509 | % \cs{mbox}\marg{text} & \meta{text} \\ | 6519 | % \cs{mbox}\marg{text} & \meta{text} \\ |
6510 | % \midrule | 6520 | % \midrule |
6521 | % \multicolumn{2}{c}{From the \pkg{marginnote}\footcite{marginnote} | ||
6522 | % package:}\\ | ||
6523 | % \cs{marginnote}|{}| & |<note place="margin"></note>| \\ | ||
6524 | % \midrule | ||
6511 | % \multicolumn{2}{c}{From the \pkg{extdash}\footcite{extdash} | 6525 | % \multicolumn{2}{c}{From the \pkg{extdash}\footcite{extdash} |
6512 | % package:}\\ | 6526 | % package:}\\ |
6513 | % \cs{---} or \cs{===} & --- \\ | 6527 | % \cs{---} or \cs{===} & --- \\ |
@@ -8206,7 +8220,7 @@ Sample text with a \textcolor{red}{word} in red. | |||
8206 | % \end{macrocode} | 8220 | % \end{macrocode} |
8207 | % \paragraph{\textsf{ekdosis} Symbol} | 8221 | % \paragraph{\textsf{ekdosis} Symbol} |
8208 | % \begin{macro}{\eKd} | 8222 | % \begin{macro}{\eKd} |
8209 | % \changes{v1.5}{2022/04/28}{Prints \textsf{ekdosis} indentifying | 8223 | % \changes{v1.5}{2022/05/01}{Prints \textsf{ekdosis} indentifying |
8210 | % symbol} As of v1.5, \pkg{ekdosis} has its own identifying | 8224 | % symbol} As of v1.5, \pkg{ekdosis} has its own identifying |
8211 | % symbol. It is produced by \cs{eKd} and best printed with the Old | 8225 | % symbol. It is produced by \cs{eKd} and best printed with the Old |
8212 | % Standard Greek font. | 8226 | % Standard Greek font. |
@@ -8467,7 +8481,7 @@ Sample text with a \textcolor{red}{word} in red. | |||
8467 | % \begin{macro}{\teidirectE} | 8481 | % \begin{macro}{\teidirectE} |
8468 | % \changes{v1.3}{2021/08/18}{direct insertion of elements in the | 8482 | % \changes{v1.3}{2021/08/18}{direct insertion of elements in the |
8469 | % \texttt{TEI xml} file} | 8483 | % \texttt{TEI xml} file} |
8470 | % \changes{v1.5}{2022/04/28}{direct insertion of empty elements in the | 8484 | % \changes{v1.5}{2022/05/01}{direct insertion of empty elements in the |
8471 | % \texttt{TEI xml} file} | 8485 | % \texttt{TEI xml} file} |
8472 | % \cs{teidirect}\oarg{xml attributes}\marg{xml element}\marg{code} | 8486 | % \cs{teidirect}\oarg{xml attributes}\marg{xml element}\marg{code} |
8473 | % does nothing in \LaTeX. It is only used to insert elements in the | 8487 | % does nothing in \LaTeX. It is only used to insert elements in the |
@@ -8482,7 +8496,7 @@ Sample text with a \textcolor{red}{word} in red. | |||
8482 | % \end{macro} | 8496 | % \end{macro} |
8483 | % \end{macro} | 8497 | % \end{macro} |
8484 | % \begin{macro}{\getTEIxmlid} | 8498 | % \begin{macro}{\getTEIxmlid} |
8485 | % \changes{v1.5}{2022/04/28}{returns \texttt{TEI xml:ids} from a | 8499 | % \changes{v1.5}{2022/05/01}{returns \texttt{TEI xml:ids} from a |
8486 | % csv-list of ids} This command returns from a csv-list of unique | 8500 | % csv-list of ids} This command returns from a csv-list of unique |
8487 | % identifiers declared in commands such as \cs{DeclareWitness} and the | 8501 | % identifiers declared in commands such as \cs{DeclareWitness} and the |
8488 | % like a space-separated list of their corresponding |xml:id|s, each | 8502 | % like a space-separated list of their corresponding |xml:id|s, each |
@@ -10058,7 +10072,7 @@ Sample text with a \textcolor{red}{word} in red. | |||
10058 | % \end{macro} | 10072 | % \end{macro} |
10059 | % \paragraph{Lacunae} | 10073 | % \paragraph{Lacunae} |
10060 | % \begin{macro}{\ilabel} | 10074 | % \begin{macro}{\ilabel} |
10061 | % \changes{v1.5}{2022/04/28}{recalls and sets the ending label of | 10075 | % \changes{v1.5}{2022/05/01}{recalls and sets the ending label of |
10062 | % lemmas used to mark lacunae in witnesses} When \cs{lem} has been | 10076 | % lemmas used to mark lacunae in witnesses} When \cs{lem} has been |
10063 | % used with the optional argument |ilabel=<label>|, | 10077 | % used with the optional argument |ilabel=<label>|, |
10064 | % \cs{ilabel}\marg{label} must be used to mark the point where the | 10078 | % \cs{ilabel}\marg{label} must be used to mark the point where the |
@@ -10373,7 +10387,7 @@ Sample text with a \textcolor{red}{word} in red. | |||
10373 | % \end{macrocode} | 10387 | % \end{macrocode} |
10374 | % \end{macro} | 10388 | % \end{macro} |
10375 | % \begin{macro}{\ekdEOprint} | 10389 | % \begin{macro}{\ekdEOprint} |
10376 | % \changes{v1.5}{2022/04/28}{Sets headers and footers on | 10390 | % \changes{v1.5}{2022/05/01}{Sets headers and footers on |
10377 | % \enquote{paired} facing pages} | 10391 | % \enquote{paired} facing pages} |
10378 | % To set headers and footers on \enquote{paired} facing pages, | 10392 | % To set headers and footers on \enquote{paired} facing pages, |
10379 | % \cs{ekdEOprint} accepts two mandatory, self-evident arguments, like | 10393 | % \cs{ekdEOprint} accepts two mandatory, self-evident arguments, like |
@@ -10413,7 +10427,7 @@ Sample text with a \textcolor{red}{word} in red. | |||
10413 | % counter to set the value of the page numbers. This counter should be | 10427 | % counter to set the value of the page numbers. This counter should be |
10414 | % incremented every two pages. | 10428 | % incremented every two pages. |
10415 | % \begin{counter}{pairedpage} | 10429 | % \begin{counter}{pairedpage} |
10416 | % \changes{v1.5}{2022/04/28}{A counter incremented every two pages} | 10430 | % \changes{v1.5}{2022/05/01}{A counter incremented every two pages} |
10417 | % |pairedpage| is first set as a global counter:--- | 10431 | % |pairedpage| is first set as a global counter:--- |
10418 | % \begin{macrocode} | 10432 | % \begin{macrocode} |
10419 | \newcounter{pairedpage} | 10433 | \newcounter{pairedpage} |
@@ -10421,19 +10435,19 @@ Sample text with a \textcolor{red}{word} in red. | |||
10421 | % \end{macrocode} | 10435 | % \end{macrocode} |
10422 | % \end{counter} | 10436 | % \end{counter} |
10423 | % \begin{macro}{\setpairedpagenum} | 10437 | % \begin{macro}{\setpairedpagenum} |
10424 | % \changes{v1.5}{2022/04/28}{sets the same page number on paired | 10438 | % \changes{v1.5}{2022/05/01}{sets the same page number on paired |
10425 | % pages} \cs{setpairedpagenum}\marg{number} is used just ahead of | 10439 | % pages} \cs{setpairedpagenum}\marg{number} is used just ahead of |
10426 | % the alignment environment to set the number of the first left-hand | 10440 | % the alignment environment to set the number of the first left-hand |
10427 | % paired page. | 10441 | % paired page. |
10428 | % \begin{macro}{\setpairedpage} | 10442 | % \begin{macro}{\setpairedpage} |
10429 | % \changes{v1.5}{2022/04/28}{sets the page number of the first paired | 10443 | % \changes{v1.5}{2022/05/01}{sets the page number of the first paired |
10430 | % page} \cs{setpairedpage} is an argument-less command meant to be | 10444 | % page} \cs{setpairedpage} is an argument-less command meant to be |
10431 | % issued in commands used to set headers or footers before | 10445 | % issued in commands used to set headers or footers before |
10432 | % \cs{thepage}. This command has the counter |pairedpage| | 10446 | % \cs{thepage}. This command has the counter |pairedpage| |
10433 | % incremented on right-hand pages only, and sets |page| $\leftarrow$ | 10447 | % incremented on right-hand pages only, and sets |page| $\leftarrow$ |
10434 | % |pairedpage| on every page. | 10448 | % |pairedpage| on every page. |
10435 | % \begin{macro}{\resetpagenumber} | 10449 | % \begin{macro}{\resetpagenumber} |
10436 | % \changes{v1.5}{2022/04/28}{resets normal running page numbers} | 10450 | % \changes{v1.5}{2022/05/01}{resets normal running page numbers} |
10437 | % \cs{resetpagenumber} must be used right out of \enquote{mirrored} | 10451 | % \cs{resetpagenumber} must be used right out of \enquote{mirrored} |
10438 | % paired pages alignment environments. This argument-less command | 10452 | % paired pages alignment environments. This argument-less command |
10439 | % corrects any numbering error on the page following the edition | 10453 | % corrects any numbering error on the page following the edition |
@@ -11192,10 +11206,15 @@ local texpatttotags = { | |||
11192 | {a="\\resetlinenumber%s+", b=""}, | 11206 | {a="\\resetlinenumber%s+", b=""}, |
11193 | {a="\\ekdresethfmarks%s+", b=""}, | 11207 | {a="\\ekdresethfmarks%s+", b=""}, |
11194 | {a="\\indentpattern%s+{(.-)}", b=""}, | 11208 | {a="\\indentpattern%s+{(.-)}", b=""}, |
11195 | {a="\\ekdnohfmark%s+", b=""}, | 11209 | {a="\\ekdnohfmarks%s+", b=""}, |
11210 | {a="\\marginnote%s+(%b[])(%b{})(%b[])", b="<note place=\"margin\">ekd@ob%2ekd@cb</note>"}, | ||
11211 | {a="\\marginnote%s+(%b{})(%b[])", b="<note place=\"margin\">ekd@ob%1ekd@cb</note>"}, | ||
11212 | {a="\\marginnote%s+(%b[])(%b{})", b="<note place=\"margin\">ekd@ob%2ekd@cb</note>"}, | ||
11213 | {a="\\marginnote%s+(%b{})", b="<note place=\"margin\">ekd@ob%1ekd@cb</note>"}, | ||
11196 | {a="\\settowidth%s+{(.-)}{(.-)}", b=""}, | 11214 | {a="\\settowidth%s+{(.-)}{(.-)}", b=""}, |
11197 | {a="\\teidirectE%s+(%b[]){(.-)}", b="<%2 ekd@os%1ekd@cs/>"}, | 11215 | {a="\\teidirectE%s+(%b[]){(.-)}", b="<%2 ekd@os%1ekd@cs/>"}, |
11198 | {a="\\teidirectE%s+{(.-)}", b="<%1/>"}, | 11216 | {a="\\teidirectE%s+{(.-)}", b="<%1/>"}, |
11217 | {a="\\marginpar%s+(%b[])(%b{})", b="<note place=\"margin\">ekd@ob%2ekd@cb</note>"}, | ||
11199 | {a="\\poemlines%s+{(.-)}", b=""}, | 11218 | {a="\\poemlines%s+{(.-)}", b=""}, |
11200 | {a="\\pagebreak%s+%[[1-4]%]", b=""}, | 11219 | {a="\\pagebreak%s+%[[1-4]%]", b=""}, |
11201 | {a="\\pagebreak%s+", b=""}, | 11220 | {a="\\pagebreak%s+", b=""}, |