[comp.text] Problems With -MS

forrest@ux1.lbl.gov (Jon Forrest) (08/24/88)

I have been unable to produce a document using MS that has the
following characteristics:

1. Page numbers on all pages.
2. Page numbers in the center of the footer.
3. Page numbers in roman numerals.

I have used

.ds CH
.ds CF %
.af PN i

to solve #2 and #3 above but I get no page numbers at all.

Any suggestions?

Jon Forrest
FORREST@LBL.GOV
ucbvax!lbl-csam!ux1!forrest

msb@sq.uucp (Mark Brader) (08/26/88)

Jon Forrest, wanting roman page numbers centered at the bottom of each
page using -ms, writes:

>	.ds CH
>	.ds CF %
>	.af PN i
> 
> [gives] no page numbers at all.

I suspect that you actually tried ".af PN i" in the above sequence,
found that you got ordinary page numbers, then tried ".af % i", and
THEN found that you got none.  I can't reproduce the above, anyway.

But I can produce the desired effect, like this:

	.ds CH
	.ds CF \\n(PN
	.af PN i

The % character that you put into the string CF causes the insertion of
the page number because \*(CF ends up being used in a .tl request, and
the character % (or such other character as is specified by .pc) in a .tl
is taken as \n%.  That is, it uses the internal page number number register,
named %, directly.  But changing the format of number register % to i doesn't
work either, because \n% is also used by -ms in numeric contexts, and must
have a numerical format there.

Putting a direct invocation of the PN number register into the string CF, as
shown above, does work.

Mark Brader, SoftQuad Inc., Toronto, utzoo!sq!msb, msb@sq.com
		... shalle come by day much great code ...
		The Soft grey and redd shall thrive, driving out substandard.
		The Q long shalle be, but there shalle be no waiting.
			-- Nostradamus predicts good times for SoftQuad