9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "Steve Simon" <steve@quintile.net>
To: 9fans@9fans.net
Subject: Re: [9fans] line numbers in troff
Date: Thu, 19 May 2011 14:44:45 +0100	[thread overview]
Message-ID: <6fb78b8227dcf9a5236da0c2f8c81607@quintile.net> (raw)
In-Reply-To: <BANLkTim492owEYVniWE=W6XzF3o2sDTSGg@mail.gmail.com>

macros are easy enough: start them with .de XX and end them with .., e.g.
start and end code example which I end up adding to most documents I write:

.de EX
.nj
.nf
.CW
.SM
..

.de EE
.fi
.ju
.LG
.R
..

There are quite a few books, see http://www.troff.org/ , my favorite is
"Document formatting & typsetting on the UNIX system".

I really don't know how you would add line numbers, if you are lucky there
may be a well-known macro which is run at the start of every line...

-Steve



  reply	other threads:[~2011-05-19 13:44 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-19 13:09 hugo rivera
2011-05-19 13:44 ` Steve Simon [this message]
2011-05-19 14:38   ` Bruce Ellis
2011-05-19 14:43     ` Sape Mullender
2011-05-19 14:51       ` Bruce Ellis
2011-05-19 17:15 ` Lyndon Nerenberg (VE6BBM/VE7TFX)
2011-05-19 20:48 ` Charles Forsyth
2011-06-08  2:13   ` hugo rivera

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=6fb78b8227dcf9a5236da0c2f8c81607@quintile.net \
    --to=steve@quintile.net \
    --cc=9fans@9fans.net \
    /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).