classTables
Tables
Extends from Modelica.Icons.Information (Icon for general information packages).
Information
- Tables should always be typeset with
<table>and</table>, not with<pre>and</pre>. - Tables have to be placed outside of paragraphs to be HTML compliant.
- Each table must have a table caption.
- Table headers and entries start with capital letters.
Examples
Example 1
This is a simple example of a table.
<table border="1" cellspacing="0" cellpadding="2">
<caption>Caption starts with a capital letter</caption>
<tr>
<th>Head 1</th>
<th>Head 2</th>
</tr>
<tr>
<td>Entry 1</td>
<td>Entry 2</td>
</tr>
<tr>
<td>Entry 3</td>
<td>Entry 4</td>
</tr>
</table>
appears as
| Head 1 | Head 2 |
|---|---|
| Entry 1 | Entry 2 |
| Entry 3 | Entry 4 |
Example 2
In this case of table captions, the table name (Tab.) including the table enumeration (1,2,...)
has to be displayed bold using <strong> and </strong>. The table name
and enumeration should look like this: Tab. 1: Tables have to be enumerated manually.
<table border="1" cellspacing="0" cellpadding="2">
<caption><strong>Tab 2:</strong> Caption starts with a capital letter</caption>
<tr>
<th>Head 1</th>
<th>Head 2</th>
</tr>
<tr>
<td>Entry 1</td>
<td>Entry 2</td>
</tr>
<tr>
<td>Entry 3</td>
<td>Entry 4</td>
</tr>
</table>
appears as
| Head 1 | Head 2 |
|---|---|
| Entry 1 | Entry 2 |
| Entry 3 | Entry 4 |