Tables

class Tables "Tables"
    extends Modelica.Icons.Information;

    annotation (Documentation(info = "<html>\n<ol>\n<li> Tables should always be typeset with <code>&lt;table&gt;</code> and <code>&lt;/table&gt;</code>,\n     not with <code>&lt;pre&gt;</code> and <code>&lt;/pre&gt;</code>.</li>\n<li> Tables have to be placed <strong>outside</strong> of paragraphs to be HTML compliant.</li>\n<li> Each table must have a table caption.</li>\n<li> Table headers and entries start with capital letters.</li>\n</ol>\n\n<h5>Example 1</h5>\n\n<p>This is a simple example of a table.</p>\n\n<pre>\n&lt;table border=\"1\" cellspacing=\"0\" cellpadding=\"2\"&gt;\n  &lt;caption align=\"bottom\"&gt;Caption starts with a capital letter&lt;/caption&gt;\n  &lt;tr&gt;\n    &lt;th&gt;Head 1&lt;/th&gt;\n    &lt;th&gt;Head 2&lt;/th&gt;\n  &lt;/tr&gt;\n  &lt;tr&gt;\n    &lt;td&gt;Entry 1&lt;/td&gt;\n    &lt;td&gt;Entry 2&lt;/td&gt;\n  &lt;/tr&gt;\n  &lt;tr&gt;\n    &lt;td&gt;Entry 3&lt;/td&gt;\n    &lt;td&gt;Entry 4&lt;/td&gt;\n  &lt;/tr&gt;\n&lt;/table&gt;\n</pre>\n<p>appears as</p>\n<table border=\"1\" cellspacing=\"0\" cellpadding=\"2\">\n  <caption align=\"bottom\">Caption starts with a capital letter</caption>\n  <tr>\n    <th><strong>Head 1</strong></th>\n    <th><strong>Head 2</strong></th>\n  </tr>\n  <tr>\n    <td>Entry 1</td>\n    <td>Entry 2</td>\n  </tr>\n  <tr>\n    <td>Entry 3</td>\n    <td>Entry 4</td>\n  </tr>\n</table>\n\n<h5>Example 2</h5>\n\n<p>In this case of table captions, the table name (Tab.) including the table enumeration (1,2,...)\nhas to be displayed bold using <code>&lt;strong&gt;</code> and <code>&lt;/strong&gt;</code>. The table name\nand enumeration should look like this: <strong>Tab. 1:</strong> Tables have to be enumerated manually.</p>\n\n<pre>\n&lt;table border=\"1\" cellspacing=\"0\" cellpadding=\"2\"&gt;\n  &lt;caption align=\"bottom\"&gt;&lt;strong&gt;Tab 2: &lt;/strong&gt;Caption starts with a capital letter&lt;/caption&gt;\n  &lt;tr&gt;\n    &lt;th&gt;Head 1&lt;/th&gt;\n    &lt;th&gt;Head 2&lt;/th&gt;\n  &lt;/tr&gt;\n  &lt;tr&gt;\n    &lt;td&gt;Entry 1&lt;/td&gt;\n    &lt;td&gt;Entry 2&lt;/td&gt;\n  &lt;/tr&gt;\n  &lt;tr&gt;\n    &lt;td&gt;Entry 3&lt;/td&gt;\n    &lt;td&gt;Entry 4&lt;/td&gt;\n  &lt;/tr&gt;\n&lt;/table&gt;\n</pre>\n<p>appears as</p>\n<table border=\"1\" cellspacing=\"0\" cellpadding=\"2\">\n  <caption align=\"bottom\"><strong>Tab. 2: </strong>Caption starts with a capital letter</caption>\n  <tr>\n    <th>Head 1</th>\n    <th>Head 2</th>\n  </tr>\n  <tr>\n    <td>Entry 1</td>\n    <td>Entry 2</td>\n  </tr>\n  <tr>\n    <td>Entry 3</td>\n    <td>Entry 4</td>\n  </tr>\n</table>\n\n</html>"));
end Tables;