Skip to main content

end_graf

Function end_graf 

Source
pub fn end_graf()
Expand description

tex.web §1096 end_graf, for an explicit \par: the paragraph ends and its material goes on the vertical list as its line (repack_horizontal). A paragraph that holds nothing still makes a line — \leavevmode\par an indent box alone, which \lastbox takes and \unskip cannot reach past (Rust kept nothing, so \vskip3pt \leavevmode\par\unskip removed the \vskip) — unless it is null: no indent box and nothing listed (\noindent\par, \indent\setbox0\lastbox\par; ParagraphStart). Only spaces are kept out of the line (Perl repackHorizontal: they would make an empty ltx:p), so it absorbs to nothing; the sizing pass gives it a line’s height (font.rs). Every \par that leave_horizontal inserts only repacks: before a block LaTeXML sets apart (a minipage), where TeX’s paragraph goes on, and also TeX’s own §1094 head_for_vmode \par (\vskip, \hrule, \unvbox in a paragraph), which does end it — residual: \vbox{\leavevmode\vskip3pt\hbox{B}} is 9.83pt high, TeX 15pt. The end of a box’s contents (leave_horizontal_internal, §1085) only repacks too. Residual: LaTeX’s \par (\para_end:, latex.ltx:9088) \unskips first, so \noindent\hfill\par is null there too; here it makes a line.