.Modelica.UsersGuide.Conventions.Documentation.Format.Tables

Information

  1. Tables should always be typeset with <table> and </table>, not with <pre> and </pre>.
  2. Tables have to be placed outside of paragraphs to be HTML compliant.
  3. Each table must have a table caption.
  4. 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 align="bottom">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

Caption starts with a capital letter
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 align="bottom"><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

Tab. 2: Caption starts with a capital letter
Head 1 Head 2
Entry 1 Entry 2
Entry 3 Entry 4

Generated at 2024-12-22T19:25:51Z by OpenModelicaOpenModelica 1.24.3 using GenerateDoc.mos