aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ekdosis.dtx126
1 files changed, 0 insertions, 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.
358\RequirePackage{lineno} 358\RequirePackage{lineno}
359\RequirePackage{keyfloat} 359\RequirePackage{keyfloat}
360\RequirePackage{refcount} 360\RequirePackage{refcount}
361%\RequirePackage{xspace}
362\RequirePackage[user,abspage]{zref} 361\RequirePackage[user,abspage]{zref}
363\RequirePackage{ltxcmds} 362\RequirePackage{ltxcmds}
364\if@pkg@parnotes 363\if@pkg@parnotes
@@ -541,9 +540,6 @@ idno={}, msName={}, origDate={}][3]{%
541\define@boolkeys[ekd]{rdg}[ekdr@]{nordg}[true] 540\define@boolkeys[ekd]{rdg}[ekdr@]{nordg}[true]
542\NewDocumentCommand{\lem}{O{} m}{% 541\NewDocumentCommand{\lem}{O{} m}{%
543 \luadirect{ekdosis.dolnlab(\luastringN{#2})}% 542 \luadirect{ekdosis.dolnlab(\luastringN{#2})}%
544 % \linelabel{\luadirect{tex.sprint(ekdosis.getlnlab())}-b}%
545 % #2%
546 % \linelabel{\luadirect{tex.sprint(ekdosis.getlnlab())}-e}%
547 \bgroup% 543 \bgroup%
548 \setkeys[ekd]{lemrdg,lem}{#1}% 544 \setkeys[ekd]{lemrdg,lem}{#1}%
549 \ifekdl@nolem\edef\lem@app{% 545 \ifekdl@nolem\edef\lem@app{%
@@ -667,95 +663,6 @@ idno={}, msName={}, origDate={}][3]{%
667 \fi% 663 \fi%
668 \egroup% 664 \egroup%
669} 665}
670\newkeycommand+[\|]{\lemout}[wit, alt, pre, post, prewit, postwit,
671sep={\ekdsep}, choice nosep={false,,true},
672choice nolem={false,,true}][1]{%
673 #1%
674 |\ifnum|%
675 \commandkey{nolem}>0%
676 \append@ln@app{}%
677 |\else|%
678 |\ifbool{al@rlmode}|%
679 {\append@ln@app{%
680 \bgroup%
681 \setRL%
682 \ifcommandkey{alt}{%
683 \ifcommandkey{post}{ \commandkey{post} }{}%
684 \commandkey{alt}%
685 \ifcommandkey{pre}{ \commandkey{pre} }{}%
686 }{%
687 \ifcommandkey{post}{ \commandkey{post} }{}%
688 #1%
689 \ifcommandkey{pre}{ \commandkey{pre} }{}%
690 }%
691 \egroup{}%
692 \ifcommandkey{prewit}{ \commandkey{prewit} }{}%
693 \ifcommandkey{wit}{ \getsiglum{\commandkey{wit}}}{}%
694 \ifcommandkey{postwit}{ \commandkey{postwit}}{}%
695 |\ifnum|
696 \commandkey{nosep}>0%
697 |\else|
698 \commandkey{sep}%
699 |\fi|%
700 }}%
701 {\append@ln@app{%
702 \ifcommandkey{alt}{%
703 \ifcommandkey{pre}{ \commandkey{pre} }{}%
704 \commandkey{alt}%
705 \ifcommandkey{post}{ \commandkey{post} }{}%
706 }{%
707 \ifcommandkey{pre}{ \commandkey{pre} }{}%
708 #1%
709 \ifcommandkey{post}{ \commandkey{post} }{}%
710 }%
711 \ifcommandkey{prewit}{ \commandkey{prewit} }{}%
712 \ifcommandkey{wit}{ \getsiglum{\commandkey{wit}}}{}%
713 \ifcommandkey{postwit}{ \commandkey{postwit}}{}%
714 |\ifnum|
715 \commandkey{nosep}>0%
716 |\else|
717 \commandkey{sep}%
718 |\fi|%
719 }}%
720 |\fi|}
721\newkeycommand+[\|]{\rdgout}[wit, alt, pre, post, prewit, postwit,
722choice nordg={false,,true}][1]{%
723 |\ifnum|%
724 \commandkey{nordg}>0%
725 |\else|%
726 |\ifbool{al@rlmode}|%
727 {\append@app{%
728 \bgroup%
729 \setRL%
730 \ifcommandkey{alt}{%
731 \ifcommandkey{post}{ \commandkey{post} }{}%
732 \commandkey{alt}%
733 \ifcommandkey{pre}{ \commandkey{pre} }{}%
734 }{%
735 \ifcommandkey{post}{ \commandkey{post} }{}%
736 #1%
737 \ifcommandkey{pre}{ \commandkey{pre} }{}%
738 }%
739 \egroup{}%
740 \ifcommandkey{prewit}{ \commandkey{prewit} }{}%
741 \ifcommandkey{wit}{ \getsiglum{\commandkey{wit}}}{}%
742 \ifcommandkey{postwit}{ \commandkey{postwit}}{}%
743 }}%
744 {\append@app{%
745 \ifcommandkey{alt}{%
746 \ifcommandkey{pre}{ \commandkey{pre} }{}%
747 \commandkey{alt}%
748 \ifcommandkey{post}{ \commandkey{post} }{}%
749 }{%
750 \ifcommandkey{pre}{ \commandkey{pre} }{}%
751 #1%
752 \ifcommandkey{post}{ \commandkey{post} }{}%
753 }%
754 \ifcommandkey{prewit}{ \commandkey{prewit} }{}%
755 \ifcommandkey{wit}{ \getsiglum{\commandkey{wit}}}{}%
756 \ifcommandkey{postwit}{ \commandkey{postwit}}{}%
757 }}%
758 |\fi|}
759\newkeycommand+[\|]{\ekd@note}[pre, post][1]{% 666\newkeycommand+[\|]{\ekd@note}[pre, post][1]{%
760 |\append@app|{\ifcommandkey{pre}{\commandkey{pre}}{}% 667 |\append@app|{\ifcommandkey{pre}{\commandkey{pre}}{}%
761 #1% 668 #1%
@@ -1521,8 +1428,6 @@ function ekdosis.getlnlab()
1521 return current_lnlab 1428 return current_lnlab
1522end 1429end
1523 1430
1524local md5items = {}
1525
1526function ekdosis.mdvappend(str) 1431function ekdosis.mdvappend(str)
1527 return [[\linelabel{]] .. current_lnlab .. [[-b}\wordboundary{}]] 1432 return [[\linelabel{]] .. current_lnlab .. [[-b}\wordboundary{}]]
1528 .. 1433 ..
@@ -1531,40 +1436,9 @@ function ekdosis.mdvappend(str)
1531 [[\linelabel{]] .. current_lnlab .. [[-e}]] 1436 [[\linelabel{]] .. current_lnlab .. [[-e}]]
1532 .. 1437 ..
1533 [[\csname append@app\endcsname{]] 1438 [[\csname append@app\endcsname{]]
1534 -- {\textdir TLT\textbf{]]
1535 -- ..
1536 -- [[\ifnumcomp{\getrefnumber{]]..current_lnlab..[[-b}}{=}]]
1537 -- ..
1538 -- [[{\getrefnumber{]]..current_lnlab..[[-e}}]]
1539 -- ..
1540 -- [[{\getrefnumber{]]..current_lnlab..[[-b}}]]
1541 -- ..
1542 -- [[{\getrefnumber{]]
1543 -- .. current_lnlab .. [[-b}--]]
1544 -- ..
1545 -- [[\getrefnumber{]]
1546 -- .. current_lnlab .. [[-e}}}}~]]
1547 .. str .. [[}]] 1439 .. str .. [[}]]
1548end 1440end
1549 1441
1550function ekdosis.mdvappend_out(str)
1551 i = md5.sumhexa(str)
1552 if not mdvisintable(md5items, i) then
1553 table.insert(md5items, i)
1554 else
1555 i = i..salt
1556 table.insert(md5items, i)
1557 salt = salt + 1
1558 end
1559 return "\\linelabel{"..i.."}"
1560 ..
1561 [[\csname append@app\endcsname{\textbf{\textdir TLT\getrefnumber{]]
1562 .. i ..
1563 [[}}~]] ..str.. [[}]]
1564end
1565
1566--was: "\\csname append@app\\endcsname{\\textbf{\\textdir TLT\\getrefnumber{"..i.."}}~"..str.."}"
1567
1568% \end{ekdlua} 1442% \end{ekdlua}
1569% \iffalse 1443% \iffalse
1570%</lua> 1444%</lua>