aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ekdosis.dtx24
1 files changed, 17 insertions, 7 deletions
diff --git a/ekdosis.dtx b/ekdosis.dtx
index 8a7c4e0..1bdc51e 100644
--- a/ekdosis.dtx
+++ b/ekdosis.dtx
@@ -469,10 +469,13 @@ idno={}, msName={}, origDate={}][3]{%
469 "yes")}% 469 "yes")}%
470} 470}
471\def\blfootnote{\gdef\@thefnmark{\relax}\@footnotetext} 471\def\blfootnote{\gdef\@thefnmark{\relax}\@footnotetext}
472\newif\ifrtl@app
473\NewDocumentCommand{\SetRTLapp}{}{\rtl@apptrue}
474\NewDocumentCommand{\SetLTRapp}{}{\rtl@appfalse}
472\def\add@@apparatus{% 475\def\add@@apparatus{%
473 % \blfootnote{\apparatus}% 476 % \blfootnote{\apparatus}%
474 \if@pkg@parnotes\parnotes\else\fi% 477 \if@pkg@parnotes\parnotes\else\fi%
475 \keyparbox[b!]{}{% 478 \keyparbox[b!]{}{\ifrtl@app\setRL\else\fi%
476 \if@pkg@parnotes% 479 \if@pkg@parnotes%
477 \if@parnotesroman% 480 \if@parnotesroman%
478 \renewcommand*{\theparnotemark}{\roman{parnotemark}}\else\fi% 481 \renewcommand*{\theparnotemark}{\roman{parnotemark}}\else\fi%
@@ -724,25 +727,32 @@ choice nordg={false,,true}][1]{%
724 }}% 727 }}%
725 |\fi|} 728 |\fi|}
726\newkeycommand+[\|]{\ekd@note}[pre, post][1]{% 729\newkeycommand+[\|]{\ekd@note}[pre, post][1]{%
727 \append@app{\ifcommandkey{pre}{\commandkey{pre}}{}% 730 |\append@app|{\ifcommandkey{pre}{\commandkey{pre}}{}%
728 #1% 731 #1%
729 \ifcommandkey{post}{\commandkey{post}}{}}% 732 \ifcommandkey{post}{\commandkey{post}}{}}%
730} 733}
731\newkeycommand+[\|]{\ekd@note@star}[pre, post][1]{% 734\newkeycommand+[\|]{\ekd@note@star}[pre, post][1]{%
732 |\if@pkg@parnotes|% 735 |\if@pkg@parnotes|%
733 \append@app{% 736 |\append@app|{%
734 \ifcommandkey{pre}{\commandkey{pre}}{}% 737 \ifcommandkey{pre}{\commandkey{pre}}{}%
735 |\unskip\parnote|{#1}% 738 |\unskip\parnote|{#1}%
736 \ifcommandkey{post}{\commandkey{post}}{}% 739 \ifcommandkey{post}{\commandkey{post}}{}%
737 }% 740 }%
738 |\else|% 741 |\else|%
739 \append@app{% 742 |\append@app|{%
740 |\unskip\footnote|{#1}} 743 |\unskip\footnote|{#1}}
741 |\fi|% 744 |\fi|%
742} 745}
743\NewDocumentCommand{\note}{s O{} +m}{% 746\NewDocumentCommand{\note}{s O{} +m}{%
744 \IfBooleanTF{#1}{\ekd@note@star[#2]{#3}} 747 \ifbool{al@rlmode}{%
745 {\ekd@note[#2]{#3}}% 748 \IfBooleanTF{#1}{\ekd@note@star[#2]{\unexpanded{%
749 {\textdir TRT#3}}}}
750 {\ekd@note[#2]{\unexpanded{{\textdir TRT#3}}}}%
751 }{%
752 \IfBooleanTF{#1}{\ekd@note@star[#2]{\unexpanded{%
753 {\texdir TRT#3}}}}
754 {\ekd@note[#2]{\unexpanded{{\textdir TRT#3}}}}%
755 }%
746} 756}
747\NewDocumentCommand{\apparatus}{}{% 757\NewDocumentCommand{\apparatus}{}{%
748 \luadirect{tex.sprint(ekdosis.appout())}} 758 \luadirect{tex.sprint(ekdosis.appout())}}
@@ -1472,7 +1482,7 @@ function ekdosis.mdvappend(str)
1472 end 1482 end
1473 return "\\linelabel{"..i.."}" 1483 return "\\linelabel{"..i.."}"
1474 .. 1484 ..
1475 "\\csname append@app\\endcsname{\\textbf{\\getrefnumber{"..i.."}} "..str.."}" 1485 "\\csname append@app\\endcsname{\\textbf{\\getrefnumber{"..i.."}}~"..str.."}"
1476end 1486end
1477 1487
1478% \end{ekdlua} 1488% \end{ekdlua}