Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!asuvax!ncar!netnews.whoi.edu!news From: rich@boreas.whoi.edu Newsgroups: comp.unix.questions Subject: Re: How to print man pages nicely? Message-ID: <1991Feb21.210230.4241@netnews.whoi.edu> Date: 21 Feb 91 21:02:30 GMT References: <1991Feb21.155747.12018@javelin.es.com> <1991Feb21.165558.20454@ssd.kodak.com> Sender: news@netnews.whoi.edu Organization: Woods Hole Oceanographic Institution Lines: 44 In article <1991Feb21.165558.20454@ssd.kodak.com> weimer@ssd.kodak.com writes: > >In article <1991Feb21.155747.12018@javelin.es.com>, >pashdown@javelin.es.com (Pete Ashdown) writes: >|> >|> I'm a bit baffled at how to get 'man' pages to typeset nicely on a >postscript >|> printer. I've tried dinking around with troff and nroff and had very little >|> success. Any advice? > >I just use: > >man | lpr > >Assuming your printer can handle the highlight control characters. > >weimer@ssd.kodak.com ( Gary Weimer ) Surely this just prints the nroff-ed man pages....what you want to do is 1) find the path to your particular topic, usually something like /user/man/man/. for topic(sec) (i.e. read(1) ). grep can be useful here. 2) %troff -man -t /user/man/man/. > outfile %lpr -t outfile or %troff -man -t /user/man/man/. | lpr -t -- Rich Pawlowicz ----------------- INTERNET: rich@boreas.whoi.edu Woods Hole Oceanographic Institution "Home of the 59-cent squid burger (cheese extra)" --------------------------------------------------------------