Here is a function for mac os that outputs a pdf of a man page
function pman() {
man -t ${1} | open -f -a /Applications/Preview.app
} function pman() {
man -t ${1} | open -f -a /Applications/Preview.app
}