aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Alessi <alessi@robertalessi.net>2020-03-13 10:55:23 +0100
committerRobert Alessi <alessi@robertalessi.net>2020-03-13 10:55:23 +0100
commitddaa143a6cfa1ace2d12be9ceaaf524658edabb8 (patch)
treecfb2afa3d3eabd4972d9848f4c6b4333d4ae5e4f
parentc4310a214c7e5b0a04f823918a7521a02f5f7451 (diff)
downloadekdosis-ddaa143a6cfa1ace2d12be9ceaaf524658edabb8.tar.gz
added paired pages and column synchronization
-rw-r--r--ekdosis.dtx15
1 files changed, 15 insertions, 0 deletions
diff --git a/ekdosis.dtx b/ekdosis.dtx
index 83b3ec0..8555005 100644
--- a/ekdosis.dtx
+++ b/ekdosis.dtx
@@ -1073,6 +1073,7 @@ Running "make install" installs the files in the local TeX tree.
1073 store lcols = \lcols@num, 1073 store lcols = \lcols@num,
1074 store texts = \texts@value, 1074 store texts = \texts@value,
1075 store apparatus = \apparatus@value, 1075 store apparatus = \apparatus@value,
1076 bool paired = \ifekd@paired,
1076 initial tcols = 2, 1077 initial tcols = 2,
1077 initial lcols = 1, 1078 initial lcols = 1,
1078 initial texts = edition;translation, 1079 initial texts = edition;translation,
@@ -1088,7 +1089,11 @@ Running "make install" installs the files in the local TeX tree.
1088 \luadirect{ekdosis.mkenvdata( 1089 \luadirect{ekdosis.mkenvdata(
1089 \luastring{\apparatus@value}, "apparatus")} 1090 \luastring{\apparatus@value}, "apparatus")}
1090 \luadirect{tex.sprint(ekdosis.mkenv())} 1091 \luadirect{tex.sprint(ekdosis.mkenv())}
1092 \ifekd@paired
1093 \begin{paracol}[\lcols@num]{\tcols@num}
1094 \else
1091 \begin{paracol}[\lcols@num]*{\tcols@num} 1095 \begin{paracol}[\lcols@num]*{\tcols@num}
1096 \fi
1092 } 1097 }
1093 {\luadirect{ekdosis.flushenvdata()} 1098 {\luadirect{ekdosis.flushenvdata()}
1094 \end{paracol}} 1099 \end{paracol}}
@@ -1971,12 +1976,22 @@ function ekdosis.mkenv()
1971 .. "}{}{\\begin{nthcolumn}{" 1976 .. "}{}{\\begin{nthcolumn}{"
1972 .. aligned_texts[i].column 1977 .. aligned_texts[i].column
1973 .."}\\begin{ekdosis}}{\\end{ekdosis}\\end{nthcolumn}}") 1978 .."}\\begin{ekdosis}}{\\end{ekdosis}\\end{nthcolumn}}")
1979 table.insert(environments, "\\NewDocumentEnvironment{"
1980 .. aligned_texts[i].text
1981 .. "*}{O{}}{\\begin{nthcolumn*}{"
1982 .. aligned_texts[i].column
1983 .."}\\begin{ekdosis}}{\\end{ekdosis}\\end{nthcolumn*}}")
1974 else 1984 else
1975 table.insert(environments, "\\NewDocumentEnvironment{" 1985 table.insert(environments, "\\NewDocumentEnvironment{"
1976 .. aligned_texts[i].text 1986 .. aligned_texts[i].text
1977 .. "}{}{\\begin{nthcolumn}{" 1987 .. "}{}{\\begin{nthcolumn}{"
1978 .. aligned_texts[i].column 1988 .. aligned_texts[i].column
1979 .."}}{\\end{nthcolumn}}") 1989 .."}}{\\end{nthcolumn}}")
1990 table.insert(environments, "\\NewDocumentEnvironment{"
1991 .. aligned_texts[i].text
1992 .. "*}{O{}}{\\begin{nthcolumn*}{"
1993 .. aligned_texts[i].column
1994 .."}}{\\end{nthcolumn*}}")
1980 end 1995 end
1981 end 1996 end
1982 str = table.concat(environments) 1997 str = table.concat(environments)