groff
[Top][All Lists]
Advanced

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

Re: [Groff] -me and macroses


From: Ralph Corderoy
Subject: Re: [Groff] -me and macroses
Date: Mon, 03 Dec 2001 18:00:50 +0000

Hi,

> > I.e. I mean, is it nessesary to invoke my macros, begin a new
> > string?
> 
> Yes.  Just say
> 
>   text text text \*[my_macr] text text text
> 
> Note that it is not possible to pass arguments if a macro is called
> via the string mechanism (i.e., using `\*').  This `limitation' is a
> design issue of troff.

If you want arguments, then using \c in the definition, and when
invoking the macro, will have a similiar effect AFAIK.

    % cat g.tr
    .de my_macr1
    abc
    ..
    .de my_macr2
    abc\c
    ..
    text\c
    .my_macr1
    text\c
    .my_macr2
    text
    % groff -Tascii g.tr | cat -s
    textabc textabctext

Cheers,


Ralph.


reply via email to

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