Hello.
Here is an alternative for converting man pages to html. I use Safari to look at html instead of pdf.
Prerequisites
man -aw : finds path to the specified man pages:
Example
man -aw launchd.plist
→ launchd.plist.5.gz
launchd.plist is a file with a gz extension,and not just a number like 1,2,3… and so on, so we’ll have to open it with gzcat and pipe the input into groff.
If we hadn’t have to do that, then the commandline would have looked like this:
groff -man /usr/share/man//man5/launchd.plist.5 -Thtml >|~/Desktop/tmp.html && open -a "Safari" ~/Desktop/tmp.html
But we have to use this:
gzcat /usr/share/man//man5/launchd.plist.5.gz |groff -man -Thtml >|~/Desktop/tmp.html && open -a "Safari" ~/Desktop/tmp.html
The -man parameter tells groff the input/file should be parsed with the man macro package, the -Thtml tells it that it should generate html as output.
Edit
I think it is worth mentioning in the passing, that you shouldn’t regard the man file, as the primary source for information, when it is about tools from the GNU platform. According to the GNU coding standard, you needn’t update the man files, nor that they be accurate. So, when you see a reference to an “info file”, then you should really use that info file as the source of information for a command. At least on Snow Leopard, not all info files are shipped with the OS. Then you can find them over at gnu.org.
(This doesn’t relate to launchd.plist, or tools Apple develops I guess, but it is worth noting, that there is not a word on the sleep.1 man page for instance, that you can indeed specify a decimal value for specifying a fraction of a second.)