Previous Next Contents

B.6  Displayed Paragraphs

Displayed-paragraph environments translate to block-level elements.

B.6.1  Quotation and Verse

The quote and quotation are the same thing: they translate to <BLOCKQUOTE> elements. The verse environment is not supported.

B.6.2  List-Making environments

The itemize, enumerate and description environments translate to the <UL>, <OL>, and <DL> elements. There is no control over the default item labels in an itemize or on numbering in a enumerate environment. The \labelitemi... commands and enumi... counters are not defined.

B.6.3  The list and trivlist environments

The list environment translates to the <DD COMPACT=compact> element. Arguments to \begin{list} are handled as follows:

  \begin{list}{default_label}{decls}

The first argument default_label is the label generated by an \item command with no argument. The second argument, decls is a sequence of declarations. In practice, the following declarations are useful:
\usecounter{counter}
The counter counter is incremented by \refstepcounter before every \item command with no argument.
\renewcommand{\makelabel}[1]{...}
The command \item executes \makelabel{label}, where label is the item label, to print its label. Thus, users can change label formatting by redefining \makelabel. The default defining of \makelabel simply processes label.
As an example, lists with user-defined counter can be defined as follows:
\newcounter{coucou}
\begin{list}{\thecoucou}{%
\usecounter{coucou}%
\renewcommand{\makelabel}[1]{\textbf{#1}.}}
...
\end{list}
This yields:
1.
First item.
2.
Second item.
The trivlist environment is also supported. It translates to a <DL> element.

B.6.4  Verbatim

The verbatim and verbatim* environments translate to the <PRE> element. There is no difference between verbatim and verbatim*.

Similarly, \verb and \verb* are the same and they translate to the <CODE> text element.

The alltt environment is supported, but no extensive testing of it has yet been performed. Surprises are likely.


Previous Next Contents