Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 5/3/83; site utcsrgv.UUCP Path: utzoo!utcsrgv!dave From: dave@utcsrgv.UUCP (Dave Sherman) Newsgroups: net.sources Subject: really simple macros for nroff Message-ID: <2628@utcsrgv.UUCP> Date: Thu, 3-Nov-83 16:15:06 EST Article-I.D.: utcsrgv.2628 Posted: Thu Nov 3 16:15:06 1983 Date-Received: Thu, 3-Nov-83 16:29:03 EST Organization: The Law Society of Upper Canada, Toronto Lines: 38 Do you often want to write stuff with nroff so it will come out looking half decent and have page breaks with numbered pages, but *hate* waiting for all the overhead of -ms or -mm? Well, here's a real quickie I use. Usually I call it "pg" and stick a ".so pg" at the beginning of my file. If I want to change any of it, I just read it right into the file. Here it is: . pg - page macros - very primitive .de fo 'bp 'sp 3 'tl ''- % -'' 'sp 2 .. .wh -6 fo .de PA .sp .ne 2 .ti +5 .. .de xx .sp 2 .ne 4 .cu \\n+a. \\$1 .PA .. .nr a 0 1 It gives you automatic numbered pages, .PA for paragraphs, and .xx for consecutively numbered sections. Typical usage: .xx "Implementation considerations Dave Sherman Toronto -- {allegra,cornell,decvax,ihnp4,linus,utzoo}!utcsrgv!dave