groff
[Top][All Lists]
Advanced

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

Re: [Groff] Hanging paragraphs in MM


From: Ralph Corderoy
Subject: Re: [Groff] Hanging paragraphs in MM
Date: Wed, 02 Jun 2010 12:20:31 +0100

Hi Anton,

> I  can  manage  a  two-part  macro like .(MyPS and .)MyPS, so I could
> reset the indent upon exit. But I  don't know how to do it using only
> one macro. I probably have to 'subscribe' to  some  'call-back' macro
> that gets called every time a paragraph (in groff's sense) ends. Does
> groff or MM have such  a macro?

Are you aware of the .it request;  input trap?  `.it N xx' calls macro
xx after N lines of input have been read, excluding control and request
lines.

    .de foo
    Foo here.
    ..
    .it 2 foo
    Bar
    here.

Cheers,
Ralph.




reply via email to

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