groff
[Top][All Lists]
Advanced

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

Re: [Groff] Hanging paragraphs in MM


From: Anton Shepelev
Subject: Re: [Groff] Hanging paragraphs in MM
Date: Wed, 02 Jun 2010 15:37:00 +0400

Ralph Corderoy:

> 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.

  Thanks  for  the suggestion. It will work only for
  source texts without hard line breaks within para-
  graphs. But to GROFF, as I understand, a paragraph
  is a sequence of  non-empty  lines  not  beginning
  with  certain control commands, which means I have
  to know the number lines my paragraph will  occupy
  before it has actually been typeset.

  Or  I  have  to stick to long lines (one per para-
  graph), but then what  about  formatting  on  word
  level (like make one word bold)?

Anton






reply via email to

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