Hi Peter, Peter N. M. Hansteen wrote on Thu, Feb 07, 2019 at 10:26:03AM +0100: > On Thu, Feb 07, 2019 at 09:29:39AM +0200, Anne Wainwright wrote:
>> I can print out nicely formatted man pages in linux, thus: >> >> $ man -t ls | lpr -P hp_laserjet >> >> But find that the -t option is not present in bsd. >> >> Have really dug around but can find no hints, where should I be looking? > I would say what you are probably looking for is mandoc (man mandoc or > http://man.openbsd.org/mandoc), which supports a variety of output formats. That answer is mostly correct in so far as the mandoc(1) manual page indeed documents the -T option and PostScript output mode, but it is also slightly misleading for the following reason: If there is anything you can do with apropos(1), whatis(1), or mandoc(1), then you can do exactly the same thing with man(1): apropos ... == man -k ... whatis ... == man -f ... mandoc ... == man -lc ... where "..." stands for additional options and arguments. So "mandoc" no longer has significance as a separate program with distinct options and/or functionality: it is just the same program as man(1), except for having -l and -c active by default. Of course the name "mandoc" is still significant for the (portable) software package implementing man(1), apropos(1), whatis(1), help(1), mandoc(1), makewhatis(8), and man.cgi(8) in OpenBSD style. Yours, Ingo

