Hi, Anthony J. Bentley wrote on Fri, Jul 27, 2012 at 07:15:07PM -0600: > Eric Oyen writes:
>> hmmmm. that may be another method of viewing a man page, converting >> it to a text based PDF. that is something to consider. > mandoc supports PDF output as well. > For example, with the following command: > > mandoc -Tpdf < /usr/share/man/man1/ls.1 > /tmp/ls.pdf Useless use of redirection. Make that: mandoc -Tpdf /usr/share/man/man1/ls.1 > /tmp/ls.pdf You don't need to know the full path, man(1) can find that for you: mandoc -Tpdf `man -w ls` > /tmp/ls.pdf If your reader supports standard input, you don't need a temp file: mandoc -Tps `man -w ls` | gv - Of course, that's all a bit backwards. If you really want to read manuals in a graphical reader, telling man(1) to do that by editing man.conf(5) seems a lot more natural: _build .[1-9n] /usr/bin/mandoc -Tps %s | gv - After configuring that, just type man ls and you get a nice PostScript display of the manual in gv(1). Yours, Ingo