20 lines
811 B
TeX
20 lines
811 B
TeX
% Owned native hbox/vbox/vtop, box registers, glue setting and depth.
|
|
\catcode123=1 \catcode125=2 \catcode35=6
|
|
\font\body=cmr10 \body
|
|
\hsize=240pt \baselineskip=12pt \parfillskip=0pt plus1fil
|
|
\boxmaxdepth=100pt \hbadness=10000 \vbadness=10000
|
|
\setbox0=\vbox to45pt{\hbox{Vertical top}\vskip2pt plus1fil\hbox{Vertical bottom}}
|
|
\copy0
|
|
\kern8pt
|
|
\hbox{Left \vtop{\hbox{First row}\hbox{Second row}} Right}
|
|
\kern8pt
|
|
\vbox to40pt{\hbox{Finite stretch}\vskip4pt plus8pt\hbox{Finite end}}
|
|
\kern8pt
|
|
\vbox to20pt{\hbox{Finite shrink}\vskip10pt minus8pt\hbox{Tight end}}
|
|
\kern8pt
|
|
\vbox{\hbox{Nested native box}\hrule height.4pt\hbox to150pt{Left\hskip0pt plus1fil Right}}
|
|
\kern8pt
|
|
\noindent Inline \copy0 beside native text.\par
|
|
\message{Native box packing completed. Width=\the\wd0, height=\the\ht0, depth=\the\dp0.}
|
|
\end
|