Table#

The table directive with ansys sphinx theme allows for rendering of tables. There are different types of tables, such as the data table, longtable-centered, and table-centered, each serving different purposes.

Normal table#

Truth table for “not”#

A

B

C

False

True
False
False
True

False

True
False
False
True

False


True



False

True
True
False

Data table#

This is an example of a data table that can be rendered using the table directive. It consists of three columns representing the variables A, B, and A and B respectively. Each row represents a different combination of True and False for variables A and B. The datatable class can be used to style the data table.

.. table::
    :class: datatable

    =====  =====  =======
    A      B      A and B
    =====  =====  =======
    False  False  False
    True   False  False
    False  True   False
    True   True   True
    =====  =====  =======

A

B

A and B

False

False

False

True

False

False

False

True

False

True

True

True

Longtable-centered#

The longtable-centered class can be used to create a table that spans multiple pages and is centered horizontally. This is useful for tables that have a large number of rows or columns. Here is an example of a longtable-centered:

.. table::
    :class: longtable-centered

    +---------------------------+-------------------+
    |                           | MAPDL Command     |
    +===========================+===================+
    | **GUI commands**          | * ``*ASK``        |
    |                           |                   |
    | **GUI commands**          | * ``*ASK``        |
    |                           |                   |
    | **GUI commands**          | * ``*ASK``        |
    +---------------------------+-------------------+

MAPDL Command

GUI commands

GUI commands

GUI commands

  • *ASK

  • *ASK

  • *ASK

Table-centered#

The table-centered class can be used to create a table that is horizontally centered. This is useful for tables that have only a few columns. Here is an example of a table-centered:

.. table::
    :class: table-centered

    +---------------------------+-------------------+
    |                           | MAPDL Command     |
    +===========================+===================+
    | **GUI commands**          | * ``*ASK``        |
    +---------------------------+-------------------+
    | **GUI commands**          | * ``*ASK``        |
    +---------------------------+-------------------+
    | **GUI commands**          | * ``*ASK``        |
    +---------------------------+-------------------+

MAPDL Command

GUI commands

  • *ASK

GUI commands

  • *ASK

GUI commands

  • *ASK