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 Thursday, Feb 27, 2025 by François Chaplais.

C.5 Classes, Packages and Page Styles

François Chaplais

1 Document Class

Most, if not all classes and class options are ignored since they are either irrelevant in a web page, or too specific to a certain journal.

While sectioning commands are preserved in the internal model of the LaTeX source, the visual appearance of these section headings in set in order to have the highest section level in the hierarchy to correspond to the highest level of HTML headings. This ensures a consistent look.

1.1 Partially supported classes

1.1.1 AASTeX

The \fig command, which is equivalent to its \subfigure counterpart, is implemented. The list of journal abbreviations used in AASteX bibliographies is supported.

1.1.2 Elsevier (elsarticle)

The following theorem shortcuts are supported: thm, lem, rmk, pf, defn, assum, rem and prop; the ack environment is supported.

2 Packages

LaTeX2Web does not implement packages per se. Instead, it implements some commands that can be found is some packages. Here is a quick list

  • The subfigure environment is supported; the \subfloat command is converted into an equivalent subfigure.

  • The AmsMath is implemented mainly by Mathjax when it is used inside math. The cases environment is implemented, as well as subequations. The eqref command is also applemented.

  • The \bm command is replaced by \boldsymbol.

  • Most of the htperref package is supported.

  • The \includegraphics command is supported

  • Most of the xcolor is supported.

  • We have a reasonable implementation of the algorithmicx package.

2.1 Page Styles

The pages styles are irrelevant, since the concept of a page is absent from modern web design.

As a consequence, there is no page numbering of any kind. Also, using two columns makes no sense since there is no page height to limit the flow of text.

3 The Title Page and Abstract

Because frontmatter is handled is so many ways in LaTeX, we have abandone the idea of implementing all of these, mostly because most of then do not make sense on the web.

In LaTeX2Web, you give your frontmatter info directly to the software, which displays it in a standard manner. Note that you can use bibTex entries for this, provided you give the author's affiliations afterwards.

The abstract itself is detected in the document and is presented at the top of the document.