\class

Command in package base.

Synopsis

\class{CLASS}

Description

The \class command is allowed in the optional argument of tables
and a couple of other environments. It assigns a style class to the
environment. In the (X)HTML page created from the document, CLASS
becomes the CSS class of the (X)HTML element corresponding to the
environment. Note that the \class command only has an effect if the
style sheets associated with the (X)HTML page contain definitions for
the class.

Example

Default table:

\begin{table}
\head
   Name & Value & Description
\body
    A   &  12   & Something \\
    B   &  25   & Something else \\
    C   &   0   & Nothing
\foot
    Sum &  37   & Total value
\end{table}

Table with style class "fancy":

\begin{table}[\class{fancy}]
\head
   Name & Value & Description
\body
    A   &  12   & Something \\
    B   &  25   & Something else \\
    C   &   0   & Nothing
\foot
    Sum &  37   & Total value
\end{table}

Result, as rendered by your browser

Default table:

Name Value Description
Sum 37 Total value
A 12 Something
B 25 Something else
C 0 Nothing

Table with style class "fancy":

Name Value Description
Sum 37 Total value
A 12 Something
B 25 Something else
C 0 Nothing


This page is generated automatically and each change here will be replaced on a next update.

Add picture from clipboard (Maximum size: 500 MB)