diff options
-rw-r--r-- | ekdosis.dtx | 31 |
1 files changed, 19 insertions, 12 deletions
diff --git a/ekdosis.dtx b/ekdosis.dtx index 9d5583f..cf5fc4b 100644 --- a/ekdosis.dtx +++ b/ekdosis.dtx | |||
@@ -373,8 +373,10 @@ Running "make install" installs the files in the local TeX tree. | |||
373 | % Hooks | 373 | % Hooks |
374 | % \begin{macrocode} | 374 | % \begin{macrocode} |
375 | \ekvdefinekeys{ekd@hooks}{ | 375 | \ekvdefinekeys{ekd@hooks}{ |
376 | store appfontsize = \ekd@appfontsize, | ||
376 | store refnumstyle = \ekd@refnumstyle, | 377 | store refnumstyle = \ekd@refnumstyle, |
377 | store postrefnum = \ekd@postrefnum, | 378 | store postrefnum = \ekd@postrefnum, |
379 | initial appfontsize = \footnotesize, | ||
378 | initial refnumstyle = \bfseries, | 380 | initial refnumstyle = \bfseries, |
379 | initial postrefnum = ~ | 381 | initial postrefnum = ~ |
380 | } | 382 | } |
@@ -382,7 +384,7 @@ Running "make install" installs the files in the local TeX tree. | |||
382 | % \end{macrocode} | 384 | % \end{macrocode} |
383 | % Build and process the list of witnesses and hands. | 385 | % Build and process the list of witnesses and hands. |
384 | % \begin{macrocode} | 386 | % \begin{macrocode} |
385 | \ekvdefinekeys{witness}{ | 387 | \ekvdefinekeys{ekd@witness}{ |
386 | store settlement = \settlement@value, | 388 | store settlement = \settlement@value, |
387 | store repository = \repository@value, | 389 | store repository = \repository@value, |
388 | store idno = \idno@value, | 390 | store idno = \idno@value, |
@@ -391,7 +393,7 @@ Running "make install" installs the files in the local TeX tree. | |||
391 | } | 393 | } |
392 | \NewDocumentCommand{\DeclareWitness}{m m m O{}}{% | 394 | \NewDocumentCommand{\DeclareWitness}{m m m O{}}{% |
393 | \bgroup | 395 | \bgroup |
394 | \ekvset{witness}{#4} | 396 | \ekvset{ekd@witness}{#4} |
395 | \luadirect{ekdosis.newwitness( | 397 | \luadirect{ekdosis.newwitness( |
396 | \luastringN{#1}, | 398 | \luastringN{#1}, |
397 | \luastringN{#2}, | 399 | \luastringN{#2}, |
@@ -466,7 +468,7 @@ Running "make install" installs the files in the local TeX tree. | |||
466 | % Multi-layer apparatuses | 468 | % Multi-layer apparatuses |
467 | % \begin{macrocode} | 469 | % \begin{macrocode} |
468 | \newif\ifekd@mapps | 470 | \newif\ifekd@mapps |
469 | \ekvdefinekeys{newapp}{ | 471 | \ekvdefinekeys{ekd@newapp}{ |
470 | choice direction = {LR = \def\direction@val{LR}, | 472 | choice direction = {LR = \def\direction@val{LR}, |
471 | RL = \def\direction@val{RL}}, | 473 | RL = \def\direction@val{RL}}, |
472 | store rule = \rule@val, | 474 | store rule = \rule@val, |
@@ -482,7 +484,7 @@ Running "make install" installs the files in the local TeX tree. | |||
482 | \booltrue{subsq@unit@#1} | 484 | \booltrue{subsq@unit@#1} |
483 | \unless\ifekd@mapps\global\ekd@mappstrue\fi | 485 | \unless\ifekd@mapps\global\ekd@mappstrue\fi |
484 | \bgroup | 486 | \bgroup |
485 | \ekvset{newapp}{#2} | 487 | \ekvset{ekd@newapp}{#2} |
486 | \luadirect{ekdosis.newapparatus( | 488 | \luadirect{ekdosis.newapparatus( |
487 | \luastringN{#1}, | 489 | \luastringN{#1}, |
488 | \luastring{\direction@val}, | 490 | \luastring{\direction@val}, |
@@ -604,7 +606,7 @@ Running "make install" installs the files in the local TeX tree. | |||
604 | \if@parnotesroman% | 606 | \if@parnotesroman% |
605 | \renewcommand*{\theparnotemark}{\roman{parnotemark}}\else\fi% | 607 | \renewcommand*{\theparnotemark}{\roman{parnotemark}}\else\fi% |
606 | \parnoteclear\else\fi% | 608 | \parnoteclear\else\fi% |
607 | \footnotesize\apparatus\unless\ifekd@mapps\ekd@end@apparatus\fi% | 609 | \ekd@appfontsize\apparatus\unless\ifekd@mapps\ekd@end@apparatus\fi% |
608 | \if@pkg@parnotes\parnotes\parnotereset\else\fi% | 610 | \if@pkg@parnotes\parnotes\parnotereset\else\fi% |
609 | }% | 611 | }% |
610 | \fi% | 612 | \fi% |
@@ -983,13 +985,13 @@ Running "make install" installs the files in the local TeX tree. | |||
983 | \egroup% | 985 | \egroup% |
984 | \subsq@unittrue% | 986 | \subsq@unittrue% |
985 | } | 987 | } |
986 | \ekvdefinekeys{note}{ | 988 | \ekvdefinekeys{ekd@note}{ |
987 | store pre = \pre@value, | 989 | store pre = \pre@value, |
988 | store post = \post@value | 990 | store post = \post@value |
989 | } | 991 | } |
990 | \NewDocumentCommand{\ekd@note}{O{} m}{% | 992 | \NewDocumentCommand{\ekd@note}{O{} m}{% |
991 | \bgroup% | 993 | \bgroup% |
992 | \ekvset{note}{#1}% | 994 | \ekvset{ekd@note}{#1}% |
993 | \edef\note@contents{% | 995 | \edef\note@contents{% |
994 | \ekvifdefinedNoVal{note}{pre}{}{% | 996 | \ekvifdefinedNoVal{note}{pre}{}{% |
995 | \unexpanded\expandafter{\pre@value}}% | 997 | \unexpanded\expandafter{\pre@value}}% |
@@ -1003,7 +1005,7 @@ Running "make install" installs the files in the local TeX tree. | |||
1003 | \NewDocumentCommand{\ekd@note@star}{O{} m}{% | 1005 | \NewDocumentCommand{\ekd@note@star}{O{} m}{% |
1004 | \if@pkg@parnotes | 1006 | \if@pkg@parnotes |
1005 | \bgroup% | 1007 | \bgroup% |
1006 | \ekvset{note}{#1}% | 1008 | \ekvset{ekd@note}{#1}% |
1007 | \edef\note@contents{% | 1009 | \edef\note@contents{% |
1008 | \ekvifdefinedNoVal{note}{pre}{}{% | 1010 | \ekvifdefinedNoVal{note}{pre}{}{% |
1009 | \unexpanded\expandafter{\pre@value}}% | 1011 | \unexpanded\expandafter{\pre@value}}% |
@@ -1053,12 +1055,15 @@ Running "make install" installs the files in the local TeX tree. | |||
1053 | \NewDocumentCommand{\EkdosisOff}{}{% | 1055 | \NewDocumentCommand{\EkdosisOff}{}{% |
1054 | \ekd@statefalse% | 1056 | \ekd@statefalse% |
1055 | } | 1057 | } |
1056 | \NewDocumentEnvironment{ekdosis}{+b}{% | 1058 | \def\ekd@setlineno{% |
1057 | \let\setpagewiselinenumbers\relax% | 1059 | \let\setpagewiselinenumbers\relax% |
1058 | \let\pagewiselinenumbers\relax% | 1060 | \let\pagewiselinenumbers\relax% |
1059 | \let\endpagewiselinenumbers\relax% | 1061 | \let\endpagewiselinenumbers\relax% |
1060 | \let\runningpagewiselinenumbers\relax% | 1062 | \let\runningpagewiselinenumbers\relax% |
1061 | \let\realpagewiselinenumbers\relax% | 1063 | \let\realpagewiselinenumbers\relax% |
1064 | } | ||
1065 | \NewDocumentEnvironment{ekdosis}{+b}{% | ||
1066 | \ekd@setlineno% | ||
1062 | \begin{runninglinenumbers} | 1067 | \begin{runninglinenumbers} |
1063 | \EkdosisStart | 1068 | \EkdosisStart |
1064 | \EkdosisOn#1}{% | 1069 | \EkdosisOn#1}{% |
@@ -1068,7 +1073,7 @@ Running "make install" installs the files in the local TeX tree. | |||
1068 | % \end{macrocode} | 1073 | % \end{macrocode} |
1069 | % Alignment:--- | 1074 | % Alignment:--- |
1070 | % \begin{macrocode} | 1075 | % \begin{macrocode} |
1071 | \ekvdefinekeys{align}{ | 1076 | \ekvdefinekeys{ekd@align}{ |
1072 | store tcols = \tcols@num, | 1077 | store tcols = \tcols@num, |
1073 | store lcols = \lcols@num, | 1078 | store lcols = \lcols@num, |
1074 | store texts = \texts@value, | 1079 | store texts = \texts@value, |
@@ -1081,7 +1086,7 @@ Running "make install" installs the files in the local TeX tree. | |||
1081 | initial apparatus = edition, | 1086 | initial apparatus = edition, |
1082 | } | 1087 | } |
1083 | \NewDocumentCommand{\SetEkdosisAlignment}{m}{ | 1088 | \NewDocumentCommand{\SetEkdosisAlignment}{m}{ |
1084 | \ekvset{align}{#1} | 1089 | \ekvset{ekd@align}{#1} |
1085 | } | 1090 | } |
1086 | \NewDocumentCommand{\ekd@storecol}{m}{% | 1091 | \NewDocumentCommand{\ekd@storecol}{m}{% |
1087 | \luadirect{ekdosis.storecurcol(\luastring{\thecolumn})}% | 1092 | \luadirect{ekdosis.storecurcol(\luastring{\thecolumn})}% |
@@ -1092,7 +1097,7 @@ Running "make install" installs the files in the local TeX tree. | |||
1092 | \endgroup}{}{} | 1097 | \endgroup}{}{} |
1093 | \NewDocumentEnvironment{alignment}{O{}} | 1098 | \NewDocumentEnvironment{alignment}{O{}} |
1094 | {% | 1099 | {% |
1095 | \ekvset{align}{#1}% | 1100 | \ekvset{ekd@align}{#1}% |
1096 | \luadirect{ekdosis.mkenvdata( | 1101 | \luadirect{ekdosis.mkenvdata( |
1097 | \luastring{\texts@value}, | 1102 | \luastring{\texts@value}, |
1098 | "texts" | 1103 | "texts" |
@@ -1919,8 +1924,10 @@ function ekdosis.storeabspg(n) | |||
1919 | return true | 1924 | return true |
1920 | end | 1925 | end |
1921 | 1926 | ||
1927 | -- | ||
1922 | -- Build environments to be aligned | 1928 | -- Build environments to be aligned |
1923 | -- | 1929 | -- |
1930 | |||
1924 | local aligned_texts = {} | 1931 | local aligned_texts = {} |
1925 | local texts_w_apparatus = {} | 1932 | local texts_w_apparatus = {} |
1926 | 1933 | ||