Re: [9fans] pages in nroff
> Won't that affect the output of man -p as well? Or is the \ifn taking > care of that? Never mind; I just tried it: man makes one page and man -p is unaffected. Can I change the footer to read “CMD(1)” as in the header rather than the now meaningless “Page 1”? There’s a line: .ifn .tl Page %\\*(]D\\*(]W that looks like the one to change, but to what? Or should the footer be eliminated entirely and the printing date moved to the header? (When I next get bored, I’ll try to make man adjust the page width to the window width the way mc does ☺.) --Joel
Re: [9fans] pages in nroff
On 10/12/06, Russ Cox <[EMAIL PROTECTED]> wrote: There is a much simpler solution: edit /sys/lib/tmac/tmac.an: Won't that affect the output of man -p as well? Or is the \ifn taking care of that? --Joel
Re: [9fans] pages in nroff
On 10/12/06, Russ Cox <[EMAIL PROTECTED]> wrote: There is a much simpler solution: edit /sys/lib/tmac/tmac.an: Won't that affect the output of man -p as well? --Joel
Re: [9fans] pages in nroff
There is a much simpler solution: edit /sys/lib/tmac/tmac.an: < .ifn \{.nr )L 11i --- .ifn \{.nr )L 1000i Russ
Re: [9fans] pages in nroff
On 9 Oct 2006 22:36:50 -0400, Scott Schwartz <[EMAIL PROTECTED]> wrote: Unix manpages these days are formatted for online viewing just as you suggest, and it seems to work fine. e.g. linux does: I made myself a cpy of /rc/bin/man, and I'm trying to get the same effect by changing all the lines that look like: {echo -n $FONTS; cat $2< /dev/null} | troff $Nflag -$MAN to {echo -n $PROLOG; echo -n $FONTS; cat $2< /dev/null; echo -n $EPILOG} | ... I'm just not sure how to set $PROLOG and $EPILOG. I've tried: cpu% cat /sys/man/onepage PROLOG='.ll 10.6i .pl 1100i ' EPILOG='.pl (nlu+10 ' cpu% and invoking . /sys/man/onepage at the top of ~/bin/rc/nman, but that doesn't seem to accomplish anything. Can someone with more knowledge of troff suggest something? --Joel
Re: [9fans] pages in nroff
Unix manpages these days are formatted for online viewing just as you suggest, and it seems to work fine. e.g. linux does: (echo ".ll 10.6i"; echo ".pl 1100i"; /usr/bin/gunzip -c '/usr/share/man/man1/date.1.gz'; echo; echo ".pl \n(nlu+10" ) | /usr/bin/gtbl | /usr/bin/nroff -c -mandoc | /usr/bin/less -isr