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