diff options
author | Hans Hagen <pragma@wxs.nl> | 2017-05-14 19:58:50 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg42.2a@gmail.com> | 2017-05-14 19:58:50 +0200 |
commit | fd0c4577a4b6e85ca2db664906e1a03807ce133f (patch) | |
tree | fa23fcc04248d03ff82e34634b8ef1bb9cf28acb /tex/context/base/mkiv/spac-grd.mkiv | |
parent | db581096187dc2d3cbdbe4cdc39d247c168b1607 (diff) | |
download | context-fd0c4577a4b6e85ca2db664906e1a03807ce133f.tar.gz |
2017-05-14 19:15:00
Diffstat (limited to 'tex/context/base/mkiv/spac-grd.mkiv')
-rw-r--r-- | tex/context/base/mkiv/spac-grd.mkiv | 28 |
1 files changed, 27 insertions, 1 deletions
diff --git a/tex/context/base/mkiv/spac-grd.mkiv b/tex/context/base/mkiv/spac-grd.mkiv index 7b3ee6d6c..899b6e890 100644 --- a/tex/context/base/mkiv/spac-grd.mkiv +++ b/tex/context/base/mkiv/spac-grd.mkiv @@ -150,7 +150,7 @@ \dp\scratchbox\strutdp \nointerlineskip \forgetall - \ruledvbox{\box\scratchbox}% + \ruledvpack{\box\scratchbox}% \egroup \prevdepth\strutdp}% \def\dotopbaselinecorrection @@ -300,4 +300,30 @@ \normalstartbaselinecorrection \fi} +% This is new (and experimental) and might replace some of the above. beware it doesn't always work +% out well, e.g. when used grouped and such (e.g. before display math doesn't work out well). + +\unexpanded\def\spac_fake_next_line_new + {\par + \begingroup + \reseteverypar + \dontleavehmode\hpack{\strut}\par + \clf_fakenextstrutline + \ifdim\pagetotal>\lineheight + \pagetotal\dimexpr\pagetotal-\lineheight\relax + \fi + \endgroup} + +% \unexpanded\def\spac_fake_next_line_old +% {\par +% \begingroup +% \reseteverypar +% \dontleavehmode\hpack to \zeropoint{\page_sides_anchor\hss\strut}% just a tracer +% \vskip-\parskip +% \vskip-\struttotal +% \endgroup} + +%let\fakenextstrutline\spac_fake_next_line_old +\let\fakenextstrutline\spac_fake_next_line_new + \protect \endinput |