nroff - help wanted

Hans Albertsson hans at log-hb.UUCP
Sat Jun 16 09:58:14 AEST 1984


[]
It is possible to have a "trapped macro", that is a macro which is 
executed every time a particular condition, such as a page transition.
It seems to me that such a macro could be one to emit a form-feed.
Then setting the pagelength short enough, you're in the clear.

The doc is confusing, due to the lack of redundancy ( as is typical of
UNIX ), but it's there in 
Nroff/Troff User's manual, par. 7, par 3.

Particularly, there's reference to a top-of-page macro, which is invoked 
every time a new page is about to be emitted. Presumably this macro can
be modified.

I haven't tried it, but it seems this is the mechanism through which 
nroff outputs the last blank line.

-- 
			{decvax,philabs}!mcvax!enea!log-hb!hans
			Hans Albertsson, 
			TeleLOGIC AB
			Box 1001,
			S-14901 Nynashamn,
			SWEDEN



More information about the Comp.unix.wizards mailing list