*BSD News Article 80841


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!metro!metro!asstdc.scgt.oz.au!nsw.news.telstra.net!act.news.telstra.net!psgrain!usenet.eel.ufl.edu!news.mathworks.com!uunet!in1.uu.net!netnews.nwnet.net!news.u.washington.edu!root
From: "Steven G. Kargl" <kargl@apl.washington.edu>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: How to format man pages to lpr --- reasonably?
Date: Tue, 15 Oct 1996 22:46:12 -0700
Organization: University of Washington
Lines: 40
Message-ID: <326476A4.41C67EA6@apl.washington.edu>
References: <53m1qp$3vq@taco.cc.ncsu.edu>
	    <5417s5$t49@cnn.exu.ericsson.se> <541oke$ifg@dismay.ucs.indiana.edu>
NNTP-Posting-Host: ppp-C2.apl.washington.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 3.0 (X11; I; FreeBSD 2.2-960801-SNAP i386)

John Fieber wrote:
> 
> In article <5417s5$t49@cnn.exu.ericsson.se>,
>         exujbm@exu.ericsson.se (Ben Madison) writes:
> > Bob Keys (rdkeys@unity.ncsu.edu) wrote:
> >>
> >>   man <manpage> | a2ps -1 -a -i -m -p | lpr   was better but still had bad
> >>
> >> fits with the backspace and underscores from the man pgm.  I can't seem to
> >> find any more options that should properly pass manpages through a2ps.  I
> >> would have thought that the -i and -m options would have taken care of that.
> >> Perhaps an intermediate filter of some sort is required?
> >
> > I use a little perl filter, "unman":
> >
> >   #!/usr/local/bin/perl -n
> >   s/_[\b]//g;
> >   print;
> >
> > Then just do:
> >
> >   man <manpage> | unman | a2ps <whatever> | lpr
> 
> Ack!
> 
> Five follups in this thread an apparently not one person bothered to
> read the man man page! If you have a postscript printer (or
> ghostscript driving somthing else) all you have to do is:
> 
>    man -t <manpage> | lpr
> 

Does this preprocess with pic, tbl, eqn?  The man manpage does not 
discuss this.  I stand by my original post.

-- 
Steve

finger -l kargl@troutmask.apl.washington.edu
http://troutmask.apl.washington.edu/~kargl/sgk.html