From owner-freebsd-questions Wed Nov 10 14: 7:37 1999 Delivered-To: freebsd-questions@freebsd.org Received: from corinth.bossig.com (corinth.bossig.com [208.26.239.66]) by hub.freebsd.org (Postfix) with ESMTP id D481414E3C for ; Wed, 10 Nov 1999 14:07:28 -0800 (PST) (envelope-from kstewart@3-cities.com) Received: from revolution.3-cities.com (revolution.3-cities.com [204.203.224.155]) by corinth.bossig.com (Rockliffe SMTPRA 3.4.2) with ESMTP id ; Wed, 10 Nov 1999 14:13:22 -0800 Received: from 3-cities.com (kenn1213.bossig.com [208.26.241.213]) by revolution.3-cities.com (8.9.3/8.9.3) with ESMTP id OAA24412; Wed, 10 Nov 1999 14:07:22 -0800 (PST) Message-ID: <3829EC8D.5DDFDF97@3-cities.com> Date: Wed, 10 Nov 1999 14:07:09 -0800 From: Kent Stewart Organization: Columbia Basin Virtual Community Project X-Mailer: Mozilla 4.7 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: Greg Lehey Cc: Mark Ovens , Ariel Burbaickij , Sheldon Hearn , Giorgos Keramidas , freebsd-questions@FreeBSD.ORG Subject: Re: Printing man pages (was: Will the battle be won?) References: <13581.942254619@axl.noc.iafrica.com> <19991110123638.06840@mojave.sitaranetworks.com> <3829C558.A611C815@3-cities.com> <19991110201528.C319@marder-1> <19991110153005.34225@mojave.sitaranetworks.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Greg Lehey wrote: > > On Wednesday, 10 November 1999 at 20:15:28 +0000, Mark Ovens wrote: > > On Wed, Nov 10, 1999 at 11:19:52AM -0800, Kent Stewart wrote: > >> > >> > >> Greg Lehey wrote: > >>> > >>> On Wednesday, 10 November 1999 at 18:27:53 +0100, Ariel Burbaickij wrote: > >>>> On Wed, 10 Nov 1999, Sheldon Hearn wrote: > >>>>> On Wed, 10 Nov 1999 16:21:26 +0100, Ariel Burbaickij wrote: > >>>>> > >>>>>> So all this gory details provided about all relevant files do you hope > >>>>>> we will master the problem with man pages on my printer printed correctly? > >>>>> > >>>>> You keep changing the subject line, so it's difficult to follow the > >>>>> thread. If you have a postscript printer, use groff to print the > >>>>> manpages to your printer, as in > >>>>> > >>>>> zcat /usr/share/man/man1/ls.1.gz | groff -mdoc | lpr > >>>> > >>>> The problem is:I do not use PS-printer i am poor student(insert futher > >>>> lamentations here ). I use Canon bj200. > >>> > >>> $ zcat /usr/share/man/man1/ls.1.gz | nroff -mandoc | lpr > >>> > >>> -mandoc will format all man pages; -mdoc only does some of them (-man > >>> will do the others). Note also nroff instead of groff. > >> > >> I vote this hint as the best of the day. I have wanted to print man > >> pages for 8 months but it never had a high enough priority. It > >> remained a low level gripe. I could print Windows help files but not > >> FreeBSD. I wanted a hard copy of the user-ppp man page printed and > >> nothing worked. I don't have a ps printer. If it had been a high > >> enough bother, I would have asked the list but it never made it that > >> high. > >> > >> I did a > >> > >> zcat /usr/share/man/man8ppp.8.gz | nroff -mandoc > /usr4/ppp.txt > > > > Hmm, but that way you get all the double printing stuff: > > > > N^HNA^HAM^HME^HE > > p^Hpp^Hpp^Hp - Point to Point Protocol (a.k.a. user-ppp) > > Try: > > > > zcat /usr/share/man/man8/ppp.8.gz | nroff -mandoc | col -b > /usr4/ppp.txt > > That depends on how you look at it. Normally you'd use less or more > to look at it, and they convert this junk into bold print, so it's an > advantage not to remove the ^H stuff. I like the choice. In my case, I wanted to load it into my favorite word processor, which runs on NT, that will print on both sides using my non-duplexed laser or inkjet printer. FreeBSD can only print to the Laser, which I have on a Linksys print server. The ^H stuff confused the word processor. Perhaps it was just me that it confused. I normally use more to look at text and the bold helps visually. The "col -b" option was something I hadn't used before and I guess that is my new trick for the day. The trick of piping the output from man to col makes it KISS simple. Thanks, Kent > > Greg > -- > Finger grog@lemis.com for PGP public key > See complete headers for address and phone numbers > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message -- Kent Stewart Richland, WA mailto:kstewart@3-cities.com http://www.3-cities.com/~kstewart/index.html FreeBSD News http://daily.daemonnews.org/ SETI(Search for Extraterrestrial Intelligence) @ HOME http://setiathome.ssl.berkeley.edu/ Hunting Archibald Stewart, b 1802 in Ballymena, Antrim Co., NIR http://www.3-cities.com/~kstewart/genealogy/archibald_stewart.html To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message