Jan Eden <t...@eden.one> a écrit :
> Unfortunately, I failed to describe my requirements properly – sorry
> again. My document contains multiple relatively small tables, and each
> table should appear on exactly one page (i.e. should not cross page
> boundaries).
>
> I attached sample documents and the respective outputs of
>
> groff -mm -t -Kutf8 -Tpdf test_boxed.groff > test_boxed.pdf
>
> to this message, and I would like to achieve the page break behaviour of
> the boxed variant, but without having actual boxes drawn around the
> tables.

Hello Jan,

If you are using the mm macros, you can achieve what you want by
following the first advice of Branden, call .DS before each .TS and
.DE after each .TE.

"G. Branden Robinson" <g.branden.robin...@gmail.com> a écrit :
> 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.


-- 
Thomas


Reply via email to