9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "Joel Salomon" <joelcsalomon@gmail.com>
To: "Fans of the OS Plan 9 from Bell Labs" <9fans@cse.psu.edu>
Subject: Re: [9fans] pages in nroff
Date: Thu, 12 Oct 2006 13:40:58 -0400	[thread overview]
Message-ID: <7871fcf50610121040u67e2c38awede51ff97025c0a3@mail.gmail.com> (raw)
In-Reply-To: <20061010023650.22454.qmail@g.galapagos.bx.psu.edu>

On 9 Oct 2006 22:36:50 -0400, Scott Schwartz <schwartz@bio.cse.psu.edu> wrote:
> Unix manpages these days are formatted for online viewing
> just as you suggest, and it seems to work fine.
>
> e.g. linux does:
<snip>

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


  reply	other threads:[~2006-10-12 17:40 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-09  0:37 Joel “chesky” Salomon
2006-10-10  2:36 ` Scott Schwartz
2006-10-12 17:40   ` Joel Salomon [this message]
2006-10-12 17:51     ` Russ Cox
2006-10-12 17:58       ` Joel Salomon
2006-10-12 18:01       ` Joel Salomon
2006-10-12 18:11         ` Joel “chesky” Salomon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7871fcf50610121040u67e2c38awede51ff97025c0a3@mail.gmail.com \
    --to=joelcsalomon@gmail.com \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).