Library of Formatting Examples:Tables/18A
| << (Tables/17A) | LoFE:Tables | (Poetry) >> |
Correctly-formatted text
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
[blank line] [blank line] <i>CRIME UNDER PROHIBITION IN THIRTY AMERICAN CITIES</i> /* <i>Drunkenness and <i>Arrests Disorderly <i>Population</i> All Causes</i> Conduct</i> <i>1920</i> <i>1920</i> <i>1921</i> <i>1920</i> <i>1921</i> Philadelphia 1,823,779 73,015 83,136 20,443 27,115 Detroit 995,678 43,309 50,676 5,989 6,349 Boston 748,060 58,817 72,161 22,341 31,794 */ |
Multi-line, multi-column markup
This table's headings are in italics, and two of them are multi-line. Those two also span two columns, but each is a single heading that should be formatted as a unit. The explanation given in the previous example applies here: the first line of each multi-line heading should begin with an opening italics tag, and the last line of each multi-line heading should end with a closing italics tag.
Consider the last column: "Drunkenness" should be preceded by an opening italics tag and "Conduct" should be followed by a closing italics tag. There should be no tag after "and" on the first line, no tags at all around "Disorderly", and no tag before "Conduct".
Each date is the heading for just one column, so each one should be enclosed in its own italics tags.
Since the italics tags will become one-character underscores in the plain text version of the e-book, a way to make it easier to obtain proper alignment is to use placeholders such as @ and _ e.g., "@1920_", do the alignments, and then replace the @ with an opening italics tag and the _ with a closing italics tag. You can use whatever placeholder characters you like, and if you use the "Search/Replace" popup in the interface, you can do a global replace when done. Just make sure the placeholders aren't used in the actual text of the same page. The Preview tool may flag some of these tags as errors, but this is how it should be done.
Plain text output
Below is how the markup above will appear in plain text. The headings line up and the multi-line headings of the columns are enclosed in just one set of italics tags. When post-processed for HTML and mobile readers, the table will look very much like this, but the headings will be in actual italics.
1 2 3 4 5 6 7 8 9 10 11 12 |
[blank line] [blank line] _CRIME UNDER PROHIBITION IN THIRTY AMERICAN CITIES_ _Drunkenness and _Arrests Disorderly _Population_ All Causes_ Conduct_ _1920_ _1920_ _1921_ _1920_ _1921_ Philadelphia 1,823,779 73,015 83,136 20,443 27,115 Detroit 995,678 43,309 50,676 5,989 6,349 Boston 748,060 58,817 72,161 22,341 31,794 |
