Table of Contents

Previous

Next


Assigning Image Styles in Word

Typically you do not need to specify an image style for images when you generate output. By default, each image generated by ePublisher is associated with the default image style defined in the Stationery used by your Stationery. However, if you want to change the image style of one image or a small set of images, you can specify the image style you want to use for an image in your source document using the GraphicStyle marker type.

For example, if you want to specify a yellow border around a set of screen shot images that illustrate a particular piece of product functionality, you can specify that each of the screen shots images in the set have a yellow border around them through the use of the GraphicStyle marker type.

To assign a style to a specific image, your Stationery and template must have the GraphicStyle marker type configured. Your output format must also support specifying image styles. For more information about output formats that support this feature, see “Features Available in Each Output Format” on page 8.

The following procedure provides an example of how to specify image styles for images in Microsoft Word source documents using Microsoft Word 2003. Steps for specifying image styles for images in Microsoft Word may be different in other versions of Microsoft Word.

To specify an image style for an image in a Microsoft Word source document

  1. In your Microsoft Word source document, locate the image for which you want to specify an image style.

  2. Right-click the image, and then click Format Picture or Format Object on the context menu.

  3. Change the layout setting of the image to Top and Bottom by completing the following steps:

Note: By default when you insert images into Microsoft Word, Microsoft Word inserts the image using the Inline with text layout setting. In order to specify the image scale for image output files, you must group the image and the text box that contains the GraphicStyle marker. However, you cannot group images that use the In line with text layout setting in Microsoft Word. To work around this known Microsoft Word issue, if you have an image that uses an In line with text layout setting, use the Top and Bottom layout setting for the image while you insert the GraphicStyle marker, and then reapply the In line with text layout setting after you group the image and the GraphicStyle marker.

  1. On the Layout tab, click Advanced.

  2. On the Text Wrapping tab, click Top and Bottom.

  3. Click OK, and then click OK again to close the window.

  4. Select your image.

  5. On the Insert menu, click Text Box, and then click to the right of your image. Microsoft Word inserts a text box.

  6. Insert your cursor into the text box, and then complete the following steps:

  7. On the WebWorks menu, click Markers.

  8. In the Markers field, select GraphicStyle from the list of markers.

  9. In the Value field, type the name of the image style the Stationery designer configured for the Stationery used by your ePublisher project.

For example, if the Stationery designer configured an image style called GreenBorder in your Stationery, type GreenBorder.

Click OK. ePublisher inserts the GraphicStyle marker into the text box.

  1. Select the text box.

  2. Right-click the selected text box, and then click Format Text Box on the context menu.

  3. On the Colors and Lines tab, in the Fill area, in the Color field, select No Fill.

  4. In the Line area, in the Color field, select No Line.

  5. Click OK.

  6. Drag and drop the text box onto the image and resize the text box as needed.

  7. Press the SHIFT key, and then click the text box and the image to select both the text box and the image.

  8. Right-click the selected text box and image, and then click Grouping  > Group on the context menu.

Note: When you select Group, the location of the image in your Microsoft Word source document may change in relation to the text in your source document. For example, the image may move up or down in relationship to the text in your Microsoft Word source document. This is known Microsoft Word behavior. You may need to scroll up or down in your source document to the new location of the image to find the image.

  1. If your image previously used the In line with text layout setting for the image, reassign this setting to your image by completing the following steps:

  2. Right-click only the image, and then click Format Object on the context menu.

Note: You must ensure you right-click only the image, and not the text box or the grouped text box and image. If you right-click on the text box or the grouped text box and image, Microsoft Word does not display the Format Object menu option on the context menu.

  1. On the Layout tab, click In line with text.

  2. Click OK, and then click OK again to close the window.

  3. Save your Microsoft Word source document.

  4. Generate output for your project. For more information, see “Generating Output” on page 300.

  5. In Output Explorer, verify ePublisher created the image using the image style you specified by clicking on the page that contains the image for which you specified an image style and verifying ePublisher applied the image style you specified in the generated output. For more information about viewing output files in Output Explorer, see “Viewing Output in Output Explorer” on page 305.

ePublisher/2008.4/Help/03.Preparing_and_Publishing_Content/02.024.Preparing_Word_Files (last edited 2009-04-28 22:35:00 by TonyMcDow)