eXtyles STS has a paragraph style for figure captions: Figure Caption. Further, any images/graphics included in the document should be styled as Figure Graphic. Whenever the XML export encounters a paragraph styled as either Figure Caption (which may or may not start with a figure number, e.g., “Figure 1”) or Figure Graphic, it will automatically insert a <graphic> element in the XML. The file pointer in the graphic element will follow these naming conventions:
For this example, where the style Figure Credit is used for the source line:
Figure 1. Security Software Log Entry Examples
Sources: Information regarding the source of the figure.
the full XML output would be:
<fig id="fig_1" position="anchor" fig-type="figure">
<label>Figure 1</label><caption><title>Security Software Log Entry Examples</title></caption><graphic xlink:href="jms10-Image001"/>
<attrib>Sources: Information regarding the source of the figure.</attrib>
</fig>
Default naming conventions are also in place for plates and schemes; plates will be named, for example, jms10-plt1 and schemes jms10-scm1.
For cases where a figure caption does not have a figure number (e.g., a picture in an introduction), the naming system is slightly modified by eXtyles; for example, instead of “fig_1”, an ID of “fig_a” will be used (e.g., jms10-fig_a, jms10-fig_b, etc.). For example, the following paragraph in Figure Caption style:
If the image is included in the Word document (styled as Figure Graphic), eXtyles will export the image into a subdirectory in your working folder. The image file will be named the same as the xlink in the <graphic> pointer in the XML (e.g., jms10-Image001.jpg). This is to facilitate easy import of the images during layout, a process that most likely will require the image file name to match exactly the pointer in the XML.
Further, the file type extension will be included as a mime-subtype attribute in the <graphic> pointer in the XML. For example,
eXtyles will export the correctly named images and the <graphic> element in the XML will include the file-type attribute only if the images are present in the Word document and are styled correctly as Figure Graphic.
Add Comment