summaryrefslogtreecommitdiff
path: root/tex/context/base/supp-box.tex
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2003-08-08 00:00:00 +0200
committerHans Hagen <pragma@wxs.nl>2003-08-08 00:00:00 +0200
commit3f9c44091f54eb858cfbb71b6346445e606b8687 (patch)
tree9e30c9fe11ef8906f5c8717a8c42c9fb70ee40c1 /tex/context/base/supp-box.tex
parent91f5bdb707b063e6e7acc31073db4cc17bd66593 (diff)
downloadcontext-3f9c44091f54eb858cfbb71b6346445e606b8687.tar.gz
stable 2003.08.08
Diffstat (limited to 'tex/context/base/supp-box.tex')
-rw-r--r--tex/context/base/supp-box.tex18
1 files changed, 18 insertions, 0 deletions
diff --git a/tex/context/base/supp-box.tex b/tex/context/base/supp-box.tex
index ce000ed40..ad8889d78 100644
--- a/tex/context/base/supp-box.tex
+++ b/tex/context/base/supp-box.tex
@@ -2238,6 +2238,24 @@
{\normalhbox{\setbox0\placedbox{#1}\boxoffset=-.5\wd0\rightbox{\box0}}}
%D \macros
+%D {toplinebox}
+%D
+%D See core-tbl.tex for an example of its usage:
+
+\def\toplinebox
+ {\dowithnextbox
+ {\ifdim\nextboxdp>\strutdepth
+ \scratchdimen\nextboxdp
+ \advance\scratchdimen-\strutdepth
+ \getnoflines\scratchdimen
+ \struttedbox{\flushnextbox}%
+ \dorecurse\noflines\verticalstrut
+ \else
+ \flushnextbox
+ \fi}%
+ \tbox}
+
+%D \macros
%D {initializeboxstack,savebox,foundbox}
%D
%D At the cost of some memory, but saving box registers, we