groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [mom] Extraneous empty line that starts a new page


From: G. Branden Robinson
Subject: Re: [mom] Extraneous empty line that starts a new page
Date: Sun, 23 Apr 2023 20:14:39 -0500

Hi Frederic,

At 2023-04-24T01:37:00+0200, Frederic Chartier wrote:
> 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.

I don't have a solution for you because I'm not qualified to do mom(7)
support, but I can clarify a couple of things.

The first diagnostic messge comes from the macro package, from mom(7)
itself.  The second one, the cryptic "environment stack underflow",
comes from the formatter (GNU troff).

I tried to dig deeper into this, but when I format this document using
groff Git HEAD, with the "-b" and "-ww" flags to sniff out as many
problems as possible, I get a _lot_ of diagnostics.

troff: backtrace: file 
'/home/branden/src/GIT/groff/build/../contrib/mom/om.tmac':20283
troff:/home/branden/src/GIT/groff/build/../contrib/mom/om.tmac:20283: warning: 
macro 'PDFBOOKMARK.NAME' not defined
troff: backtrace: file 
'/home/branden/src/GIT/groff/build/../contrib/mom/om.tmac':23328
troff:/home/branden/src/GIT/groff/build/../contrib/mom/om.tmac:23328: warning: 
macro 'pdfview' not defined
troff: backtrace: 
'/home/branden/src/GIT/groff/build/../contrib/mom/om.tmac':4286: macro 
'PRINTSTYLE'
troff: backtrace: file 'ATTIC/frederic.mom':3
troff:ATTIC/frederic.mom:3: warning: register '#COLLATE' not defined

Something's gone badly wrong, and I'm not sure what.  Possibly the
document's state is invalid (mom(7) is not implemented sloppily).  Maybe
there is a setup macro you should be calling that you have forgotten,
and mom(7) could be checking for this, scolding you, and bailing out, or
taking care of the setup itself.

I'm sure Peter's cluebox is much fuller than mine.

Regards,
Branden

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]