From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: Date: Tue, 12 Apr 2011 16:24:19 +0800 Message-ID: From: Fernan Bolando To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=20cf3042720e2cd3e604a0b46b0a Subject: Re: [9fans] where to get color troff? Topicbox-Message-UUID: cfd8628e-ead6-11e9-9d60-3106f5b1d025 --20cf3042720e2cd3e604a0b46b0a Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On Tue, Apr 12, 2011 at 3:33 PM, Sape Mullender w= rote: > > On Tue, Apr 12, 2011 at 2:38 PM, Peter A. Cejchan > wrote: > > > >> do you mean 'graph', or 'chart' ? > >> ++pac > >> > > > > right now it's mostly charts. > > I use these macros for generating color: > > .de CL > \\X'PS \\$1 \\$2 \\$3 setrgbcolor'\\c > .. > .de BK > \\X'PS 0 0 0 setrgbcolor'\\c > .. > .de EM > \\$3\\X'PS 1 0 0 setrgbcolor'\\$1\\X'PS 0 0 0 setrgbcolor'\\$2 > .. > > They only work if you generate postscript (you can, of course, turn that > into pdf as well). > .CL r g b > sets the color to the rgb values (0 0 0 being black, 1 1 1 being white, > 0.5 0.5 0.5 being middle grey) > .BK > sets the color to black. > .EM "string1" "string2" "string3" > (emphasis), where strings 2 and 3 are optional prints string3 in the > current > color, followed by string1 in red and string2 in black (with no space > between > strings 3, 1 and 2 =97 they work as .B or .I in the .ms macro package. > > Sape > > Wow cool it worked. thanks a lot --20cf3042720e2cd3e604a0b46b0a Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable


Wow cool it worked. thanks a lot


--20cf3042720e2cd3e604a0b46b0a--