Microsoft KB Archive/105700

{|
 * width="100%"|

Creating Example Text and Style Samples for Style Gallery.

 * }

Q105700

-

The information in this article applies to:


 * Microsoft Word for Windows, version 6.0

-

SUMMARY
This article describes how you can create Examples and Style Samples for your Word for Windows templates that will display in the Format Style Gallery dialog box. You can also print these samples. The templates supplied with Word 6.0 include Examples and Style Samples, but your own templates will not contain these items unless you create them using the instructions in this article.

In the Format Style Gallery dialog box, if you select the Example option, Word displays a sample document formatted with the styles from the selected template. If you select the Style Samples option, Word displays a list of all styles in the selected template with sample text formatted with the styles.

MORE INFORMATION
To add Examples and Style Samples to your template that will display in the Preview Of box, you must create two AutoText entries for the template, as described below in the subsequent two sections.

Creating Text Examples
 Open the template for which you want to create an Example preview. In the template, type a sample document that uses the styles in your template. Your sample document should effectively demonstrate the use of as many template styles as possible. Select the formatted text and then use the following procedure to create an AutoText entry:

 From the Edit menu, choose AutoText. In the Name box, type Gallery Example. In the Make AutoText Entry Available To box, select Documents Based On .dot [do not select All Documents (Normal.dot)]. Choose the ADD button.</ol> </li> In the template, delete the text you typed in Step 2 above.</li> Save and close the template.</li></ol>

Style Samples
<ol> Open the template for which you want to create a Style Samples preview.</li> Type the name of each template style on a separate line. Apply the corresponding style to the style name text to demonstrate its use. For example, if you type Body Text, format the text with the Body Text style.</li> Select the formatted sample text and then use the following procedure to create an AutoText entry:

<ol style="list-style-type: lower-alpha;"> From the Edit menu, choose AutoText.</li> In the Name box, type Gallery Style Samples.</li> In the Make AutoText Entry Available To box, select Documents Based On <Your Template>.dot [do not select All Documents (Normal.dot)].</li> Choose the ADD button.</li></ol> </li> In the template, delete the text you typed in Step 2 above.</li> Save and close the template.</li></ol>

When you create a document based on this template, your formatted Gallery Style Sample and Gallery Example text will display in the Format Style Gallery box when you select the Style Samples or Example options, respectively.