diff options
author | Robert Alessi <alessi@robertalessi.net> | 2019-11-17 19:01:59 +0100 |
---|---|---|
committer | Robert Alessi <alessi@robertalessi.net> | 2019-11-17 19:01:59 +0100 |
commit | a1be1b3fa2bc6910e7eb3f55da4627f80675b67e (patch) | |
tree | c6ae38503cebc84753a22cab7bc0053f8006e64e /ekdosis.dtx | |
parent | a8c4a82dcf257a4db713a6bae3a0778b030f9b4a (diff) | |
download | ekdosis-a1be1b3fa2bc6910e7eb3f55da4627f80675b67e.tar.gz |
added new option 'sep' in \DeclareApparatus; new variable CMP in Makefile
Diffstat (limited to 'ekdosis.dtx')
-rw-r--r-- | ekdosis.dtx | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/ekdosis.dtx b/ekdosis.dtx index 640b91d..7275754 100644 --- a/ekdosis.dtx +++ b/ekdosis.dtx | |||
@@ -454,7 +454,7 @@ idno={}, msName={}, origDate={}][3]{% | |||
454 | % \begin{macrocode} | 454 | % \begin{macrocode} |
455 | \newif\ifekd@mapps | 455 | \newif\ifekd@mapps |
456 | \newkeycommand+[\|]{\declare@apparatus}[enum direction={LR,RL}, rule={}, | 456 | \newkeycommand+[\|]{\declare@apparatus}[enum direction={LR,RL}, rule={}, |
457 | delim={}, bhook={}, | 457 | delim={}, sep={}, bhook={}, |
458 | ehook={\csname ekd@end@apparatus\endcsname}][1]{% | 458 | ehook={\csname ekd@end@apparatus\endcsname}][1]{% |
459 | |\luadirect|{% | 459 | |\luadirect|{% |
460 | ekdosis.newapparatus( | 460 | ekdosis.newapparatus( |
@@ -462,6 +462,7 @@ idno={}, msName={}, origDate={}][3]{% | |||
462 | |\luastringN|{\commandkey{direction}}, | 462 | |\luastringN|{\commandkey{direction}}, |
463 | |\luastringN|{\commandkey{rule}}, | 463 | |\luastringN|{\commandkey{rule}}, |
464 | |\luastringN|{\commandkey{delim}}, | 464 | |\luastringN|{\commandkey{delim}}, |
465 | |\luastringN|{\commandkey{sep}}, | ||
465 | |\luastringN|{\commandkey{bhook}}, | 466 | |\luastringN|{\commandkey{bhook}}, |
466 | |\luastringN|{\commandkey{ehook}})} | 467 | |\luastringN|{\commandkey{ehook}})} |
467 | } | 468 | } |
@@ -1853,6 +1854,7 @@ function ekdosis.newapparatus(teitype, | |||
1853 | appdir, | 1854 | appdir, |
1854 | apprule, | 1855 | apprule, |
1855 | appdelim, | 1856 | appdelim, |
1857 | appsep, | ||
1856 | appbhook, | 1858 | appbhook, |
1857 | appehook) | 1859 | appehook) |
1858 | if isintable(apparatuses, teitype) | 1860 | if isintable(apparatuses, teitype) |
@@ -1865,6 +1867,7 @@ function ekdosis.newapparatus(teitype, | |||
1865 | direction = appdir, | 1867 | direction = appdir, |
1866 | rule = apprule, | 1868 | rule = apprule, |
1867 | delim = appdelim, | 1869 | delim = appdelim, |
1870 | sep = appsep, | ||
1868 | bhook = appbhook, | 1871 | bhook = appbhook, |
1869 | ehook = appehook}) | 1872 | ehook = appehook}) |
1870 | end | 1873 | end |
@@ -1974,6 +1977,11 @@ function ekdosis.appout() | |||
1974 | table.insert(output, "\\csname ekd@default@rule\\endcsname\\NLS\\noindent ") | 1977 | table.insert(output, "\\csname ekd@default@rule\\endcsname\\NLS\\noindent ") |
1975 | end | 1978 | end |
1976 | end | 1979 | end |
1980 | if apparatuses[n].sep ~= "" | ||
1981 | then | ||
1982 | table.insert(output, "\\edef\\ekdsep{" .. apparatuses[n].sep .. "}") | ||
1983 | else | ||
1984 | end | ||
1977 | if apparatuses[n].bhook ~= "" | 1985 | if apparatuses[n].bhook ~= "" |
1978 | then | 1986 | then |
1979 | table.insert(output, apparatuses[n].bhook) | 1987 | table.insert(output, apparatuses[n].bhook) |