Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Poetry may appear in any document type. The verses of the poem should be styled with the appropriate style (e.g. Poetry, Verse, etc.) from your style palette, and the author should be styled with the style used for author names.

At times, poetry may be style as Preformatted Text

Where separate stanzas should be represented in the XML with a <verse-group> element, an empty paragraph styled "Poetry" should be inserted between the lines that begin and end their respective stanzas.

MS Word screenshot in Draft View. Further description in the next paragraphImage Added

As exemplified in the above screenshot, the first three (3) lines of the poem are assigned the Poetry style as is the line break before the second poetry stanza. This format yields the following XML:

Code Block
<verse-group>
<verse-line>An old willow with hollow branches</verse-line>
<verse-line>slowly swayed his few high bright tendrils</verse-line>
<verse-line>and sang:</verse-line>
</verse-group>
<verse-group>
<verse-line>Love is a young green willow</verse-line>
<verse-line>shimmering at the bare wood&rsquo;s edge.</verse-line>
</verse-group>

Live Search
spaceKeyEUDR
additionalpage excerpt
placeholderSearch this space

In this section

Child pages (Children Display)
pageJATS/NLM XML Export

Preformatted Text

Poetry can also be formatted as Preformatted Text. In addition Preformatted is also used for machine-related communication (e.g. computer code and error messages), where whitespace should be preserved.

The following example demonstrates the use of the Preformatted Text style on sample MathML XML from an article draft about math in Word. The multiple lines of example XML are formatted using tabs to establish line hierarchy; all 10 lines are styled as “Preformat”:

MS Word screenshot in Draft View. Further description is in the paragraph above.Image Added

This yields the following XML with the tab character represented by the Unicode “&#x0009”:

Code Block
<preformat>&lt;mml:math&gt;
&#x0009;&lt;mml:mfrac&gt;
&#x0009;&#x0009;&lt;mml:mrow&gt;
&#x0009;&#x0009;&#x0009;&lt;mml:mi&gt;a&lt;/mml:mi&gt;
&#x0009;&#x0009;&#x0009;&lt;mml:mo&gt;+&lt;/mml:mo&gt;
&#x0009;&#x0009;&#x0009;&lt;mml:mi&gt;b&lt;/mml:mi&gt;
&#x0009;&#x0009;&lt;/mml:mrow&gt;
&#x0009;&#x0009;&lt;mml:mi&gt;c&lt;/mml:mi&gt;
&#x0009;&lt;/mml:mfrac&gt;
&lt;/mml:math&gt;</preformat>
Info

For more information, view the eXtyles JATS Style Guide page on Poetry and Preformatted Text Styles.