Table Float
A floating table can be created using the table environment.
- \begin{table}[label='tab1'
- caption='This is the caption of the table.']
- Body of the table.
- \end{table}
\begin{table}[label=name
caption=text
style=cssname -> plain - to omit the label
note=text
width=#
align=left|right} -> Figure #. caption-text
. . .
\begin{caption}
Caption text.
\end{caption}
\end{table}
\begin{caption}
This is the caption of the table.
\end{caption}
The latter is used for more complex text that may contain wiki styles.
- label
-
Defines a reference label or name for the table. The label can be used with the \ref{label} command to create a reference link to the table.
- caption
-
The description or caption of the table. The text of this argument should be simple and not include any other plugin elements. If styling or plugin elements are needed, the caption environment can be used instead.
- style
-
The name of one or more block specific css class names for modifying the default style of the table. There are two styles currently defined, plain is used for omitting the Table label from the caption and flush is used to remove the top margin.
- note
-
Adds text to the image as a HTML comment which can be used to denote a copyright or other relevant information about the table.
- width
-
The horizontal size of the table block. By default, the table is the full width of the parent container.
- align
-
Whether the table box should be aligned left or right on the page. This argument is only useful if the width is also set. By default, the table is the full width of the parent container and thus, can not float left or right.