[comp.text] Answer on turn off page numberings on troff

iu@grasp.cis.upenn.edu (SiuLeong Iu) (10/03/89)

	Thanks all the repliers for my questions on `turn off page numberings
on troff", especially Steven Grimm (koreth@ebay.sun.com) and Tom Zougas
(zougas@me.toronto.edu). The following is a summary of the answers and further
comment.

(1) 	Is there a way to turn off the page numberings when we use the troff 
	with -ms to prepare the document? 
Answer: 
	.ds CH
	This will clear out the CH string register, which is normally set to
	"- \\\\n(PN -".

(2) 	On the other hand, if we put number on the pages, can we put
	number '-1-' on page 1 also?
Answer:
	.P1
	This request (which should appear before any text or paragraph 
	macros) will cause the first page to be output with headers.

Bonus:
	We can put any string on left, center and right part of the headers
	(as well as the footers) by changing the string register LH, CH and RH 
	(LF, CF and RF), respectively. For example, the following is to put the
	message "left header", "Center header" and "Page number" in the header
	line.

	.ds LH left header
	.ds CH Center header
	.ds RH Page %

Siu-Leong Iu (iu@grasp.cis.upenn.edu)