*BSD News Article 51584


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!recepsen.aa.msen.com!zib-berlin.de!irz401!uriah.heep!not-for-mail
From: j@uriah.heep.sax.de (J Wunsch)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Printing man pages
Date: 24 Sep 1995 23:14:54 +0100
Organization: Private FreeBSD site, Dresden.
Lines: 27
Message-ID: <444l8u$3u6@uriah.heep.sax.de>
References: <44130k$jgf@news.bu.edu>
NNTP-Posting-Host: uriah.heep.sax.de
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit

Mikhail Teterin <mi@cs.bu.edu> wrote:
>How to do it the nicest way possible? There are two places I'd like to print
>at -- at home and/or at work. At home, I have HP500C -- prints underlined 
>words Ok, but ignores bolding (printing a character second time does not
>make it any BBOOLLDDEERR on this printer). At work, I'll have to
>ftp files to WinNT machine and print it from there (using notepad/write/word),
>because SAMBA does not communicate very well with the printer on the net --
>it schedules the print-jobs, but the never get printed )-:

Try filtering the output through ul(1).  Perhaps you could setup a
special termcap entry for your printer that handles underline and
standout mode.

>Is PostScript my only alternative? Thanks!

Certainly the best one.  I haven't printed a man page from nroff
output for years now.  You lose much of the attributes.

Just in case:

zcat /usr/share/man/manX/XXX.X.gz | tbl | groff -mandoc |\
	 lpr -P<postscript-printer>
-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/
Never trust an operating system you don't have sources for. ;-)