« Demystifying Mail.app plugins – a tutorial | Main | O'Reilly releases "iPhoto 6: The Missing Manual" »

Pretty-print manual pages as PS, PDF, or HTML

Posted in: Software, Tips & Tricks

Codepoet writes: "You can use the groff tool to convert manual pages into PostScript, PDF, or HTML form for pretty viewing, printing, posting to a webpage, easy searching with Spotlight, or any other purpose, if you like. Manpages are stored in a simple mandoc format for which the groff formatting tool has an understanding (indeed, groff is used by man to display the page in the first place). groff also has an understanding of a wide variety of other formats to display things in, however man only uses the normal display format so only the few that look into such things would notice the fun to be had."