summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/spac-par.mkiv
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2020-07-22 11:43:53 +0200
committerContext Git Mirror Bot <phg@phi-gamma.net>2020-07-22 11:43:53 +0200
commit4a60ac2f0adcdaa51133b4e88cbb6464c4f3f421 (patch)
tree01ccc90c5005c0d0e768c6b28197d0d98cc47c49 /tex/context/base/mkiv/spac-par.mkiv
parent0596cad6b554fdd23ed2a9ca7110938fa9137eea (diff)
downloadcontext-4a60ac2f0adcdaa51133b4e88cbb6464c4f3f421.tar.gz
2020-07-22 10:54:00
Diffstat (limited to 'tex/context/base/mkiv/spac-par.mkiv')
-rw-r--r--tex/context/base/mkiv/spac-par.mkiv14
1 files changed, 13 insertions, 1 deletions
diff --git a/tex/context/base/mkiv/spac-par.mkiv b/tex/context/base/mkiv/spac-par.mkiv
index e36fb5483..627a43bcf 100644
--- a/tex/context/base/mkiv/spac-par.mkiv
+++ b/tex/context/base/mkiv/spac-par.mkiv
@@ -51,8 +51,20 @@
%D New experimental stuff:
-\unexpanded\def\freezeparagraphproperties{\snapshotpar\maxdimen}
+\ifcase\contextlmtxmode
+ \let\freezeparagraphproperties\donothing
+
+\else
+
+ \unexpanded\def\freezeparagraphproperties{\snapshotpar\maxdimen}
+
+ \installtexexperiment
+ {paragraphs.freeze}
+ {\appendtoksonce\freezeparagraphproperties\to \everypar}
+ {\removetoks \freezeparagraphproperties\from\everypar}
+
+\fi
%D Beware, changing this will break some code (like pos/backgrounds) but it has been
%D changed anyway so let's see where things go wrong.