Re: [Groff] string variable in pic

2005-12-12 Thread Werner LEMBERG
I have found out a way to do it -- essentially, you use the macro mechanism, but the trick is to define the macro so that the quotation marks are included in the replacement text. To take your simple box example as illustration: .PS define bcolor { red } define cbox { box wid $1

RE: [Groff] string variable in pic

2005-12-11 Thread Ted Harding
On 11-Dec-05 Heinz-Jürgen Oertel wrote: Hello, I'm searching for a way to put strings in pic variable, but found no way doing it. What I like to do is something like: .PS bcolor = red define cbox { box wid $1 color bcolor } .PE .PS cbox(1) this is red bcolor yellow

Re: [Groff] string variable in pic

2005-12-11 Thread Heinz-Jürgen Oertel
Am Sonntag, 11. Dezember 2005 15:02 schrieb Ted Harding: On 11-Dec-05 Heinz-Jürgen Oertel wrote: Hello, I'm searching for a way to put strings in pic variable, but found no way doing it. What I like to do is something like: .PS bcolor = red define cbox { box wid $1 color

Re: [Groff] string variable in pic

2005-12-11 Thread Ted Harding
On 11-Dec-05 Heinz-Jürgen Oertel wrote: Thanks Ted, The reason for placing some values in a global variable is avoiding a large number of macro arguments having always the same value. Like with the variable slant in my example. Look at the example I'm just trying: .fam H