LaTex2Web logo

Documents Live, a web authoring and publishing system

If you see this, something is wrong

Table of contents

First published on Saturday, Nov 23, 2024 and last modified on Monday, May 12, 2025

acronym

François Chaplais

1 Definition

The syntax

\acro{⟨acronym⟩}[⟨short name⟩]{⟨full name⟩}

is fully supported.

2 Usage

There are four kinds of usage.

2.1 Short version

This is the most common usage. This is the use case for the command \ac, for instance. This command is implemented in the following way:

The short form is displayed in the text. This short version is clickable.

If you click on the short form, the long form is displayed in a disctinctive manner, next to the short form. Click on the long form, and it disappears.

This is valid thoughout the whole text. This way, the acronym long form is always available, and there is not need to manage the first apppearence of the acronym differently from its later occurences.

For the same reason, no list of acronyms is produced, since the long form is only a click away.

Note: \acs is treated as if it was \ac.

2.2 Long version

This corresponds to the command \acl. The long form is displayed, period.

2.3 Mixed version

This corresponds to the \acf command. The full name is displayed, followed by the short form in brackets.

2.4 Italic version

This corresponds to the \acfi command. This is the same as the mixed version, except that the long form is in italics.

3 Variations

The following variations are ignored, meaning that they are handled as is if there was no variation:

  • first letter uppercase, as in \Ac

  • plurals, as in \acp

  • article prefixing, as in \iac

  • starred forms

There are two reasons for this:

  • this complicates the code

  • they are designed with ASCII characters in mind, while LaTeX2Web is Unicode (i.e. UTF-8) compliant.

4 Ignored commands

4.1 Acronym environment

The acronym environment is ignored, meaning that acronym definitions may be anywhere in the documents.

4.2 Position related commands

Since the the long form of an acronym is only a click away, LaTeX2Web ignore the commands that set or reset the usage flag of the acronym. this includes:

  • \acresetall

  • \acused

The command \acsu is treated as if it was \ac, and \aclu as if it was \acl.

5 The glossaries version

The glossaries package also has a version of the acronym macros. They are reasonably supported.