From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: Date: Wed, 8 Jun 2011 04:13:43 +0200 Message-ID: From: hugo rivera To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [9fans] line numbers in troff Topicbox-Message-UUID: ed9f4a62-ead6-11e9-9d60-3106f5b1d025 Thanks a lot. 2011/5/19 Charles Forsyth : > .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 =C2=A0 numbers every M lines following > > there are other options > > ---------- Mensaje reenviado ---------- > From:=C2=A0hugo rivera > To:=C2=A0Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> > Date:=C2=A0Thu, 19 May 2011 15:09:23 +0200 > Subject:=C2=A0[9fans] line numbers in troff > 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 > --=20 Hugo