aboutsummaryrefslogtreecommitdiff
path: root/ekdosis.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'ekdosis.dtx')
-rw-r--r--ekdosis.dtx29
1 files changed, 25 insertions, 4 deletions
diff --git a/ekdosis.dtx b/ekdosis.dtx
index acbedc0..58946ac 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 [2021/06/05 v1.3-dev Typesetting TEI xml-compliant critical editions] 64 [2021/06/08 v1.3-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}
@@ -7295,6 +7295,20 @@ Sample text with a \textcolor{red}{word} in red.
7295 \luadirect{ekdosis.closestream()} 7295 \luadirect{ekdosis.closestream()}
7296} 7296}
7297% \end{macrocode} 7297% \end{macrocode}
7298% \begin{macro}{\ekdsetup}
7299% \changes{v1.3}{2021/06/08}{new command for global options}
7300% \begin{macrocode}
7301\ekvdefinekeys{ekd@setup}{
7302 bool showpagebreaks = \ifekd@showpb,
7303 store spbmk = \ekd@spbmk,
7304 initial spbmk = \marginpar{spb},
7305 store hpbmk = \ekd@hpbmk,
7306 initial hpbmk = \marginpar{hpb},
7307}
7308\NewDocumentCommand{\ekdsetup}{m}{\ekvset{ekd@setup}{#1}}
7309\@onlypreamble\ekdsetup
7310% \end{macrocode}
7311% \end{macro}
7298% \begin{macro}{\SetHooks} \cs{SetHooks} is used to set 7312% \begin{macro}{\SetHooks} \cs{SetHooks} is used to set
7299% hooks meant to be shared by all declared apparatuses, such as the 7313% hooks meant to be shared by all declared apparatuses, such as the
7300% font size, the format of numerals, \emph{\&c.} This command can be 7314% font size, the format of numerals, \emph{\&c.} This command can be
@@ -7511,7 +7525,7 @@ Sample text with a \textcolor{red}{word} in red.
7511% \end{macrocode} 7525% \end{macrocode}
7512% \end{macro} 7526% \end{macro}
7513% \begin{macro}{\teidirect} 7527% \begin{macro}{\teidirect}
7514% \changes{v1.3}{2021/06/05}{direct insertion of elements in the 7528% \changes{v1.3}{2021/06/08}{direct insertion of elements in the
7515% \texttt{TEI xml} file} 7529% \texttt{TEI xml} file}
7516% \cs{teidirect}\oarg{xml attributes}\marg{xml element}\marg{code} 7530% \cs{teidirect}\oarg{xml attributes}\marg{xml element}\marg{code}
7517% does nothing in \LaTeX. Its only use is to insert elements in the 7531% does nothing in \LaTeX. Its only use is to insert elements in the
@@ -7688,7 +7702,8 @@ Sample text with a \textcolor{red}{word} in red.
7688\globalcounter{ekd@pb} 7702\globalcounter{ekd@pb}
7689\NewDocumentCommand{\ekdpb}{s o m}{% 7703\NewDocumentCommand{\ekdpb}{s o m}{%
7690 \IfBooleanTF{#1} 7704 \IfBooleanTF{#1}
7691 {\pagebreak} 7705 {\ifekd@showpb\marginpar{\ekd@hpbmk}\fi
7706 \pagebreak}
7692 {% 7707 {%
7693 \def\@tmpoarg{#2}% 7708 \def\@tmpoarg{#2}%
7694 \def\@tmpmarg{#3}% 7709 \def\@tmpmarg{#3}%
@@ -7701,13 +7716,19 @@ Sample text with a \textcolor{red}{word} in red.
7701 \IfNoValueTF{#2} 7716 \IfNoValueTF{#2}
7702 {\ifnum 7717 {\ifnum
7703 \pdf@strcmp{\@tmpmarg}{\tmp@ln} = 0 7718 \pdf@strcmp{\@tmpmarg}{\tmp@ln} = 0
7719 \ifekd@showpb\marginpar{\ekd@spbmk}\fi
7704 \pagebreak 7720 \pagebreak
7721 \else
7722 \ifekd@showpb\marginpar{[\ekd@spbmk]}\fi
7705 \fi} 7723 \fi}
7706 {\ifnum 7724 {\ifnum
7707 \pdf@strcmp{\@tmpoarg}{\tmp@pg} = 0 7725 \pdf@strcmp{\@tmpoarg}{\tmp@pg} = 0
7708 \ifnum 7726 \ifnum
7709 \pdf@strcmp{\@tmpmarg}{\tmp@ln} = 0 7727 \pdf@strcmp{\@tmpmarg}{\tmp@ln} = 0
7728 \ifekd@showpb\marginpar{\ekd@spbmk}\fi
7710 \pagebreak 7729 \pagebreak
7730 \else
7731 \ifekd@showpb\marginpar{[\ekd@spbmk]}\fi
7711 \fi 7732 \fi
7712 \fi 7733 \fi
7713 }% 7734 }%
@@ -7871,7 +7892,7 @@ Sample text with a \textcolor{red}{word} in red.
7871% \end{macrocode} 7892% \end{macrocode}
7872% \end{macro} 7893% \end{macro}
7873% \begin{macro}{\SetApparatusNoteLanguage} 7894% \begin{macro}{\SetApparatusNoteLanguage}
7874% \changes{v1.3}{2021/06/05}{defines an alternate language to be 7895% \changes{v1.3}{2021/06/08}{defines an alternate language to be
7875% applied in note apparatus entries} 7896% applied in note apparatus entries}
7876% \cs{SetApparatusNoteLang}\marg{languagename} can be used when 7897% \cs{SetApparatusNoteLang}\marg{languagename} can be used when
7877% it is needed to apply in entries introduced by the \cs{note} command 7898% it is needed to apply in entries introduced by the \cs{note} command