I've stumbled on another problem with -mom. There is a table at
the bottom of a page. After the table, something inserts what
behaves like a line feed and Groff warns that

    [mom]: '2023-04-24.mom', macro TE, line 61:
            Insufficient room for label, caption, and/or source after
            table on page 1.  Omitting, but continuing to process.
    2023-04-24.mom:61: environment stack underflow

Two things strike me as odd about these messages. First, the
table in question has no label, caption or source so why warn
about it ? Second, "environment stack underflow" sounds like
something went wrong in mom's internals.

If anyone cares, 2023-04-24.mom is attached. With the .NEWPAGE
after the table page 2 is empty (except for the header) and
"Second heading" is pushed back to page 3. Without the .NEWPAGE,
"Second heading" is on page 2 as it should be but too low.

Am I doing something wrong ?
I hope it's not a 
.PAPER A4
.DOCHEADER OFF
.PRINTSTYLE TYPESET
.L_MARGIN 2.0cm
.R_MARGIN 2.0cm
.B_MARGIN 2.0cm
.PT_SIZE 14
.LS 20
.FAMILY H
.HEADERS
.HEADER_MARGIN 2.0cm
.HEADER_GAP 1.5cm
.HEADER_LEFT "x"
.HEADER_RIGHT #
.PAGINATE OFF
.START
.HEADER
.HEADING 1 "First heading"
.HEADING 2 "x"
.TS H
;
l r.
.TH
x       x
x       x
.TE
.HEADING 2 "x"
.TS H
;
l r.
.TH
x       x
x       x
x       x
.TE
.HEADING 2 "x"
.TS H
;
l r.
.TH
x       x
x       x
.TE
.HEADING 2 "x"
.TS H
;
l r.
.TH
x       x
.TE
.HEADING 2 "x"
.TS H
;
l r.
.TH
x       x
x       x
x       x
x       x
x       x
.TE
.NEWPAGE
.HEADING 1 "Second heading"
.HEADING 2 "x"
.TS H
;
l r.
.TH
x       x
x       x
.TE

Reply via email to