diff options
author | Hans Hagen <pragma@wxs.nl> | 2018-07-18 18:32:31 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2018-07-18 18:32:31 +0200 |
commit | e09328e5e3230ee408f6af2cd454848c4d056702 (patch) | |
tree | c57a1aca26d55550ba7d07bb2a419cd68485bef7 /tex/context/base/mkiv/spac-ver.mkiv | |
parent | 57dbee16f3a8e09e688f792c6e36a53de798e6cb (diff) | |
download | context-e09328e5e3230ee408f6af2cd454848c4d056702.tar.gz |
2018-07-18 17:40:00
Diffstat (limited to 'tex/context/base/mkiv/spac-ver.mkiv')
-rw-r--r-- | tex/context/base/mkiv/spac-ver.mkiv | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/tex/context/base/mkiv/spac-ver.mkiv b/tex/context/base/mkiv/spac-ver.mkiv index d67cb4faf..e49784753 100644 --- a/tex/context/base/mkiv/spac-ver.mkiv +++ b/tex/context/base/mkiv/spac-ver.mkiv @@ -1309,9 +1309,27 @@ \let\normaloffinterlineskip\offinterlineskip % knuth's original +%D This is tricky. The prevdepth value is still set to the last +%D one even if there is nothing on the page. The same is true for +%D prevgraf, which doesn't resemble the value on the current page. +%D +%D So, here we kick in a checker but it has to happen after the +%D output group and it only has to be done once (output can trigger +%D itself!). + +\unexpanded\def\page_otr_synchronize_page_yes + {\aftergroup\page_otr_synchronize_page_indeed + \glet\page_otr_synchronize_page\relax} + +\unexpanded\def\page_otr_synchronize_page_indeed + {\clf_synchronizepage + \glet\page_otr_synchronize_page\page_otr_synchronize_page_yes} + +\let\page_otr_synchronize_page\page_otr_synchronize_page_yes + \appendtoks - \ifvmode\clf_synchronizepage\fi % a nasty hack (tested for a while now) -\to \everyafteroutput + \page_otr_synchronize_page +\to \everyaftershipout %D My own one: |