diff options
author | Robert Alessi <alessi@robertalessi.net> | 2020-03-31 15:14:27 +0200 |
---|---|---|
committer | Robert Alessi <alessi@robertalessi.net> | 2020-03-31 15:14:27 +0200 |
commit | a43a2ad77e27e64a6c82689d6d9025f15cdbccba (patch) | |
tree | 07ae0b1b17e51e05fd3b7ed55becdf5737e40ec1 | |
parent | 184390672b3656bc70bd4f93dbb1a204dbe3d60c (diff) | |
download | ekdosis-a43a2ad77e27e64a6c82689d6d9025f15cdbccba.tar.gz |
use \switchcolumn instead of environments
-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) |