groff's -mm macros have Moved the Footer in version 1.18.

Bug #42764 reported by Ralph Corderoy on 2006-05-03
Affects Status Importance Assigned to Milestone
groff (Ubuntu)

Bug Description

Binary package hint: groff

The footer printed with the -mm macros has changed position between
groff versions 1.17.2 and 1.18 present in Ubuntu 5.04. This is a pain
as turning troff documents written before 5.04 into PostScript no longer
produces the same results despite the document source not changing.
Ubuntu actually provides version, but it's present in that
too and, as of the time of writing, groff CVS.

Here's a document that shows the problem.

    .\" groff -mm -ma4 >
    .PGFORM 21c-2i 29.7c-1i 1i 1
    .PH "'hl'hc'hr'"
    .PF "'fl'fc'fr'"
    .S +1
    Footer not in a constant place across groff versions.

If the `.S +1' is commented out the problem doesn't occur.

The non-postprocessed output can be obtained by using -Z: groff -Z -mm

Here's the differences between the two outputs.

    --- footermoves.1.17.2.out 2006-05-03 14:32:20.958257072 +0100
    +++ footermoves.1.18.out 2006-05-03 14:32:21.034245520 +0100
    @@ -42,10 +42,10 @@
     n13000 0
     n13000 0
    +V748889 [Vertical position different here before printing `fl'.]
    @@ -53,7 +53,7 @@
     n13000 0
     n13000 0
     x trailer

Other things are moving on the page too. Take this simple test case.

    .\" groff -t -ma4 -mm >

The location of `bar' is vertically lower with 1.18 compared to 1.17.2.

Again, from the differences in the definition of DS, it looks like unit
changes for header and footer margins may be the cause.

Changed in groff:
status: Unconfirmed → Confirmed

A workaround for the .DS/.DE/.DS/.DE example above where `bar' is lower
is to add a `.sp -0.5v' after the first .DE when using the more recent,
broken, groff.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers