Hi Jan, At 2024-04-23T07:28:41+0200, Jan Eden wrote: > enclosing a table in a box avoids page breaks within the table > reliably for me – is it possible to get the same behaviour without the > box?
Yes. This is what "keep" macros are for, assuming the macro package you're using offers those (all full-service packages except those for man pages[1] do). Hmm, your recent questions about mm suggest to me that that's the package you're using, and our groff_mm(7) page does not employ the word "keep". However, mm's display macros can serve this purpose and §7.3 of the DWB 3.3 mm manual mentions this fact. Bracket your table with the `DS` and `DE` macros. groff_mm(7): DS [format [fill [right‐indentation]]] Begin static display. Input until DE is called is collected into a display. The display is output on a single page unless it is taller than the height of the page. DS can be nested (contrast with DF). format Effect none Do not indent the display. L Do not indent the display. I Indent text by \n[Si]. C Center each line. CB Center the whole display as a block. R Right‐align each line. RB Right‐align the whole display as a block. The values “L”, “I”, “C”, and “CB” can also be specified as “0”, “1”, “2”, and “3”, respectively, for compatibility with DWB mm. fill Effect none Disable filling. N Disable filling. F Enable filling. “N” and “F” can also be specified as “0” and “1”, respectively, for compatibility with DWB mm. A third argument reduces the line length by right‐ indentation. mm normally places vertical space before and after the display. Set register Ds to “0” to suppress it. Regards, Branden [1] ...excepting the old "viewgraph" package, mv, and (possibly) little-used or proprietary full-service macro packages that no contemporary *roff ships.
signature.asc
Description: PGP signature