Article object
Tables
Element or context:
<table>
NOTE:
The following are basic table markup requirements. Please see specific requirements for the following:
- Table notes and footnotes
- Table cell alignment
- Tables with paragraph text in cells
- Tables as a single image in the body
- Tables with boxes around cells or rows
- Table shading
Requirements:
- Contain the entire table (including the label, caption, and <table>) within a <table-wrap> element and set attribute 'position' to "anchor" if the table width is equal to the column width of the PDF or "margin"if the table is wider than the column width of the PDF
- Give <table-wrap> a unique id of the form "tab{some number}"; if the table is a table part within a group of tables (see the example), then use a lowercase letter corresponding to the table lable in the id (see the example); if the table is part of an appendix, then start the ID with "a"
- Put the label for the table (e.g., "Table 1") within a <label> element inside <table-wrap>; if the table is a table part, use an uppercase letter after the number, indicating the part (e.g, Table 1A); use a period after the number or number and letter; if the table is in an appendix, then start the label with "A" (eg., Table A1)
- Put the caption for the table within <p> inside <caption>
- Put the actual table iteself within <table>
- Subheadings: Subheadings are headings that span the entire width of a table, and may be located at any row. These should be set in a single <th> with an appropriate value for attribute colspan (typically this would be the number of columns in the entire table; see the example)
- Put all table notes and footnotes within a <table-wrap-foot> element, with notes appearing before the footnotes in the XML (see the example)
- Notes to the table should go in a <p> element with attribute 'content-type' set to "table-note"; see Table: Notes and footnotes
- Footnotes on any part of the table (title or table body itself) should go directly in the <table-wrap-foot> element, and not in a <fn-group> element; see Table: Notes and footnotes
- If there is a group of tables (example: Table 1A and Table 1B), group the two <table-wrap> elements within a containing <table-wrap-group> (see the example)
Example:
<table-wrap-group> <table-wrap id="tab2a" position="anchor"> <label>Table 2A.</label> <caption><p>Difference between upper-bound solutions and fitted curve.</p> </caption> <table frame="hsides"> <thead> <tr> <th>Type of fault</th> <th>Fault time (s)</th> </tr> </thead> <tbody> <tr> <td>SLG fault (generation end)</td> <td>1.60–1.68</td> </tr> <tr> <td>DC-link (HVDC transmission) fault</td> <td>5.44–5.52</td> </tr> <tr><th colspan="2">This is a subheadnig within this table, which applies to all data benath it</ht> </tr> <tr> <td>SLG fault (load end)</td> <td>6.72–6.80</td> </tr> </tbody> </table> <table-wrap-foot> <p content-type="table-note"><bold>Note:</bold> <italic>R</italic><sup>2</sup>, coefficient of determination.</p> <fn id="tab2afn1" fn-type="table-fn"><label><italic><sup>a</sup></italic></label> <p>AMGT from average of the manual measurements.</p></fn> <fn id="tab2afn2" fn-type="table-fn"><label><italic><sup>b</sup></italic></label> <p>AMGT estimated using method outlined in text.</p></fn> </table-wrap-foot> </table-wrap> <table-wrap id="tab2b" position="anchor"> <label>Table 2B.</label> <caption><p>Difference between upper-bound solutions and fitted curve.</p> </caption> <table frame="hsides"> <colgroup> <col align="left"></col> <col align="center"></col> </colgroup> <thead> <tr> <th>Type of fault</th> <th>Fault time (s)</th> </tr> </thead> <tbody> <tr> <td>SLG fault (generation end)</td> <td>1.60–1.68</td> </tr> <tr> <td>DC-link (HVDC transmission) fault</td> <td>5.44–5.52</td> </tr> <tr> <td>SLG fault (load end)</td> <td>6.72–6.80</td> </tr> </tbody> </table> </table-wrap> </table-wrap-group>