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 numbers every M lines following
>
> there are other options
>
> -- Mensaje reenviado --
> From: hugo rivera
> To: Fans of the OS P
.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--- Begin Message ---
Hello,
usually, when writting drafts for somebody else to review, its useful
to have line numbers printed at the beginni
> 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?
See /sys/doc/troff.ps (section 15 on page 26).
--lyndon
.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. And so on,
> down the page.
>
> Sape
>
>> Funny you should mentio
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. And so on,
down the page.
Sape
> Funny you should mention this. I know there is a way (done for patent
> applications). I think I can find it in the tro
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 .
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