groff
[Top][All Lists]
Advanced

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

Re: [groff] Odd indentation in -ms using .IP after .SH 1 with .nr PSINC


From: Tadziu Hoffmann
Subject: Re: [groff] Odd indentation in -ms using .IP after .SH 1 with .nr PSINC 3p
Date: Fri, 17 Aug 2018 10:41:33 +0200
User-agent: Mutt/1.9.1 (2017-09-22)

> When I run this through groff -ms the indentation for the first indented
> paragraph is larger than the indentation for the second indented
> paragraph.  I've attached the resulting PDF file.
> 
> If I take out the ".SH 1", or change it to ".SH 2", or change the PSINCR
> value to 1p the extra indentation goes away.
> 
> Anybody have any idea what's happening here?

"GROWPS" causes the point size for "SH 1" to become larger.
This larger point size is still active when "IP" is called,
and the indent (in current ens) of the "IP" call is interpreted
with the larger point size.

Fixes:

  * Call "IP" with an indent in points, not ens.
    (Not so nice, because it doesn't scale if you
    want to globally change the font size.)

-or-

  * Insert an empty "PP" call before the "IP",
    which resets the font size to the default
    text point size.  Calling "PP" is okay in
    your case because you have set "PD" to zero,
    thus it won't mess up the vertical spacing.

-or-

  * Insert ".ps" before the call to "IP".
    (This might not work if you manually change
    the font size within the section header text,
    in which case you could probably use something
    like ".ps \n(PS" or so instead.)





reply via email to

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