diff options
-rw-r--r-- | ekdosis.dtx | 36 |
1 files changed, 29 insertions, 7 deletions
diff --git a/ekdosis.dtx b/ekdosis.dtx index b5622a2..f7eca62 100644 --- a/ekdosis.dtx +++ b/ekdosis.dtx | |||
@@ -2600,7 +2600,7 @@ texts=latin[xml:lang="la"]+\textcolor{red}{;}+ | |||
2600 | % \end{macro} | 2600 | % \end{macro} |
2601 | % | 2601 | % |
2602 | %\paragraph{Multi-layer apparatuses} | 2602 | %\paragraph{Multi-layer apparatuses} |
2603 | % \pkg{ekdosis} must know is an entry is to be processed in a single- | 2603 | % \pkg{ekdosis} must know if an entry is to be processed in a single- |
2604 | % or multiple-layer context:--- | 2604 | % or multiple-layer context:--- |
2605 | % \begin{macrocode} | 2605 | % \begin{macrocode} |
2606 | \newif\ifekd@mapps | 2606 | \newif\ifekd@mapps |
@@ -2712,14 +2712,40 @@ texts=latin[xml:lang="la"]+\textcolor{red}{;}+ | |||
2712 | % \end{macro} | 2712 | % \end{macro} |
2713 | % \paragraph{Single-layer apparatus} The following commands are for | 2713 | % \paragraph{Single-layer apparatus} The following commands are for |
2714 | % general settings. All of them can be used in the preamble or at any | 2714 | % general settings. All of them can be used in the preamble or at any |
2715 | % point of the document:--- | 2715 | % point of the document. The keys to be used follow:--- |
2716 | % \begin{macrocode} | ||
2717 | \newif\ifrtl@app | ||
2718 | \edef\ekdsep{] } | ||
2719 | \ekvdefinekeys{default@app}{ | ||
2720 | choice direction = {LR = \rtl@appfalse, | ||
2721 | RL = \rtl@apptrue}, | ||
2722 | unknown-choice direction = \PackageError{ekdosis}{unknown | ||
2723 | direction=#1}{`direction' must be either `LR' or `RL'.}, | ||
2724 | code sep = \edef\ekdsep{#1}, | ||
2725 | store ehook = \ekd@end@apparatus, | ||
2726 | initial ehook = {}, | ||
2727 | store delim = \ekd@unit@delim, | ||
2728 | initial delim = {}, | ||
2729 | store rule = \ekd@default@rule, | ||
2730 | initial rule = \rule{0.4\columnwidth}{0.4pt}, | ||
2731 | noval norule = \def\ekd@default@rule{\mbox{}} | ||
2732 | } | ||
2733 | % \end{macrocode} | ||
2734 | % \begin{macro}{\SetApparatus} | ||
2735 | % All settings can also be defined as|key-value| options within the | ||
2736 | % argument of \cs{SetApparatus}:--- | ||
2737 | % \begin{macrocode} | ||
2738 | \NewDocumentCommand{\SetApparatus}{m}{ | ||
2739 | \ekvset{default@app}{#1} | ||
2740 | } | ||
2741 | % \end{macrocode} | ||
2742 | % \end{macro} | ||
2716 | % \begin{macro}{\SetLTRapp} | 2743 | % \begin{macro}{\SetLTRapp} |
2717 | % \begin{macro}{\SetRTLapp} | 2744 | % \begin{macro}{\SetRTLapp} |
2718 | % \cs{SetLTRapp} and \cs{SetRTLapp} are two argument-less commands to | 2745 | % \cs{SetLTRapp} and \cs{SetRTLapp} are two argument-less commands to |
2719 | % set the direction of single-layer apparatus criticus, either LTR or | 2746 | % set the direction of single-layer apparatus criticus, either LTR or |
2720 | % RTL:--- | 2747 | % RTL:--- |
2721 | % \begin{macrocode} | 2748 | % \begin{macrocode} |
2722 | \newif\ifrtl@app | ||
2723 | \NewDocumentCommand{\SetRTLapp}{}{\rtl@apptrue} | 2749 | \NewDocumentCommand{\SetRTLapp}{}{\rtl@apptrue} |
2724 | \NewDocumentCommand{\SetLTRapp}{}{\rtl@appfalse} | 2750 | \NewDocumentCommand{\SetLTRapp}{}{\rtl@appfalse} |
2725 | % \end{macrocode} | 2751 | % \end{macrocode} |
@@ -2730,7 +2756,6 @@ texts=latin[xml:lang="la"]+\textcolor{red}{;}+ | |||
2730 | % between lemma texts and variant readings, which is by default | 2756 | % between lemma texts and variant readings, which is by default |
2731 | % a closing square bracket followed by a space (\verb*+] +):--- | 2757 | % a closing square bracket followed by a space (\verb*+] +):--- |
2732 | % \begin{macrocode} | 2758 | % \begin{macrocode} |
2733 | \edef\ekdsep{] } | ||
2734 | \NewDocumentCommand{\SetSeparator}{m}{\edef\ekdsep{#1}} | 2759 | \NewDocumentCommand{\SetSeparator}{m}{\edef\ekdsep{#1}} |
2735 | % \end{macrocode} | 2760 | % \end{macrocode} |
2736 | % \end{macro} | 2761 | % \end{macro} |
@@ -2740,7 +2765,6 @@ texts=latin[xml:lang="la"]+\textcolor{red}{;}+ | |||
2740 | % as it is customary in some editions. By default, nothing is | 2765 | % as it is customary in some editions. By default, nothing is |
2741 | % appended:--- | 2766 | % appended:--- |
2742 | % \begin{macrocode} | 2767 | % \begin{macrocode} |
2743 | \edef\ekd@end@apparatus{} | ||
2744 | \NewDocumentCommand{\SetEndApparatus}{m}{\edef\ekd@end@apparatus{#1}} | 2768 | \NewDocumentCommand{\SetEndApparatus}{m}{\edef\ekd@end@apparatus{#1}} |
2745 | % \end{macrocode} | 2769 | % \end{macrocode} |
2746 | % \end{macro} | 2770 | % \end{macro} |
@@ -2751,7 +2775,6 @@ texts=latin[xml:lang="la"]+\textcolor{red}{;}+ | |||
2751 | % can be used to insert a broad space (with |\hskip| for instance, as | 2775 | % can be used to insert a broad space (with |\hskip| for instance, as |
2752 | % in the OCT series) or the divider-sign (‖, as in the Budé series):--- | 2776 | % in the OCT series) or the divider-sign (‖, as in the Budé series):--- |
2753 | % \begin{macrocode} | 2777 | % \begin{macrocode} |
2754 | \def\ekd@unit@delim{} | ||
2755 | \NewDocumentCommand{\SetUnitDelimiter}{m}{\def\ekd@unit@delim{#1}} | 2778 | \NewDocumentCommand{\SetUnitDelimiter}{m}{\def\ekd@unit@delim{#1}} |
2756 | % \end{macrocode} | 2779 | % \end{macrocode} |
2757 | % \end{macro} | 2780 | % \end{macro} |
@@ -2765,7 +2788,6 @@ texts=latin[xml:lang="la"]+\textcolor{red}{;}+ | |||
2765 | % \cs{footnoteruletrue} leaves it untouched. The latter is set by | 2788 | % \cs{footnoteruletrue} leaves it untouched. The latter is set by |
2766 | % default. | 2789 | % default. |
2767 | % \begin{macrocode} | 2790 | % \begin{macrocode} |
2768 | \def\ekd@default@rule{\rule{0.4\columnwidth}{0.4pt}} | ||
2769 | \newif\iffootnoterule | 2791 | \newif\iffootnoterule |
2770 | \footnoteruletrue | 2792 | \footnoteruletrue |
2771 | \let\dflt@footnoterule\footnoterule | 2793 | \let\dflt@footnoterule\footnoterule |