LaTex2Web logo

Documents Live, a web authoring and publishing system

If you see this, something is wrong

Table of contents

First published on Monday, Oct 28, 2024 and last modified on Friday, Jan 31, 2025

C.6 Displayed Paragraphs

François Chaplais

1 Displayed Paragraphs

1.1 Quotation and Verse

quote, quotation and verse are implemented but not differenciated.

1.2 List-Making Environments

The itemize evironment is treated as an HTML unordered list, while the enumerate environment corresponds to an HTML ordered list. In all cases, the form \item[label] overrides the currently used marker to replace it with the label text with a bold weight. As a consequence, the descriptionenvironment is treated like a simple unordered list with label markers.

The label parameter for the \item comment can be an emoji or a Font Awesome icon. As an example, to use the checkmark Font Awesome icon, use

\item[fa-check-square] Example with a font awesome icon

which produces

  • Example with a font awesome icon

Behind the scene, LaTeX2Web replaces fa-check-square by the Font Awesome code

<i class="fa-regular fa-square-check"></i>

which means that it is always the regular variant which is used. There is a list of FA icons for version 4 at https://fontawesome.com/v4/icons/; or, for the latest version, https://fontawesome.com/. Remember to always use the second part of the FA code.

All environments are left justified and aligned at the marker’s beginning.

Recursivity in these environments is supported.

1.3 The list and trivlist Environments

The list environment is implemented. The decls formatting parameter is ignored.

The trivlist environment is ignored.

1.4 Verbatim

verbatim is supported. Syntax coloring remains to be done. The starred form of verbatim is ignored. Syntax coloring is enabled through the highlight.js library. In LaTeX2Web, you can specify the language used for syntax highlighting though an optional parameter. For instance

\begin{verbatim}[latex] specifies that the language used is LaTeX.

The command \verb is implemented. The starred form is ignored.

The alltt evironment is not implemented and should be replaced by verbatim. Legibility of code should be obtained by syntax coloring instead of text styling.