summaryrefslogtreecommitdiff
path: root/tex/context/base/page-otr.mkvi
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/page-otr.mkvi')
-rw-r--r--tex/context/base/page-otr.mkvi11
1 files changed, 8 insertions, 3 deletions
diff --git a/tex/context/base/page-otr.mkvi b/tex/context/base/page-otr.mkvi
index e146d99b7..d1dbaad93 100644
--- a/tex/context/base/page-otr.mkvi
+++ b/tex/context/base/page-otr.mkvi
@@ -19,8 +19,12 @@
% When issuing two \par\penalty-\plustenthousand's, only the first
% triggers the otr. Is this an obscure feature or an optimization?
+\registerctxluafile{page-otr}{1.001}
+
\unprotect
+\let\triggerpagebuilder\clf_triggerpagebuilder
+
\def\m!otr{otr} % todo
\installcorenamespace{outputroutine}
@@ -129,7 +133,7 @@
\unexpanded\def\page_otr_triggered_output_routine_traced
{\ifcsname\??otrtriggers\the\outputpenalty\endcsname
\page_otr_message_b{special}%
- \csname\??otrtriggers\the\outputpenalty\endcsname
+ \csname\??otrtriggers\the\outputpenalty\endcsname % \lastnamedcs can be gone
\page_otr_message_e{special}%
\else
\page_otr_message_b{normal}%
@@ -139,7 +143,8 @@
\unexpanded\def\page_otr_triggered_output_routine_normal
{\ifcsname\??otrtriggers\the\outputpenalty\endcsname
- \csname\??otrtriggers\the\outputpenalty\endcsname
+ %\csname\??otrtriggers\the\outputpenalty\endcsname
+ \lastnamedcs
\else
\page_otr_command_routine
\fi}
@@ -220,7 +225,7 @@
\def\page_otr_force_another_page
{% we should actually remove the dummy line in the otr
- \hbox to \hsize{}%
+ \hpack to \hsize{}%
\kern-\topskip
\nobreak
\vfill