Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the '10.4: Use Preview to view formatted man pages' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.4: Use Preview to view formatted man pages
Authored by: aaronrp on Dec 30, '05 12:52:30PM
I've been using the following little csh script to print manual pages:

set myman=(`man -w $*`)
groff -man -Tps -fN $myman | lp -o sides=two-sided-long-edge -d myprinter
But I like this better, because I can view it in Preview and then use whatever printer and options I want using the GUI. The only thing is that it uses Times, not New Century Schoolbook, to format the pages. (Why do I care? Pure nostalgia -- when I got to UC Santa Cruz back in 1988, the man pages they distributed for our Unix system were all in New Century Schoolbook.) It turns out you can modify the "TROFF" line in /usr/share/misc/man.conf to add the -fN line. Other valid fonts are -fA for Avant Garde, -fBM for Bookman, -fC for Courier, -fH for Helvetica, -fHN for Helvetica Narrow, or -fP for Palatino.

[ Reply to This | # ]
Switching to us-letter using man.conf
Authored by: charlesa on Jan 04, '06 01:44:56PM

You can also modify /usr/share/misc/man.conf to get USLetter (instead of A4) output by adding:


to the TROFF entry. See the grops(1) manpage for further options.

[ Reply to This | # ]