diff options
author | Marius <mariausol@gmail.com> | 2011-12-20 00:20:15 +0200 |
---|---|---|
committer | Marius <mariausol@gmail.com> | 2011-12-20 00:20:15 +0200 |
commit | e2625b97c862af5ac816883310fdf8c775a3e8f9 (patch) | |
tree | 56f72011935861b5a074175aa2e60e8c61072662 /tex/context/base/anch-snc.mkiv | |
parent | 5eff1ba98979f1bdb6558c6f9a32acc4d55a3112 (diff) | |
download | context-e2625b97c862af5ac816883310fdf8c775a3e8f9.tar.gz |
beta 2011.12.19 22:53
Diffstat (limited to 'tex/context/base/anch-snc.mkiv')
-rw-r--r-- | tex/context/base/anch-snc.mkiv | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/tex/context/base/anch-snc.mkiv b/tex/context/base/anch-snc.mkiv index 4940ff274..32222bb50 100644 --- a/tex/context/base/anch-snc.mkiv +++ b/tex/context/base/anch-snc.mkiv @@ -24,6 +24,8 @@ \unexpanded\def\definesyncpositions[#1]% {\global\let\flushsyncpositions\doflushsyncpositions % only when used + \global\let\flushsyncresets \doflushsyncresets + \global\let\flushsyncpresets \doflushsyncpresets \setcounter{\s!num:\s!syncpos:#1}{0}% \doglobal\appendtoksonce\csname\s!reset :\s!syncpos:#1\endcsname\to\resetsyncpositions \doglobal\appendtoksonce\csname\s!preset:\s!syncpos:#1\endcsname\to\presetsyncpositions @@ -130,15 +132,21 @@ \endgroup} \def\flushsyncxxsets#1% - {\setbox\scratchbox\hbox{\the#1}% + {\begingroup + \setbox\scratchbox\hbox{\the#1}% \ifvoid\scratchbox\else - \prewordbreak \let\prewordbreak\relax % only once + \prewordbreak + %\let\prewordbreak\relax % only once \smashbox\scratchbox \box\scratchbox - \fi} + \fi + \endgroup} + +\let\flushsyncresets \relax +\let\flushsyncpresets\relax -\def\flushsyncresets {\flushsyncxxsets\resetsyncpositions } -\def\flushsyncpresets{\flushsyncxxsets\presetsyncpositions} +\def\doflushsyncresets {\flushsyncxxsets\resetsyncpositions } +\def\doflushsyncpresets{\flushsyncxxsets\presetsyncpositions} % \appendtoks \flushsyncpositions \to \everypar % \appendtoks \flushsyncpositions \to \everyheadstart |