From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <6fb78b8227dcf9a5236da0c2f8c81607@quintile.net> From: "Steve Simon" Date: Thu, 19 May 2011 14:44:45 +0100 To: 9fans@9fans.net In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] line numbers in troff Topicbox-Message-UUID: e6cdeda6-ead6-11e9-9d60-3106f5b1d025 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