From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <7871fcf50610121040u67e2c38awede51ff97025c0a3@mail.gmail.com> Date: Thu, 12 Oct 2006 13:40:58 -0400 From: "Joel Salomon" To: "Fans of the OS Plan 9 from Bell Labs" <9fans@cse.psu.edu> Subject: Re: [9fans] pages in nroff In-Reply-To: <20061010023650.22454.qmail@g.galapagos.bx.psu.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20061010023650.22454.qmail@g.galapagos.bx.psu.edu> Topicbox-Message-UUID: c94501c0-ead1-11e9-9d60-3106f5b1d025 On 9 Oct 2006 22:36:50 -0400, Scott Schwartz 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