Skip to content

texish 0.20.3 — Fixed-height \parbox and \minipage

Choose a tag to compare

@edadma edadma released this 19 Jul 01:00

A patch release: \parbox and \minipage gain a fixed height.

Fixed-size boxes

\parbox and \minipage now take the rest of LaTeX's signature — \parbox[pos][height][inner-pos]{width}{body}. The optional [height] fixes the box height, and [inner-pos] places the content within it: t (top), c (centre), b (bottom), or s (stretch), defaulting to the outer [pos]. The box then keeps its size no matter how much text it holds (the text overflows if it does not fit), so a block of flowing text can occupy a fixed region.

This makes a fixed-size band of normal, flowing text — a video lower-third, say — a fixed-height \parbox inside a translucent \colorbox:

\pagecolor{transparent}
\vfill
\noindent\colorbox[0.6]{black}{\parbox[c][180pt][c]{\linewidth}{
  \color{white}\font lmroman 40 {sans bold}A Lower-Third Heading

  \color{white}\font lmroman 22 {sans}A paragraph of normal flowing text beneath it, which
  wraps as usual while the band around it stays a fixed 180pt tall.
}}

Suites are green at JVM 1351 / JS 1226 / Native 1241.

Native CLI binaries for Linux (x86_64, arm64) and macOS (arm64) attach below; other platforms use the JVM build.