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 Thursday, Aug 14, 2025 and last modified on Wednesday, Aug 27, 2025

I am normally hidden by the status bar

The structure of LaTeX commands

François Chaplais

1 Text and commands

Plain text in LaTeX is just plain text as you can use every where. However, if you want to go beyong that, you will have to use LaTeX commands. LateX Commands are distinguished from ordinary text by the fact that they begin with a backslash \ character.

2 The structure of LaTeX commands

Beyond this, you will have to use LaTeX commands. A LaTex command is built with the following contiguous components:

  • the command name: the command name is characterized by the fact that it begins with a backslash character. So you will use this character often in a LaTeX document.
  • mandatory parameter(s): each parameter is enclosed in curly braces: {mandatory parameter}
  • optional parameter(s): each optional parameter is enclosed in brackets: [optional parameter]. Since these parameters are optional, they can be omitted in the command.

As a summary, here is pseudo-code that represents a valid LaTeX command structure:

\name[optional]{mandatory}

3 The structure of LaTeX environments

Environments are delimited by an opening statement and a closing statement. The structure is the following.

\begin{environment name}
content ....
\end{environment name}

For instance, to create a quote, the following construction is used.

\begin{quote}
The quote itself.
\end{quote}

The result is

The quote itself.

4 Summary

Summary 1

LaTeX commands are single words that begin with a backslash \ character. Simple commands are applied directely to the command parameters. The \begin and \end commands delimit a LaTeX environment, which may include a mix of ordinary text and LaTeX commands.