diff options
author | Hans Hagen <pragma@wxs.nl> | 2007-04-17 12:51:00 +0200 |
---|---|---|
committer | Hans Hagen <pragma@wxs.nl> | 2007-04-17 12:51:00 +0200 |
commit | 846455e735faabe2352a1c37c2733a4256dde4c0 (patch) | |
tree | 0264850bca2f593f9a9d0767c6a45ef1124c59ad /tex/context/base/core-sec.tex | |
parent | 307dc2a385a62e9c390e045f39c1b288631c9481 (diff) | |
download | context-846455e735faabe2352a1c37c2733a4256dde4c0.tar.gz |
stable 2007.04.17 12:51
Diffstat (limited to 'tex/context/base/core-sec.tex')
-rw-r--r-- | tex/context/base/core-sec.tex | 49 |
1 files changed, 41 insertions, 8 deletions
diff --git a/tex/context/base/core-sec.tex b/tex/context/base/core-sec.tex index ef33e7735..467b0cf50 100644 --- a/tex/context/base/core-sec.tex +++ b/tex/context/base/core-sec.tex @@ -1116,6 +1116,29 @@ % % \placefigure[left]{}{} \section{\dorecurse{10}{bagger }} \input tufte +% \def\dohandlepagebreakAB#1% will be replaced by a more clever (signaling) mechanism (in beta) +% {\doifnotvalue{\??ko#1\c!aligntitle}\v!float\flushsidefloats +% \getvalue{\??ko#1\c!before}% +% % \whitespace vervangen door \noindent elders +% \relax +% \ifpaginageblokkeerd +% \global\paginageblokkeerdfalse +% \else +% \!!countb\getvalue{\??se\@@sectie\c!level}\relax +% \ifnum\!!countb>\@@kolevel\relax +% \!!counta20000 +% \multiply\!!countb 500 +% \advance\!!counta \!!countb +% \dosomebreak{\penalty\!!counta}% +% \else +% \dosomebreak\allowbreak +% \fi +% \fi +% \doifvalue{\??ko#1\c!aligntitle}\v!float\indent +% \xdef\@@kolevel{\getvalue{\??se\@@sectie\c!level}}} + +\chardef\somebreakmethod\plusone + \def\dohandlepagebreakAB#1% will be replaced by a more clever (signaling) mechanism (in beta) {\doifnotvalue{\??ko#1\c!aligntitle}\v!float\flushsidefloats \getvalue{\??ko#1\c!before}% @@ -1124,14 +1147,24 @@ \ifpaginageblokkeerd \global\paginageblokkeerdfalse \else - \!!countb\getvalue{\??se\@@sectie\c!level}\relax - \ifnum\!!countb>\@@kolevel\relax - \!!counta20000 - \multiply\!!countb 500 - \advance\!!counta \!!countb - \dosomebreak{\penalty\!!counta}% + \ifcase\somebreakmethod + % 0 = nothing + \or + % 1 = old weighted version + \!!countb\getvalue{\??se\@@sectie\c!level}\relax + \ifnum\!!countb>\@@kolevel\relax + \!!counta20000 + \multiply\!!countb 500 + \advance\!!counta \!!countb + \dosomebreak{\penalty\!!counta}% + \else + \dosomebreak\allowbreak % brr + \fi + \or + % 2 = strict version + \dosomebreak{\penalty\maxdimen}% \else - \dosomebreak\allowbreak + % nothing \fi \fi \doifvalue{\??ko#1\c!aligntitle}\v!float\indent @@ -1938,7 +1971,7 @@ % no message needed here, should be a proper switch \noflines\zerocount \ifdisplaysectionhead - % new + % new (tod tight == one following line up) \processaction [\getvalue{\??ko#1\c!hang}] [ \v!line=>\hangheadplacement\noflines\zerocount, |