aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ekdosis.dtx13
1 files changed, 13 insertions, 0 deletions
diff --git a/ekdosis.dtx b/ekdosis.dtx
index 3212acb..aa85fc2 100644
--- a/ekdosis.dtx
+++ b/ekdosis.dtx
@@ -11157,6 +11157,19 @@ Sample text with a \textcolor{red}{word} in red.
11157% \env{ekdverse} is defined:--- 11157% \env{ekdverse} is defined:---
11158% \begin{macrocode} 11158% \begin{macrocode}
11159\if@pkg@poetry@verse 11159\if@pkg@poetry@verse
11160\AddToHook{cmd/@vscentercr/before}{%
11161 \ifdefined\maxlines@value
11162 \stepcounter{ekd@lnperpage}%
11163 \ifnum\value{ekd@locallnperpage} = 1
11164 \ifnumcomp{\theekd@lnperpage}{=}{%
11165 \luadirect{tex.sprint(ekdosis.getlocalmaxlines())}}{%
11166 \setcounter{ekd@locallnperpage}{0}%
11167 \setcounter{ekd@lnperpage}{0}\pagebreak}{}%
11168 \else
11169 \ifnumcomp{\theekd@lnperpage}{=}{\maxlines@value}{%
11170 \setcounter{ekd@lnperpage}{0}\pagebreak}{}%
11171 \fi
11172 \fi}
11160\patchcmd{\start@vsline}{% 11173\patchcmd{\start@vsline}{%
11161 \ifaltindent}{% 11174 \ifaltindent}{%
11162 \ifekd@pagevlineation\test@vpnum\fi 11175 \ifekd@pagevlineation\test@vpnum\fi