*BSD News Article 80441


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!news.unimelb.EDU.AU!munnari.OZ.AU!spool.mu.edu!uwm.edu!cs.utexas.edu!howland.erols.net!news.mathworks.com!uunet!in1.uu.net!news.u.washington.edu!root
From: "Steven G. Kargl" <kargl@troutmask.apl.washington.edu>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: How to format man pages to lpr --- reasonably?
Date: Fri, 11 Oct 1996 13:13:32 -0700
Organization: Applied Physics Lab
Lines: 46
Message-ID: <325EAA6C.41C67EA6@troutmask.apl.washington.edu>
References: <53m1qp$3vq@taco.cc.ncsu.edu>
NNTP-Posting-Host: troutmask.apl.washington.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 3.0b6 (X11; I; FreeBSD 2.2-961004-SNAP i386)
To: Bob Keys <rdkeys@unity.ncsu.edu>

groff -e -t -p -mdoc man.1 | lpr


Bob Keys wrote:
> 
> I would like to print out manual pages on a postscript printer.  What is
> the best way to do that using man or groff?  I was trying:
> 
>   man <manpage> | a2ps | lpr  but that did not work very well at all.
> 
>   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?
> 
> If groff were used, I would expect something like:
> 
>   zcat /usr/man/man1/man.1.gz | groff -man | lpr   to work, but it doesn't.
> 
>   man -t etc...., but it also blew up and exited with the signal 11, below.
> 
> Instead it exits /kernel:pid2529(lpd),uid0:exited on signal 11.
> 
> Yet manually groffing the page >man.1.ps and catting the file > /dev/lpt0
> does work.
> 

signal 11 sometimes indicates bad memory.

> Any ideas as to what is causing the signal 11 exit?
> 
> Any suggestions for formatting manual pages to a postscript printer?
> 
> Any pointers are appreciated.
> 
> Almost there.....
> 
> Thanks.....  Bob Keys, rdkeys@unity.ncsu.edu

-- 
Steve

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