From e3ad6b783e6162de6dad5531299e69c3d3079b9c Mon Sep 17 00:00:00 2001 From: Hans Hagen Date: Sun, 30 Sep 2018 20:33:04 +0200 Subject: 2018-09-30 19:42:00 --- tex/context/base/mkiv/supp-box.mkiv | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'tex/context/base/mkiv/supp-box.mkiv') diff --git a/tex/context/base/mkiv/supp-box.mkiv b/tex/context/base/mkiv/supp-box.mkiv index 1ac51f7cc..311b8a520 100644 --- a/tex/context/base/mkiv/supp-box.mkiv +++ b/tex/context/base/mkiv/supp-box.mkiv @@ -3002,6 +3002,19 @@ \unexpanded\def\shiftbox{\clf_shiftbox} +%D This one has been moved from a 2 decade old file. It makes something boxed +%D sit on the baseline. + +\unexpanded\def\linebox + {\hpack\bgroup\dowithnextbox + {\scratchdimen\dimexpr\dimexpr\htdp\nextbox-\lineheight\relax/2+\dp\strutbox\relax + \setbox\nextbox\hpack{\lower\scratchdimen\box\nextbox}% + \ht\nextbox\ht\strutbox + \dp\nextbox\dp\strutbox + \box\nextbox + \egroup} + \hbox} + \protect \endinput % a bit of test code: -- cgit v1.2.3