diff options
-rw-r--r-- | ekdosis.dtx | 46 |
1 files changed, 24 insertions, 22 deletions
diff --git a/ekdosis.dtx b/ekdosis.dtx index cf5fc4b..2627afe 100644 --- a/ekdosis.dtx +++ b/ekdosis.dtx | |||
@@ -1981,29 +1981,31 @@ function ekdosis.mkenv() | |||
1981 | do | 1981 | do |
1982 | if isfound(texts_w_apparatus, aligned_texts[i].text) | 1982 | if isfound(texts_w_apparatus, aligned_texts[i].text) |
1983 | then | 1983 | then |
1984 | table.insert(environments, "\\NewDocumentEnvironment{" | 1984 | table.insert(environments, "\\NewDocumentEnvironment{".. aligned_texts[i].text.."}{}" |
1985 | .. aligned_texts[i].text | 1985 | .."{\\switchcolumn[".. aligned_texts[i].column.."]" |
1986 | .. "}{}{\\begin{nthcolumn}{" | 1986 | .."\n" |
1987 | .. aligned_texts[i].column | 1987 | .."\\begin{ekdosis}" |
1988 | .."}\\csname ekd@storecol\\endcsname{\\thecolumn}" | 1988 | .."\n" |
1989 | .."\\begin{ekdosis}}{\\end{ekdosis}\\end{nthcolumn}}") | 1989 | .."\\csname ekd@storecol\\endcsname{\\thecolumn}" |
1990 | table.insert(environments, "\\NewDocumentEnvironment{" | 1990 | .."\n" |
1991 | .. aligned_texts[i].text | 1991 | .."}{\\end{ekdosis}}") |
1992 | .. "*}{O{}}{\\begin{nthcolumn*}{" | 1992 | table.insert(environments, "\\NewDocumentEnvironment{".. aligned_texts[i].text.."*}{}" |
1993 | .. aligned_texts[i].column | 1993 | .."{\\switchcolumn[".. aligned_texts[i].column.."]*" |
1994 | .."}\\csname ekd@storecol\\endcsname{\\thecolumn}" | 1994 | .."\n" |
1995 | .."\\begin{ekdosis}}{\\end{ekdosis}\\end{nthcolumn*}}") | 1995 | .."\\begin{ekdosis}" |
1996 | .."\n" | ||
1997 | .."\\csname ekd@storecol\\endcsname{\\thecolumn}" | ||
1998 | .."\n" | ||
1999 | .."}{\\end{ekdosis}}") | ||
1996 | else | 2000 | else |
1997 | table.insert(environments, "\\NewDocumentEnvironment{" | 2001 | table.insert(environments, "\\NewDocumentEnvironment{".. aligned_texts[i].text.."}{}" |
1998 | .. aligned_texts[i].text | 2002 | .."{\\switchcolumn[".. aligned_texts[i].column.."]" |
1999 | .. "}{}{\\begin{nthcolumn}{" | 2003 | .."\n" |
2000 | .. aligned_texts[i].column | 2004 | .."}{}") |
2001 | .."}}{\\end{nthcolumn}}") | 2005 | table.insert(environments, "\\NewDocumentEnvironment{".. aligned_texts[i].text.."*}{}" |
2002 | table.insert(environments, "\\NewDocumentEnvironment{" | 2006 | .."{\\switchcolumn["..aligned_texts[i].column.."]*" |
2003 | .. aligned_texts[i].text | 2007 | .."\n" |
2004 | .. "*}{O{}}{\\begin{nthcolumn*}{" | 2008 | .."}{}") |
2005 | .. aligned_texts[i].column | ||
2006 | .."}}{\\end{nthcolumn*}}") | ||
2007 | end | 2009 | end |
2008 | end | 2010 | end |
2009 | str = table.concat(environments) | 2011 | str = table.concat(environments) |