aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ekdosis.dtx41
1 files changed, 30 insertions, 11 deletions
diff --git a/ekdosis.dtx b/ekdosis.dtx
index cc27565..4c0cdd8 100644
--- a/ekdosis.dtx
+++ b/ekdosis.dtx
@@ -2918,6 +2918,13 @@ texts=latin[xml:lang="la"]+\textcolor{red}{;}+
2918% unbreakable space. As an example, |postrefnum=\hskip 0.5em| will 2918% unbreakable space. As an example, |postrefnum=\hskip 0.5em| will
2919% insert a \unit[0.5]{em} space between the numerals and the beginning 2919% insert a \unit[0.5]{em} space between the numerals and the beginning
2920% of all subsequent notes. 2920% of all subsequent notes.
2921% \DescribeOption{lemmastyle} |lemmastyle|$=$\meta{command}
2922% \hfill\tcboxverb{Default: not set}\\
2923% \newfeature[v1.2] |lemmastyle| can be used to set the family, series
2924% or shape of the font used to print the lemma text in the apparatus
2925% criticus. For example, |lemmastyle=|\cs{bfseries} will print all
2926% instances of lemma text in bold while
2927% |lemmastyle=|\cs{color}|{blue}| will print them in blue.
2921% 2928%
2922% \subsection{Single-Layer Apparatus Criticus} 2929% \subsection{Single-Layer Apparatus Criticus}
2923% \label{sec:single-layer-app} 2930% \label{sec:single-layer-app}
@@ -4224,7 +4231,7 @@ subtype="arabtex">'inna 'abI kAna mina
4224% \DescribeMacro{\ekdpb} \cs{ekdpb}\oarg{page no}\marg{line no} 4231% \DescribeMacro{\ekdpb} \cs{ekdpb}\oarg{page no}\marg{line no}
4225% \newfeature[v1.2]\\ 4232% \newfeature[v1.2]\\
4226% One way to avoid this inconvenience is to use \cs{ekdpb} instead of 4233% One way to avoid this inconvenience is to use \cs{ekdpb} instead of
4227% the standard \cs{pabebreak} command provided by \LaTeX\ to insert 4234% the standard \cs{pagebreak} command provided by \LaTeX\ to insert
4228% conditional page breaks. \cs{ekdpb} takes as mandatory argument an 4235% conditional page breaks. \cs{ekdpb} takes as mandatory argument an
4229% integer that represents the line number where the page break should 4236% integer that represents the line number where the page break should
4230% take place. An optional argument allows to further specify the page 4237% take place. An optional argument allows to further specify the page
@@ -6124,14 +6131,17 @@ Sample text with a \textcolor{red}{word} in red.
6124% hooks meant to be shared by all declared apparatuses, such as the 6131% hooks meant to be shared by all declared apparatuses, such as the
6125% font size, the format of numerals, \emph{\&c.} This command can be 6132% font size, the format of numerals, \emph{\&c.} This command can be
6126% used in the preamble or at any point of the document. 6133% used in the preamble or at any point of the document.
6134% \changes{v1.2}{2021/03/03}{new option \texttt{lemmastyle}}
6127% \begin{macrocode} 6135% \begin{macrocode}
6128\ekvdefinekeys{ekd@hooks}{ 6136\ekvdefinekeys{ekd@hooks}{
6129 store appfontsize = \ekd@appfontsize, 6137 store appfontsize = \ekd@appfontsize,
6130 store refnumstyle = \ekd@refnumstyle, 6138 store refnumstyle = \ekd@refnumstyle,
6131 store postrefnum = \ekd@postrefnum, 6139 store postrefnum = \ekd@postrefnum,
6140 store lemmastyle = \ekd@lemmastyle,
6132 initial appfontsize = \footnotesize, 6141 initial appfontsize = \footnotesize,
6133 initial refnumstyle = \bfseries, 6142 initial refnumstyle = \bfseries,
6134 initial postrefnum = ~ 6143 initial postrefnum = ~,
6144 initial lemmastyle =
6135} 6145}
6136\NewDocumentCommand{\SetHooks}{m}{\ekvset{ekd@hooks}{#1}} 6146\NewDocumentCommand{\SetHooks}{m}{\ekvset{ekd@hooks}{#1}}
6137% \end{macrocode} 6147% \end{macrocode}
@@ -7099,13 +7109,15 @@ Sample text with a \textcolor{red}{word} in red.
7099 \ifdefined\ekdlr@alt% 7109 \ifdefined\ekdlr@alt%
7100 \ifdefined\ekdlr@post% 7110 \ifdefined\ekdlr@post%
7101 \space\unexpanded\expandafter{\ekdlr@post}\space\else\fi 7111 \space\unexpanded\expandafter{\ekdlr@post}\space\else\fi
7102 {\textdir TRT\unexpanded\expandafter{\ekdlr@alt}}% 7112 {\textdir TRT\expandafter\noexpand\ekd@lemmastyle
7113 \unexpanded\expandafter{\ekdlr@alt}}%
7103 \ifdefined\ekdlr@pre% 7114 \ifdefined\ekdlr@pre%
7104 \space\unexpanded\expandafter{\ekdlr@pre}\space\else\fi 7115 \space\unexpanded\expandafter{\ekdlr@pre}\space\else\fi
7105 \else 7116 \else
7106 \ifdefined\ekdlr@post% 7117 \ifdefined\ekdlr@post%
7107 \space\unexpanded\expandafter{\ekdlr@post}\space\else\fi 7118 \space\unexpanded\expandafter{\ekdlr@post}\space\else\fi
7108 {\textdir TRT\unexpanded{#2}}% 7119 {\textdir TRT\expandafter\noexpand\ekd@lemmastyle
7120 \unexpanded{#2}}%
7109 \ifdefined\ekdlr@pre% 7121 \ifdefined\ekdlr@pre%
7110 \space\unexpanded\expandafter{\ekdlr@pre}\space\else\fi 7122 \space\unexpanded\expandafter{\ekdlr@pre}\space\else\fi
7111 \fi 7123 \fi
@@ -7133,17 +7145,21 @@ Sample text with a \textcolor{red}{word} in red.
7133 \ifdefined\ekdlr@pre% 7145 \ifdefined\ekdlr@pre%
7134 \space\unexpanded\expandafter{\ekdlr@pre}\space\else\fi 7146 \space\unexpanded\expandafter{\ekdlr@pre}\space\else\fi
7135 \ltx@ifpackageloaded{babel}% 7147 \ltx@ifpackageloaded{babel}%
7136 {{\noexpand\selectlanguage{\languagename}% 7148 {{\noexpand\selectlanguage{\languagename}%
7149 \expandafter\noexpand\ekd@lemmastyle
7137 \unexpanded\expandafter{\ekdlr@alt}}}% 7150 \unexpanded\expandafter{\ekdlr@alt}}}%
7138 {\unexpanded\expandafter{\ekdlr@alt}}% 7151 {\expandafter\noexpand\ekd@lemmastyle
7152 \unexpanded\expandafter{\ekdlr@alt}}%
7139 \ifdefined\ekdlr@post% 7153 \ifdefined\ekdlr@post%
7140 \space\unexpanded\expandafter{\ekdlr@post}\space\else\fi 7154 \space\unexpanded\expandafter{\ekdlr@post}\space\else\fi
7141 \else 7155 \else
7142 \ifdefined\ekdlr@pre% 7156 \ifdefined\ekdlr@pre%
7143 \space\unexpanded\expandafter{\ekdlr@pre}\space\else\fi 7157 \space\unexpanded\expandafter{\ekdlr@pre}\space\else\fi
7144 \ltx@ifpackageloaded{babel}% 7158 \ltx@ifpackageloaded{babel}%
7145 {{\noexpand\selectlanguage{\languagename}\unexpanded{#2}}}{% 7159 {{\noexpand\selectlanguage{\languagename}%
7146 {\unexpanded{#2}}}% 7160 \expandafter\noexpand\ekd@lemmastyle
7161 \unexpanded{#2}}}{%
7162 {\expandafter\noexpand\ekd@lemmastyle\unexpanded{#2}}}%
7147 \ifdefined\ekdlr@post% 7163 \ifdefined\ekdlr@post%
7148 \space\unexpanded\expandafter{\ekdlr@post}\space\else\fi 7164 \space\unexpanded\expandafter{\ekdlr@post}\space\else\fi
7149 \fi 7165 \fi
@@ -7309,7 +7325,8 @@ Sample text with a \textcolor{red}{word} in red.
7309 \fi% 7325 \fi%
7310 \current@ref@arg{\ekdn@labelb}{\ekdn@labele}%\hskip .25em 7326 \current@ref@arg{\ekdn@labelb}{\ekdn@labele}%\hskip .25em
7311 \ifdefined\ekdn@lem% 7327 \ifdefined\ekdn@lem%
7312 {\textdir TRT\unexpanded\expandafter{\ekdn@lem}}% 7328 {\textdir TRT\expandafter\noexpand\ekd@lemmastyle
7329 \unexpanded\expandafter{\ekdn@lem}}%
7313 \unless\ifekdn@nosep 7330 \unless\ifekdn@nosep
7314 \unexpanded\expandafter{\ekdn@sep}\fi 7331 \unexpanded\expandafter{\ekdn@sep}\fi
7315 \else\fi% 7332 \else\fi%
@@ -7326,8 +7343,10 @@ Sample text with a \textcolor{red}{word} in red.
7326 \ifdefined\ekdn@lem 7343 \ifdefined\ekdn@lem
7327 \ltx@ifpackageloaded{babel}% 7344 \ltx@ifpackageloaded{babel}%
7328 {{\noexpand\selectlanguage{\languagename}% 7345 {{\noexpand\selectlanguage{\languagename}%
7329 \unexpanded\expandafter{\ekdn@lem}}}% 7346 \expandafter\noexpand\ekd@lemmastyle
7330 {\unexpanded\expandafter{\ekdn@lem}}% 7347 \unexpanded\expandafter{\ekdn@lem}}}%
7348 {\expandafter\noexpand\ekd@lemmastyle
7349 \unexpanded\expandafter{\ekdn@lem}}%
7331 \unless\ifekdn@nosep 7350 \unless\ifekdn@nosep
7332 \unexpanded\expandafter{\ekdn@sep}\fi 7351 \unexpanded\expandafter{\ekdn@sep}\fi
7333 \else\fi% 7352 \else\fi%