WD: Adjusting MacWord Paragraph Border Thickness with PostScript

Last reviewed: November 17, 1997
Article ID: Q71049

The information in this article applies to:
  • Microsoft Word for the Macintosh, versions 3.0, 3.01, 3.02, 4.0, 5.0, 5.1

SUMMARY

The single, solid-line paragraph border options in Microsoft Word are a one point, a two point, and a hairline border, respectively. To create a paragraph border that is thicker than these measurements, follow these steps:

  1. Type the following PostScript code immediately preceding the paragraph to which the border will be applied:

          .para.
          8 setlinewidth wp$box
          stroke
    

  2. Select the three lines of PostScript code and apply the PostScript style (hold down the SHIFT key while choosing All Styles from the Format menu).

When the document is printed, the code above draws a box around the entire paragraph using a line width of 8 points (there are 72 points per inch). To change the width for the border, type a new number in place of the "8" in the code.

MORE INFORMATION

To create a single-line bottom border, type the following immediately preceding the paragraph to which the border will be applied:

   .para.
   8 setlinewidth
   0 0 moveto
   wp$yorig 0 rlineto
   stroke

Select the five lines and apply the PostScript style. Change the number "8" in the text to obtain the desired border width.

NOTE: This PostScript code also works with Microsoft Word versions 3.0x.

For more information on using PostScript, see the application note titled "Introduction to PostScript Using Microsoft Word." For additional information, please see the following article in the Microsoft Knowledge Base:

   ARTICLE-ID: Q64783
   TITLE     : WD: Introduction to PostScript Using Microsoft Word 


Additional query words:
Keywords : macword kbprint
Version : MACINTOSH:3.0, 3.01, 3.02, 4.0, 5.0, 5.1
Platform : MACINTOSH
Issue type : kbinfo


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: November 17, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.