groff
[Top][All Lists]
Advanced

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

[Groff] Problem with MM spacing with macro immediately after a heading (


From: Damian McGuckin
Subject: [Groff] Problem with MM spacing with macro immediately after a heading (H)
Date: Wed, 23 Dec 2015 19:03:41 +1100 (AEDT)
User-agent: Alpine 2.02 (LRH 1266 2009-07-14)


Around August 2014, there was a discussion started by Blake McBride

        Problem with MM spacing

I looks like Werner fixed something but I cannot exactly figure out what it was from that discussion.

The problem I have could be related but it is subtly different.

Let me know if I should really append to that thread.

I am using the latest 1.22.3. I did not have this problem previously when I was using a much older version of groff, the one which comes with RedHat 6, or CentOS 6. But it is the first time I am using this new version with
some old files.

If I have something like

        .H 2 "A Heading"
        Some words of wisdom and ramblings ...

everything just rocks.

However, if I have

        .H 2 "A Heading"
        .TS
        .\" some table of something
        .....
        .TE
or
        .H 2 "Another Heading"
        .DS 0
        .\" some display which needs to be done literally
        .....
        .DE

then the spacing gets messed up.  Mind you, typing

        .rm address@hidden

at the start of the document fixes it quick smart, but that is not a real
fix. And heaven only knows what that really does to other things.

While I think a table or a display without some leading explanatory text is pretty poor style, and something I normally avoid, I use this document
structure for staff CVs.

This simple example highlights the problem. Any hints as to a fix is welcome.

.\" Start of Example
.S 12 14
.\" .rm address@hidden
.ds HF 3 3 3 2 2 2 2
.ds HP 12 12 12 12 12 12 12
.H 1 "Here Is An Example"
.\" Adding text here avoids the problem, but this is not always feasible.
.DS 0
This should be only one line under the heading.
This is not so unless you uncomment the '.rm' above.
.DE
What is the real fix please?
.\" Finish of example

Regards - Damian

Pacific Engineering Systems International, 277-279 Broadway, Glebe NSW 2037
Ph:+61-2-8571-0847 .. Fx:+61-2-9692-9623 | unsolicited email not wanted here
Views & opinions here are mine and not those of any past or present employer



reply via email to

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