groff
[Top][All Lists]
Advanced

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

Re: [Groff] Unix roff vs. groff: .in in ms?


From: Larry Kollar
Subject: Re: [Groff] Unix roff vs. groff: .in in ms?
Date: Fri, 29 Mar 2002 07:14:44 -0500

[Reply-to string trimmed - feel free to forward]

Jonathan Lennox wrote:

> Unix roff's ms macro package seem to have no problem with allowing me to use
> the .in directive, and the ms paragraph indentation directive are applied
> relative to it.  Groff's ms, on the other hand, performs an absolute .in at
> every .LP directive, and so my global intentation gets wiped out.

That's correct. Many many years ago, I rewrote -ms to make it do what
I wanted at work. There's a tape moldering in a closet somewhere that 
has the code....


> What I'd like is for paragraph bodies to be indented by 3 characters in
> nroff output, but for section headers to still be left-justified.  (I'm
> generating Internet-Drafts.)

You could add 3n to the left margin, then *outdent* the headings:

        .\" top of file; \n(PP is the text indent setting
        .nr PP 3n
        .nr PO \n(PO+\n(PP
        ...
        .NH 1
        .ti -\n(PP
        Bingo Bango Bongo
        .LP
        And Irving...

Hope that helps. It shouldn't give your generator program too much grief.

-- 
Larry Kollar   k o l l a r  at  a l l t e l . n e t
"Content creators are the engine that drives value in the
information life cycle."   -- Barry Schaeffer, on XML-Doc


reply via email to

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