[Top][All Lists]
[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.
- [Groff] -me and macroses, Mike Iokhvin, 2001/12/03
- Re: [Groff] -me and macroses, Werner LEMBERG, 2001/12/03
- Re: [Groff] -me and macroses, Tadziu Hoffmann, 2001/12/03
- Re: [Groff] -me and macroses, Werner LEMBERG, 2001/12/04
- Re: [Groff] -me and macroses, Tadziu Hoffmann, 2001/12/05
- Re: [Groff] -me and macroses, Bernd Warken, 2001/12/05
- Re: [Groff] -me and macroses, Werner LEMBERG, 2001/12/07
- Re: [Groff] -me and macroses, Bernd Warken, 2001/12/07
- Re: [Groff] -me and macroses, Werner LEMBERG, 2001/12/06
Re: [Groff] -me and macroses,
Ralph Corderoy <=