diff options
author | Robert Alessi <alessi@robertalessi.net> | 2019-04-19 12:12:48 +0200 |
---|---|---|
committer | Robert Alessi <alessi@robertalessi.net> | 2019-04-19 12:12:48 +0200 |
commit | 8776b6904301f706580b6078193a145e9c882b5e (patch) | |
tree | e922482e0e0a72b383ffe58f8eb83187abccc743 | |
parent | e260b04aeaa823a2ab7de2a244531d064592884e (diff) | |
download | ekdosis-8776b6904301f706580b6078193a145e9c882b5e.tar.gz |
added 'pre' and 'post' options to \note
-rw-r--r-- | ekdosis.dtx | 26 |
1 files changed, 21 insertions, 5 deletions
diff --git a/ekdosis.dtx b/ekdosis.dtx index 983ead7..ff1a81f 100644 --- a/ekdosis.dtx +++ b/ekdosis.dtx | |||
@@ -566,13 +566,29 @@ choice nosep={false,,true}, choice nolem={false,,true}][1]{% | |||
566 | }% | 566 | }% |
567 | \ifcommandkey{prewit}{ \commandkey{prewit} }{}% | 567 | \ifcommandkey{prewit}{ \commandkey{prewit} }{}% |
568 | \ifcommandkey{wit}{ \getsiglum{\commandkey{wit}}}{}% | 568 | \ifcommandkey{wit}{ \getsiglum{\commandkey{wit}}}{}% |
569 | \ifcommandkey{postwit}{ \commandkey{postwit}}{}% | 569 | \ifcommandkey{postwit}{ \commandkey{postwit}\unskip}{\unskip}% |
570 | }}% | 570 | }}% |
571 | } | 571 | } |
572 | \NewDocumentCommand{\note}{s +m}{% | 572 | \newkeycommand+[\|]{\ekd@note}[pre, post][1]{% |
573 | \IfBooleanTF{#1}{% | 573 | \append@app{\ifcommandkey{pre}{\commandkey{pre}}{}% |
574 | \if@pkg@parnotes\append@app{\parnote{#2}}% | 574 | #1% |
575 | \else\append@app{\footnote{#2}}\fi}{\append@app{#2}}% | 575 | \ifcommandkey{post}{\commandkey{post}}{}}% |
576 | } | ||
577 | \newkeycommand+[\|]{\ekd@note@star}[pre, post][1]{% | ||
578 | |\if@pkg@parnotes|% | ||
579 | \append@app{% | ||
580 | \ifcommandkey{pre}{\commandkey{pre}}{}% | ||
581 | |\parnote|{#1}% | ||
582 | \ifcommandkey{post}{\commandkey{post}}{}% | ||
583 | }% | ||
584 | |\else|% | ||
585 | \append@app{% | ||
586 | |\footnote|{#1}} | ||
587 | |\fi|% | ||
588 | } | ||
589 | \NewDocumentCommand{\note}{s O{} +m}{% | ||
590 | \IfBooleanTF{#1}{\ekd@note@star[#2]{#3}} | ||
591 | {\ekd@note[#2]{#3}}% | ||
576 | } | 592 | } |
577 | \NewDocumentCommand{\apparatus}{}{\luadirect{tex.sprint(ekdosis.appout())}} | 593 | \NewDocumentCommand{\apparatus}{}{\luadirect{tex.sprint(ekdosis.appout())}} |
578 | \NewDocumentCommand{\test@apparatus}{}{% | 594 | \NewDocumentCommand{\test@apparatus}{}{% |