[9fans] where to get color troff?
Hi all what are our plan9 option for making colored graphs for troff documents? I am guessing this how it's going to be done create graph using pure postscript - troff -mpictures - page is there any other option? fernan
Re: [9fans] where to get color troff?
do you mean 'graph', or 'chart' ? ++pac
Re: [9fans] where to get color troff?
On Tue, Apr 12, 2011 at 2:38 PM, Peter A. Cejchan tyap...@gmail.com wrote: do you mean 'graph', or 'chart' ? ++pac right now it's mostly charts.
Re: [9fans] where to get color troff?
On Tue, Apr 12, 2011 at 2:38 PM, Peter A. Cejchan tyap...@gmail.com 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 — they work as .B or .I in the .ms macro package. Sape
Re: [9fans] where to get color troff?
On Tue, Apr 12, 2011 at 3:33 PM, Sape Mullender s...@plan9.bell-labs.comwrote: On Tue, Apr 12, 2011 at 2:38 PM, Peter A. Cejchan tyap...@gmail.com 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 — they work as .B or .I in the .ms macro package. Sape Wow cool it worked. thanks a lot
Re: [9fans] Additional compilers under 9vx.OSX
In article a260bb06-00d9-43bc-89ae-6f5b08cb3...@gmail.com, David Leimbach leim...@gmail.com wrote: On Apr 11, 2011, at 3:44 AM, erik quanstrom quans...@quanstro.net wrote: the way to do this is cd /sys/src; objtype=arm mk mk clean Just getting to play with this... had to do some copying of some of the files first among other setbacks... ok, plain mk asks what to make, and so I tried 'mk all' which is saying 5c does not exist, but that's one of the things I want it to build. bad instructions. sorry. that should have been cd /sys/src/cmd; mk 5^(a l c)^.install cd /sys/src; objtype=arm mk install mk clean - erik I posted some on the wiki about how I got the guruplug working for me... Thanks. I tried google'ing but don't see to be able to find where that is. Please advise, thanks. -- Greg Comeau / 4.3.10.1 with C++0xisms now in beta! Comeau C/C++ ONLINE == http://www.comeaucomputing.com/tryitout World Class Compilers: Breathtaking C++, Amazing C99, Fabulous C90. Comeau C/C++ with Dinkumware's Libraries... Have you tried it?
Re: [9fans] Additional compilers under 9vx.OSX
In article ec9ea766ee9a078a26ff902ed3e27...@proxima.alt.za, Lucio De Re lu...@proxima.alt.za wrote: the way to do this is cd /sys/src; objtype=arm mk mk clean Just getting to play with this... had to do some copying of some of the files first among other setbacks... ok, plain mk asks what to make, and so I tried 'mk all' which is saying 5c does not exist, but that's one of the things I want it to build. There's a post by Geoff Collyer a while back, when the SheevaPlug was first introduced to Plan 9 that explains how to build the arm toolchain before trying to build the entire system. Along these lines: cd /sys/src/cmd for (d in 5?) @{cd $d mk install} I'm not going to try that now... I am :) Well, actually, given the /bin/ape/sh problem, what I'm going to try to do is try to set up an alternative 9vx.OSX install from scratch, and apply the latter above instead of the earlier system build (or whatever it is that the other was) and see if that helps any, unless there is thoughts that is an exercise in futility for one reason or another? -- Greg Comeau / 4.3.10.1 with C++0xisms now in beta! Comeau C/C++ ONLINE == http://www.comeaucomputing.com/tryitout World Class Compilers: Breathtaking C++, Amazing C99, Fabulous C90. Comeau C/C++ with Dinkumware's Libraries... Have you tried it?
Re: [9fans] Additional compilers under 9vx.OSX
cd /sys/src/cmd for (d in 5?) @{cd $d mk install} I'm not going to try that now... I am :) Well, actually, given the /bin/ape/sh problem, what I'm going to try to do is try to set up an alternative 9vx.OSX install from scratch, and apply the latter above instead of the earlier system build (or whatever it is that the other was) and see if that helps any, unless there is thoughts that is an exercise in futility for one reason or another? I haven't ever tried it under 9vx (or did I? it's possible I've forgotten) so YMMV. I have done it at least twice, quite a way back. But I guess it isn't going to break anything. Erik's suggestion to do the same from /sys/src/cmd may be slightly more orthodox. ++L
Re: [9fans] where to get color troff?
/sys/src/cmd/postscript/mcolor/ On Tue, Apr 12, 2011 at 10:24 AM, Fernan Bolando fernanbola...@mailc.net wrote: On Tue, Apr 12, 2011 at 3:33 PM, Sape Mullender s...@plan9.bell-labs.com wrote: On Tue, Apr 12, 2011 at 2:38 PM, Peter A. Cejchan tyap...@gmail.com 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 — they work as .B or .I in the .ms macro package. Sape Wow cool it worked. thanks a lot
Re: [9fans] Additional compilers under 9vx.OSX
Sent from my iPhone On Apr 12, 2011, at 8:51 AM, com...@panix.com (Greg Comeau) wrote: In article a260bb06-00d9-43bc-89ae-6f5b08cb3...@gmail.com, David Leimbach leim...@gmail.com wrote: On Apr 11, 2011, at 3:44 AM, erik quanstrom quans...@quanstro.net wrote: the way to do this is cd /sys/src; objtype=arm mk mk clean Just getting to play with this... had to do some copying of some of the files first among other setbacks... ok, plain mk asks what to make, and so I tried 'mk all' which is saying 5c does not exist, but that's one of the things I want it to build. bad instructions. sorry. that should have been cd /sys/src/cmd; mk 5^(a l c)^.install cd /sys/src; objtype=arm mk install mk clean - erik I posted some on the wiki about how I got the guruplug working for me... Thanks. I tried google'ing but don't see to be able to find where that is. Please advise, thanks. http://plan9.bell-labs.com/wiki/plan9/Guruplug/index.html -- Greg Comeau / 4.3.10.1 with C++0xisms now in beta! Comeau C/C++ ONLINE == http://www.comeaucomputing.com/tryitout World Class Compilers: Breathtaking C++, Amazing C99, Fabulous C90. Comeau C/C++ with Dinkumware's Libraries... Have you tried it?