groff
[Top][All Lists]
Advanced

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

[Groff] string variable in pic


From: Heinz-Jürgen Oertel
Subject: [Groff] string variable in pic
Date: Sun, 11 Dec 2005 12:45:37 +0100
User-agent: KMail/1.8.3

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"
cbox(1) "this is yellow"
.PE

Another interesting feature would be if 
\n[.M] could return the numerical values of the color components.
In this case one could define a new color which is sometimes darker or more 
bright, or "more red" etc. This can be used to produce shaded colored boxes 
in pic.

Hope I get help
 Regards
  Heinz
 




reply via email to

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