Change the default alignment for all images

Determine how all images are aligned (left, right, or center) by default.

By default, the org.dita.pdf2 plugin aligns block images (that is, images with placement="break") with the left margin of the preceding text, like this:

Figure 39. Left-aligned images

You can set the align attribute to right or center on a per-image basis. But what if you want all your block images to be aligned the same way? You don’t want to have to set align for every single image. Instead, you can change the default alignment.

  1. Copy the template that includes the following from DITA-OT/plugins/org.dita.pdf2/xsl/fo/ ...