From d07467975f83e797436c7f97dd406f5c9f3ad51e Mon Sep 17 00:00:00 2001 From: Robert Alessi Date: Tue, 3 Sep 2019 19:53:13 +0200 Subject: cleanup --- ekdosis.dtx | 126 ------------------------------------------------------------ 1 file changed, 126 deletions(-) diff --git a/ekdosis.dtx b/ekdosis.dtx index 63663be..1f88522 100644 --- a/ekdosis.dtx +++ b/ekdosis.dtx @@ -358,7 +358,6 @@ Running "make install" installs the files in the local TeX tree. \RequirePackage{lineno} \RequirePackage{keyfloat} \RequirePackage{refcount} -%\RequirePackage{xspace} \RequirePackage[user,abspage]{zref} \RequirePackage{ltxcmds} \if@pkg@parnotes @@ -541,9 +540,6 @@ idno={}, msName={}, origDate={}][3]{% \define@boolkeys[ekd]{rdg}[ekdr@]{nordg}[true] \NewDocumentCommand{\lem}{O{} m}{% \luadirect{ekdosis.dolnlab(\luastringN{#2})}% - % \linelabel{\luadirect{tex.sprint(ekdosis.getlnlab())}-b}% - % #2% - % \linelabel{\luadirect{tex.sprint(ekdosis.getlnlab())}-e}% \bgroup% \setkeys[ekd]{lemrdg,lem}{#1}% \ifekdl@nolem\edef\lem@app{% @@ -667,95 +663,6 @@ idno={}, msName={}, origDate={}][3]{% \fi% \egroup% } -\newkeycommand+[\|]{\lemout}[wit, alt, pre, post, prewit, postwit, -sep={\ekdsep}, choice nosep={false,,true}, -choice nolem={false,,true}][1]{% - #1% - |\ifnum|% - \commandkey{nolem}>0% - \append@ln@app{}% - |\else|% - |\ifbool{al@rlmode}|% - {\append@ln@app{% - \bgroup% - \setRL% - \ifcommandkey{alt}{% - \ifcommandkey{post}{ \commandkey{post} }{}% - \commandkey{alt}% - \ifcommandkey{pre}{ \commandkey{pre} }{}% - }{% - \ifcommandkey{post}{ \commandkey{post} }{}% - #1% - \ifcommandkey{pre}{ \commandkey{pre} }{}% - }% - \egroup{}% - \ifcommandkey{prewit}{ \commandkey{prewit} }{}% - \ifcommandkey{wit}{ \getsiglum{\commandkey{wit}}}{}% - \ifcommandkey{postwit}{ \commandkey{postwit}}{}% - |\ifnum| - \commandkey{nosep}>0% - |\else| - \commandkey{sep}% - |\fi|% - }}% - {\append@ln@app{% - \ifcommandkey{alt}{% - \ifcommandkey{pre}{ \commandkey{pre} }{}% - \commandkey{alt}% - \ifcommandkey{post}{ \commandkey{post} }{}% - }{% - \ifcommandkey{pre}{ \commandkey{pre} }{}% - #1% - \ifcommandkey{post}{ \commandkey{post} }{}% - }% - \ifcommandkey{prewit}{ \commandkey{prewit} }{}% - \ifcommandkey{wit}{ \getsiglum{\commandkey{wit}}}{}% - \ifcommandkey{postwit}{ \commandkey{postwit}}{}% - |\ifnum| - \commandkey{nosep}>0% - |\else| - \commandkey{sep}% - |\fi|% - }}% - |\fi|} -\newkeycommand+[\|]{\rdgout}[wit, alt, pre, post, prewit, postwit, -choice nordg={false,,true}][1]{% - |\ifnum|% - \commandkey{nordg}>0% - |\else|% - |\ifbool{al@rlmode}|% - {\append@app{% - \bgroup% - \setRL% - \ifcommandkey{alt}{% - \ifcommandkey{post}{ \commandkey{post} }{}% - \commandkey{alt}% - \ifcommandkey{pre}{ \commandkey{pre} }{}% - }{% - \ifcommandkey{post}{ \commandkey{post} }{}% - #1% - \ifcommandkey{pre}{ \commandkey{pre} }{}% - }% - \egroup{}% - \ifcommandkey{prewit}{ \commandkey{prewit} }{}% - \ifcommandkey{wit}{ \getsiglum{\commandkey{wit}}}{}% - \ifcommandkey{postwit}{ \commandkey{postwit}}{}% - }}% - {\append@app{% - \ifcommandkey{alt}{% - \ifcommandkey{pre}{ \commandkey{pre} }{}% - \commandkey{alt}% - \ifcommandkey{post}{ \commandkey{post} }{}% - }{% - \ifcommandkey{pre}{ \commandkey{pre} }{}% - #1% - \ifcommandkey{post}{ \commandkey{post} }{}% - }% - \ifcommandkey{prewit}{ \commandkey{prewit} }{}% - \ifcommandkey{wit}{ \getsiglum{\commandkey{wit}}}{}% - \ifcommandkey{postwit}{ \commandkey{postwit}}{}% - }}% - |\fi|} \newkeycommand+[\|]{\ekd@note}[pre, post][1]{% |\append@app|{\ifcommandkey{pre}{\commandkey{pre}}{}% #1% @@ -1521,8 +1428,6 @@ function ekdosis.getlnlab() return current_lnlab end -local md5items = {} - function ekdosis.mdvappend(str) return [[\linelabel{]] .. current_lnlab .. [[-b}\wordboundary{}]] .. @@ -1531,40 +1436,9 @@ function ekdosis.mdvappend(str) [[\linelabel{]] .. current_lnlab .. [[-e}]] .. [[\csname append@app\endcsname{]] - -- {\textdir TLT\textbf{]] - -- .. - -- [[\ifnumcomp{\getrefnumber{]]..current_lnlab..[[-b}}{=}]] - -- .. - -- [[{\getrefnumber{]]..current_lnlab..[[-e}}]] - -- .. - -- [[{\getrefnumber{]]..current_lnlab..[[-b}}]] - -- .. - -- [[{\getrefnumber{]] - -- .. current_lnlab .. [[-b}--]] - -- .. - -- [[\getrefnumber{]] - -- .. current_lnlab .. [[-e}}}}~]] .. str .. [[}]] end -function ekdosis.mdvappend_out(str) - i = md5.sumhexa(str) - if not mdvisintable(md5items, i) then - table.insert(md5items, i) - else - i = i..salt - table.insert(md5items, i) - salt = salt + 1 - end - return "\\linelabel{"..i.."}" - .. - [[\csname append@app\endcsname{\textbf{\textdir TLT\getrefnumber{]] - .. i .. - [[}}~]] ..str.. [[}]] -end - ---was: "\\csname append@app\\endcsname{\\textbf{\\textdir TLT\\getrefnumber{"..i.."}}~"..str.."}" - % \end{ekdlua} % \iffalse % -- cgit v1.2.3