summaryrefslogtreecommitdiff
path: root/tex/context/base/mkxl/strc-not.mklx
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2021-10-13 17:23:54 +0200
committerContext Git Mirror Bot <phg@phi-gamma.net>2021-10-13 17:23:54 +0200
commitcc7fcf11d31b2db23ba3adca896507f9faf128cc (patch)
treee77d461cccb9ab50aa4f83f73f1e57ece4bd732d /tex/context/base/mkxl/strc-not.mklx
parentb2db36adbd89b2dba9591da5fc13b4eba57d581e (diff)
downloadcontext-cc7fcf11d31b2db23ba3adca896507f9faf128cc.tar.gz
2021-10-13 16:58:00
Diffstat (limited to 'tex/context/base/mkxl/strc-not.mklx')
-rw-r--r--tex/context/base/mkxl/strc-not.mklx14
1 files changed, 13 insertions, 1 deletions
diff --git a/tex/context/base/mkxl/strc-not.mklx b/tex/context/base/mkxl/strc-not.mklx
index 3bc6bf581..6ada89961 100644
--- a/tex/context/base/mkxl/strc-not.mklx
+++ b/tex/context/base/mkxl/strc-not.mklx
@@ -1340,7 +1340,18 @@
\def\strc_notes_set_penalties
{% stored in insert node
- \floatingpenalty \currentnotepenalty
+ \floatingpenalty \currentnotepenalty % now per note
+ % used when typesetting
+ \interlinepenalty\plushundred % plain value
+ % used when we need to split in columns
+ \ifnum\noteparameter\c!n>\plusone
+ \penalty\zerocount % otherwise no split in columns, maybe just always (tex just adds it to accumulated)
+ \fi}
+
+\def\strc_notes_set_penalties
+ {% stored in insert node
+ \floatingpenalty \currentnotepenalty % now per note
+ \page_inserts_set_penalty \currentnoteinsertionnumber\currentnotepenalty
% used when typesetting
\interlinepenalty\plushundred % plain value
% used when we need to split in columns
@@ -1355,6 +1366,7 @@
\redoconvertfont % to undo \undo calls in in headings etc
\splittopskip\strutht % not actually needed here
\splitmaxdepth\strutdp % not actually needed here
+\page_inserts_set_maxdepth \currentnoteinsertionnumber\strutdp
%
% not:
%