On Tue, Jun 01, 2010 at 02:19:17PM +0400, Anton Shepelev wrote:
> I often need to typeset single hanging paragraphs
> like:
>
> PS: Example of a post-scriptum, it has a hanging
> indent.
>
> I have created a macro for this, which
>
> 1. Calculates the length of the label and
> increments it by one,
>
> 2. Begins a variable-item list (MM's .VL) with
> the calculated indent,
>
> 3. Typesets the desired paragraph as one list
> item (MM'c .LI),
>
> 4. Ends the list (MM's .LE).
>
> But to use it, I have to pass both label and text
> as macro parameters, while I'd like to pass only
> the label and have the text on the next input line
> (like it is done in MAN's .TP macro, for example).
>
> Could you please suggest a way of doing it? Maybe
> I better emulate it using groff's requests (and
> take care not to meddle with MM's inner logic)?
Anton,
Could you just use \ to continue the macro onto your next line?
.MyMacro FirstArg \
All the text that is processed by MyMacro FirstArg follows.
.MyMacro FirstArg \
All the text that is processed by MyMacro FirstArg follows and \
in the case of a lot of text \
multiple lines.
--
Mike Bianchi