5 ms·
Man pages are typeset with nroff to the console and troff to the printer. Yes, you can print manpages, and they turn out quite nice: try "man -t bash > bash.ps"
by pjc50 8y ago
Man pages are typeset with nroff to the console and troff to the printer. Yes, you can print manpages, and they turn out quite nice: try "man -t bash > bash.ps" to produce a postscript file which can be printed or converted to PDF etc.
- xelxebar 8y agoOkay. You kind of blew my mind. My `man` command doesn't seem to have the `-t` switch, but I can do this MANPAGER=mupdf man -T pdf man and, bam! I'm reading a pdf man page for `man`. On my system `man` is symlinked to `mandoc` and I've apparently got the latest version from here: http://mandoc.bsd.lv/ http://mandoc.bsd.lv/ Better yet, the `-T` switch seems to take a decent selection of options, even markdown and html!