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

26 lines
1.2 KiB
TeX

% Actual vertical breaking, remaining-list pruning and migrating marks.
\input math-fonts
\hsize=270pt \baselineskip=15pt \parskip=4pt
\pretolerance=10000 \tolerance=10000
\splitmaxdepth=2pt \splittopskip=10pt plus1fil
\noindent Native splitting consumes original paragraph lines and rules.\par
\setbox1=\vbox{\hsize=135pt\baselineskip=14pt\parskip=0pt
\marks7{SEVEN}
\noindent Alpha\mark{FIRST} beta gamma delta epsilon zeta eta theta iota kappa.
Original glyph nodes keep their fonts and positions.\mark{MIDDLE}\par
\noindent Symbols $x_i^j$ remain in their actual line boxes.\par
\hbox{A\vrule width1pt B\raise2pt\hbox{Raised}\mark{BOXMARK}}
\hrule height.5pt
\hbox{The final material has depth: gj.}\mark{LAST}}
\setbox0=\vsplit1 to38pt\relax
\message{SPLIT-FIRST=\splitfirstmark/\splitbotmark/\splitfirstmarks7}
\hbox{First fragment:\hskip8pt\box0}
\noindent First mark: \splitfirstmark. Class seven: \splitfirstmarks7.\par
\setbox0=\vsplit1 to38pt\relax
\message{SPLIT-REST=\splitfirstmark/\splitbotmark/\splitfirstmarks7}
\hbox{Second fragment:\hskip8pt\box0}
\noindent The remaining box is repacked from its original nodes.\par
\box1
\noindent Split marks are scoped by splitting rather than ordinary groups.\par
\end