From 3f76067dde2d1575589c6f2a20ec5d75b69bfc9b Mon Sep 17 00:00:00 2001 From: Robert Alessi Date: Sun, 5 Jul 2020 20:23:30 +0200 Subject: added unknown-choice t-prefixes --- ekdosis.dtx | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/ekdosis.dtx b/ekdosis.dtx index 91d3da5..29919e1 100644 --- a/ekdosis.dtx +++ b/ekdosis.dtx @@ -2321,14 +2321,21 @@ texts=latin[xml:lang="la"]+\textcolor{red}{;}+ choice layout = {float = {\@pkg@floattrue}, footins = {\@pkg@footinstrue}}, initial layout = float, + unknown-choice layout = \PackageError{ekdosis}{unknown + layout=#1}{`layout' must be either `float' or `footins'.}, choice divs = {ekdosis = {\@pkg@ekddivstrue}, latex = {\@pkg@ekddivsfalse \AtBeginDocument{\luadirect{ekdosis.setekddivsfalse()}}}}, initial divs = ekdosis, + unknown-choice divs = \PackageError{ekdosis}{unknown divs=#1}{`divs' + must be either `ekdosis' or `latex'.}, choice parnotes = {false = {}, true = {\@pkg@parnotestrue}, roman = {\@pkg@parnotestrue\@parnotesromantrue}}, default parnotes = true, + unknown-choice parnotes = \PackageError{ekdosis}{unknown + parnotes=#1}{`parnotes' must be either `true', or `false' or + `roman'.}, choice teiexport = {false = {}, true = {\tei@exporttrue \AtBeginDocument{\luadirect{ekdosis.openteistream()}}% @@ -2336,7 +2343,9 @@ texts=latin[xml:lang="la"]+\textcolor{red}{;}+ tidy = {\tei@exporttrue \AtBeginDocument{\luadirect{ekdosis.openteistream()}}% \AtEndDocument{\luadirect{ekdosis.closeteistream("tidy")}}}}, - default teiexport = true + default teiexport = true, + unknown-choice teiexport = \PackageError{ekdosis}{unknown + teiexport=#1}{`teiexport' must be either `true', `false' or `tidy'}, } \ekvoProcessLocalOptions{ekdosis} % \end{macrocode} @@ -2541,6 +2550,8 @@ texts=latin[xml:lang="la"]+\textcolor{red}{;}+ \ekvdefinekeys{ekd@newapp}{ choice direction = {LR = \def\direction@val{LR}, RL = \def\direction@val{RL}}, + unknown-choice direction = \PackageError{ekdosis}{unknown + direction=#1}{`direction' must be either `LR' or `RL'.}, store rule = \rule@val, store delim = \delim@val, store sep = \sep@val, @@ -3302,8 +3313,13 @@ texts=latin[xml:lang="la"]+\textcolor{red}{;}+ bool paired = \ifekd@paired, choice lineation = {page = \ekd@pagelineationtrue, document = \ekd@pagelineationfalse}, + unknown-choice lineation = \PackageError{ekdosis}{unknown + lineation=#1}{`lineation' must be either `page' or `document'.}, choice segmentation = {auto = \def\segmentation@val{auto}, noauto = \def\segmentation@val{noauto}}, + unknown-choice segmentation = \PackageError{ekdosis}{unknown + segmentation=#1}{`segmentation' must be either `auto' or + `noauto'.}, bool flush = \ifekd@flushapp, initial tcols = 2, initial lcols = 1, @@ -3399,6 +3415,9 @@ texts=latin[xml:lang="la"]+\textcolor{red}{;}+ subsubsection = \def\toc@value{subsubsection}, paragraph = \def\toc@value{paragraph}, subparagraph = \def\toc@value{subparagraph}}, + unknown-choice toc = \PackageError{ekdosis}{unknown toc=#1}{`toc' + must be either `book', `part', `chapter', `section', `subsection', + \MessageBreak `subsubsection', `paragraph' or `subparagraph'.}, initial depth = 1 } -- cgit v1.2.3