From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: From: Charles Forsyth Date: Thu, 19 May 2011 21:48:00 +0100 To: 9fans@9fans.net In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="upas-fpggafrpjocbuudthvkyzxoivr" Subject: Re: [9fans] line numbers in troff Topicbox-Message-UUID: e739b32e-ead6-11e9-9d60-3106f5b1d025 This is a multi-part message in MIME format. --upas-fpggafrpjocbuudthvkyzxoivr Content-Disposition: inline Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit .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 --upas-fpggafrpjocbuudthvkyzxoivr Content-Type: message/rfc822 Content-Disposition: inline Received: from mail.9fans.net ([67.207.142.3]) by lavoro; Thu May 19 19:40:30 BST 2011 Received: from localhost ([127.0.0.1] helo=[67.207.142.3]) by mail.9fans.net with esmtp (Exim 4.71) (envelope-from <9fans-bounces@9fans.net>) id 1QN3Hj-0006nY-N9; Thu, 19 May 2011 13:29:03 +0000 Received: from mail-vw0-f49.google.com ([209.85.212.49]) by mail.9fans.net with esmtp (Exim 4.71) (envelope-from ) id 1QN3Hh-0006nT-Tg for 9fans@9fans.net; Thu, 19 May 2011 13:29:01 +0000 Received: by vws8 with SMTP id 8so2373160vws.36 for <9fans@9fans.net>; Thu, 19 May 2011 06:09:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=q/ZA/gBzfnL1v5oXYQSie4kO1qToNvQYHrA/Rol1Wjg=; b=Jz4Ghv7BcqwzXzjCiLzn6xMkTOMaC+z8Zv66SK+KY5YudkrvBqNxXqRo7vs3siBwC3 ozwOWwlQCYGxCeT93wp2n/khE2r7Gf69EuBhK7mv5rcHoD+kSwHWsF93Kl9zbQKmpmYG I7xTpfdo1QarzJNRV2TZswCi2Bj7MW8884zCE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=FHTvdfTH3OOTtwzxChgaYeOqEUX9Jmv5HS6Y0GQw7QNHzchomKprPsrqPlnXz3cWjj voGi2N92RGfiPvwzIu/FqNB6V1Vi71DpsH0ocAfgDT2nT3xbvUN5GYkktAovG1fXO8Vy DjaDrckyShQtBLXL+onaboKsl+k96fn5gwCfg= MIME-Version: 1.0 Received: by 10.52.90.73 with SMTP id bu9mr4384128vdb.92.1305810563941; Thu, 19 May 2011 06:09:23 -0700 (PDT) Received: by 10.52.113.36 with HTTP; Thu, 19 May 2011 06:09:23 -0700 (PDT) Date: Thu, 19 May 2011 15:09:23 +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 Subject: [9fans] line numbers in troff X-BeenThere: 9fans@9fans.net X-Mailman-Version: 2.1.13 Precedence: list Reply-To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> List-Id: Fans of the OS Plan 9 from Bell Labs <9fans.9fans.net> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: 9fans-bounces@9fans.net Errors-To: 9fans-bounces@9fans.net 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 --upas-fpggafrpjocbuudthvkyzxoivr--