From: Charles Forsyth <forsyth@terzarima.net>
To: 9fans@9fans.net
Subject: Re: [9fans] line numbers in troff
Date: Thu, 19 May 2011 21:48:00 +0100 [thread overview]
Message-ID: <ad05fdf857a753ae8d598b396a678ed0@terzarima.net> (raw)
In-Reply-To: <BANLkTim492owEYVniWE=W6XzF3o2sDTSGg@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 162 bytes --]
.nm 1 turns on line number mode
.nm 0 turns it off
.nn N turns it off for the next N lines
.nm 1 M numbers every M lines following
there are other options
[-- Attachment #2: Type: message/rfc822, Size: 2771 bytes --]
From: hugo rivera <uair00@gmail.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: [9fans] line numbers in troff
Date: Thu, 19 May 2011 15:09:23 +0200
Message-ID: <BANLkTim492owEYVniWE=W6XzF3o2sDTSGg@mail.gmail.com>
Hello,
usually, when writting drafts for somebody else to review, its useful
to have line numbers printed at the beginning of each line.
How would you implement that in troff? I never written a macro in
troff, so some basic pointers would be enough for me (e.g. some good
troff book).
Thanks,
--
Hugo
next prev parent reply other threads:[~2011-05-19 20:48 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
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 [this message]
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=ad05fdf857a753ae8d598b396a678ed0@terzarima.net \
--to=forsyth@terzarima.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).