From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <59b7f7c11e04848db87971028f2813a1@plan9.cs.bell-labs.com> References: <6fb78b8227dcf9a5236da0c2f8c81607@quintile.net> <59b7f7c11e04848db87971028f2813a1@plan9.cs.bell-labs.com> Date: Fri, 20 May 2011 00:51:11 +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 Content-Transfer-Encoding: quoted-printable Subject: Re: [9fans] line numbers in troff Topicbox-Message-UUID: e700be34-ead6-11e9-9d60-3106f5b1d025 .nm is your friend. brucee On Fri, May 20, 2011 at 12:43 AM, Sape Mullender wrote: > I think at the top of the page you set a trap to go off at the next line. > In the trap macro you reset the trap for the line after that. =A0And so o= n, > down the page. > > =A0 =A0 =A0 =A0Sape > >> 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 wr= ite: >>> >>> .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 th= ere >>> may be a well-known macro which is run at the start of every line... >>> >>> -Steve >>> >>> > > >