aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Alessi <alessi@robertalessi.net>2019-11-17 19:01:59 +0100
committerRobert Alessi <alessi@robertalessi.net>2019-11-17 19:01:59 +0100
commita1be1b3fa2bc6910e7eb3f55da4627f80675b67e (patch)
treec6ae38503cebc84753a22cab7bc0053f8006e64e
parenta8c4a82dcf257a4db713a6bae3a0778b030f9b4a (diff)
downloadekdosis-a1be1b3fa2bc6910e7eb3f55da4627f80675b67e.tar.gz
added new option 'sep' in \DeclareApparatus; new variable CMP in Makefile
-rw-r--r--Makefile9
-rw-r--r--ekdosis.dtx10
2 files changed, 14 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 6449ff6..e4e89a2 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,6 @@
1NAME = ekdosis 1NAME = ekdosis
2SHELL = bash 2SHELL = bash
3CMP = lualatex-dev
3PWD = $(shell pwd) 4PWD = $(shell pwd)
4VERS = $(shell ltxfileinfo -v $(NAME).dtx|sed -e 's/^v//') 5VERS = $(shell ltxfileinfo -v $(NAME).dtx|sed -e 's/^v//')
5LOCAL = $(shell kpsewhich --var-value TEXMFLOCAL) 6LOCAL = $(shell kpsewhich --var-value TEXMFLOCAL)
@@ -7,11 +8,11 @@ UTREE = $(shell kpsewhich --var-value TEXMFHOME)
7all: $(NAME).pdf 8all: $(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
15clean: 16clean:
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)
32local: uninst 33local: 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)