aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ekdosis.dtx75
1 files changed, 26 insertions, 49 deletions
diff --git a/ekdosis.dtx b/ekdosis.dtx
index 9ce51e4..6fa4895 100644
--- a/ekdosis.dtx
+++ b/ekdosis.dtx
@@ -2309,66 +2309,43 @@ texts=latin[xml:lang="la"]+\textcolor{red}{;}+
2309% \end{macrocode} 2309% \end{macrocode}
2310% Set global options:--- 2310% Set global options:---
2311% \begin{macrocode} 2311% \begin{macrocode}
2312\RequirePackage{xkeyval} 2312\RequirePackage{expkv-opt}
2313\RequirePackage{expkv-def}
2313\newif\if@pkg@float 2314\newif\if@pkg@float
2314\newif\if@pkg@footins 2315\newif\if@pkg@footins
2315\define@choicekey{ekdosis.sty}{layout}{float, footins}[float]{%
2316 \edef\layout@float{float}
2317 \edef\layout@footins{footins}
2318 \edef\@tempa{#1}
2319 \ifx\@tempa\layout@float\@pkg@floattrue\fi
2320 \ifx\@tempa\layout@footins\@pkg@floatfalse\@pkg@footinstrue\fi
2321}
2322\newif\if@pkg@ekddivs 2316\newif\if@pkg@ekddivs
2323\define@choicekey+{ekdosis.sty}{divs}{ekdosis, latex}[ekdosis]{
2324 \edef\divs@ekdosis{ekdosis}
2325 \edef\divs@latex{latex}
2326 \edef\@tempa{#1}
2327 \ifx\@tempa\divs@ekdosis\@pkg@ekddivstrue\fi
2328 \ifx\@tempa\divs@latex
2329 \@pkg@ekddivsfalse
2330 \AtBeginDocument{\luadirect{ekdosis.setekddivsfalse()}}
2331 \fi
2332}{\PackageError{ekdosis}{divs option must be either 'ekdosis' or 'latex'}}
2333\newif\if@parnotesroman 2317\newif\if@parnotesroman
2334\newif\if@pkg@parnotes 2318\newif\if@pkg@parnotes
2335\define@choicekey+{ekdosis.sty}{parnotes}{true, false, roman}[true]{%
2336 \edef\@pntrue{true}\edef\@pnfalse{false}\edef\@pnrm{roman}
2337 \edef\@tempa{#1}
2338 \ifx\@tempa\@pnfalse
2339 \else
2340 \ifx\@tempa\@pntrue\@pkg@parnotestrue
2341 \else
2342 \ifx\@tempa\@pnrm
2343 \@pkg@parnotestrue\@parnotesromantrue
2344 \fi\fi\fi
2345}{\PackageWarning{ekdosis}{parnotes: erroneous input (ignored)}}
2346\newif\iftei@export 2319\newif\iftei@export
2347\define@choicekey{ekdosis.sty}{teiexport}{true, false, tidy}[true]{% 2320\ekvdefinekeys{ekdosis}{
2348 \edef\@exptrue{true}\edef\@expfalse{false}\edef\@exptidy{tidy} 2321 choice layout = {float = {\@pkg@floattrue},
2349 \edef\@tempa{#1} 2322 footins = {\@pkg@footinstrue}},
2350 \ifx\@tempa\@expfalse 2323 initial layout = float,
2351 \else 2324 choice divs = {ekdosis = {\@pkg@ekddivstrue},
2352 \ifx\@tempa\@exptrue 2325 latex = {\@pkg@ekddivsfalse
2353 \tei@exporttrue 2326 \AtBeginDocument{\luadirect{ekdosis.setekddivsfalse()}}}},
2354 \AtBeginDocument{\luadirect{ekdosis.openteistream()}}% 2327 initial divs = ekdosis,
2355 \AtEndDocument{\luadirect{ekdosis.closeteistream()}} 2328 choice parnotes = {false = {},
2356 \else 2329 true = {\@pkg@parnotestrue},
2357 \ifx\@tempa\@exptidy 2330 roman = {\@pkg@parnotestrue\@parnotesromantrue}},
2358 \tei@exporttrue 2331 default parnotes = true,
2359 \AtBeginDocument{\luadirect{ekdosis.openteistream()}}% 2332 choice teiexport = {false = {},
2360 \AtEndDocument{\luadirect{ekdosis.closeteistream("tidy")}} 2333 true = {\tei@exporttrue
2361 \else\fi\fi\fi} 2334 \AtBeginDocument{\luadirect{ekdosis.openteistream()}}%
2362\ExecuteOptionsX{layout,divs} 2335 \AtEndDocument{\luadirect{ekdosis.closeteistream()}}},
2363\ProcessOptionsX\relax 2336 tidy = {\tei@exporttrue
2337 \AtBeginDocument{\luadirect{ekdosis.openteistream()}}%
2338 \AtEndDocument{\luadirect{ekdosis.closeteistream("tidy")}}}},
2339 default teiexport = true
2340}
2341\ekvoProcessLocalOptions{ekdosis}
2364% \end{macrocode} 2342% \end{macrocode}
2365% \paragraph{Required Packages} \label{ref:ekdrequirements} In 2343% \paragraph{Required Packages} \label{ref:ekdrequirements} In
2366% addition to \pkg{iftex} and \pkg{xkeyval}, a list of the packages 2344% addition to \pkg{iftex} \pkg{expkv-opt} and \pkg{expkv-def}, a list
2367% that are required by \pkg{ekdosis} follows:--- 2345% of the packages that are required by \pkg{ekdosis} follows:---
2368% \begin{macrocode} 2346% \begin{macrocode}
2369\RequirePackage{luacode} 2347\RequirePackage{luacode}
2370\RequirePackage{paracol} 2348\RequirePackage{paracol}
2371\RequirePackage{expkv-def}
2372\RequirePackage{xparse} 2349\RequirePackage{xparse}
2373\RequirePackage{etoolbox} 2350\RequirePackage{etoolbox}
2374\RequirePackage{lineno} 2351\RequirePackage{lineno}