LaTex2Web logo

LaTeX2Web, a web authoring and publishing system

If you see this, something is wrong

Collapse and expand sections

To get acquainted with the document, the best thing to do is to select the "Collapse all sections" item from the "View" menu. This will leave visible only the titles of the top-level sections.

Clicking on a section title toggles the visibility of the section content. If you have collapsed all of the sections, this will let you discover the document progressively, from the top-level sections to the lower-level ones.

Cross-references and related material

Generally speaking, anything that is blue is clickable.

Clicking on a reference link (like an equation number, for instance) will display the reference as close as possible, without breaking the layout. Clicking on the displayed content or on the reference link hides the content. This is recursive: if the content includes a reference, clicking on it will have the same effect. These "links" are not necessarily numbers, as it is possible in LaTeX2Web to use full text for a reference.

Clicking on a bibliographical reference (i.e., a number within brackets) will display the reference.

Speech bubbles indicate a footnote. Click on the bubble to reveal the footnote (there is no page in a web document, so footnotes are placed inside the text flow). Acronyms work the same way as footnotes, except that you have the acronym instead of the speech bubble.

Discussions

By default, discussions are open in a document. Click on the discussion button below to reveal the discussion thread. However, you must be registered to participate in the discussion.

If a thread has been initialized, you can reply to it. Any modification to any comment, or a reply to it, in the discussion is signified by email to the owner of the document and to the author of the comment.

Publications

The blue button below that says "table of contents" is your tool to navigate in a publication.

The left arrow brings you to the previous document in the publication, and the right one brings you to the next. Both cycle over the publication list.

The middle button that says "table of contents" reveals the publication table of contents. This table is hierarchical structured. It has sections, and sections can be collapsed or expanded. If you are a registered user, you can save the layout of the table of contents.

Table of contents

First published on Saturday, Feb 15, 2025 and last modified on Monday, Feb 24, 2025

I am normally hidden by the status bar

xcolor

François Chaplais

LaTeX2Web supports xcolor only for inline (aka paragraph mode) content.

1 Colors models

LaTeX2Web supports the following color models:

  • rgb

  • cmyk

  • hsb

  • gray

  • HTML

2 Color definition

LaTeX2Web supports the \definecolor command with the syntax

\definecolor{color name}{mode1/mode2/etc...}{value1/value2/etc...}

In case of multiple modes and values, only the first pair is taken into consideration.

3 Pre-defined colors

You can see an illustrative list of pre-defined colors here.

4 Color mixing

LaTeX2Web supports the mixing syntax (as described in the xcolor package documentation)

C0!P1!C1!P2! . . .!Pn!Cn

When the last color is omitted, white is used as a substitute.

5 Commands

In what follows, color is a mix of defined colors as described above.

LaTeX2Web supports the two following syntax usage for the command:

  • \command{parameters} with the content being one of the parameters

  • {\command{parameters}content} which is the scoped syntax

The following commands are supported. For each command we give the syntax for the first variant.

5.1 \color

\color{color}{content}

5.2 \textcolor

\textcolor{color}{content}

5.3 \colorbox

\colorbox{background color}{content}

5.4 \fcolorbox

\fcolorbox{frame color}{background color}{content}

5.5 Direct color definition

LaTeX2web supports the variant syntax for \color, \textcolor and \colorbox which defines the color directly within the command, following this syntax (given for \textcolor):

\textcolor[list of color models]{list of color values}{content}

6 Automatic text color selection

When the background color is modified, LaTeX2Web uses a perceptual algorithm to decide whether the text color should be white or black. For details, see the discussion at Black or white text on a colour background? | mixable Blog.