Files
texrra-engine/examples/native-bootstrap/lists.tex
T

25 lines
1.2 KiB
TeX

% Actual rules, moved boxes, original list transfer and paragraph line boxes.
\input math-fonts
\hsize=270pt \baselineskip=15pt \parskip=4pt
\pretolerance=10000 \tolerance=10000
\overfullrule=3pt \hfuzz=0pt
\noindent Native rules inherit their actual containing box dimensions.\par
\hbox{A\vrule width1pt B\raise3pt\hbox{Raised}\lower2pt\hbox{lowered}C}
\vbox{\hbox{A running horizontal rule follows this measured text.}
\hrule height.5pt
\hbox{Its width comes from this box rather than the paragraph.}}
\setbox1=\hbox to8pt{gj}
\noindent A real overfull box has a marker: \copy1.\par
\noindent Its original list can be transferred: \unhcopy1.\par
\setbox2=\hbox to160pt{A\hskip0pt plus1fil B}
\noindent Packed material: \copy2.\par
\noindent Original unpacked material: \unhcopy2.\par
\vbox{\moveright10pt\hbox{Horizontal movement lives on the vertical list.}
\moveleft3pt\hbox{The next box retains its own baseline.}}
\setbox3=\vbox{\hsize=120pt\noindent Paragraph line boxes retain their actual original glue and glyph nodes.\par
\global\setbox4=\lastbox}
\noindent Extracted line material: \unhcopy4.\par
\noindent Mathematics can contain actual text boxes:
$x+\raise2pt\hbox{Text}_i^j+\hbox{A\vrule B}$.\par
\end