groff
[Top][All Lists]
Advanced

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

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


From: Oliver Corff
Subject: Re: [PATCH]: Set .lt to \n[.l] in papersize.tmac?
Date: Mon, 8 Jan 2024 22:24:19 +0100
User-agent: Mozilla Thunderbird

Hi Alexis,

I admit that the source files of the whole groff system have a structure
that in theory allows for apparently easy modifications, but this is not
what they are meant to be. The transparent source code is not an
invitation to edit.

Your modifications, in themselves, are plausible, but my suggestion is
you put them in a local macro which you source with

.so my_title_adjustment.roff

(or whatever you think is a feasible file name).

Best regards,

Oliver.


On 08/01/2024 15:19, Alexis wrote:
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
--

Dr. Oliver Corff
Wittelsbacherstr. 5A
10707 Berlin
G E R M A N Y
Tel.: +49-30-85727260
Mail:oliver.corff@email.de


reply via email to

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