Thanks. I've copied troffrc to my own tmac folder and pasted the lines in.
Bjarni Ingi Gislason <[email protected]> wrote:
> On Sun, Nov 20, 2022 at 12:37:56PM +0100, hbezemer--- via wrote:
> >[...]
> > A4 is de facto the standard for all documents in Europe.
> > (Since A4 and letter don't differ that much in size, I mostly use the
> > default although the documents get printed on A4 paper.)
> >[...]
>
> The default in "tmac/troffrc" is:
>
> .\" Handle paper formats on typesetting devices.
> .if t .do mso papersize.tmac
>
> Formatting with page format "letter" and printing on an A4 paper,
> makes the footer too big (high, extra empty lines).
>
> When "groff" is configured, the variable "PAGE" is (should be) set to
> the default paper format for the default printer.
>
> So the variable "paper" in "papersize.tmac" should have the same
> value as "$PAGE".
>
> With, for example, this addition to "tmac/troffrc" before reading the
> "papersize.tmac":
>
> .if t \{\
> . do if !d paper .do ds paper A4\" use $(PAGE) to configure
> .\}
>
> See also bug #62238 (closed).