summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/spac-par.mkiv
diff options
context:
space:
mode:
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.