diff options
-rw-r--r-- | Makefile | 9 | ||||
-rw-r--r-- | ekdosis.dtx | 10 |
2 files changed, 14 insertions, 5 deletions
@@ -1,5 +1,6 @@ | |||
1 | NAME = ekdosis | 1 | NAME = ekdosis |
2 | SHELL = bash | 2 | SHELL = bash |
3 | CMP = lualatex-dev | ||
3 | PWD = $(shell pwd) | 4 | PWD = $(shell pwd) |
4 | VERS = $(shell ltxfileinfo -v $(NAME).dtx|sed -e 's/^v//') | 5 | VERS = $(shell ltxfileinfo -v $(NAME).dtx|sed -e 's/^v//') |
5 | LOCAL = $(shell kpsewhich --var-value TEXMFLOCAL) | 6 | LOCAL = $(shell kpsewhich --var-value TEXMFLOCAL) |
@@ -7,11 +8,11 @@ UTREE = $(shell kpsewhich --var-value TEXMFHOME) | |||
7 | all: $(NAME).pdf | 8 | all: $(NAME).pdf |
8 | test -e README.txt && mv README.txt README || exit 0 | 9 | test -e README.txt && mv README.txt README || exit 0 |
9 | $(NAME).pdf: $(NAME).dtx | 10 | $(NAME).pdf: $(NAME).dtx |
10 | lualatex --shell-escape -recorder -interaction=batchmode $(NAME).dtx >/dev/null | 11 | $(CMP) --shell-escape -recorder -interaction=batchmode $(NAME).dtx >/dev/null |
11 | if [ -f $(NAME).glo ]; then makeindex -q -s gglo.ist -o $(NAME).gls $(NAME).glo; fi | 12 | if [ -f $(NAME).glo ]; then makeindex -q -s gglo.ist -o $(NAME).gls $(NAME).glo; fi |
12 | if [ -f $(NAME).idx ]; then makeindex -q -s gind.ist -o $(NAME).ind $(NAME).idx; fi | 13 | if [ -f $(NAME).idx ]; then makeindex -q -s gind.ist -o $(NAME).ind $(NAME).idx; fi |
13 | lualatex --shell-escape --recorder --interaction=nonstopmode $(NAME).dtx > /dev/null | 14 | $(CMP) --shell-escape --recorder --interaction=nonstopmode $(NAME).dtx > /dev/null |
14 | lualatex --shell-escape --recorder --interaction=nonstopmode $(NAME).dtx > /dev/null | 15 | $(CMP) --shell-escape --recorder --interaction=nonstopmode $(NAME).dtx > /dev/null |
15 | clean: | 16 | clean: |
16 | rm -f $(NAME).{aux,fls,glo,gls,hd,idx,ilg,ind,log,out,toc,pyg} | 17 | rm -f $(NAME).{aux,fls,glo,gls,hd,idx,ilg,ind,log,out,toc,pyg} |
17 | rm -f *~ | 18 | rm -f *~ |
@@ -30,7 +31,7 @@ inst: uninst all | |||
30 | cp $(NAME).lua $(UTREE)/tex/lualatex/$(NAME) | 31 | cp $(NAME).lua $(UTREE)/tex/lualatex/$(NAME) |
31 | cp $(NAME).pdf $(UTREE)/doc/lualatex/$(NAME) | 32 | cp $(NAME).pdf $(UTREE)/doc/lualatex/$(NAME) |
32 | local: uninst | 33 | local: uninst |
33 | lualatex $(NAME).ins | 34 | $(CMP) $(NAME).ins |
34 | mkdir -p $(UTREE)/{tex,source,doc}/lualatex/$(NAME) | 35 | mkdir -p $(UTREE)/{tex,source,doc}/lualatex/$(NAME) |
35 | cp $(NAME).sty $(UTREE)/tex/lualatex/$(NAME) | 36 | cp $(NAME).sty $(UTREE)/tex/lualatex/$(NAME) |
36 | cp $(NAME).lua $(UTREE)/tex/lualatex/$(NAME) | 37 | cp $(NAME).lua $(UTREE)/tex/lualatex/$(NAME) |
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) |