groff
[Top][All Lists]
Advanced

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

[PATCH]: Set .lt to \n[.l] in papersize.tmac?


From: Alexis
Subject: [PATCH]: Set .lt to \n[.l] in papersize.tmac?
Date: Mon, 8 Jan 2024 15:19:57 +0100

Hi all,

I noticed that the default length of title lines (\n[.lt]) of 6.5i works
well for letter sized documents but looks off for other orientations and
paper sizes as the title left-part aligns with the page offset, but the
title right-part does not align with the right text margin.

Hopefully this example describes the issue technically well:

  % for p in letter letterl a4; do \
    echo -e ".tm paper: \*[paper]\n.tm .lt: \\\n[.lt]\n.tm .l:  \\\n[.l]\n.tm" \
    | groff - -dpaper=$p -Z >/dev/null; \
  done
  paper: letter
  .lt: 468000
  .l:  468000

  paper: letterl
  .lt: 468000
  .l:  648000

  paper: a4
  .lt: 468000
  .l:  451275

To me setting the length of title lines to the line length in
papersize.tmac (see attached patch) seems like a sensible solution to
provide a good looking default for page orientations and paper sizes
other than letter.

What are people's thoughts on this?
And what have I possibly overlooked that this isn't already the case?


Best
Alexis

Attachment: papersize-lt.patch
Description: Text document


reply via email to

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