[Novalug] Printing man pages question
James Ewing Cottrell 3rd
JECottrell3 at Comcast.NET
Sun Nov 21 20:07:37 EST 2010
On 11/20/2010 2:14 AM, Jon LaBadie wrote:
> On Fri, Nov 19, 2010 at 11:21:53PM -0500, cmhowe at patriot.net wrote:
>> List,
>>
>> I want to have a hard copy of a man page. If, for example, I do
>>
>> man gedit>gedit-manual
>>
>> then
>>
>> lpr gedit-manual
>>
>> I get something so unattractive that it is useless. I could edit it but I
>> have a hunch that there is a program to make it attractive. Does anyone
>> know of a program that does that?
> According to the man manpage, the -t option should do what you want.
>
> man -t gedit> gedit.ps
> lp gedit.ps
>
> man -t gedit | lp
>
> Jon
You are probably right. But I always use "a2ps" to send things to the
printer:
man whatever | a2ps -m
The -m option processes the data like a manpage. You can also use -2 to
get two column output in landscape mode
and -s2 to get double sided printing.
JIM
More information about the Novalug
mailing list