From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <6fb78b8227dcf9a5236da0c2f8c81607@quintile.net> References: <6fb78b8227dcf9a5236da0c2f8c81607@quintile.net> Date: Fri, 20 May 2011 00:38:48 +1000 Message-ID: From: Bruce Ellis To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [9fans] line numbers in troff Topicbox-Message-UUID: e6ea30c4-ead6-11e9-9d60-3106f5b1d025 Funny you should mention this. I know there is a way (done for patent applications). I think I can find it in the troff doc. I have to by tomorrow so I'll report back. brucee On Thu, May 19, 2011 at 11:44 PM, Steve Simon wrote: > 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 > >