Assigning Graphic Styles
By default, each image generated by ePublisher is associated with one of several possible graphic styles that all begin with Default. This means that typically you do not need to specify a graphic style for images when you generate output.
For example, you may want to create a special style called “thumbnail” for handling very large images. In this example, each graphic that you assign the “thumbnail” style would have those defined properties. All other graphics would use one of the Default graphic styles.
To use a custom graphic style for images in your DITA source documents:
1. In your DITA source document, locate the image/s that will be assigned the custom graphic style.
Example: <image href="myimage.png" />
2. Within this image element, insert the outputclass attribute to assign the custom graphic style to the image. Assign the outputclass value as the name of the custom graphic style.
Example:
<image href="myimage.png" outputclass="CustomGraphicStyle" />
3. Define the graphic style in ePublisher Designer.
Was this helpful?
Last modified date: 02/10/2023