Versions Compared

Key

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

...

Tip


Excerpt

This page gives examples of how to set up lists in Word so as to obtain optimal JATS XML. In particular, correct application of list labels and use of list levels are discussed.



See also List Styles for more information about the use of individual eXtyles NLM list styles.


Info
The examples highlight various aspects of how to set up lists in Word in order to obtain the optimal XML. The examples are taken from the sample document:

...

Code Block
languagexml
themeRDark
titleJATS XML Example
collapsetrue
<list id="L1" list-type="order">
	<list-item>
		<p>
			Fat new smallness few supposing suspicion two.
		</p>
	</list-item>
	<list-item>
		<p>
			Course sir people worthy horses add entire suffer.
		</p>
	</list-item>
	<list-item>
		<p>
			How one dull get busy dare far.
		</p>
	</list-item>
	<list-item>
		<p>
			At principle perfectly by sweetness do.
		</p>
	</list-item>
</list>


The table below shows the various values of the @list-type attribute that are applied by eXtyles NLM, depending on the labels used in the list in Word.

List labels@list-type
No labels"simple"
Bullets, dashes"bullet"
1, 2, 3"order"
a, b, c"alpha-lower"
A, B, C"alpha-upper"
i, ii, iii"roman-lower"
I, II, III"roman-upper"


Nested Lists

In eXtyles NLM, a group of contiguous list paragraphs will be exported as a single XML list. Nested lists should be styled carefully to ensure that the nesting is reflected in the paragraph styles used. See the following example of a nested list:

...

Note that the level-1 list L1 is not closed when the first of the level-2 list starts, and in the XML, lists L2, L3, and L4 are nested within list L1.

...

List Continued

If shading is used in a table, as in this example:

Image Removed

the shading is represented as shown in the @style attributes in the a single item in the list is made up of more than one paragraph, a List Continued style must be used for the continuation paragraphs; otherwise, the subsequent paragraphs will be exported as separate list items. See the following example:

 Image Added

which yields the following XML:

Code Block
languagexml
themeRDark
titleJATS XML Example
collapsetrue
<table-wrap<list id="t2L6" positionlist-type="floatorder">
<label>Table 2</label>
<caption><title>Betrayed shutters in vicinity it unpacked in</title>
</caption>
<table frame="hsides" rules="groups">
<col width="30.72%"/>
<col width="34.64%"/>
<col width="34.64%"/>
<thead>
<tr>
<th valign="top" align="left" scope="col" style="border-top: solid 0.50pt; border-bottom: solid 0.50pt">r(Y)</th>
<th valign="top" align="center" scope="col" style="border-top: solid 0.50pt; border-bottom: solid 0.50pt">Y2</th>
<th valign="top" align="center" scope="col" style="border-top: solid 0.50pt; border-bottom: solid 0.50pt">Y</th>
</tr>
</thead>
<tbody>
<tr>
<td valign="top" align="left" style="border-top: solid 0.50pt" scope="row">&#x03D5;m (for &#x03B7;high)</td>
<td valign="top" align="char" char="." style="border-top: solid 0.50pt; background-color:rgb(217,217,217)">2.10</td>
<td valign="top" align="char" char="." style="border-top: solid 0.50pt">2.10</td>
</tr>
<tr>
<td valign="top" align="left" style="border-bottom: solid 0.50pt" scope="row">&#x03D5; (for &#x03B7;limit)</td>
<td valign="top" align="char" char="." style="border-bottom: solid 0.50pt">20.5</td>
<td valign="top" align="char" char="." style="border-bottom: solid 0.50pt; background-color:rgb(166,166,166)">21.0</td>
</tr>
</tbody>
</table>
</table-wrap>
	<list-item>
		<p>
			Branched learning so subjects mistress do appetite jennings be in.
		</p>
		<p>
			Esteems up lasting no village morning do offices.
		</p>
		<list id="L7" list-type="alpha-lower">
			<list-item>
				<p>
					Settled wishing ability musical may another set age.
				</p>
				<p>
					Diminution my apartments he attachment is entreaties announcing estimating.
				</p>
			</list-item>
			<list-item>
				<p>
					And total least her two whose great has which.
				</p>
				<p>
					Neat pain form eat sent good week.
				</p>
			</list-item>
		</list>
	</list-item>
	<list-item>
		<p>
			Led instrument sentiments she simplicity.
		</p>
	</list-item>
</list>


Note also that the cell borders are represented in the XML; both the weight and type of border are captured from the Word file.

...