WD5x: Changing the Page Numbering Format in Word Using PostScrpt
Last reviewed: July 16, 1998 |
The information in this article applies to:
SUMMARYIn Microsoft Word, you can use PostScript code to change the starting page number in a section. For instance, you can have a 20-page document with the first 10 pages numbered from 1 to 10 and the last 10 pages numbered from 15 to 24. You can also change the position of the page numbers on the page and change the font and font size of the page numbers.
TO CHANGE THE STARTING PAGE NUMBER
CUSTOMIZATION
Page Number PositionThe preceding sample PostScript code prints the page number in the upper-right corner of the page. To change the position of the page number, replace line 6 of the above code with the desired location of the page number from the lower-left edge of the page. For instance, to print the page number at the center and bottom of the page, change the line to read:
4.25 inch .5 inch movetoThese numbers represent specific positions on the page. The first number is the horizontal position, where the left edge of the page is 0 (zero). The second number is the vertical position, where the bottom of the page is 0. These measurements assume an 8.5-by-11-inch sheet of paper.
Font and Font SizeThe preceding sample PostScript code prints the page numbers in Times 12-point type. To change the font and font size, replace the font name and font size in line 5 with the PostScript name and number of the font you want. To find the PostScript name for the font you want, see the list below or use the Apple(R) LaserWriter(R) utility that comes with the printer. For example, to print the page number in Palatino(R) 10 point, change the line to read:
/Palatino-Roman findfont 10 scalefont setfontThe following is a list of 35 standard typefaces resident in almost all PostScript printers. "Demi" is bold, "Oblique" is italic, and "Book" and "Roman" are plain type.
AvantGarde-Book AvantGarde-BookOblique AvantGarde-Demi AvantGarde-DemiOblique Bookman-Demi Bookman-DemiItalic Bookman-Light Bookman-LightItalic Courier Courier-Bold Courier-BoldOblique Courier-Oblique Helvetica(R) Helvetica-Bold Helvetica-BoldOblique Helvetica-Narrow Helvetica-Narrow-Bold Helvetica-Narrow-BoldOblique Helvetica-Narrow-Oblique Helvetica-Oblique NewCenturySchlbk-Bold NewCenturySchlbk-BoldItalic NewCenturySchlbk-Italic NewCenturySchlbk-Roman Palatino-Bold Palatino-BoldItalic Palatino-Italic Palatino-Roman Symbol Times-Bold Times-BoldItalic Times-Italic Times-Roman(R) ZapfChancery-MediumItalic ZapfDingbatsThe fonts in the preceding list are installed on the following LaserWriters:
LaserWriter Plus LaserWriter IINT LaserWriter IINTX Personal LaserWriter NT LIMITATIONS
MORE INFORMATIONFor more information about learning PostScript, please see "Learning PostScript: A Visual Approach" by Ross Smith (Berkeley: Peachpit Press, 1990). For more information about using PostScript with Microsoft Word, please see Appendix G of the version 5.0 or 5.1 "Using Microsoft Word" manual, pages 284-288 of the version 4.0 "Reference to Microsoft Word," pages 279-284 of the version 3.0 "Reference to Microsoft Word," or the Microsoft Application Note "Introduction to PostScript Using Microsoft Word" (MW0316).
|
Additional query words: appnote |
Last reviewed: July 16, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.