Abstract
The glossaries-extra package is an extension to the glossaries package, providing additional features. In particular, it provides a completely different abbreviation mechanism. You will need at least glossaries version 4.19, but it is best to update both packages at the same time, if new releases are available for both of them.

⚠
The glossaries-extra package uses a different set of defaults to the base glossaries package. This means that if you simply replace glossaries with glossaries-extra in an existing document, there may be some differences in the PDF, and you may encounter errors. See §1.1 for more details.

🛈
This document assumes some familiarity with the glossaries package. If you are new to glossaries, you may prefer to start with the following:

- •The glossaries package: a guide for beginners

      〉_texdoc glossariesbegin

- •glossaries-extra and bib2gls: an introductory guide

      〉_texdoc bib2gls-begin

[top]

# List of Examples
[link]

[top]
I. User Guide
[link]

[top]

# 1. Introduction
[link]

The glossaries package is a flexible package, but it’s also a heavy-weight package that uses a lot of resources. As package developer, I’m caught between those users who complain about the drawbacks of a heavy-weight package with a large user manual and those users who want more features (which necessarily adds to the package weight and manual size).

The glossaries-extra package is an attempt to provide a compromise for this conflict. Version 4.22 of the glossaries package is the last version to incorporate any major new features. Future versions of glossaries will mostly just be bug fixes. New features will instead be added to glossaries-extra. This means that the base glossaries package won’t increase in terms of package loading time and allocation of resources, but those users who do want extra features available will have more of a chance of getting their feature requests accepted.

ℹ
Some of the commands provided by the base glossaries package are incompatible with glossaries-extra. These are marked with 🛇 in this document.

The glossaries-extra package internally loads the glossaries package. As a general rule, it’s better to defer loading the base glossaries package to glossaries-extra rather than loading the two packages separately.

[top]

## 1.1. Package Defaults
[link]

I’m not happy with some of the default settings assumed by the glossaries package, and, judging from code I’ve seen, other users also seem unhappy with them, as certain package options are often used in questions posted on various sites. I can’t change the default behaviour of glossaries as it would break backward compatibility, but since glossaries-extra is a separate package, I have decided to implement some of these commonly-used options by default. You can switch them back if they’re not appropriate.

The new defaults are:

- •toc=true (add the glossaries to the table of contents). Use toc=false to switch this back off.

- •nopostdot=true (suppress the terminating full stop after the description in the glossary). Use nopostdot=false or just postdot to restore the terminating full stop. Alternatively, if you are interested in switching to bib2gls, you can instruct bib2gls to insert it with the post-description-dot option.

- •noredefwarn (suppress the warnings that occur when the theglossary environment and `\printglossary` are redefined while glossaries is loading). Note that this won’t have any effect if the glossaries package has already been loaded before you load the glossaries-extra package.

- •If babel has been loaded, the translate=babel option is switched on. To revert to using the translator interface, use translate=true. There is no change to the default if babel hasn’t been loaded.

- •The default style used by `\newacronym` is short-nolong. (That is, the long form is not shown on first use.) To revert back to “〈long〉 (〈short〉)” on first use do:

      🖹\setabbreviationstyle[acronym]{long-short}

  In the above example, long-short refers to the glossaries-extra abbreviation style not the glossaries acronym style of the same name. See §4 for further details.

[top]

## 1.2. Example Differences Between glossaries and glossaries-extra
[link]

The examples below illustrate the difference in explicit package options between glossaries and glossaries-extra. There may be other differences resulting from modifications to commands provided by glossaries.

[top]

### 1.2.1. Basic defaults
[link]

    🖹\documentclass{article}
    \usepackage{glossaries-extra}

This is like:

    🖹\documentclass{article}
    \usepackage[toc,nopostdot]{glossaries}
    \usepackage{glossaries-extra}

[top]

### 1.2.2. Language defaults
[link]

    🖹\documentclass[british]{article}
    \usepackage{babel}
    \usepackage{glossaries-extra}

This is like:

    🖹\documentclass[british]{article}
    \usepackage{babel}
    \usepackage[toc,nopostdot,translate=babel]{glossaries}
    \usepackage{glossaries-extra}

[top]

### 1.2.3. Combined with memoir
[link]

    🖹\documentclass{memoir}
    \usepackage{glossaries-extra}

This is like:

    🖹\documentclass{memoir}
    \usepackage[toc,nopostdot,noredefwarn]{glossaries}
    \usepackage{glossaries-extra}

However

    🖹\documentclass{memoir}
    \usepackage{glossaries}
    \usepackage{glossaries-extra}

This is like:

    🖹\documentclass{memoir}
    \usepackage[toc=false,nopostdot=false]{glossaries}
    \usepackage{glossaries-extra}

Since by the time glossaries-extra has been loaded, the base glossaries package has already redefined memoir’s glossary-related commands.

[top]

### 1.2.4. Abbreviations
[link]

Abbreviations are defined with `\newabbreviation`:

    🖹\usepackage{glossaries-extra}
    \newabbreviation{svm}{SVM}{support vector machine}
    \begin{document}
    First use: \gls{svm}. Explicit full form: \glsxtrfull{svm}.
    \end{document}

This is the closest match to:

    🖹\usepackage{glossaries}
    \newacronym{svm}{SVM}{support vector machine}
    \begin{document}
    First use: \gls{svm}. Explicit full form: \acrfull{svm}.
    \end{document}

If you want to continue using `\newacronym` then you will need to change the style for the acronym category:

    🖹\usepackage{glossaries-extra}
    \setabbreviationstyle[acronym]{long-short}
    \newacronym{svm}{SVM}{support vector machine}
    \begin{document}
    First use: \gls{svm}. Explicit full form: \glsxtrfull{svm}.
    \end{document}

ℹ
Don’t use commands like `\glsfirst` or `\glstext` with abbreviations. See §4 for further details.

[top]

### 1.2.5. Glossary Mid-Build Placeholder (`\printglossary`)
[link]

Another noticeable change with glossaries-extra is that by default `\printglossary` will now display information text in the document if the external glossary file doesn’t exist. This is explanatory text to help new users who can’t work out what to do next to complete the document build. Once the document is set up correctly and the external files have been generated, this text will disappear.

This change is mostly likely to be noticed by users with one or more redundant empty glossaries who ignore transcript messages, explicitly use makeindex/xindy on just the non-empty glossary (or glossaries) and use the iterative `\printglossaries` command instead of `\printglossary`. For example, consider the following:

    🖹\documentclass{article}
    \usepackage[acronym]{glossaries}
    \makeglossaries
    \newacronym{laser}{laser}{light amplification by stimulated
    emission of radiation}
    \begin{document}
    \gls{laser}
    \printglossaries
    \end{document}

The above document will only display the list of acronyms at the place where `\printglossaries` occurs. However it will also attempt to input the gls file associated with the `main` glossary.

If you use makeglossaries, you’ll get the warning message:

    🔎Warning: File 'test.glo' is empty.
    Have you used any entries defined in glossary 'main'?
    Remember to use package option 'nomain' if you
    don't want to use the main glossary.

(where the original file is called test.tex) but if you simply call makeindex directly to generate the acr file (without attempting to create the gls file) then the transcript file will always contain the message:

    🔎No file test.gls.

This doesn’t occur with makeglossaries as it will create the gls file containing the single command `\null`.

If you simply change from glossaries to glossaries-extra in this document, you’ll find a change in the resulting PDF if you don’t use makeglossaries and you only generate the acr file with makeindex.

The transcript file will still contain the message about the missing gls, but now you’ll also see information in the actual PDF document. The simplest remedy is to follow the advice inserted into the document at that point, which is to add the nomain package option:

    🖹\documentclass{article}
    \usepackage[nomain,acronym,postdot]{glossaries-extra}
    \makeglossaries
    \setabbreviationstyle[acronym]{long-short}
    \newacronym{laser}{laser}{light amplification by stimulated
    emission of radiation}
    \begin{document}
    \gls{laser}
    \printglossaries
    \end{document}

🛈
Note the need to set the acronym style using `\setabbreviationstyle` before `\newacronym`. See §4 for further details.

[top]

## 1.3. Further Reading
[link]

The following documents and web pages are also available:

- •The glossaries-extra documented code

      〉_texdoc glossaries-extra-code

- •Gallery: glossaries, glossaries-extra and bib2gls.

- •FAQs: glossaries, glossaries-extra and bib2gls.

- •Incorporating makeglossaries or makeglossaries-lite or bib2gls into the document build.

- •The bib2gls application.

- •The glossaries package.

[top]

# 2. Package Options
[link]

📌
``\usepackage`[〈options〉]{glossaries-extra}`
This chapter describes the package options provided by glossaries-extra that are either not defined by the base glossaries package or are modified by glossaries-extra. You can additionally pass the base package options to glossaries-extra. For example, instead of:

    🖹\usepackage[nonumberlist]{glossaries}
    \usepackage[abbreviations]{glossaries-extra}

you can simply do:

    🖹\usepackage[abbreviations,nonumberlist]{glossaries-extra}

🛈
It’s better not to load the glossaries package first. Leave glossaries-extra to load it, where possible, to allow for a smoother integration between the two packages.

After glossaries-extra has been loaded, some of the glossaries-extra package options may be changed with:

📌
``\glossariesextrasetup`{〈options〉}`
where 〈options〉 are the same as the relevant package option.

ℹ
Certain options can only be supplied as package options since the settings need to be known while glossaries-extra is loading.

To change the base glossaries package’s options (that may be changed after the package has loaded), continue to use:

📌
``\setupglossaries`{〈options〉}`
but don’t use any of the options listed here in that command.

[top]

## 2.1. Glossary Lists
[link]

🔘︎
`nomissingglstext=〈boolean〉`default: true; initial: false
If true, this will suppress the warning written to the transcript and the warning text that will appear in the document if the external glossary files haven’t been generated due to an incomplete document build. However, it’s probably simpler just to fix whatever has caused the failure to build the external file or files.

𝍢
`abbreviations`
This option has no value and can’t be cancelled. If used, it will automatically create a new glossary with the label `abbreviations` and redefines `\glsxtrabbrvtype` to this label. (The file extensions are glg-abr, gls-abr and glo-abr.) In addition, this option defines a shortcut command:
📌
``\printabbreviations`[〈options〉]`

which is equivalent to:

    🖹\printglossary[type=\glsxtrabbrvtype,〈options〉]

If glossaries-extra-bib2gls is also loaded then this option will additionally provide `\printunsrtabbreviations` which uses `\printunsrtglossary` instead.

The title of the new glossary is given by

📌
``\abbreviationsname``initial: Abbreviations

If this command is already defined, it’s left unchanged. Otherwise it’s defined to “Abbreviations” if babel hasn’t been loaded or `\acronymname` if babel has been loaded. However, if you’re using babel it’s likely you will need to change this. (See §15 for further details.)

🛈
If you don’t use the abbreviations package option, the `\abbreviationsname` command won’t be defined (unless it’s defined by an included language file).

If the abbreviations option is used and the acronym option provided by the glossaries package hasn’t been used, then `\acronymtype` will be set to `\glsxtrabbrvtype` so that acronyms defined with `\newacronym` can be added to the list of abbreviations. If you want acronyms in the `main` glossary and other abbreviations in the `abbreviations` glossary then you will need to redefine `\acronymtype` to `main`:

    🖹\renewcommand*{\acronymtype}{main}

Note that there are no analogous options to the glossaries package’s acronymlists option (or associated commands) as the abbreviation mechanism is handled differently with glossaries-extra.

𝍢
`symbols`
This is passed to the base glossaries package, but glossaries-extra will additionally define:
📌
``\glsxtrnewsymbol`[〈key=value list〉]{〈entry-label〉}{〈sym〉}`

which is equivalent to:

    🖹\newglossaryentry{〈entry-label〉}{name={〈symbol〉},
     sort={〈entry-label〉},type={symbols},category={symbol},
    〈options〉}

Note that the sort key is set to the 〈entry-label〉 not the 〈symbol〉 as the symbol will likely contain commands. If this isn’t appropriate, you can override it by using the sort key in the optional argument.

This option also sets the regular attribute to `true` for the symbol category and provides the category post-description hook:

📌
``\glsxtrpostdescsymbol``initial: empty

If glossaries-extra-bib2gls is also loaded then this option will additionally provide `\printunsrtsymbols` which uses `\printunsrtglossary`.

𝍢
`numbers`
This is passed to the base glossaries package but glossaries-extra will additionally define:
📌
``\glsxtrnewnumber`[〈key=value list〉]{〈entry-label〉}{〈num〉}`

which is equivalent to:

    🖹\newglossaryentry{〈entry-label〉}{name={〈number〉},
     sort={〈entry-label〉},type={numbers},category={number},
    〈options〉}

Note that the sort key is set to the 〈entry-label〉. If this isn’t appropriate, you can override it by using the sort key in the optional argument.

This option also sets the regular attribute to `true` for the number category and provides the category post-description hook:

📌
``\glsxtrpostdescnumber``initial: empty

If glossaries-extra-bib2gls is also loaded then this option will additionally provide `\printunsrtnumbers` which uses `\printunsrtglossary`.

𝍢
`acronyms`
This is passed to the base glossaries package (which defines `\printacronyms` and creates a new glossary with the label `acronym`) but if glossaries-extra-bib2gls is loaded then this option will additionally provide `\printunsrtacronyms` which uses `\printunsrtglossary`.

As with the base glossaries package, this option redefines `\acronymtype` to `acronym`. Note that this option doesn’t change `\glsxtrabbrvtype`.

🔘︎
`acronym=〈boolean〉`default: true; initial: false
If acronym=true, this behaves like acronyms. Note that acronym=false won’t work if the base glossaries package was loaded before glossaries-extra.

𝍢
`index`
This is passed to the base glossaries package but if glossaries-extra-bib2gls is loaded then this option will additionally provide `\printunsrtindex` which uses `\printunsrtglossary`.

The base package index option also defines:

📌
``\newterm`[〈key=value list〉]{〈entry-label〉}`

This definition is modified by glossaries-extra to additionally set the category to index and sets the description to discard the post-description hook (`\nopostdesc`) but retain `\glsxtrpostdescription` so that the category post-description hook can still be applied.

This option also sets the regular attribute to `true` for the index category and defines an associated category post-description hook:

📌
``\glsxtrpostdescindex``initial: empty

[top]

## 2.2. Glossary Style Options
[link]

🔘
`nopostdot=〈boolean〉`default: true; initial: true
This option is provided by glossaries where it simply alters a corresponding conditional that’s used inside `\glspostdescription` to determine whether or not to insert a full stop.

The postpunc option (see below) redefines `\glspostdescription`, so the nopostdot option is modified by glossaries-extra to reset the hook back to its original definition to counteract any use of the postpunc option.

ℹ
This option will have no effect if the glossary style doesn’t include `\glspostdescription`. (Use stylemods to ensure that all the predefined styles that show the description have this hook added.)

If you are using bib2gls, you may prefer to use the post-description-dot resource option.

𝍢
`postdot`
This is a shortcut for nopostdot=false.

🎚
`postpunc=〈value〉`
This option redefines `\glspostdescription` to display the required punctuation. Note that this means the hook will no longer check for the nopostdot conditional.

ℹ
This option will have no effect if the glossary style doesn’t include `\glspostdescription`. (Use stylemods to ensure that all the predefined styles that show the description have this hook added.)

The postpunc value may either be the required punctuation or one of the following keywords:

🔖
postpunc=`dot`
This redefines `\glspostdescription` to use a full stop but also adjusts the space factor. This isn’t exactly the same as nopostdot=false since it removes the conditional from `\glspostdescription`. If you are using bib2gls, you may prefer to use the post-description-dot resource option.

🔖
postpunc=`comma`
This redefines `\glspostdescription` to a comma.

🔖
postpunc=`none`
This redefines `\glspostdescription` to do nothing. This isn’t exactly the same as nopostdot=true since it removes the conditional from `\glspostdescription`.

🎚
`stylemods=〈value〉`default: default
Loads the glossaries-extra-stylemods package (see §8.6.5), which patches the styles provided with the base glossaries package so that they all use `\glspostdescription`. Extra hooks are also provided to make them easier to customize. The value may be one of the following:

🔖
stylemods=`all`
Loads all styles that are provided by both glossaries and glossaries-extra.

🔖
stylemods=`default`
Patches all the predefined styles that have been loaded, without loading any extra styles. This will typically be all the styles that are usually loaded by glossaries (for example, list and long). Package options such as nolist will alter which styles are loaded. In the case of nostyles, no styles will be loaded, so none of them will be patched.

🛈
It’s pointless using both stylemods=default and nostyles. Any glossary style packages that are subsequently loaded won’t be patched.

🔖
stylemods=`〈list〉`
For each element 〈tag〉 in 〈list〉, the corresponding package glossary-〈tag〉 will be loaded. You can use this in combination with nostyles to only load the particular style package or packages that you require (without loading the full set of defaults). For example,

    🖹\usepackage[nostyles,stylemods={bookindex,longextra},
     style=bookindex]{glossaries-extra}

This prevents the base glossaries package from loading the default set of styles, but loads glossaries-extra-stylemods, glossary-bookindex and glossary-longextra, and then sets the default style to bookindex.

[top]

## 2.3. Loading Other Packages
[link]

Some options listed in other sections, such as the stylemods and record options, also load supplementary packages.

𝍢
`prefix`
Loads the glossaries-prefix package (if not already loaded).

𝍢
`accsupp`
Loads the glossaries-accsupp package (if not already loaded). This option can only be used as a package option (not in `\glossariesextrasetup`) as glossaries-extra needs to know whether or not to provide accessibility support while it’s loading.

ℹ
The glossaries-accsupp package is still experimental and so accessibility features are liable to change.

If you want to define styles that can interface with the accessibility support provided by glossaries-accsupp use the `\glsaccess〈xxx〉` type of commands instead of `\glsentry〈xxx〉` (for example, `\glsaccesstext` instead of `\glsentrytext`). If glossaries-accsupp hasn’t been loaded those commands are equivalent (for example, `\glsaccesstext` just does `\glsentrytext`) but if it has been loaded, then the `\glsaccess〈xxx〉` commands will add the accessibility information. See §9 for further details.

[top]

## 2.4. Entry Definitions, References and Indexing
[link]

🎚
`undefaction=〈value〉`initial: error
This indicates what to do if an undefined glossary entry is referenced.

ℹ
Undefined entries can’t be picked up by any commands that iterate over a glossary list. This includes `\forglsentries` and `\glsaddall`.

🔖
undefaction=`error`
Produces an error message for undefined glossary entries.

🔖
undefaction=`warn`
Only produces a warning message for undefined glossary entries. The place where the entry has been referenced will be marked with `??` (as with undefined labels or citations). The unknown marker is produced with:
📌
``\glsxtrundeftag``initial: ??
This defaults to two question marks.

Note that `\ifglsused` will only display `??` in the document text with undefaction=warn if the entry hasn’t been defined, as the underlying boolean variable doesn’t exist and so is neither true nor false. (There will also be a warning in the transcript.) You may prefer to use `\GlsXtrIfUnusedOrUndefined` instead. See §5.10 for further details.

If you want to write a custom command that needs to generate a warning or error for an undefined reference, you can use:

📌
``\glsxtrundefaction`{〈message〉}{〈additional help〉}`
This will produce the unknown marker if used within the document environment. Depending on the undefaction, `\glsxtrundefaction` will either create an error with the given 〈message〉 and 〈additional help〉 or will create a warning with the given 〈message〉.

🎚
`docdef=〈value〉`default: true; initial: false
This setting governs where `\newglossaryentry` can be used (preamble-only or anywhere before the first glossary or anywhere within the document).

Commands like `\newabbreviation` and `\glsxtrnewsymbol` that internally use `\newglossaryentry` are also governed by this option. Other commands, such as `\longnewglossaryentry` are always preamble-only.

With just the base glossaries package, `\newglossaryentry` is allowed in the document environment as long as you haven’t used `\makenoidxglossaries`. There are, however, problems that can occur when entries are defined within the document environment (see the glossaries documentation for further details). To encourage preamble-only use, the glossaries-extra package prohibits the use of `\newglossaryentry` within the document environment by default, but if you really want this you can use this package option to allow it.

🛈
Note that in the case of bib2gls, all entry data is originally defined in bib files. The entry definitions (using commands like `\longnewglossaryentry` and `\newabbreviation`) are written to the glstex files that are input in the preamble.

🔖
docdef=`false`
Prohibits the use of `\newglossaryentry` within the document environment. All entries must be defined in the preamble.

🔖
docdef=`true`
Permits the use of `\newglossaryentry` in the document environment provided `\makenoidxglossaries` hasn’t been used (as per the base glossaries package). This will create a temporary glsdefs file that contains the entry definitions so that they can be available on the next LaTeX run at the beginning of the document to allow any glossaries in the front matter to display correctly.

If all your glossaries occur at the end of the document, consider using docdef=restricted instead.

🔖
docdef=`restricted`
Permits the use of `\newglossaryentry` in the document environment provided the entry definitions all occur before the first glossary is displayed.

This avoids the need for the glsdefs file. You will still need to take care about any changes made to the category code of characters that are required by the 〈key〉=〈value〉 mechanism (that is, the comma and equal sign) and any makeindex or xindy special character that occurs in the sort key or label. If any of those characters are made active in the document (for example, through babel shortcuts), then it can cause problems with the entry definition.

This option will allow `\newglossaryentry` to be used in the document with `\makenoidxglossaries`, but note that `\longnewglossaryentry` remains a preamble-only command.

With this option, if an entry appears in the glossary before it has been defined, an error will occur (or a warning if the undefaction=warn option is used). If you edit your document and either remove an entry or change its label, you may need to delete the document’s temporary files (such as the aux and gls files).

🔖
docdef=`atom`
This option behaves like docdef=restricted but creates the glsdefs file for atom’s autocomplete support. This file isn’t input by glossaries-extra and so associated problems with the use of this file are avoided, but it allows the autocomplete support to find the labels in the file.

ℹ
A bug fix in glossaries v4.47 has changed the format of the glsdefs file slightly.

As with docdef=restricted, entries may be defined in the preamble or anywhere in the document, but they may only be referenced after they have been defined. Entries must be defined before the associated glossary is displayed.

If you need a list of all entry labels for the use of an editor or helper script you may also want to consider the package options writeglslabels and writeglslabelnames provided by the base glossaries package. Note that with these options and with docdef=atom, only the entry labels that are visible to LaTeX can be saved. So if you are using bib2gls you will only get the labels of the entries that have already been selected by bib2gls. The bib files can be found by parsing the aux file for `\glsxtr@resource` (listed in the src option or `\jobname`.bib if src is missing).

🎚
`shortcuts={〈value〉}`initial: none
Unlike the base glossaries package option of the same name, this option isn’t boolean but has multiple values.

🛈
Multiple invocations of the shortcuts option within the same option list will override each other. Since these options define commands, the action can’t be undone with a later `\glossariesextrasetup`.

🔖
shortcuts=`ac`
Set the shortcut commands provided by the base glossaries package for acronyms (such as `\ac`) but use the glossaries-extra abbreviation commands, such as `\glsxtrshort` and `\glsxtrlong`, instead of the analogous base commands, such as `\acrshort` and `\acrlong`. See §4.3.2 for further details.

🔖
shortcuts=`abbreviations`
Sets the abbreviation shortcuts (see §4.3.2). This setting doesn’t switch on the acronym shortcuts provided by the base glossaries package.

🔖
shortcuts=`abbr` alias: abbreviations
Synonym for shortcuts=abbreviations.

🔖
shortcuts=`other`
Implements the other (non-abbreviation) shortcut commands:
📌
``\newentry`{〈entry-label〉}{〈options〉}`
A synonym for `\newglossaryentry`.

📌
``\newsym`[〈key=value list〉]{〈entry-label〉}{〈sym〉}`
A synonym for `\glsxtrnewsymbol` (provided that the symbols package option is also used).

📌
``\newnum`[〈key=value list〉]{〈entry-label〉}{〈num〉}`
A synonym for `\glsxtrnewnumber` (provided that the numbers package option is also used).

🔖
shortcuts=`acother`
Implements shortcuts=ac and shortcuts=other.

🔖
shortcuts=`abother`
Implements shortcuts=abbreviations and shortcuts=other.

🔖
shortcuts=`all`
Implements shortcuts=ac, shortcuts=abbreviations and shortcuts=other.

🔖
shortcuts=`acronyms`
Sets the shortcuts provided by the base glossaries package for acronyms (such as `\ac`). See the glossaries package documentation for further details.

Note that the short and long forms (`\acs` and `\acl`) don’t use `\glsxtrshort` and `\glsxtrlong` but use the original `\acrshort` and `\acrlong`, which aren’t compatible with the glossaries-extra abbreviation mechanism. The better option is to use shortcuts=ac.

🛈
Don’t use shortcuts=acronyms unless you have reverted `\newacronym` back to the base glossaries package’s acronym mechanism. See §4.6 for further details.

🔖
shortcuts=`acro` alias: acronyms
Synonym for shortcuts=acronyms.

🔖
shortcuts=`true` alias: all
This setting is provided by the base glossaries package. With glossaries-extra it’s equivalent to shortcuts=all.

🔖
shortcuts=`false` alias: all
This setting is provided by the base glossaries package. With glossaries-extra it’s equivalent to shortcuts=none.

🔘︎
`indexcrossrefs=〈boolean〉`default: true; initial: varies
This is a boolean option that governs whether or not to automatically index any cross-referenced entries that haven’t been marked as used at the end of the document. These are entries that are identified in one of the cross-referencing fields (see and seealso) of another used entry as opposed to entries that have the cross-referencing fields set.

Since entries with the alias key are intended as synonyms for another term, the target is expected to be indexed so entries with the alias key set aren’t affected by this option.

For example:

    🖹\newglossaryentry{courgette}{name={courgette},
     description={small vegetable marrow}}
    \newglossaryentry{marrow}{name={marrow},
     description={long gourd with green skin},
     seealso={courgette}}

Suppose that “marrow” is indexed (so that it appears in the glossary with the cross-reference to “courgette”) but if courgette isn’t indexed anywhere in the document (using commands like `\gls` or `\glsadd`) then there will be a broken cross-reference in the marrow location list pointing to courgette, which doesn’t appear in the glossary. With indexcrossrefs=true, the courgette entry will be indexed at the end of the document using `\glsadd` with format=glsxtrunusedformat, which corresponds to the command `\glsxtrunusedformat`.

Note that this special format `\glsxtrunusedformat` simply does `\unskip` and ignores its argument, which creates a blank location. If any of the cross-referenced entries have been indexed but haven’t been marked as used (for example, with `\glsadd`) then this will cause a spurious comma in the location list. This is a limitation of the way that makeindex and xindy work as they are general purpose indexing applications which require locations. If you have entries with cross-references, you may want to consider switching to bib2gls instead.

🛈
Note that bib2gls can automatically find dependent entries when it parses the bib source file, so the record option automatically implements indexcrossrefs=false.

This function is implemented by code added to the end document hook that determines whether or not to use the command `\glsxtraddallcrossrefs`. This command iterates over all entries in all glossaries, which adds to the overall document build time, especially if you have defined a large number of entries, so this defaults to indexcrossrefs=false, but it will be automatically switched on if you use the see or seealso keys in any entries. See also §5.9.

🔖
indexcrossrefs=`true`
Enables this setting.

🔖
indexcrossrefs=`false`
Disables this setting even if the see or seealso key is present in any entries.

🔘
`autoseeindex=〈boolean〉`default: true; initial: true
This is a boolean option that governs whether or not the see and seealso keys should automatically index the cross-reference when an entry is defined (see §5.9).

With the base glossaries package, the see key was provided as a shortcut for `\glssee`. For example:

    🖹\newglossaryentry{courgette}{name={courgette},
     description={small vegetable marrow}}
    \newglossaryentry{zucchini}{name={zucchini},
     description={},
     see={courgette}}

is equivalent to:

    🖹\newglossaryentry{courgette}{name={courgette},
     description={small vegetable marrow}}
    \newglossaryentry{zucchini}{name={zucchini},
     description={}}
    \glssee{zucchini}{courgette}

This was designed for documents where only entries that are actually used in the document are defined and ensures that the cross-reference is included in the glossary, even though it may not be referenced anywhere in the document. However, it becomes problematic if neither entry is required in the document.

The glossaries-extra package modifies the action of the see key so that it also saves the value and will only perform the automated `\glssee` if autoseeindex=true. Similarly for the seealso key.

🛈
Note that the record option automatically implements autoseeindex=false as the corresponding action can be implemented with bib2gls’s selection option.

🔖
autoseeindex=`true`
Enables automatic indexing using `\glssee` for the see key (as per the base glossaries package) and `\glsxtrindexseealso` for the seealso key.

For example, if an entry is defined as

    🖹\newglossaryentry{foo}{name={foo},
     description={},see={bar,baz}}

then, with autoseeindex=true and the default indexcrossrefs setting, this is equivalent to

    🖹\newglossaryentry{foo}{name={foo},description={}}
    \glssee{foo}{bar,baz}
    \glossariesextrasetup{indexcrossrefs=true}
    \GlsXtrSetField{foo}{see}{bar,baz}

🔖
autoseeindex=`false`
The value of the see and seealso keys will be stored in their corresponding fields (and can be accessed using commands like `\glsxtrusesee` and `\glsxtruseseealso`) but the cross-reference won’t be automatically indexed.

🛈
Note that indexcrossrefs isn’t automatically implemented by the presence of the see key when autoseeindex is false.

For example, if an entry is defined as

    🖹\newglossaryentry{foo}{name={foo},
     description={},see={bar,baz}}

then, with autoseeindex=false and the default indexcrossrefs setting, this is equivalent to

    🖹\newglossaryentry{foo}{name={foo},
     description={}}
    \GlsXtrSetField{foo}{see}{bar,baz}

It’s therefore possible with this option to remove the cross-references from the location lists and set their position within the glossary style.

Another method of preventing the automatic indexing is to define the entries before the external indexing files have been opened with `\makeglossaries`. Since the appropriate file isn’t open, the information can’t be written to it. This will need the package option seenoindex=ignore to prevent an error occurring.

🎚
`record=〈value〉`default: only; initial: off
This setting indicates whether or not bib2gls is required.

🛈
This option can only be set in the preamble and can’t be used after `\GlsXtrLoadResources` or `\glsxtrresourcefile`.

With the recording setting on (record=only, record=nameref or record=hybrid), any of the commands that would typically index the entry (such as `\gls`, `\glstext` or `\glsadd`) will add a record to the aux file. bib2gls can then read this information to find out which entries have been used. (Remember that commands like `\glsentryname` don’t index, so any use of these commands won’t add a corresponding record.) See §11 for further details.

The hybrid method additionally performs the standard indexing action that’s required for makeindex or xindy to work, but this can’t be done until bib2gls has created the glstex files that provide the entry definitions. In general, it’s best to avoid the hybrid method.

🔖
record=`off`
Indexing is performed as per the base glossaries package using either `\makeglossaries` or `\makenoidxglossaries`. This setting implements undefaction=error.

🔖
record=`only`
indexing (or recording) is performed by adding bib2gls records in the aux file. Neither `\makeglossaries` nor `\makenoidxglossaries` is permitted. Use `\GlsXtrLoadResources` (or `\glsxtrresourcefile`) to set up bib2gls resource options. Glossaries should be displayed with the “unsrt” family of commands, such as `\printunsrtglossary`.

This setting implements undefaction=warn, autoseeindex=false, indexcrossrefs=false sort=none, and automatically loads the supplementary glossaries-extra-bib2gls package. (There should be no need to explicitly load glossaries-extra-bib2gls.)

This option also defines the location and group keys that are set by bib2gls to provide the location list and group information required by the “unsrt” family of commands.

The document build process is (assuming the file is called myDoc.tex):

    〉_pdflatex myDoc
    bib2gls myDoc
    pdflatex myDoc

If you want letter groups you will need the --group or -g switch when invoking bib2gls:

    〉_pdflatex myDoc
    bib2gls -g myDoc
    pdflatex myDoc

ℹ
Note that this setting will prevent the see from automatically implementing `\glssee`. (bib2gls deals with the see field.) You may explicitly use `\glssee` in the document, but bib2gls will ignore the cross-reference if the see field was already set for that entry.

🔖
record=`nameref`
As record=only but uses nameref records, which include the current label information given by `\@currentlabel` and `\@currentHref`. This means that the title can be included in the entry locations, if available. This setting also supports location hypertargets that don’t follow a simple 〈h-prefix〉〈the-counter〉 format, which can’t be used with other indexing options.

See §11.5.6 for further details of this option.

🛈
This option requires hyperref, otherwise it will fall back on the usual location records.

Note that `\@currentHref` is always globally updated whenever `\refstepcounter` is used, but `\@currentlabel` isn’t. This can cause some undesired side-effects with some settings. Remember also that the indexcounter option increments the associated counter every time an entry is indexed, which affects this option. If the location counter is the default page, only the location number is shown.

🔖
record=`alsoindex` alias: hybrid 🗑
Deprecated synonym of record=hybrid.

🔖
record=`hybrid`
This is a hybrid setting that uses bib2gls to fetch entry information from bib files, but uses makeindex or xindy to create the glossary files (which are input with `\printglossary`). Note that this requires a slower and more complicated build process (see below).

This hybrid approach is provided for the rare instances where an existing xindy rule or module is too complicated to convert to a bib2gls rule but the entries need to be fetched from a bib file. There’s no benefit in using this option with makeindex.

This setting does not load glossaries-extra-bib2gls, as bib2gls is only being used to fetch the entry definitions.

🛈
Since it’s redundant to make bib2gls also sort and collate locations (in addition to xindy performing these tasks), use the resource options sort=none and save-locations=false for a faster build. Many of the other resource options are likely to be irrelevant.

This setting must be used with `\makeglossaries` but not with its optional argument. Each glossary should be displayed using `\printglossary` (or `\printglossaries` for all of them).

ℹ
This setting should not be used with `\makenoidxglossaries`.

You may need to change the transcript file used by bib2gls to avoid a clash with xindy’s transcript file. This can be done with bib2gls’s --log-file or -t option.

The document build process is (assuming the file is called myDoc.tex):

    〉_pdflatex myDoc
    bib2gls myDoc
    pdflatex myDoc
    makeglossaries myDoc
    pdflatex myDoc

Note that, in this case, it’s redundant to call bib2gls with the --group or -g switch as xindy will insert the group heading information into the corresponding glossary file.

🛈
If you want bib2gls to form the letter groups then this hybrid method is inappropriate.

🎚
`bibglsaux=〈basename〉`initial: empty

requires bib2gls v3.0+

Alternatively, this setting can be implemented with:

📌
``\glsxtrsetbibglsaux`{〈basename〉}`

This option should only be used once. If used again no new file will be created. If the 〈basename〉 value is empty, records will be written to the normal aux file.

A document containing many records can result in a large aux file with information that’s only relevant to bib2gls. This option will create a new file called 〈basename〉.aux that will be used to store the records. The file will be skipped by LaTeX but will be picked up by bib2gls v3.0+ when it inputs the main aux file. Note that this creates an extra write register.

ℹ
You should still supply the main aux file when you run bib2gls as 〈basename〉.aux will only contain the records and not the other information that bib2gls requires (such as the resource options).

🔘︎
`equations=〈boolean〉`default: true; initial: false
This setting will cause the default location counter to automatically switch to equation when inside a numbered equation environment, such as equation or align. The counter can be explicitly overridden with the counter `\glslink` option.

🔘︎
`floats=〈boolean〉`default: true; initial: false
This setting will cause the default location counter to automatically switch to the corresponding counter when inside a floating environment, such as figure or table. The counter can be explicitly overridden with the counter `\glslink` option.

Remember that within floats it’s the `\caption` command that actually uses `\refstepcounter`, so indexing before the caption will result in the wrong reference. The commands for use in captions and sections, such as `\glsfmttext` and `\glsfmtshort`, don’t index. (See §5.3). You may want to consider using `\glsadd` after the caption (not before). For example:

    🖹\begin{figure}[htbp]
      \centering
      \includegraphics{example-image}
      \caption{Sample \glsfmttext{foobar} figure}
      \glsadd{foobar}
    \end{figure}

𝍢
`indexcounter`
This option defines the indexing counter:
№
`wrglossary`
which is incremented every time an entry is indexed. This option automatically implements counter=wrglossary. This means that each location will link to the relevant part of the page where the indexing occurred (instead of to the top of the page). See the bib2gls documentation for the save-index-counter resource option for more details.

⚠
This option is primarily intended for use with bib2gls (v1.4+) and hyperref. It can be used with makeindex or xindy, but it will interfere with the location list collation, so you won’t have ranges and you’ll have duplicate page numbers present.

This option works by incrementing wrglossary with `\refstepcounter` and adding `\label`. This can cause a problem if the indexing occurs in an equation environment as amsmath forbids multiple occurrences of `\label` (resulting in the “Multiple `\label`’s” error). It’s best to change the counter to page or equation when in maths mode with this option. For example:

    🖹\renewcommand{\glslinkpresetkeys}{%
     \ifmmode \setupglslink{counter=page}\fi}
    \renewcommand{\glsaddpresetkeys}{%
     \ifmmode \setupglsadd{counter=page}\fi}

[top]

## 2.5. Debugging
[link]

🎚
`debug=〈value〉`default: true; initial: false
Enables debugging information for draft documents. This option is defined by the base glossaries package, but is extended by glossaries-extra to provide additional settings. If no value is provided, true is assumed. The following values are available:

🔖
debug=`false`
This setting is provided by the glossaries package and is the default. This switches off all debugging commands.

🔖
debug=`true`
This setting is provided by the glossaries package and switches on logging information if an entry is indexed before the relevant indexing files have been opened (only applicable with makeindex and xindy). This option is extended by glossaries-extra to also display the label of unknown entries before the `??` marker.
🖹🖺

    \documentclass{article}
    \usepackage[debug]
    {glossaries-extra}
    \begin{document}
    \gls{example}
    \end{document}

[example]??

This uses `\glsshowtargetfonttext` for the annotation, which is provided by glossaries.

🔖
debug=`showaccsupp`
Provided by glossaries, this setting shows accessibility information (glossaries-accsupp).

🔖
debug=`all`
Implements all debugging options.

🔖
debug=`showwrgloss`
This setting is only available with glossaries-extra. This implements debug=true and shows a marker (·) just before the write operation is performed by indexing commands. With record=hybrid there will be two marks: one for the write operation to the aux file and one for the associated glossary file used by makeindex/xindy. The marker is produced with the command:
📌
``\glsxtrwrglossmark``

If the indexcounter option has been used, this setting will also mark where the wrglossary counter has been incremented. The marker is produced with the command:

📌
``\glsxtrwrglosscountermark`{〈number〉}`
This marker is also inserted before the location in the definition of `\glsxtrwrglossarylocfmt`.

🔖
debug=`showtargets`
This setting is provided by glossaries and displays the hyperlink target names whenever any glossary-related commands create a hyperlink or hypertarget (for example, `\gls`, `\glstarget` or `\glshypernumber`). The default is to use marginal notes in TeX’s “outer” mode and inline annotations for “inner” or maths modes. This uses `\glsshowtargetinner` for inner and maths annotations and `\glsshowtargetouter` for the outer annotation.

If there are many targets within a single paragraph this can lead to “too many floats”, so glossaries-extra provides a new package option showtargets that can be used to easily switch to inline annotations for outer mode (rather than having to redefine `\glsshowtargetouter`).

🎚
`showtargets=〈value〉`
Automatically implements debug=showtargets and adjusts the annotations according to the 〈value〉. The glossaries-extra package provides supplementary commands to support this option.

📌
``\glsxtrshowtargetouter`{〈target-name〉}`
Formats annotations in outer mode. This is initially `\glsshowtargetouter` to match debug=showtargets.

📌
``\glsxtrshowtargetinner`{〈target-name〉}`
Formats annotations in inner mode. This is initially `\glsshowtargetinner` to match debug=showtargets.

📌
``\glsshowtargetinnersymleft`{name}`
Shows the left annotation and marker. This uses the left symbol marker:
📌
``\glsxtrshowtargetsymbolleft``

📌
``\glsshowtargetinnersymright`{name}`
Shows the right marker and annotation. This uses the right symbol marker:
📌
``\glsxtrshowtargetsymbolright``

🔖
showtargets=`left`
A marker is placed to the left of the link/target and a marginal note is used in outer mode.

🔖
showtargets=`right`
A marker is placed to the right of the link/target and a marginal note is used in outer mode.

🔖
showtargets=`innerleft`
A marker and annotation are placed to the left of the link/target in all modes.

🔖
showtargets=`innerright`
A marker and annotation are placed to the right of the link/target in all modes.

🔖
showtargets=`annoteleft`
Markers are placed on either side of the link/target with the annotation on the left in all modes.

🔖
showtargets=`annoteright`
Markers are placed on either side of the link/target with the annotation on the right in all modes.

[top]

# 3. Defining Entries
[link]

The base glossaries package provides commands, such as `\newglossaryentry`, to define entries. The glossaries-extra package provides some additional commands, described in §3.1. For abbreviations, see §4. If you use bib2gls, it will write command definitions within the glstex file. See the bib2gls user manual for further information about those commands.

The glossaries user manual warns against using commands such as `\gls` within field values. However, if you really need this, the glossaries-extra package provides `\glsxtrp` (see §5.4). Alternatively, you may want to consider multi (compound) entries instead (see §7).

[top]

## 3.1. Command Definitions
[link]

📌
``\longnewglossaryentry`{〈entry-label〉}{〈key=value list〉}{〈description〉}`
This command is provided by the base glossaries package to cater for entries with descriptions that contain paragraph breaks. (The 〈key〉=〈value〉 interface doesn’t support paragraph breaks in the value.) The base package only provides an unstarred version of this command, which automatically inserts `\leavevmode``\unskip``\nopostdesc` at the end of the description. The glossaries-extra package replaces this with a single command:
📌
``\glsxtrpostlongdescription``
which has the same effect, but can be redefined if required.

The glossaries-extra package provides a starred form:

📌
``\longnewglossaryentry*`{〈entry-label〉}{〈key=value list〉}{〈description〉}`
This doesn’t insert the hook at the end of the description.

🛈
For a general purpose post-description hook, see §8.6.2.

Additionally, the symbols package option provides `\glsxtrnewsymbol`, and the numbers package option provides `\glsxtrnewnumber`. See §2.1 for further details.

[top]

## 3.2. Glossary Entry Keys
[link]

In addition to the glossary entry keys provided by the base glossaries package (summarised in §II) the glossaries-extra package provides:

🎚
`category=〈category-label〉`initial: general
Assigns the category label. This should not contain any special or active characters as it’s used to form command names. See §10 for further details.

🎚
`seealso={〈xr-list〉}`
This key is analogous to the see key but the tag is always given by `\seealsoname`. The value 〈xr-list〉 should be a comma-separated list of entry labels. As with the see key, this key automatically indexes the cross-reference by default. The cross-reference will be displayed in the location list using `\glsxtruseseealsoformat` (see §5.9). Use autoseeindex=false to prevent the automatic indexing. (With bib2gls, adjust the selection criteria.)

ℹ
With just the base glossaries package, the see key simply performs this automated indexing. With glossaries-extra the value is also saved. Similarly with the seealso key. The value isn’t saved with explicit use of `\glsxtrindexseealso` or `\glssee`.

🎚
`alias={〈xr-label〉}`
This is similar to the see key but the value can only be a single entry label. In addition to automatically indexing the cross-reference, this command will cause the entry with this key to have hyperlinks go to the aliased entry when referenced with commands like `\gls`. Whenever the entry is indexed with commands like `\gls`, the indexing will be performed on the target entry (the alias value). See §5.9 for further details.

ℹ
Any entry that has a see, seealso or alias key set will be added to the glossary by default when using makeindex or xindy. If you don’t want this behaviour, use the autoseeindex=false package option and implement a post-description hook to insert the cross-reference. Alternatively, consider switching to bib2gls.

If you use bib2gls (see §11) then most of the glossary entry keys can be used as analogous fields in the bib file. For example, instead of writing the following code in your tex file:

    🖹\newglossaryentry{duck}{name={duck},
     description={a waterbird with webbed feet}}
    \newabbreviation{svm}{SVM}{support vector machine}

You would write the following in a bib file:

    🖹@entry{duck,
     name={duck},
     description={a waterbird with webbed feet}
    }
    @abbreviation{svm,
      short={SVM},
      long={support vector machine},
    }

There are, however, some keys that are considered internal fields by bib2gls, in that they are defined as keys by glossaries-extra and may be assigned in the glstex file that’s input by `\GlsXtrLoadResources`, but they should not be used in the bib files.

For example, the sort key (which is recommended with xindy where the name contains symbols) should not be used in the bib file. Instead, use the sort-field resource option or the system of sort fallbacks to choose the most appropriate field to obtain the sort value (see Gallery: Sorting). The group and location keys are also considered internal fields and are only applicable with the “unsrt” family of commands.

🛈
The group and location keys are defined by the record=only and record=nameref options and are only applicable with the “unsrt” family of commands.

🎚
`group={〈group-label〉}`
This key is used by bib2gls within the glstex file to set the group label. This label is typically a by-product of the sorting method (see §8.6.4). If it is explicitly set without reference to the order it can result in fragmented groups, see Gallery: Logical Glossary Divisions (type vs group vs parent). The group title can be set with `\glsxtrsetgrouptitle`. You will need to invoke bib2gls with the --group (or -g) switch to ensure that this key is set, when required.

ℹ
Letter groups are a consequence of sorting, not the other way around.

🎚
`location={〈location-list〉}`
Used by bib2gls to store the formatted location list. The unformatted internal location list is stored in the loclist field, as with `\printnoidxglossary`.

With the “unsrt” family of commands, if the location field isn’t set, then it will try the loclist field instead, using the same method as `\printnoidxglossary` to display the locations. If you don’t want locations with bib2gls, either use nonumberlist or use the save-locations=false resource option.

The base glossaries package provides `\glsaddkey` and `\glsaddstoragekey` to allow custom keys to be defined. The glossaries-extra package additionally provides:

📌
``\glsxtrprovidestoragekey`{〈key〉}{〈default value〉}{〈no link cs〉}`modifier: *
This is like `\glsaddstoragekey` but does nothing if the key has already been defined. As with `\glsaddstoragekey`, the starred version switches on field expansion for the given key (provided that it hasn’t already been defined).

📌
``\glsxtrifkeydefined`{〈key〉}{〈true〉}{〈false〉}`
Tests if the given key has been defined as a glossary entry key.

[top]

## 3.3. Plurals
[link]

Some languages, such as English, have a general rule that plurals are formed from the singular with a suffix appended. This isn’t an absolute rule. There are plenty of exceptions (for example, geese, children, churches, elves, fairies, sheep). The glossaries package allows the plural key to be optional when defining entries. In some cases a plural may not make any sense (for example, the term is a symbol) and in some cases the plural may be identical to the singular.

To make life easier for languages where the majority of plurals can simply be formed by appending a suffix to the singular, the glossaries package lets the plural field default to the value of the text field with `\glspluralsuffix` appended. This command is defined to be just the letter “s”. This means that the majority of terms don’t need to have the plural supplied as well, and you only need to use it for the exceptions.

For languages that don’t have this general rule, the plural field will always need to be supplied, where needed.

There are other plural fields, such as firstplural, longplural and shortplural. Again, if you are using a language that doesn’t have a simple suffix rule, you’ll have to supply the plural forms if you need them (and if a plural makes sense in the context).

If these fields are omitted, the glossaries package follows these rules:

- •If firstplural is missing, then `\glspluralsuffix` is appended to the first field, if that field has been supplied. If the first field hasn’t been supplied but the plural field has been supplied, then the firstplural field defaults to the plural field. If the plural field hasn’t been supplied, then both the plural and firstplural fields default to the text field (or name, if no text field) with `\glspluralsuffix` appended.

- •If the longplural field is missing, then `\glspluralsuffix` is appended to the long field, if the long field has been supplied.

- •If the shortplural field is missing then, with the base glossaries acronym mechanism, `\acrpluralsuffix` is appended to the short field.

The last case is changed with glossaries-extra. With this extension package, the shortplural field defaults to the short field with `\abbrvpluralsuffix` appended unless overridden by category attributes. This suffix command is set by the abbreviation styles. This means that every time an abbreviation style is implemented, `\abbrvpluralsuffix` is redefined, see §4.1.2 for further details.

[top]

## 3.4. Entry Aliases
[link]

An entry can be made an alias of another entry using the alias key. The value should be the label of the other term. There’s no check for the other’s existence when the aliased entry is defined. This is to allow the possibility of defining the other entry after the aliased entry. (For example, when used with bib2gls.)

📌
``\glsxtraliashook`{〈entry-label〉}`
This hook is implemented when an entry is defined with the alias key set. It does nothing by default. The value of the alias field can be obtained with ``\glsxtralias`{〈entry-label〉}`.

If an entry 〈entry-1〉 is made an alias of 〈entry-2〉 then:

- •If the see field wasn’t provided when 〈entry-1〉 was defined, the alias key will automatically trigger

      \glssee{〈entry-1〉}{〈entry-2〉}

- •If the hyperref package has been loaded then ``\gls`{〈entry-1〉}` will link to 〈entry-2〉’s target. (Unless the targeturl attribute has been set for 〈entry-1〉’s category.)

- •With record=off or record=hybrid, the noindex setting will automatically be triggered when referencing 〈entry-1〉 with commands like `\gls` or `\glstext`. This prevents 〈entry-1〉 from having a location list (aside from the cross-reference added with `\glssee`) unless it’s been explicitly indexed with `\glsadd` or if the indexing has been explicitly set using noindex=false. See §5.9.3 for adjusting the indexing hook.

  Note that with record=only, the location list for aliased entries is controlled with bib2gls’s settings.

The value of the alias field can be accessed with `\glsxtralias` (see §5.9.2).

[top]

## 3.5. Setting or Updating Fields
[link]

See §5.11 for accessing field values and §5.15 for testing field values.

⚠
Modifications to fields only have an effect from that point onwards and may be localised to the current scope. If you are using docdef=true, any changes to the field values won’t be saved in the glsdefs file.

Some of these commands are subtly different from each other. For example, `\glsfielddef` (provided by the base glossaries package), `\glsxtrdeffield` and `\GlsXtrSetField` all assign a value to a field, but `\glsfielddef` requires that both the entry and the field exists (so it can’t be used to set an unknown internal field), `\GlsXtrSetField` requires that the entry exists (so it can be used to set an internal field that doesn’t have an associated key provided that the entry has been defined), and `\glsxtrdeffield` doesn’t perform any existence checks (which means that it can be used to assign internal fields before the entry is actually defined).

The commands described in this section don’t require the field to have an associated glossary entry key, so you need to be careful not to misspell the field labels.

🛈
Assigning or changing fields using the commands described here won’t alter related fields. For example, if you use the text key but not the plural key when you define an entry with `\newglossaryentry`, the plural key will automatically be set as well, but if you change the value of the text field after the entry has been defined, the plural field won’t be changed. Particular care is required if the field contributes in some way to the indexing information, as this information is typically initialised when the entry is first defined. This includes the sort and parent keys, which should not be changed after the entry has been defined.

With bib2gls, entries aren’t defined on the first LaTeX run. This means that commands that test for existence will produce a warning and (within the document environment) the `??` unknown marker. For example:

    🖹\documentclass{article}
    \usepackage[record]{glossaries-extra}
    \GlsXtrLoadResources[src=myentries,selection=all]
    \begin{document}
    Defining info
    \glsxtrdeffield{sample}{info}{some information}.
    Defining note
    \GlsXtrSetField{sample}{note}{some note}.

    Info: \glsxtrusefield{sample}{info}.
    Note: \glsxtrusefield{sample}{note}.
    \end{document}

On the first LaTeX run, this produces:
🖺
Defining info . Defining note ??.

Info: some information. Note: .

At this point the `sample` entry hasn’t been defined, so referencing it in `\GlsXtrSetField` results in a warning and the double question mark `??` unknown marker in the text. The field (`note`) isn’t saved, so nothing is shown when the field is referenced with `\glsxtrusefield`. Whereas `\glsxtrdeffield` does save the field with the label `info` associated with the label `sample`, even though the `sample` entry hasn’t actually been defined. The field can then be later obtained with `\glsxtrusefield`. Once bib2gls has been run, the `sample` entry should now have its definition in the glstex file, which is loaded by `\GlsXtrLoadResources` and the `note` field can be set.

📌
``\glsxtrdeffield`{〈entry-label〉}{〈field-label〉}{〈value〉}`
This uses etoolbox’s `\csdef` command to locally set the field given by its internal label 〈field-label〉 to 〈value〉 for the entry identified by 〈entry-label〉. No existence check is performed.

📌
``\glsxtredeffield`{〈entry-label〉}{〈field-label〉}{〈value〉}`
This is like `\glsxtrdeffield` but (protected) fully expands the value before assigning it to the field.

📌
``\glsxtrapptocsvfield`{〈entry-label〉}{〈field-label〉}{〈element〉}`
This command is designed for fields that should contain comma-separated lists. If the field hasn’t been defined, this behaves like `\glsxtrdeffield` otherwise it will append a comma followed by 〈element〉 (unexpanded) to the field value. No existence check is performed. This field can be iterated over using `\glsxtrforcsvfield` or formatted using `\glsxtrfieldformatcsvlist`. See §5.13 for further details.

📌
``\glsxtrfieldlistadd`{〈entry-label〉}{〈field〉}{〈value〉}`
Appends the given value to the given entry’s field (identified using the field’s internal label) using etoolbox’s `\listcsadd`. The field value can later be iterated over using `\glsxtrfielddolistloop` or `\glsxtrfieldforlistloop`.

📌
``\glsxtrfieldlistgadd`{〈entry-label〉}{〈field〉}{〈value〉}`
As above but uses `\listcsgadd` to make a global change.

📌
``\glsxtrfieldlisteadd`{〈entry-label〉}{〈field〉}{〈value〉}`
As above but uses `\listcseadd` to expand the value.

📌
``\glsxtrfieldlistxadd`{〈entry-label〉}{〈field〉}{〈value〉}`
As above but uses `\listcsxadd` to make a global change.

📌
``\glsxtrsetfieldifexists`{〈entry-label〉}{〈field-label〉}{〈code〉}`
This is used by the commands `\GlsXtrSetField`, `\gGlsXtrSetField`, `\xGlsXtrSetField`, `\eGlsXtrSetField`, `\GlsXtrLetField`, `\csGlsXtrLetField` and `\GlsXtrLetFieldToField` to produce an error (or warning with undefaction=warn) if the entry doesn’t exist. This can be redefined to add extra checks (for example, to prohibit changing certain fields).

📌
``\GlsXtrSetField`{〈entry-label〉}{〈field-label〉}{〈value〉}`
This uses etoolbox’s `\csdef` command to locally set the field given by its internal label 〈field-label〉 to 〈value〉 for the entry identified by 〈entry-label〉.

This command is written to the glstex file by bib2gls to set fields that don’t have a corresponding key.

📌
``\gGlsXtrSetField`{〈entry-label〉}{〈field-label〉}{〈value〉}`
This is like `\GlsXtrSetField` but uses a global assignment.

📌
``\eGlsXtrSetField`{〈entry-label〉}{〈field-label〉}{〈value〉}`
This is like `\GlsXtrSetField` but (protected) fully expands the value first.

📌
``\xGlsXtrSetField`{〈entry-label〉}{〈field-label〉}{〈value〉}`
This is like `\eGlsXtrSetField` but uses a global assignment.

📌
``\GlsXtrLetField`{〈entry-label〉}{〈field-label〉}{〈cs〉}`
This uses etoolbox’s `\cslet` command to locally set the field given by its internal label 〈field-label〉 to 〈cs〉 for the entry identified by 〈entry-label〉.

📌
``\csGlsXtrLetField`{〈entry-label〉}{〈field-label〉}{〈cs-name〉}`
This uses etoolbox’s `\csletcs` command to locally set the field given by its internal label 〈field-label〉 to the control sequence given by 〈cs-name〉 for the entry identified by 〈entry-label〉.

📌
``\GlsXtrLetFieldToField`{〈entry1-label〉}{〈field1-label〉}{〈entry2-label〉}{〈field2-label〉}`
This assigns the field identified by its internal label 〈field1-label〉 for the entry identified by 〈entry1-label〉 to the value of the field identified by 〈field2-label〉 for the entry identified by 〈entry2-label〉

[top]

# 4. Abbreviations
[link]

The acronym mechanism implemented by the base glossaries package is insufficiently flexible for some documents. The glossaries-extra package provides a completely different mechanism to deal with abbreviations in a more flexible manner. The two methods are incompatible. However, the glossaries-extra package provides predefined styles that emulate the appearance of the styles provided by the base package. If you have previously used just the base glossaries package, consult Table 4.2 for the closest matching abbreviation style.

[top]

## 4.1. Defining Abbreviations
[link]

Abbreviations are defined using:

📌
``\newabbreviation`[〈options〉]{〈entry-label〉}{〈short〉}{〈long〉}`
where 〈entry-label〉 is the entry’s label (used in commands like `\gls`), 〈short〉 is the short form (the abbreviation) and 〈long〉 is the long form (what the abbreviation is short for). The optional argument 〈options〉 may be used to set additional keys (as per the options list in `\newglossaryentry`), such as type or category.

This command internally uses `\newglossaryentry` and sets the type to `\glsxtrabbrvtype` and the category to abbreviation. The category (see §10) determines the abbreviation style. The style for a particular category is set using `\setabbreviationstyle`. If the optional argument is omitted, the abbreviation category is assumed (see §4.5 for further details).

The following example document sets up three different abbreviation styles: long-short-sc for the abbreviation category, long-only-short-only for the custom `genus` category, and short-nolong for the custom `common` category. Note that the custom `title` category doesn’t have an associated style.

    🖹\setabbreviationstyle{long-short-sc}
    \setabbreviationstyle[genus]{long-only-short-only}
    \setabbreviationstyle[common]{short-nolong}
    \newabbreviation{xml}{xml}{extensible markup language}
    \newabbreviation[category={genus}]{clostridium}{C.}{Clostridium}
    \newabbreviation[category={genus}]{myristica}{M.}{Myristica}
    \newabbreviation[category={common}]{html}{HTML}{hypertext markup language}
    \newabbreviation[category={title}]{dr}{Dr}{Doctor}
    \begin{document}
    First use: \gls{xml}, \gls{clostridium}, \gls{myristica},
    \gls{html}, \gls{dr}.

    Next use: \gls{xml}, \gls{clostridium}, \gls{myristica},
    \gls{html}, \gls{dr}.
    \end{document}

🖺
Example 1: Multiple abbreviation styles 📥🖹 📥🖺

If the category doesn’t have an associated style, the style for the abbreviation category will be used, as with the `dr` entry above, which uses the long-short-sc style because no style has been associated with its custom `title` category.

There are two categories that have an abbreviation style set by default: abbreviation and acronym. These are initialised as follows:

    🖹\setabbreviationstyle{long-short}
    \setabbreviationstyle[acronym]{short}

This means that abbreviations defined with the default abbreviation category will show the long form followed by the short form in parentheses on first use, and those defined with the category set to acronym will only show the short form (that is, the long form won’t be shown on first use).

To make it easier to migrate a file containing entries defined with `\newacronym`, the glossaries-extra package redefines `\newacronym` to do:

    🖹\newabbreviation[type=\acronymtype,category=acronym,〈options〉]{〈entry-label〉}{〈short〉}{〈long〉}

Note that this sets the category to acronym, which means that any abbreviations defined with `\newacronym` will use the short style by default. If you want to use a different style, you need to set the abbreviation style for the acronym category. For example, to use the long-short style:

    🖹\setabbreviationstyle[acronym]{long-short}

This must be placed before the first instance of `\newacronym`.

🛈
You can’t use `\setacronymstyle` with glossaries-extra.

If you have defined any acronym styles with `\newacronymstyle`, you will have to migrate them over to `\newabbreviationstyle`. However, most of the predefined abbreviation styles are flexible enough to adapt to common abbreviation formats. It is possible to revert `\newacronym` back to using the base glossaries package’s acronym mechanism (§4.6), but it should generally not be necessary.

Terms defined with `\newabbreviation` (and `\newacronym`) can be referenced in the main document text using commands like `\gls`. (If you want to use shortcut commands like `\ac`, use the shortcuts=ac package option.) Remember that you can use the prereset and preunset options to reset or unset the first use flag (see §5.10). Alternatively, you can use the commands described in §4.3. For headings and captions, see §5.3.2.

ℹ
Avoid using `\glsfirst`, `\glsfirstplural`, `\glstext` and `\glsplural` with abbreviations. Many of the abbreviation styles are too complex to work with these commands (particularly the case-changing variants or with the 〈insert〉 final optional argument or with innertextformat). Instead, use commands like `\gls`, `\glsxtrshort`, `\glsxtrlong` and `\glsxtrfull`.

[top]

### 4.1.1. Abbreviation Fields: long and short
[link]

The 〈short〉 and 〈long〉 arguments are internally assigned with the short and long keys (so don’t use those keys in 〈options〉), but the short and long values may first be modified by category attributes, such as markwords or markshortwords. As with other entries, avoid nested links (see §5.4). This means avoid using the `\gls`-like and `\glstext`-like commands within 〈short〉 and 〈long〉.

🛈
If an abbreviation can be formed by combining other entries, consider using the multi (compound) entry function (see §7).

[top]

### 4.1.2. Abbreviation Fields: longplural and shortplural
[link]

The longplural key defaults to 〈long〉`\glspluralsuffix` and the shortplural key defaults to 〈short〉`\abbrvpluralsuffix`. The aposplural attribute will instead set the shortplural to `〈short〉'`\abbrvpluralsuffix`` and the noshortplural attribute will set shortplural to just 〈short〉 (see §10). If these values are not appropriate, you will need to explicitly set the longplural and shortplural keys in 〈options〉.

The short plural suffix `\abbrvpluralsuffix` is redefined by the abbreviation style. Some styles, such as the long-short style, simply redefine `\abbrvpluralsuffix` to just:

📌
``\glsxtrabbrvpluralsuffix``initial: `\glspluralsuffix`
which is defined to `\glspluralsuffix`.

Some styles, such as the long-short-sc style, redefine `\abbrvpluralsuffix` to include code to counteract the formatting of the abbreviation.

🛈
If you want to change the default short plural suffix, you need to redefine `\glsxtrabbrvpluralsuffix` not `\abbrvpluralsuffix`. If you don’t want the suffix added, then set the noshortplural attribute to `true`.

[top]

### 4.1.3. Abbreviation Fields: name and description
[link]

The name key is set according to the abbreviation style. There should not be any need to explicitly set it. Some styles require the description key to be set in 〈options〉, but other styles will set the description to the long form.

[top]

### 4.1.4. Abbreviation Fields: type
[link]

Abbreviations can be assigned to a particular glossary using the type key in 〈options〉. The default for `\newabbreviation` is:

📌
``\glsxtrabbrvtype``initial: `\glsdefaulttype`
This is initialised to `\glsdefaulttype` (the default glossary), but the abbreviations package option will redefine it to `abbreviations`.

The default type for `\newacronym` is:

📌
``\acronymtype``initial: `\glsdefaulttype`
This is initialised to `\glsdefaulttype`, but the acronyms package option will redefine it to `acronym`.

[top]

### 4.1.5. General Hooks
[link]

The following are general purpose hooks used within `\newabbreviation`. Note that there are additional hooks that are used by the abbreviation styles (see §4.5.3.1).

📌
``\glsxtrnewabbrevpresetkeyhook`{〈options〉}{〈label〉}{〈short〉}`
This hook is provided for further customisation, if required. It’s implemented before the entry is defined (before the shortplural and longplural keys supplied in 〈options〉 are parsed). Does nothing by default. The arguments are a legacy throwback to old versions that didn’t have `\glsxtrorgshort`.

📌
``\newabbreviationhook``
This hook is performed just before the entry is defined. Does nothing by default.

[top]

## 4.2. Examples: makeindex vs bib2gls
[link]

Example document using makeindex:

    🖹\documentclass{article}
    \usepackage{glossaries-extra}
    \makeglossaries
    \newglossaryentry{sample}{name={sample},description={an example}}
    \newabbreviation{xml}{XML}{extensible markup language}
    \newacronym{nasa}{NASA}{National Aeronautics and Space Administration}
    \begin{document}
    First use: \gls{sample}, \gls{xml} and \gls{nasa}.
    Next use: \gls{sample}, \gls{xml} and \gls{nasa}.
    \printglossaries
    \end{document}

🖺
Example 2: `\newabbreviation` vs `\newacronym` vs `\newglossaryentry` 📥🖹 📥🖺

Note that the long form of NASA isn’t displayed on the first use of ``\gls`{nasa}`. This is because the acronym category uses the short style by default.

In the above example, all entries are placed in the main (default) glossary. The package options abbreviations and acronyms can be used to split them off into separate glossaries.

If you use bib2gls, the analogous bib entry types are `@abbreviation` and `@acronym`. The above example can be rewritten to use bib2gls:

    🖹\documentclass{article}
    \begin{filecontents*}{\jobname.bib}
    @entry{sample,
     name={sample},
     description={an example}
    }
    @abbreviation{xml,
     short={XML},
     long={extensible markup language}
    }
    @acronym{nasa,
     short={NASA},
     long={National Aeronautics and Space Administration}
    }
    \end{filecontents*}
    \usepackage[record]{glossaries-extra}
    \GlsXtrLoadResources
    \begin{document}
    First use: \gls{sample}, \gls{xml} and \gls{nasa}.
    Next use: \gls{sample}, \gls{xml} and \gls{nasa}.
    \printunsrtglossaries
    \end{document}

🖺
Example 3: `@abbreviation` vs `@acronym` vs `@entry` 📥🖹 📥🖺

[top]

## 4.3. Referencing (Using) Abbreviations
[link]

Since `\newabbreviation` internally uses `\newglossaryentry`, you can reference abbreviations with the `\gls`-like commands as with other entries. Remember that you can use the prereset and preunset options to reset or unset the first use flag (see §5.10).

In general it’s best not to use `\glsfirst`, `\glsfirstplural`, `\glstext`, `\glsplural` or their case-changing variants as many of the abbreviation styles are too complicated for those commands. If you specifically want the full form, use `\gls` with prereset or use `\glsxtrfull`. If you specifically want the short form for a particular instance, use `\gls` with preunset or use `\glsxtrshort`. If you only want the long form for a particular instance, use `\glsxtrlong`.

If you never want the short form with `\gls`, use one of the “noshort” styles, such as long-noshort. If you never want the long form with `\gls`, use one of the “nolong” styles, such as short-nolong.

🛈
If you need to use abbreviations in headings or captions, use commands like `\glsfmtshort` and `\glsfmtlong` (see §5.3.2). Commands like `\glsentryname` are likely to contain non-expandable content.

Example:

    🖹\usepackage[colorlinks]{hyperref}
    \usepackage{glossaries-extra}
    \makeglossaries
    \newabbreviation{svm}{SVM}{support vector machine}
    \newabbreviation{html}{HTML}{hypertext markup language}

    \begin{document}
    \tableofcontents
    \section{Introducing the \glsfmtlong{svm}}
    First use: \gls{svm}.
    Next use: \gls{svm}.

    \section{Introducing \gls{html} (incorrect)}
    First use (not!): \gls{html}.
    Next use: \gls{html}.

    \glsreset{html}
    \section{Introducing \glsxtrshort{html} (incorrect)}
    First use: \gls{html}.
    Next use: \gls{html}.

    \glsreset{html}
    \section{Introducing \glsfmtshort{html}}
    First use: \gls{html}.
    Next use: \gls{html}.

    \printglossaries
    \end{document}

🖺
Example 4: Referencing an abbreviation (with hyperref) 📥🖹 📥🖺

In the above example, compare the first section heading (which references an abbreviation with `\glsfmtlong`) with the second section heading (which references an abbreviation with `\gls`). Note that the first use of the `html` entry actually occurs in the table of contents, which results in the full form showing in the table of contents, but only the abbreviation is shown in the actual section 2 heading. The PDF bookmark shows the entry label (`html`) not the abbreviation (HTML). There is also a nested link for section 2 in the table of contents. In some PDF viewers (such as Okular), this will lead to section 2 but, in others (such as Evince), it will lead to the HTML entry target in the glossary. Similarly for section 3.

As with the base glossaries package, the unformatted short and long forms can be obtained with `\glsentryshort` and `\glsentrylong` or, for the plural forms, `\glsentryshortpl` and `\glsentrylongpl`. These are analogous to commands like `\glsentrytext` and may be used in expandable contexts. The sentence case versions (`\Glsentryshort`, `\Glsentrylong`, `\Glsentryshort`, and `\Glsentrylong`) are all robust in glossaries v4.49 and lower. As from glossaries v4.50, they can expand in PDF bookmarks, but outside of PDF bookmarks they will expand to a robust internal command.

ℹ
Don’t use the base glossaries package’s acronym commands, such as `\acrshort`. These aren’t compatible with `\newabbreviation`.

Each abbreviation style has a display full form, which is the format produced with the first use of `\gls`, and an inline full form, which is the format produced by `\glsxtrfull`. For some styles, such as long-short, the display and inline forms are identical.

Example 5 demonstrates the difference between the first use of `\gls` compared with the inline full form for the footnote abbreviation style. The example also uses `\glsfirst` to demonstrate that it produces an undesirable result with the selected abbreviation style.

🖹🖺

    \setabbreviationstyle{footnote}
    \newabbreviation{nasa}{NASA}{National Aeronautics and Space
    Administration}

    \begin{document}
    \gls{nasa}['s] space
    exploration\ldots

    \glsxtrfull{nasa}['s] space
    exploration\ldots

    \glsfirst{nasa}['s] space
    exploration\ldots
    \end{document}

Example 5: First use of `\gls` vs `\glsxtrfull` vs `\glsfirst` 📥🖹 📥🖺

In Example 5, the first use of `\gls` puts the long form in the footnote but correctly inserts the final optional argument before the footnote marker. The inline full form (obtained with `\glsxtrfull`) doesn’t use a footnote, but instead shows the long form in parentheses after the short form. The insert material is correctly placed after the short form. Compare this with the final line, which uses `\glsfirst`. This shows the long form in the footnote, but the inserted material can’t be shifted before the footnote marker, which results in the strange “NASA²’s”.

The following commands are included in the set of `\glstext`-like commands. They have the same options as `\glstext` and don’t change the first use flag. They will index (unless noindex is used), create a hyperlink (if enabled), and use the post-link hook.

📌
``\glsxtrshort`[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉
Displays the short form using the abbreviation style’s formatting.

📌
``\Glsxtrshort`[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉
As above, but sentence case version.

📌
``\GLSxtrshort`[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉
As above, but all caps version.

📌
``\glsxtrshortpl`[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉
Displays the short plural form using the abbreviation style’s formatting.

📌
``\Glsxtrshortpl`[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉
As above, but sentence case version.

📌
``\GLSxtrshortpl`[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉
As above, but all caps version.

📌
``\glsxtrlong`[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉
Displays the long form using the abbreviation style’s formatting. As from v1.49, this command simulates first use by defining `\glsxtrifwasfirstuse` to do its first argument. This is done via the command:
📌
``\glsxtrsetlongfirstuse`{〈entry-label〉}`
which is defined as:

    \newcommand{\glsxtrsetlongfirstuse}[1]{%
     \let\glsxtrifwasfirstuse\@firstoftwo%
    }

This command takes the entry label as the argument, which is ignored by default.

To restore the original behaviour, redefine this command as follows:

    🖹\renewcommand{\glsxtrsetlongfirstuse}[1]{%
     \letcs\glsxtrifwasfirstuse{@secondoftwo}%
    }

This command is also used by the case-changing and plural variants listed below.

📌
``\Glsxtrlong`[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉
As above, but sentence case version.

📌
``\GLSxtrlong`[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉
As above, but all caps version.

📌
``\glsxtrlongpl`[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉
Displays the long plural form using the abbreviation style’s formatting.

📌
``\Glsxtrlongpl`[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉
As above, but sentence case version.

📌
``\GLSxtrlongpl`[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉
As above, but all caps version.

📌
``\glsxtrfull`[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉
Displays the inline full form using the abbreviation style’s formatting. Depending on the style, this may not be the same as the text produced with the first use of `\gls`.

📌
``\Glsxtrfull`[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉
As above, but sentence case version.

📌
``\GLSxtrfull`[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉
As above, but all caps version.

📌
``\glsxtrfullpl`[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉
Displays the inline full plural form using the abbreviation style’s formatting. Depending on the style, this may not be the same as the text produced with the first use of `\glspl`.

📌
``\Glsxtrfullpl`[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉
As above, but sentence case version.

📌
``\GLSxtrfullpl`[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉
As above, but all caps version.

📌
``\glsxtrsetupfulldefs``
This hook is used within `\glsxtrfull`, `\glsxtrfullpl` and the case-changing variations to initialise `\glsxtrifwasfirstuse` in case it’s required in the post-link hook. The default definition is to simulate first use. Note that changing this can cause unexpected results with abbreviation styles that set the post-link hook, such as short-postlong-user.

📌
``\glsxtrfullsaveinsert`{〈entry-label〉}{〈insert〉}`
This hook is used within `\glsxtrfull`, `\glsxtrfullpl` and the case-changing variations to initialise the `\glsinsert` placeholder. The default definition is to use `\glsxtrsaveinsert`. If the insert isn’t saved, it can’t be used within the post-link hook for the `\glsxtrfull` etc. This affects the behaviour of the “post-hyphen” abbreviation styles, such as long-hyphen-postshort-hyphen.

[top]

### 4.3.1. Prefixes
[link]

If you are using the glossaries-prefix package (which can be loaded via the prefix package option), then there are commands similar to `\glsxtrshort` and `\glsxtrlong` that insert the corresponding prefix and separator at the front if the short or long form, if the prefix has been set and is non-empty. In all cases, the separator is `\glsprefixsep`, as with `\pgls`.

ℹ
These commands require glossaries-prefix.

📌
``\pglsxtrshort`[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉

As `\glsxtrshort` but inserts the prefix field and separator, if the prefix value is set and non-empty.

📌
``\Pglsxtrshort`[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉

As `\pglsxtrshort` but sentence case. Note the initial “P” in the command name, which matches `\Pgls` (similarly for the other prefix sentence case commands).

📌
``\PGLSxtrshort`[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉

As `\pglsxtrshort` but all caps.

📌
``\pglsxtrshortpl`[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉

As `\glsxtrshortpl` but inserts the prefixplural field and separator, if the prefixplural value is set and non-empty.

📌
``\Pglsxtrshortpl`[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉

As `\pglsxtrshortpl` but sentence case.

📌
``\PGLSxtrshortpl`[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉

As `\pglsxtrshortpl` but all caps.

📌
``\pglsxtrlong`[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉

As `\glsxtrlong` but inserts the prefixfirst field and separator, if the prefixfirst value is set and non-empty.

📌
``\Pglsxtrlong`[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉

As `\pglsxtrlong` but sentence case.

📌
``\PGLSxtrlong`[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉

As `\pglsxtrlong` but all caps.

📌
``\pglsxtrlongpl`[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉

As `\glsxtrlongpl` but inserts the prefixfirstplural field and separator, if the prefixfirstplural value is set and non-empty.

📌
``\Pglsxtrlongpl`[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉

As `\pglsxtrlongpl` but sentence case.

📌
``\PGLSxtrlongpl`[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉

As `\pglsxtrlongpl` but all caps.

[top]

### 4.3.2. Abbreviation Shortcut Commands
[link]

The abbreviation shortcut commands can be enabled using the shortcuts=abbreviations package option (or shortcuts=abbr or shortcuts=ac). The provided shortcut commands listed in Table 4.1. Note that `\glsxtrenablerecordcount` will switch the shortcuts that use the `\cgls`-like commands to the corresponding `\rgls`-like command.

Table 1: Abbreviation Shortcut Commands
Shortcut | Shortcut | Equivalent Command
(shortcuts=abbreviations) | (shortcuts=ac)
`\ab` | `\ac` | `\cgls`
`\abp` | `\acp` | `\cglspl`
`\as` | `\acs` | `\glsxtrshort`
`\asp` | `\acsp` | `\glsxtrshortpl`
`\al` | `\acl` | `\glsxtrlong`
`\alp` | `\aclp` | `\glsxtrlongpl`
`\af` | `\acf` | `\glsxtrfull`
`\afp` | `\acfp` | `\glsxtrfullpl`
`\Ab` | `\Ac` | `\cgls`
`\Abp` | `\Acp` | `\cglspl`
`\As` | `\Acs` | `\Glsxtrshort`
`\Asp` | `\Acsp` | `\Glsxtrshortpl`
`\Al` | `\Acl` | `\Glsxtrlong`
`\Alp` | `\Aclp` | `\Glsxtrlongpl`
`\Af` | `\Acf` | `\Glsxtrfull`
`\Afp` | `\Acfp` | `\Glsxtrfullpl`
`\AB` | `\AC` | `\cGLS`
`\ABP` | `\ACP` | `\cGLSpl`
`\AS` | `\ACS` | `\GLSxtrshort`
`\ASP` | `\ACSP` | `\GLSxtrshortpl`
`\AL` | `\ACL` | `\GLSxtrlong`
`\ALP` | `\ACLP` | `\GLSxtrlongpl`
`\AF` | `\ACF` | `\GLSxtrfull`
`\AFP` | `\ACFP` | `\GLSxtrfullpl`
`\newabbr` | `\newabbr` | `\newabbreviation`

[top]

## 4.4. Tagging Initials
[link]

Initial tagging allows you to highlight the initials that form the abbreviation when the long form is shown in the glossary.

📌
``\GlsXtrEnableInitialTagging`{〈categories〉}{〈cs〉}`modifier: *

🛈
`\GlsXtrEnableInitialTagging` must be placed before the abbreviations are defined.

This command (robustly) defines 〈cs〉 (a control sequence) to accept a single argument, which is the letter (or letters) that needs to be tagged. The normal behaviour of 〈cs〉 within the document is to simply do its argument, but in the glossary it’s activated for those categories that have the tagging attribute set to “true”. For those cases it will use:

📌
``\glsxtrtagfont`{〈text〉}`
This command defaults to ``\underline`{〈text〉}` but may be redefined as required.

The control sequence 〈cs〉 can’t already be defined when used with the unstarred version of `\GlsXtrEnableInitialTagging` for safety reasons. The starred version will overwrite any previous definition of 〈cs〉. As with redefining any commands, ensure that you don’t redefine something important.

The first argument of `\GlsXtrEnableInitialTagging` is a comma-separated list of category names. The tagging attribute will automatically be set to `true` for those categories. You can later set this attribute for other categories (see §10) but this must be done before the glossary is displayed.

For example, the following uses initial tagging for both the acronym and abbreviation categories. The custom command `\itag` is defined as the tagging command.

    🖹\makeglossaries
    \GlsXtrEnableInitialTagging{acronym,abbreviation}{\itag}
    \setabbreviationstyle[acronym]{short-nolong-desc}
    \newacronym
     [description={a system for detecting the location and
     speed of ships, aircraft, etc, through the use of radio
     waves}% description of this term
     ]
     {radar}% identifying label
     {radar}% short form
     {\itag{ra}dio \itag{d}etection \itag{a}nd \itag{r}anging}

    \newabbreviation{xml}{XML}
     {e\itag{x}tensible \itag{m}arkup \itag{l}anguage}

    \newabbreviation[category={other}]{tne}{TNE}
     {\itag{t}agging \itag{n}ot \itag{e}nabled}

    \begin{document}
    First use: \gls{radar}, \gls{xml}, \gls{tne}.

    Long form only: \glsxtrlong{radar}, \glsxtrlong{xml}, \glsxtrlong{tne}.
    \printglossaries
    \end{document}

🖺
Example 6: Tagging abbreviation initials 📥🖹 📥🖺

The underlining of the tagged letters only occurs in the glossary and then only for entries with the tagging attribute set.

[top]

## 4.5. Abbreviation Styles
[link]

The style for a particular category is set using:

📌
``\setabbreviationstyle`[〈category〉]{〈style-name〉}`
If the 〈category〉 is omitted, abbreviation is assumed. Remember that `\newacronym` sets the category to acronym so with `\newacronym` you need to change the style with:

    🖹\setabbreviationstyle[acronym]{〈style-name〉}

ℹ
The abbreviation style must be set before the abbreviation with the corresponding category is defined. If you are using bib2gls, the style must be set before `\GlsXtrLoadResources`.

The style associated with the abbreviation category will be used if an abbreviation is defined with a category that doesn’t have an associated style.

Once you have defined an abbreviation with a given category, you can’t subsequently change the style for that category. You can’t have more than one style per category. The default style for the abbreviation category is long-short and the default style for the acronym category is short-nolong.

In the example below, the custom `latin` category doesn’t have an associated abbreviation style, so it uses the style assigned to the abbreviation category, not the acronym category. The only reason that the “radar” abbreviation (defined with `\newacronym`) uses the style associated with the acronym category is because the default definition of `\newacronym` sets category={acronym}.

🖹🖺

    \usepackage[T1]{fontenc}
    \usepackage{glossaries-extra}
    \setabbreviationstyle{long-short-sc}
    \newabbreviation{html}{html}{hypertext markup language}
    \setabbreviationstyle[acronym]{footnote}
    \newacronym{radar}{radar}{radio detection and ranging}
    \newacronym[category={latin}]{ibid}{ibid}{ibidem}
    \begin{document}
    \gls{html}, \gls{radar} and \gls{ibid}.
    \printunsrtglossaries
    \end{document}

Example 7: Category without an associated abbreviation style 📥🖹 📥🖺

[top]

### 4.5.1. Predefined Abbreviation Styles
[link]

There are two types of abbreviation styles: those that treat the abbreviation as a regular entry (so that `\gls` uses `\glsgenentryfmt` and is encapsulated with `\glsxtrregularfont`) and those that don’t treat the abbreviation as a regular entry (so that `\gls` uses `\glsxtrgenabbrvfmt` and is encapsulated with `\glsxtrabbreviationfont`). See §5.5.5 for further details of those commands.

🛈
The non-regular abbreviation styles allow for more complex formats than the regular styles.

The regular entry abbreviation styles set the regular attribute to `true` for the category assigned to each abbreviation with that style. This means that on first use, `\gls` uses the value of the first field and on subsequent use `\gls` uses the value of the text field (and analogously for the plural and case-changing versions).

The non-regular abbreviation styles don’t set the regular attribute, unless it has already been set, in which case it will be changed to `false`. The first and text fields (and their plural forms) are set, but they aren’t used by commands like `\gls`, which instead use formatting commands, such as `\glsxtrfullformat` and `\glsxtrsubsequentfmt`, which are defined by the style.

In both cases, the first use of `\gls` may not match the text produced by `\glsfirst` (and likewise for the plural and case-changing versions).

The short and long fields are set as appropriate and may be accessed through commands like `\glsxtrshort` and `\glsxtrlong`. These may appear slightly differently to the way the short or long form is displayed within `\gls`, depending on the style.

The sample file sample-abbr-styles.pdf demonstrates all predefined styles described here.

ℹ
For the “sc” styles that use `\textsc`, be careful about your choice of fonts as some only have limited support. For example, you may not be able to combine bold and small-caps. If you’re using pdfLaTeX, I recommend that you at least use the fontenc package with the T1 option or something similar.

The predefined styles have helper commands to make it easier to modify the format. These are described in §4.5.1.3.

Table 4.2 lists the nearest equivalent glossaries-extra abbreviation styles for the predefined acronym styles provided by glossaries, but note that the new styles use different formatting commands.

Table 2: Base Acronym Styles `\setacronymstyle`{〈base-style-name〉} Verses New Abbreviation Styles `\setabbreviationstyle`[〈category〉]{〈new-style-name〉}
Base Style Name | New Style Name
long-sc-short | long-short-sc
long-sm-short | long-short-sm
long-sp-short | long-short with `\renewcommand{`\glsxtrfullsep`}{`\glsabspace`}`
short-long | short-long
sc-short-long | short-sc-long
sm-short-long | short-sm-long
long-short-desc | long-short-desc
long-sc-short-desc | long-short-sc-desc
long-sm-short-desc | long-short-sm-desc
long-sp-short-desc | long-short-desc with `\renewcommand{`\glsxtrfullsep`}{`\glsabspace`}`
short-long-desc | short-long-desc
sc-short-long-desc | short-sc-long-desc
sm-short-long-desc | short-sm-long-desc
dua | long-noshort
dua-desc | long-noshort-desc
footnote | short-footnote
footnote-sc | short-sc-footnote
footnote-sm | short-sm-footnote
footnote-desc | short-footnote-desc
footnote-sc-desc | short-sc-footnote-desc
footnote-sm-desc | short-sm-footnote-desc

The example documents used to illustrate the predefined styles in the sub-sections below are all in the form (document class and options may vary):

    🖹\documentclass{article}
    \usepackage[T1]{fontenc}
    \usepackage[colorlinks]{hyperref}
    \usepackage{glossaries-extra}
    \setabbreviationstyle{〈style-name〉}
    \newabbreviation[〈options〉]{ex}{〈short〉}{long form}
    \begin{document}
    First: \gls{ex}[-insert]. Next: \gls{ex}[-insert].
    Full: \glsxtrfull{ex}[-insert].
    \printunsrtglossaries
    \end{document}

where 〈style-name〉 is the name of the abbreviation style, 〈short〉 is either “SHRT FM” or (for the small caps examples) “shrt fm”. The styles that require the description or user1 key to be set will include that in 〈options〉 otherwise the optional argument of `\newabbreviation` will be omitted. The examples with a style that requires `\textsmaller` will load relsize. The “hyphen” styles set the markwords and markshortwords attributes. Note that hyperref is loaded with the colorlinks option, so the hyperlink text will be red.

The naming scheme for abbreviation styles is as follows:

- •〈field1〉[`-`〈modifier1〉]`-`[post]〈field2〉[`-`〈modifier2〉][`-user`]

  This is for the parenthetical styles. The `-`〈modifier〉 parts may be omitted. These styles display 〈field1〉 followed by 〈field2〉 in parentheses. If 〈field1〉 or 〈field2〉 starts with “no” then that element is omitted from the display style (no parenthetical part) but is included in the inline style.

  If `post` is present then 〈field2〉 is placed after the link text using the post-link hook. Note that this will use the singular form of 〈field2〉 by default, even if `\glspl` is used. The corresponding non-post style will use the matching form for 〈field2〉.

  If the `-`〈modifier〉 part is present and is one of `sc`, `sm` or `em`, then the field has a font changing command applied to it.

  The modifier `-only` indicates that field is only present according to whether or not the entry has been used.

  The modifier `-hyphen` indicates the style will substitute inter-word spaces (that have been marked up with the markwords or markshortwords attributes) will be changed to spaces if the inserted material starts with a hyphen (but not for the set of `\glsxtrshort` and `\glsxtrlong` commands).

  If the `-user` part is present, then the value of the field given by `\glsxtruserfield` (user1), if set, is inserted into the parenthetical material.

  Examples:

  - –long-noshort-sc: 〈field1〉 is the long form, the short form is set in small caps but omitted in the display style.
  - –long-em-short-em: both the long form and the short form are emphasized. The short form is in parentheses.
  - –long-short-em: the short form is emphasized but not the long form. The short form is in parentheses.
  - –long-short-user: if the user1 key has been set, this produces the style 〈long〉 (〈short〉, 〈user1〉) otherwise it just produces 〈long〉 (〈short〉).

  - –long-hyphen-postshort-hyphen: the short form and the inserted material (provided by the final optional argument of commands like `\gls`) is moved to the post-link hook. The long form is formatted according to `\glslonghyphenfont` (or `\glsfirstlonghyphenfont` on first use). The short form is formatted according to `\glsabbrvhyphenfont` (or `\glsfirstabbrvhyphenfont` on first use).

- •〈style〉`-noreg`

  Some styles set the regular attribute. In some cases, there’s a version of the style that doesn’t set this attribute. For example, long-em-noshort-em sets the regular attribute. The long-em-noshort-em-noreg style is a minor variation of that style that sets the attribute to `false`.

  There are a few “noshort” styles, such as long-hyphen-noshort-noreg, where there isn’t a corresponding regular version. This is because the style won’t work properly with the regular attribute set, but the naming scheme is maintained for consistency with the other “noshort” styles.

- •〈field1〉[`-`〈modifier1〉]`-`[`post`]`footnote`

  The display style uses 〈field1〉 followed by a footnote with the other field in it. If `post` is present then the footnote is placed after the link text using the post-link hook. The inline style does 〈field1〉 followed by the other field in parentheses.

  If `-`〈modifier1〉 is present, 〈field1〉 has a font-changing command applied to it.

  Examples:

  - –short-footnote: short form in the text with the long form in the footnote.
  - –short-sc-postfootnote: short form in smallcaps with the long form in the footnote outside of the link text.

  ℹ
  Take care with the footnote styles. Remember that there are some situations where `\footnote` doesn’t work.

- •〈style〉`-desc`

  Like 〈style〉 but the description key must be provided when defining abbreviations with this style.

  Examples:

  - –short-long-desc: like short-long but requires a description.
  - –short-em-footnote-desc: like short-em-footnote but requires a description.

Not all combinations that fit the above syntax are provided. Pre-version 1.04 styles that didn’t fit this naming scheme are either provided with a synonym (where the former name wasn’t ambiguous) or provided with a deprecated synonym (where the former name was confusing).

[top]

#### 4.5.1.1. Regular Styles
[link]

The following abbreviation styles set the regular attribute to `true` for all categories that have abbreviations defined with any of these styles. This means that they are treated like ordinary entries and are encapsulated with `\glsxtrregularfont` not `\glsxtrabbreviationfont`. The `\gls`-like commands are formatted according to `\glsgenentryfmt`.

[top]

##### 4.5.1.1.1. Short Styles
[link]

These styles only show the short form on both first use and subsequent use. See §4.5.1.3.1 and §4.5.1.3.5 for style commands.

𝍢
`short-nolong`
Only the short form is shown on first use of the `\gls`-like commands. The inline full form uses the same parenthetical style as short-long (`\glsxtrshortlongformat`). Font variations are available with short-sc-nolong, short-sm-nolong and short-em-nolong.

    🖹\setabbreviationstyle{short-nolong}
    \newabbreviation{ex}{SHRT FM}{long form}
    \begin{document}
    First: \gls{ex}[-insert]. Next: \gls{ex}[-insert].
    Full: \glsxtrfull{ex}[-insert].
    First plural: \glspl[prereset]{ex}[-insert].
    \printunsrtglossaries
    \end{document}

🖺
Example 8: The short-nolong abbreviation style 📥🖹 📥🖺

The long form is formatted with `\glslongdefaultfont` for the `\glsxtrlong` set of commands.

The short form is formatted with `\glsfirstabbrvdefaultfont` within the full form and with `\glsabbrvdefaultfont` for subsequent use and for the `\glsxtrshort` set of commands.

The name is set to the short form (`\glsxtrshortnolongname`) and the description is set to the unencapsulated long form.

𝍢
`short` alias: short-nolong; alias: short-nolong
A synonym for short-nolong.

𝍢
`short-nolong-desc`
As short-nolong but the description must be supplied in the optional argument of `\newabbreviation`. Font variations are available with short-sc-nolong-desc, short-sm-nolong-desc and short-em-nolong-desc.

    🖹\setabbreviationstyle{short-nolong-desc}
    \newabbreviation[description={sample description}]
    {ex}{SHRT FM}{long form}
    \begin{document}
    First: \gls{ex}[-insert]. Next: \gls{ex}[-insert].
    Full: \glsxtrfull{ex}[-insert].
    First plural: \glspl[prereset]{ex}[-insert].
    \printunsrtglossaries
    \end{document}

🖺
Example 9: The short-nolong-desc abbreviation style 📥🖹 📥🖺

The name is set to the short form followed by the long form in parentheses (`\glsxtrshortdescname`), and the sort is set to just the short form.

𝍢
`short-desc` alias: short-nolong-desc; alias: short-nolong-desc
A synonym for short-nolong-desc.

𝍢
`nolong-short`
The same as short-nolong except for the inline full form, which shows the same parenthetical style as long-short (`\glsxtrlongshortformat`). Font variations are available with nolong-short-sc, nolong-short-sm and nolong-short-em.

    🖹\setabbreviationstyle{nolong-short}
    \newabbreviation{ex}{SHRT FM}{long form}
    \begin{document}
    First: \gls{ex}[-insert]. Next: \gls{ex}[-insert].
    Full: \glsxtrfull{ex}[-insert].
    First plural: \glspl[prereset]{ex}[-insert].
    \printunsrtglossaries
    \end{document}

🖺
Example 10: The nolong-short abbreviation style 📥🖹 📥🖺

𝍢
`short-sc-nolong`
This style is like short-nolong but it uses `\glsxtrscsuffix`, `\glsabbrvscfont` and `\glsfirstabbrvscfont` (see §4.5.1.3.9).

    🖹\setabbreviationstyle{short-sc-nolong}
    \newabbreviation{ex}{shrt fm}{long form}
    \begin{document}
    First: \gls{ex}[-insert]. Next: \gls{ex}[-insert].
    Full: \glsxtrfull{ex}[-insert].
    First plural: \glspl[prereset]{ex}[-insert].
    \printunsrtglossaries
    \end{document}

🖺
Example 11: The short-sc-nolong abbreviation style 📥🖹 📥🖺

𝍢
`short-sc` alias: short-sc-nolong; alias: short-sc-nolong
A synonym for short-sc-nolong.

𝍢
`short-sc-nolong-desc`
This style is like short-nolong-desc but it uses `\glsxtrscsuffix`, `\glsabbrvscfont` and `\glsfirstabbrvscfont` (see §4.5.1.3.9).

    🖹\setabbreviationstyle{short-sc-nolong-desc}
    \newabbreviation[description={sample description}]
    {ex}{shrt fm}{long form}
    \begin{document}
    First: \gls{ex}[-insert]. Next: \gls{ex}[-insert].
    Full: \glsxtrfull{ex}[-insert].
    First plural: \glspl[prereset]{ex}[-insert].
    \printunsrtglossaries
    \end{document}

🖺
Example 12: The short-sc-nolong-desc abbreviation style 📥🖹 📥🖺

𝍢
`short-sc-desc` alias: short-sc-nolong-desc; alias: short-sc-nolong-desc
A synonym for short-sc-nolong-desc.

𝍢
`nolong-short-sc`
This style is like nolong-short but it uses `\glsxtrscsuffix`, `\glsabbrvscfont` and `\glsfirstabbrvscfont` (see §4.5.1.3.9).

    🖹\setabbreviationstyle{nolong-short-sc}
    \newabbreviation{ex}{shrt fm}{long form}
    \begin{document}
    First: \gls{ex}[-insert]. Next: \gls{ex}[-insert].
    Full: \glsxtrfull{ex}[-insert].
    First plural: \glspl[prereset]{ex}[-insert].
    \printunsrtglossaries
    \end{document}

🖺
Example 13: The nolong-short-sc abbreviation style 📥🖹 📥🖺

𝍢
`short-sm-nolong`
This style is like short-nolong but it uses `\glsxtrsmsuffix`, `\glsabbrvsmfont` and `\glsfirstabbrvsmfont` (see §4.5.1.3.9).

    🖹\setabbreviationstyle{short-sm-nolong}
    \newabbreviation{ex}{SHRT FM}{long form}
    \begin{document}
    First: \gls{ex}[-insert]. Next: \gls{ex}[-insert].
    Full: \glsxtrfull{ex}[-insert].
    First plural: \glspl[prereset]{ex}[-insert].
    \printunsrtglossaries
    \end{document}

🖺
Example 14: The short-sm-nolong abbreviation style 📥🖹 📥🖺

𝍢
`short-sm` alias: short-sm-nolong; alias: short-sm-nolong
A synonym for short-sm-nolong.

𝍢
`short-sm-nolong-desc`
This style is like short-nolong-desc but it uses `\glsxtrsmsuffix`, `\glsabbrvsmfont` and `\glsfirstabbrvsmfont` (see §4.5.1.3.9).

    🖹\setabbreviationstyle{short-sm-nolong-desc}
    \newabbreviation[description={sample description}]
    {ex}{SHRT FM}{long form}
    \begin{document}
    First: \gls{ex}[-insert]. Next: \gls{ex}[-insert].
    Full: \glsxtrfull{ex}[-insert].
    First plural: \glspl[prereset]{ex}[-insert].
    \printunsrtglossaries
    \end{document}

🖺
Example 15: The short-sm-nolong-desc abbreviation style 📥🖹 📥🖺

𝍢
`short-sm-desc` alias: short-sm-nolong-desc; alias: short-sm-nolong-desc
A synonym for short-sm-nolong-desc.

𝍢
`nolong-short-sm`
This style is like nolong-short but it uses `\glsxtrsmsuffix`, `\glsabbrvsmfont` and `\glsfirstabbrvsmfont` (see §4.5.1.3.9).

    🖹\setabbreviationstyle{nolong-short-sm}
    \newabbreviation{ex}{SHRT FM}{long form}
    \begin{document}
    First: \gls{ex}[-insert]. Next: \gls{ex}[-insert].
    Full: \glsxtrfull{ex}[-insert].
    First plural: \glspl[prereset]{ex}[-insert].
    \printunsrtglossaries
    \end{document}

🖺
Example 16: The nolong-short-sm abbreviation style 📥🖹 📥🖺

𝍢
`short-em-nolong`
This style is like short-nolong but it uses `\glsxtremsuffix`, `\glsabbrvemfont` and `\glsfirstabbrvemfont` (see §4.5.1.3.9).

    🖹\setabbreviationstyle{short-em-nolong}
    \newabbreviation{ex}{SHRT FM}{long form}
    \begin{document}
    First: \gls{ex}[-insert]. Next: \gls{ex}[-insert].
    Full: \glsxtrfull{ex}[-insert].
    First plural: \glspl[prereset]{ex}[-insert].
    \printunsrtglossaries
    \end{document}

🖺
Example 17: The short-em-nolong abbreviation style 📥🖹 📥🖺

𝍢
`short-em` alias: short-em-nolong; alias: short-em-nolong
A synonym for short-em-nolong.

𝍢
`short-em-nolong-desc`
This style is like short-nolong-desc but it uses `\glsxtremsuffix`, `\glsabbrvemfont` and `\glsfirstabbrvemfont` (see §4.5.1.3.9).

    🖹\setabbreviationstyle{short-em-nolong-desc}
    \newabbreviation[description={sample description}]
    {ex}{SHRT FM}{long form}
    \begin{document}
    First: \gls{ex}[-insert]. Next: \gls{ex}[-insert].
    Full: \glsxtrfull{ex}[-insert].
    First plural: \glspl[prereset]{ex}[-insert].
    \printunsrtglossaries
    \end{document}

🖺
Example 18: The short-em-nolong-desc abbreviation style 📥🖹 📥🖺

𝍢
`short-em-desc` alias: short-em-nolong-desc; alias: short-em-nolong-desc
A synonym for short-em-nolong-desc.

𝍢
`nolong-short-em`
This style is like nolong-short but it uses `\glsxtremsuffix`, `\glsabbrvemfont` and `\glsfirstabbrvemfont` (see §4.5.1.3.9).

    🖹\setabbreviationstyle{nolong-short-em}
    \newabbreviation{ex}{SHRT FM}{long form}
    \begin{document}
    First: \gls{ex}[-insert]. Next: \gls{ex}[-insert].
    Full: \glsxtrfull{ex}[-insert].
    First plural: \glspl[prereset]{ex}[-insert].
    \printunsrtglossaries
    \end{document}

🖺
Example 19: The nolong-short-em abbreviation style 📥🖹 📥🖺

[top]

##### 4.5.1.1.2. Long Styles
[link]

These styles only show the long form on both first use and subsequent use. See §4.5.1.3.1 and §4.5.1.3.6 for style commands.

𝍢
`long-noshort-desc`
Only the long form is shown on first use and subsequent use of the `\gls`-like commands (`\glsxtrlongformat`). The inline full form uses the same parenthetical style as long-short (`\glsxtrlongshortformat`). Font variations are available with long-noshort-sc-desc, long-noshort-sm-desc and long-noshort-em-desc.

    🖹\setabbreviationstyle{long-noshort-desc}
    \newabbreviation[description={sample description}]
    {ex}{SHRT FM}{long form}
    \begin{document}
    First: \gls{ex}[-insert]. Next: \gls{ex}[-insert].
    Full: \glsxtrfull{ex}[-insert].
    First plural: \glspl[prereset]{ex}[-insert].
    \printunsrtglossaries
    \end{document}

🖺
Example 20: The long-noshort-desc abbreviation style 📥🖹 📥🖺

The long form is formatted with `\glsfirstlongdefaultfont` on first use and `\glslongdefaultfont` for subsequent use and for the `\glsxtrlong` set of commands.

The short form is formatted with `\glsfirstabbrvdefaultfont` within the inline full form and with `\glsabbrvdefaultfont` for the `\glsxtrshort` set of commands.

The name is set to the long form (`\glsxtrlongnoshortdescname`) and the description must be supplied.

𝍢
`long-desc` alias: long-noshort-desc; alias: long-noshort-desc
A synonym for long-noshort-desc.

𝍢
`long-noshort`
This is like long-noshort-desc but the name is set to the short form (`\glsxtrlongnoshortname`) and the description is set to the unencapsulated long form.

    🖹\setabbreviationstyle{long-noshort}
    \newabbreviation{ex}{SHRT FM}{long form}
    \begin{document}
    First: \gls{ex}[-insert]. Next: \gls{ex}[-insert].
    Full: \glsxtrfull{ex}[-insert].
    First plural: \glspl[prereset]{ex}[-insert].
    \printunsrtglossaries
    \end{document}

🖺
Example 21: The long-noshort abbreviation style 📥🖹 📥🖺

𝍢
`long` alias: long-noshort; alias: long-noshort
A synonym for long-noshort.

𝍢
`long-noshort-sc`
This style is like long-noshort but it uses `\glsxtrscsuffix`, `\glsabbrvscfont` and `\glsfirstabbrvscfont` (see §4.5.1.3.9).

    🖹\setabbreviationstyle{long-noshort-sc}
    \newabbreviation{ex}{shrt fm}{long form}
    \begin{document}
    First: \gls{ex}[-insert]. Next: \gls{ex}[-insert].
    Full: \glsxtrfull{ex}[-insert].
    First plural: \glspl[prereset]{ex}[-insert].
    \printunsrtglossaries
    \end{document}

🖺
Example 22: The long-noshort-sc abbreviation style 📥🖹 📥🖺

𝍢
`long-noshort-sc-desc`
This style is like long-noshort-desc but it uses `\glsxtrscsuffix`, `\glsabbrvscfont` and `\glsfirstabbrvscfont` (see §4.5.1.3.9).

    🖹\setabbreviationstyle{long-noshort-sc-desc}
    \newabbreviation[description={sample description}]
    {ex}{shrt fm}{long form}
    \begin{document}
    First: \gls{ex}[-insert]. Next: \gls{ex}[-insert].
    Full: \glsxtrfull{ex}[-insert].
    First plural: \glspl[prereset]{ex}[-insert].
    \printunsrtglossaries
    \end{document}

🖺
Example 23: The long-noshort-sc-desc abbreviation style 📥🖹 📥🖺

𝍢
`long-noshort-sm`
This style is like long-noshort but it uses `\glsxtrsmsuffix`, `\glsabbrvsmfont` and `\glsfirstabbrvsmfont` (see §4.5.1.3.9).

    🖹\setabbreviationstyle{long-noshort-sm}
    \newabbreviation{ex}{SHRT FM}{long form}
    \begin{document}
    First: \gls{ex}[-insert]. Next: \gls{ex}[-insert].
    Full: \glsxtrfull{ex}[-insert].
    First plural: \glspl[prereset]{ex}[-insert].
    \printunsrtglossaries
    \end{document}

🖺
Example 24: The long-noshort-sm abbreviation style 📥🖹 📥🖺

𝍢
`long-noshort-sm-desc`
This style is like long-noshort-desc but it uses `\glsxtrsmsuffix`, `\glsabbrvsmfont` and `\glsfirstabbrvsmfont` (see §4.5.1.3.9).

    🖹\setabbreviationstyle{long-noshort-sm-desc}
    \newabbreviation[description={sample description}]
    {ex}{SHRT FM}{long form}
    \begin{document}
    First: \gls{ex}[-insert]. Next: \gls{ex}[-insert].
    Full: \glsxtrfull{ex}[-insert].
    First plural: \glspl[prereset]{ex}[-insert].
    \printunsrtglossaries
    \end{document}

🖺
Example 25: The long-noshort-sm-desc abbreviation style 📥🖹 📥🖺

𝍢
`long-noshort-em`
This style is like long-noshort but it uses `\glsxtremsuffix`, `\glsabbrvemfont` and `\glsfirstabbrvemfont` (see §4.5.1.3.9).

    🖹\setabbreviationstyle{long-noshort-em}
    \newabbreviation{ex}{SHRT FM}{long form}
    \begin{document}
    First: \gls{ex}[-insert]. Next: \gls{ex}[-insert].
    Full: \glsxtrfull{ex}[-insert].
    First plural: \glspl[prereset]{ex}[-insert].
    \printunsrtglossaries
    \end{document}

🖺
Example 26: The long-noshort-em abbreviation style 📥🖹 📥🖺

𝍢
`long-noshort-em-desc`
This style is like long-noshort-desc but it uses `\glsxtremsuffix`, `\glsabbrvemfont` and `\glsfirstabbrvemfont` (see §4.5.1.3.9).

    🖹\setabbreviationstyle{long-noshort-em-desc}
    \newabbreviation[description={sample description}]
    {ex}{SHRT FM}{long form}
    \begin{document}
    First: \gls{ex}[-insert]. Next: \gls{ex}[-insert].
    Full: \glsxtrfull{ex}[-insert].
    First plural: \glspl[prereset]{ex}[-insert].
    \printunsrtglossaries
    \end{document}

🖺
Example 27: The long-noshort-em-desc abbreviation style 📥🖹 📥🖺

𝍢
`long-em-noshort-em`
This style is like long-noshort but it uses `\glsxtremsuffix`, `\glsabbrvemfont`, `\glsfirstabbrvemfont`, `\glslongemfont` and `\glsfirstlongemfont` (see §4.5.1.3.9). This emphasizes both the long and short forms.

    🖹\setabbreviationstyle{long-em-noshort-em}
    \newabbreviation{ex}{SHRT FM}{long form}
    \begin{document}
    First: \gls{ex}[-insert]. Next: \gls{ex}[-insert].
    Full: \glsxtrfull{ex}[-insert].
    First plural: \glspl[prereset]{ex}[-insert].
    \printunsrtglossaries
    \end{document}

🖺
Example 28: The long-em-noshort-em abbreviation style 📥🖹 📥🖺

𝍢
`long-em-noshort-em-desc`
This style is like long-noshort-desc but it uses `\glsxtremsuffix`, `\glsabbrvemfont`, `\glsfirstabbrvemfont`, `\glslongemfont` and `\glsfirstlongemfont` (see §4.5.1.3.9). This emphasizes both the long and short forms.

    🖹\setabbreviationstyle{long-em-noshort-em-desc}
    \newabbreviation[description={sample description}]
    {ex}{SHRT FM}{long form}
    \begin{document}
    First: \gls{ex}[-insert]. Next: \gls{ex}[-insert].
    Full: \glsxtrfull{ex}[-insert].
    First plural: \glspl[prereset]{ex}[-insert].
    \printunsrtglossaries
    \end{document}

🖺
Example 29: The long-em-noshort-em-desc abbreviation style 📥🖹 📥🖺

[top]

#### 4.5.1.2. Non-Regular Styles
[link]

The following abbreviation styles will set the regular attribute to `false` if it has previously been set. If it hasn’t already been set, it’s left unset. Other attributes may also be set, depending on the style.

The non-regular styles are too complicated to use `\glsgenentryfmt` as the display style (with the `\gls`-like commands). Instead they use `\glsxtrgenabbrvfmt`. This means that these styles won’t work if you provide your own custom display style (using `\defglsentryfmt`) that doesn’t check for the regular attribute.

ℹ
Avoid using `\glsfirst`, `\glsfirstplural`, `\glstext` and `\glsplural` (or their case-changing variants) with these styles. There are also some styles that can be problematic with `\GLSname`.

[top]

##### 4.5.1.2.1. Long (Short) Styles
[link]

These styles show the long form followed by the short form in parentheses on first use. On subsequent use only the short form is shown. See §4.5.1.3.1 and §4.5.1.3.2 for style commands.

𝍢
`long-short`
The 〈insert〉 is placed after the long form on first use of the `\gls`-like commands and after the short form on subsequent use. The inline full form is the same as the display full form (`\glsxtrlongshortformat`). Font variations are available with long-short-sc, long-short-sm, long-short-em and long-em-short-em.

    🖹\setabbreviationstyle{long-short}
    \newabbreviation{ex}{SHRT FM}{long form}
    \begin{document}
    First: \gls{ex}[-insert]. Next: \gls{ex}[-insert].
    Full: \glsxtrfull{ex}[-insert].
    First plural: \glspl[prereset]{ex}[-insert].
    \printunsrtglossaries
    \end{document}

🖺
Example 30: The long-short abbreviation style 📥🖹 📥🖺

The long form is formatted with `\glsfirstlongdefaultfont` within the full form and with `\glslongdefaultfont` for the `\glsxtrlong` set of commands.

The short form is formatted with `\glsfirstabbrvdefaultfont` within the full form and with `\glsabbrvdefaultfont` for subsequent use and for the `\glsxtrshort` set of commands.

The name is set to the short form (`\glsxtrlongshortname`) and the description is set to the unencapsulated long form.

𝍢
`long-short-desc`
As long-short but the description must be supplied in the optional argument of `\newabbreviation`. Font variations are available with long-short-sc-desc, long-short-sm-desc, long-short-em-desc and long-em-short-em-desc.

    🖹\setabbreviationstyle{long-short-desc}
    \newabbreviation[description={sample description}]
    {ex}{SHRT FM}{long form}
    \begin{document}
    First: \gls{ex}[-insert]. Next: \gls{ex}[-insert].
    Full: \glsxtrfull{ex}[-insert].
    First plural: \glspl[prereset]{ex}[-insert].
    \printunsrtglossaries
    \end{document}

🖺
Example 31: The long-short-desc abbreviation style 📥🖹 📥🖺

The name and sort are set to the long form followed by the short form in parentheses (`\glsxtrlongshortdescname` and `\glsxtrlongshortdescsort`).

𝍢
`long-short-sc`
This style is like long-short but it uses `\glsxtrscsuffix`, `\glsabbrvscfont` and `\glsfirstabbrvscfont` (see §4.5.1.3.9).

    🖹\setabbreviationstyle{long-short-sc}
    \newabbreviation{ex}{shrt fm}{long form}
    \begin{document}
    First: \gls{ex}[-insert]. Next: \gls{ex}[-insert].
    Full: \glsxtrfull{ex}[-insert].
    First plural: \glspl[prereset]{ex}[-insert].
    \printunsrtglossaries
    \end{document}

🖺
Example 32: The long-short-sc abbreviation style 📥🖹 📥🖺

𝍢
`long-short-sc-desc`
This style is like long-short-desc but it uses `\glsxtrscsuffix`, `\glsabbrvscfont` and `\glsfirstabbrvscfont` (see §4.5.1.3.9).

    🖹\setabbreviationstyle{long-short-sc-desc}
    \newabbreviation[description={sample description}]
    {ex}{shrt fm}{long form}
    \begin{document}
    First: \gls{ex}[-insert]. Next: \gls{ex}[-insert].
    Full: \glsxtrfull{ex}[-insert].
    First plural: \glspl[prereset]{ex}[-insert].
    \printunsrtglossaries
    \end{document}

🖺
Example 33: The long-short-sc-desc abbreviation style 📥🖹 📥🖺

𝍢
`long-short-sm`
This style is like long-short but it uses `\glsxtrsmsuffix`, `\glsabbrvsmfont` and `\glsfirstabbrvsmfont` (see §4.5.1.3.9).

    🖹\setabbreviationstyle{long-short-sm}
    \newabbreviation{ex}{SHRT FM}{long form}
    \begin{document}
    First: \gls{ex}[-insert]. Next: \gls{ex}[-insert].
    Full: \glsxtrfull{ex}[-insert].
    First plural: \glspl[prereset]{ex}[-insert].
    \printunsrtglossaries
    \end{document}

🖺
Example 34: The long-short-sm abbreviation style 📥🖹 📥🖺

𝍢
`long-short-sm-desc`
This style is like long-short-desc but it uses `\glsxtrsmsuffix`, `\glsabbrvsmfont` and `\glsfirstabbrvsmfont` (see §4.5.1.3.9).

    🖹\setabbreviationstyle{long-short-sm-desc}
    \newabbreviation[description={sample description}]
    {ex}{SHRT FM}{long form}
    \begin{document}
    First: \gls{ex}[-insert]. Next: \gls{ex}[-insert].
    Full: \glsxtrfull{ex}[-insert].
    First plural: \glspl[prereset]{ex}[-insert].
    \printunsrtglossaries
    \end{document}

🖺
Example 35: The long-short-sm-desc abbreviation style 📥🖹 📥🖺

𝍢
`long-short-em`
This style is like long-short but it uses `\glsxtremsuffix`, `\glsabbrvemfont` and `\glsfirstabbrvemfont` (see §4.5.1.3.9).

    🖹\setabbreviationstyle{long-short-em}
    \newabbreviation{ex}{SHRT FM}{long form}
    \begin{document}
    First: \gls{ex}[-insert]. Next: \gls{ex}[-insert].
    Full: \glsxtrfull{ex}[-insert].
    First plural: \glspl[prereset]{ex}[-insert].
    \printunsrtglossaries
    \end{document}

🖺
Example 36: The long-short-em abbreviation style 📥🖹 📥🖺

𝍢
`long-short-em-desc`
This style is like long-short-desc but it uses `\glsxtremsuffix`, `\glsabbrvemfont` and `\glsfirstabbrvemfont` (see §4.5.1.3.9).

    🖹\setabbreviationstyle{long-short-em-desc}
    \newabbreviation[description={sample description}]
    {ex}{SHRT FM}{long form}
    \begin{document}
    First: \gls{ex}[-insert]. Next: \gls{ex}[-insert].
    Full: \glsxtrfull{ex}[-insert].
    First plural: \glspl[prereset]{ex}[-insert].
    \printunsrtglossaries
    \end{document}

🖺
Example 37: The long-short-em-desc abbreviation style 📥🖹 📥🖺

𝍢
`long-em-short-em`
This style is like long-short but it uses `\glsxtremsuffix`, `\glsabbrvemfont` and `\glsfirstabbrvemfont`, `\glsfirstlongemfont` and `\glslongemfont` (see §4.5.1.3.9). That is, both the long and short forms are emphasized.

    🖹\setabbreviationstyle{long-em-short-em}
    \newabbreviation{ex}{SHRT FM}{long form}
    \begin{document}
    First: \gls{ex}[-insert]. Next: \gls{ex}[-insert].
    Full: \glsxtrfull{ex}[-insert].
    First plural: \glspl[prereset]{ex}[-insert].
    \printunsrtglossaries
    \end{document}

🖺
Example 38: The long-em-short-em abbreviation style 📥🖹 📥🖺

𝍢
`long-em-short-em-desc`
This style is like long-short-desc but it uses `\glsxtremsuffix`, `\glsabbrvemfont` and `\glsfirstabbrvemfont`, `\glsfirstlongemfont` and `\glslongemfont` (see §4.5.1.3.9). That is, both the long and short forms are emphasized.

    🖹\setabbreviationstyle{long-em-short-em-desc}
    \newabbreviation[description={sample description}]
    {ex}{SHRT FM}{long form}
    \begin{document}
    First: \gls{ex}[-insert]. Next: \gls{ex}[-insert].
    Full: \glsxtrfull{ex}[-insert].
    First plural: \glspl[prereset]{ex}[-insert].
    \printunsrtglossaries
    \end{document}

🖺
Example 39: The long-em-short-em-desc abbreviation style 📥🖹 📥🖺

[top]

##### 4.5.1.2.2. Long (Short, User) Styles
[link]

These styles are like the long (short) styles in §4.5.1.2.1 but additional content can be supplied in the field identified by `\glsxtruserfield`, which will be placed in the parenthetical content on first use (if set). The inline full form is the same as the display full form.

These styles use the commands `\glsxtrusersuffix`, `\glsabbrvuserfont`, `\glsfirstabbrvuserfont`, `\glslonguserfont` and `\glsfirstlonguserfont` (except where noted). See §4.5.1.3.1 and §4.5.1.3.3 for style commands.

If you need to change the font, you can redefine the associated commands (listed above). However, since small caps are awkward because the short plural suffix needs to counteract the small caps, small caps versions are provided.

𝍢
`long-short-user`
This style is like long-short but it includes the additional content in the parentheses on first use or the inline full form. The description is obtained from `\glsuserdescription`, which can be redefined to include the additional information, if required.

    🖹\setabbreviationstyle{long-short-user}
    \newabbreviation[user1={extra info}]{ex}{SHRT FM}{long form}
    \begin{document}
    First: \gls{ex}[-insert]. Next: \gls{ex}[-insert].
    Full: \glsxtrfull{ex}[-insert].
    First plural: \glspl[prereset]{ex}[-insert].
    \printunsrtglossaries
    \end{document}

🖺
Example 40: The long-short-user abbreviation style 📥🖹 📥🖺

𝍢
`long-short-user-desc`
This style is like long-short-user but the description must be supplied. The name is obtained from `\glsxtrlongshortuserdescname`.

    🖹\setabbreviationstyle{long-short-user-desc}
    \newabbreviation[description={sample description},
    user1={extra info}]{ex}{SHRT FM}{long form}
    \begin{document}
    First: \gls{ex}[-insert]. Next: \gls{ex}[-insert].
    Full: \glsxtrfull{ex}[-insert].
    First plural: \glspl[prereset]{ex}[-insert].
    \printunsrtglossaries
    \end{document}

🖺
Example 41: The long-short-user-desc abbreviation style 📥🖹 📥🖺

ℹ
This style is incompatible with `\GLSname`.

If you need to use `\GLSname` with this style, you’ll have to redefine `\glsxtrlongshortuserdescname` so that the field name doesn’t include the entry label. For example:

    🖹\newcommand{\glsxtrlongshortuserdescname}{%
      \protect\glslonguserfont{\the\glslongtok}%
      \space(\protect\glsabbrvuserfont{\the\glsshorttok})%
    }

𝍢
`long-postshort-user`
This style is like long-short-user but the parenthetical material is placed in the post-link hook. Note that, unlike long-short-user, the plural form isn’t used in the parenthetical material. If you require this, you will need to redefine `\glsxtrpostusershortformat`.

    🖹\setabbreviationstyle{long-postshort-user}
    \newabbreviation[user1={extra info}]{ex}{SHRT FM}{long form}
    \begin{document}
    First: \gls{ex}[-insert]. Next: \gls{ex}[-insert].
    Full: \glsxtrfull{ex}[-insert].
    First plural: \glspl[prereset]{ex}[-insert].
    \printunsrtglossaries
    \end{document}

🖺
Example 42: The long-postshort-user abbreviation style 📥🖹 📥🖺

𝍢
`long-postshort-user-desc`
This style is like long-postshort-user but the description must be supplied. The name is obtained from `\glsxtrlongshortuserdescname`.

    🖹\setabbreviationstyle{long-postshort-user-desc}
    \newabbreviation[description={sample description},
    user1={extra info}]{ex}{SHRT FM}{long form}
    \begin{document}
    First: \gls{ex}[-insert]. Next: \gls{ex}[-insert].
    Full: \glsxtrfull{ex}[-insert].
    First plural: \glspl[prereset]{ex}[-insert].
    \printunsrtglossaries
    \end{document}

🖺
Example 43: The long-postshort-user-desc abbreviation style 📥🖹 📥🖺

ℹ
This style is incompatible with `\GLSname`.

If you need to use `\GLSname` with this style, you’ll have to redefine `\glsxtrshortlonguserdescname` so that the field name doesn’t include the entry label, as for long-short-user-desc.

𝍢
`long-postshort-sc-user`
This style is like long-postshort-user but it uses `\glsxtrscusersuffix`, `\glsabbrvscuserfont` and `\glsfirstabbrvscuserfont`. The name value is obtained from `\glsxtrlongshortscusername`.

    🖹\setabbreviationstyle{long-postshort-sc-user}
    \newabbreviation[user1={extra info}]{ex}{shrt fm}{long form}
    \begin{document}
    First: \gls{ex}[-insert]. Next: \gls{ex}[-insert].
    Full: \glsxtrfull{ex}[-insert].
    First plural: \glspl[prereset]{ex}[-insert].
    \printunsrtglossaries
    \end{document}

🖺
Example 44: The long-postshort-sc-user abbreviation style 📥🖹 📥🖺

𝍢
`long-postshort-sc-user-desc`
This style is like long-postshort-sc-user but the description must be supplied. The name is obtained from `\glsxtrlongshortuserdescname`.

    🖹\setabbreviationstyle{long-postshort-sc-user-desc}
    \newabbreviation[description={sample description},
    user1={extra info}]{ex}{shrt fm}{long form}
    \begin{document}
    First: \gls{ex}[-insert]. Next: \gls{ex}[-insert].
    Full: \glsxtrfull{ex}[-insert].
    First plural: \glspl[prereset]{ex}[-insert].
    \printunsrtglossaries
    \end{document}

🖺
Example 45: The long-postshort-sc-user-desc abbreviation style 📥🖹 📥🖺

ℹ
This style is incompatible with `\GLSname`.

If you need to use `\GLSname` with this style, you’ll have to redefine `\glsxtrlongshortscuserdescname` so that the field name doesn’t include the entry label.

[top]

##### 4.5.1.2.3. Short (Long) Styles
[link]

These styles show the short form followed by the long form in parentheses on first use. On subsequent use only the short form is shown. See §4.5.1.3.1 and §4.5.1.3.2 for style commands.

𝍢
`short-long`

The 〈insert〉 is placed after the short form on first use and subsequent use of the `\gls`-like commands. The inline full form is the same as the display full form (`\glsxtrshortlongformat`). Font variations are available with short-sc-long, short-sm-long, short-em-long and short-em-long-em.

    🖹\setabbreviationstyle{short-long}
    \newabbreviation{ex}{SHRT FM}{long form}
    \begin{document}
    First: \gls{ex}[-insert]. Next: \gls{ex}[-insert].
    Full: \glsxtrfull{ex}[-insert].
    First plural: \glspl[prereset]{ex}[-insert].
    \printunsrtglossaries
    \end{document}

🖺
Example 46: The short-long abbreviation style 📥🖹 📥🖺

The long form is formatted with `\glsfirstlongdefaultfont` within the full form and with `\glslongdefaultfont` for the `\glsxtrlong` set of commands.

The short form is formatted with `\glsfirstabbrvdefaultfont` within the full form and with `\glsabbrvdefaultfont` for subsequent use and for the `\glsxtrshort` set of commands.

The name is set to the short form (`\glsxtrlongshortname`) and the description is set to the unencapsulated long form.

𝍢
`short-long-desc`
As short-long but the description must be supplied in the optional argument of `\newabbreviation`. Font variations are available with short-sc-long-desc, short-sm-long-desc, short-em-long-desc and short-em-long-em-desc.

    🖹\setabbreviationstyle{short-long-desc}
    \newabbreviation[description={sample description}]
    {ex}{SHRT FM}{long form}
    \begin{document}
    First: \gls{ex}[-insert]. Next: \gls{ex}[-insert].
    Full: \glsxtrfull{ex}[-insert].
    First plural: \glspl[prereset]{ex}[-insert].
    \printunsrtglossaries
    \end{document}

🖺
Example 47: The short-long-desc abbreviation style 📥🖹 📥🖺

The name is set to the short form followed by the long form in parentheses (`\glsxtrshortlongdescname`), and the sort is set to just the short form (`\glsxtrshortlongdescsort`).

𝍢
`short-sc-long`
This style is like short-long but it uses `\glsxtrscsuffix`, `\glsabbrvscfont` and `\glsfirstabbrvscfont` (see §4.5.1.3.9).

    🖹\setabbreviationstyle{short-sc-long}
    \newabbreviation{ex}{shrt fm}{long form}
    \begin{document}
    First: \gls{ex}[-insert]. Next: \gls{ex}[-insert].
    Full: \glsxtrfull{ex}[-insert].
    First plural: \glspl[prereset]{ex}[-insert].
    \printunsrtglossaries
    \end{document}

🖺
Example 48: The short-sc-long abbreviation style 📥🖹 📥🖺

𝍢
`short-sc-long-desc`
This style is like short-long-desc but it uses `\glsxtrscsuffix`, `\glsabbrvscfont` and `\glsfirstabbrvscfont` (see §4.5.1.3.9).

    🖹\setabbreviationstyle{short-sc-long-desc}
    \newabbreviation[description={sample description}]
    {ex}{shrt fm}{long form}
    \begin{document}
    First: \gls{ex}[-insert]. Next: \gls{ex}[-insert].
    Full: \glsxtrfull{ex}[-insert].
    First plural: \glspl[prereset]{ex}[-insert].
    \printunsrtglossaries
    \end{document}

🖺
Example 49: The short-sc-long-desc abbreviation style 📥🖹 📥🖺

𝍢
`short-sm-long`
This style is like short-long but it uses `\glsxtrsmsuffix`, `\glsabbrvsmfont` and `\glsfirstabbrvsmfont` (see §4.5.1.3.9).

    🖹\setabbreviationstyle{short-sm-long}
    \newabbreviation{ex}{SHRT FM}{long form}
    \begin{document}
    First: \gls{ex}[-insert]. Next: \gls{ex}[-insert].
    Full: \glsxtrfull{ex}[-insert].
    First plural: \glspl[prereset]{ex}[-insert].
    \printunsrtglossaries
    \end{document}

🖺
Example 50: The short-sm-long abbreviation style 📥🖹 📥🖺

𝍢
`short-sm-long-desc`
This style is like short-long-desc but it uses `\glsxtrsmsuffix`, `\glsabbrvsmfont` and `\glsfirstabbrvsmfont` (see §4.5.1.3.9).

    🖹\setabbreviationstyle{short-sm-long-desc}
    \newabbreviation[description={sample description}]
    {ex}{SHRT FM}{long form}
    \begin{document}
    First: \gls{ex}[-insert]. Next: \gls{ex}[-insert].
    Full: \glsxtrfull{ex}[-insert].
    First plural: \glspl[prereset]{ex}[-insert].
    \printunsrtglossaries
    \end{document}

🖺
Example 51: The short-sm-long-desc abbreviation style 📥🖹 📥🖺

𝍢
`short-em-long`
This style is like short-long but it uses `\glsxtremsuffix`, `\glsabbrvemfont` and `\glsfirstabbrvemfont` (see §4.5.1.3.9).

    🖹\setabbreviationstyle{short-em-long}
    \newabbreviation{ex}{SHRT FM}{long form}
    \begin{document}
    First: \gls{ex}[-insert]. Next: \gls{ex}[-insert].
    Full: \glsxtrfull{ex}[-insert].
    First plural: \glspl[prereset]{ex}[-insert].
    \printunsrtglossaries
    \end{document}

🖺
Example 52: The short-em-long abbreviation style 📥🖹 📥🖺

𝍢
`short-em-long-desc`
This style is like short-long-desc but it uses `\glsxtremsuffix`, `\glsabbrvemfont` and `\glsfirstabbrvemfont` (see §4.5.1.3.9).

    🖹\setabbreviationstyle{short-em-long-desc}
    \newabbreviation[description={sample description}]
    {ex}{SHRT FM}{long form}
    \begin{document}
    First: \gls{ex}[-insert]. Next: \gls{ex}[-insert].
    Full: \glsxtrfull{ex}[-insert].
    First plural: \glspl[prereset]{ex}[-insert].
    \printunsrtglossaries
    \end{document}

🖺
Example 53: The short-em-long-desc abbreviation style 📥🖹 📥🖺

𝍢
`short-em-long-em`
This style is like short-long but it uses `\glsxtremsuffix`, `\glsabbrvemfont` and `\glsfirstabbrvemfont`, `\glsfirstlongemfont` and `\glslongemfont` (see §4.5.1.3.9). That is, both the long and short forms are emphasized.

    🖹\setabbreviationstyle{short-em-long-em}
    \newabbreviation{ex}{SHRT FM}{long form}
    \begin{document}
    First: \gls{ex}[-insert]. Next: \gls{ex}[-insert].
    Full: \glsxtrfull{ex}[-insert].
    First plural: \glspl[prereset]{ex}[-insert].
    \printunsrtglossaries
    \end{document}

🖺
Example 54: The short-em-long-em abbreviation style 📥🖹 📥🖺

𝍢
`short-em-long-em-desc`
This style is like short-long-desc but it uses `\glsxtremsuffix`, `\glsabbrvemfont` and `\glsfirstabbrvemfont`, `\glsfirstlongemfont` and `\glslongemfont` (see §4.5.1.3.9). That is, both the long and short forms are emphasized.

    🖹\setabbreviationstyle{short-em-long-em-desc}
    \newabbreviation[description={sample description}]
    {ex}{SHRT FM}{long form}
    \begin{document}
    First: \gls{ex}[-insert]. Next: \gls{ex}[-insert].
    Full: \glsxtrfull{ex}[-insert].
    First plural: \glspl[prereset]{ex}[-insert].
    \printunsrtglossaries
    \end{document}

🖺
Example 55: The short-em-long-em-desc abbreviation style 📥🖹 📥🖺

[top]

##### 4.5.1.2.4. Short (Long, User) Styles
[link]

These styles are like the short (long) styles in §4.5.1.2.3 but additional content can be supplied in the field identified by `\glsxtruserfield`, which will be placed in the parenthetical content on first use (if set). The inline full form is the same as the display full form.

These styles use the commands `\glsxtrusersuffix`, `\glsabbrvuserfont`, `\glsfirstabbrvuserfont`, `\glslonguserfont` and `\glsfirstlonguserfont` (except where noted). See §4.5.1.3.1 and §4.5.1.3.3 for style commands.

𝍢
`short-long-user`
This style is like short-long but it includes the additional content in the parentheses on first use or the inline full form.

The description is obtained from `\glsuserdescription`, which can be redefined to include the additional information, if required.

    🖹\setabbreviationstyle{short-long-user}
    \newabbreviation[user1={extra info}]{ex}{SHRT FM}{long form}
    \begin{document}
    First: \gls{ex}[-insert]. Next: \gls{ex}[-insert].
    Full: \glsxtrfull{ex}[-insert].
    First plural: \glspl[prereset]{ex}[-insert].
    \printunsrtglossaries
    \end{document}

🖺
Example 56: The short-long-user abbreviation style 📥🖹 📥🖺

𝍢
`short-long-user-desc`
This style is like short-long-user but the description must be provided. The name is obtained from `\glsxtrshortlonguserdescname` and the sort value is obtained from `\glsxtrshortlongdescsort`.

    🖹\setabbreviationstyle{short-long-user-desc}
    \newabbreviation[description={sample description},
    user1={extra info}]{ex}{SHRT FM}{long form}
    \begin{document}
    First: \gls{ex}[-insert]. Next: \gls{ex}[-insert].
    Full: \glsxtrfull{ex}[-insert].
    First plural: \glspl[prereset]{ex}[-insert].
    \printunsrtglossaries
    \end{document}

🖺
Example 57: The short-long-user-desc abbreviation style 📥🖹 📥🖺

ℹ
This style is incompatible with `\GLSname`.

If you need to use `\GLSname` with this style, you’ll have to redefine `\glsxtrshortlonguserdescname` so that the field name doesn’t include the entry label. For example:

    🖹\newcommand{\glsxtrlongshortuserdescname}{%
      \protect\glsabbrvuserfont{\the\glsshorttok}%
      \space(\protect\glslonguserfont{\the\glslongtok})%
    }

𝍢
`short-postlong-user`
This style is like short-long but it includes the additional content in the parentheses on first use or the inline full form. The parenthetical content is placed in the post-link hook which can avoid overly long hyperlinks.

The description is obtained from `\glsuserdescription`, which can be redefined to include the additional information, if required.

    🖹\setabbreviationstyle{short-postlong-user}
    \newabbreviation[user1={extra info}]{ex}{SHRT FM}{long form}
    \begin{document}
    First: \gls{ex}[-insert]. Next: \gls{ex}[-insert].
    Full: \glsxtrfull{ex}[-insert].
    First plural: \glspl[prereset]{ex}[-insert].
    \printunsrtglossaries
    \end{document}

🖺
Example 58: The short-postlong-user abbreviation style 📥🖹 📥🖺

𝍢
`short-postlong-user-desc`
This style is like short-postlong-user but the description must be provided. The name is obtained from `\glsxtrshortlonguserdescname`. The sort value is the short form.

    🖹\setabbreviationstyle{short-postlong-user-desc}
    \newabbreviation[description={sample description},
    user1={extra info}]{ex}{SHRT FM}{long form}
    \begin{document}
    First: \gls{ex}[-insert]. Next: \gls{ex}[-insert].
    Full: \glsxtrfull{ex}[-insert].
    First plural: \glspl[prereset]{ex}[-insert].
    \printunsrtglossaries
    \end{document}

🖺
Example 59: The short-postlong-user-desc abbreviation style 📥🖹 📥🖺

ℹ
This style is incompatible with `\GLSname`.

If you need to use `\GLSname` with this style, you’ll have to redefine `\glsxtrshortlonguserdescname` so that the field name doesn’t include the entry label, as for short-long-user-desc.

[top]

##### 4.5.1.2.5. Hyphen Styles
[link]

These styles test if the inserted material start with a hyphen. See §4.5.1.3.1, §4.5.1.3.2 and §4.5.1.3.7 for style commands.

🛈
These styles are designed to be used with the markwords attribute and (if the short form has spaces) the markshortwords attribute. If the inserted material starts with a hyphen, the spaces will be replaced with hyphens. This replacement won’t take place if the corresponding attribute wasn’t used to mark the inter-word spaces.

Note that `\glsxtrshort` and `\glsxtrlong` (and their plural and case-changing variants) don’t perform the inter-word space substitution. The inline full form is slightly different from the display full form for the “post” styles.

𝍢
`long-hyphen-short-hyphen`
This style is like long-short but checks the inserted material for a leading hyphen. The description is the long form encapsulated with `\glslonghyphenfont`. The name is obtained from `\glsxtrlongshortname`, and the sort value is obtained from `\glsxtrlonghyphenshortsort`. The inline full form is the same as the display full form.

    🖹\setabbreviationstyle{long-hyphen-short-hyphen}
    \glssetcategoryattributes{abbreviation}{markwords,markshortwords}{true}
    \newabbreviation{ex}{SHRT FM}{long form}
    \begin{document}
    First: \gls{ex}[-insert]. Next: \gls{ex}[-insert].
    Full: \glsxtrfull{ex}[-insert].
    First plural: \glspl[prereset]{ex}[-insert].
    \printunsrtglossaries
    \end{document}

🖺
Example 60: The long-hyphen-short-hyphen abbreviation style 📥🖹 📥🖺

𝍢
`long-hyphen-postshort-hyphen`
This style is like long-hyphen-short-hyphen but places the insert and parenthetical material in the post-link hook for the display full form.

    🖹\setabbreviationstyle{long-hyphen-postshort-hyphen}
    \glssetcategoryattributes{abbreviation}{markwords,markshortwords}{true}
    \newabbreviation{ex}{SHRT FM}{long form}
    \begin{document}
    First: \gls{ex}[-insert]. Next: \gls{ex}[-insert].
    Full: \glsxtrfull{ex}[-insert].
    First plural: \glspl[prereset]{ex}[-insert].
    \printunsrtglossaries
    \end{document}

🖺
Example 61: The long-hyphen-postshort-hyphen abbreviation style 📥🖹 📥🖺

Note that the inline full form (`\glsxtrfull`) doesn’t show the insert in the post-link hook, but instead places it at the end of the link text. This is because only the `\gls`-like commands (not the `\glstext`-like commands) set the placeholder `\glsinsert` to the supplied insert. If you want the insert to show in the parenthetical part of the post-link hook for the inline full form you need to redefine `\glsxtrfullsaveinsert`:

    🖹\renewcommand*{\glsxtrfullsaveinsert}[2]{\def\glsinsert{#2}}

𝍢
`long-hyphen-short-hyphen-desc`
This style is like long-hyphen-short-hyphen but the description must be supplied. The name is obtained from `\glsxtrlongshortdescname`, and the sort value is obtained from `\glsxtrlongshortdescsort`.

    🖹\setabbreviationstyle{long-hyphen-short-hyphen-desc}
    \glssetcategoryattributes{abbreviation}{markwords,markshortwords}{true}
    \newabbreviation[description={sample description}]
    {ex}{SHRT FM}{long form}
    \begin{document}
    First: \gls{ex}[-insert]. Next: \gls{ex}[-insert].
    Full: \glsxtrfull{ex}[-insert].
    First plural: \glspl[prereset]{ex}[-insert].
    \printunsrtglossaries
    \end{document}

🖺
Example 62: The long-hyphen-short-hyphen-desc abbreviation style 📥🖹 📥🖺

𝍢
`long-hyphen-postshort-hyphen-desc`
This style is like long-hyphen-short-hyphen-desc but places the insert and parenthetical material in the post-link hook for the display full form.

    🖹\setabbreviationstyle{long-hyphen-postshort-hyphen-desc}
    \glssetcategoryattributes{abbreviation}{markwords,markshortwords}{true}
    \newabbreviation[description={sample description}]
    {ex}{SHRT FM}{long form}
    \begin{document}
    First: \gls{ex}[-insert]. Next: \gls{ex}[-insert].
    Full: \glsxtrfull{ex}[-insert].
    First plural: \glspl[prereset]{ex}[-insert].
    \printunsrtglossaries
    \end{document}

🖺
Example 63: The long-hyphen-postshort-hyphen-desc abbreviation style 📥🖹 📥🖺

Note that as with the long-hyphen-postshort-hyphen style, the insert isn’t included in the post-link hook by default for the inline full form. If you want the insert to show in the post-link hook for the inline full form you need to redefine `\glsxtrfullsaveinsert`.

𝍢
`long-hyphen-noshort-desc-noreg`
This style is like long-noshort-desc-noreg but checks the inserted material for a leading hyphen. The description must be supplied. The name is obtained from `\glsxtrlongnoshortdescname`, and the sort value is obtained from `\glsxtrlonghyphennoshortdescsort`.

    🖹\setabbreviationstyle{long-hyphen-noshort-desc-noreg}
    \glssetcategoryattributes{abbreviation}{markwords,markshortwords}{true}
    \newabbreviation[description={sample description}]
    {ex}{SHRT FM}{long form}
    \begin{document}
    First: \gls{ex}[-insert]. Next: \gls{ex}[-insert].
    Full: \glsxtrfull{ex}[-insert].
    First plural: \glspl[prereset]{ex}[-insert].
    \printunsrtglossaries
    \end{document}

🖺
Example 64: The long-hyphen-noshort-desc-noreg abbreviation style 📥🖹 📥🖺

𝍢
`long-hyphen-noshort-noreg`
This style is like long-noshort-noreg but checks the inserted material for a leading hyphen. The description is set to the unencapsulated long form. The name is obtained from `\glsxtrlongnoshortname`, and the sort value is obtained from `\glsxtrlonghyphennoshortsort`.

    🖹\setabbreviationstyle{long-hyphen-noshort-noreg}
    \glssetcategoryattributes{abbreviation}{markwords,markshortwords}{true}
    \newabbreviation{ex}{SHRT FM}{long form}
    \begin{document}
    First: \gls{ex}[-insert]. Next: \gls{ex}[-insert].
    Full: \glsxtrfull{ex}[-insert].
    First plural: \glspl[prereset]{ex}[-insert].
    \printunsrtglossaries
    \end{document}

🖺
Example 65: The long-hyphen-noshort-noreg abbreviation style 📥🖹 📥🖺

𝍢
`short-hyphen-long-hyphen`
This style is like short-long but checks the inserted material for a leading hyphen. The description is the long form encapsulated with `\glslonghyphenfont`. The name is obtained from `\glsxtrshortlongname` and the sort value is obtained from `\glsxtrshorthyphenlongsort`.

    🖹\setabbreviationstyle{short-hyphen-long-hyphen}
    \glssetcategoryattributes{abbreviation}{markwords,markshortwords}{true}
    \newabbreviation{ex}{SHRT FM}{long form}
    \begin{document}
    First: \gls{ex}[-insert]. Next: \gls{ex}[-insert].
    Full: \glsxtrfull{ex}[-insert].
    First plural: \glspl[prereset]{ex}[-insert].
    \printunsrtglossaries
    \end{document}

🖺
Example 66: The short-hyphen-long-hyphen abbreviation style 📥🖹 📥🖺

𝍢
`short-hyphen-postlong-hyphen`
This style is like short-hyphen-long-hyphen but the insert and parenthetical material are placed in the post-link hook for the display full form.

    🖹\setabbreviationstyle{short-hyphen-postlong-hyphen}
    \glssetcategoryattributes{abbreviation}{markwords,markshortwords}{true}
    \newabbreviation{ex}{SHRT FM}{long form}
    \begin{document}
    First: \gls{ex}[-insert]. Next: \gls{ex}[-insert].
    Full: \glsxtrfull{ex}[-insert].
    First plural: \glspl[prereset]{ex}[-insert].
    \printunsrtglossaries
    \end{document}

🖺
Example 67: The short-hyphen-postlong-hyphen abbreviation style 📥🖹 📥🖺

Note that as with the long-hyphen-postshort-hyphen style, the insert isn’t included in the post-link hook by default for the inline full form. If you want the insert to show in the post-link hook for the inline full form you need to redefine `\glsxtrfullsaveinsert` (as described above, for the long-hyphen-postshort-hyphen style).

𝍢
`short-hyphen-long-hyphen-desc`
This style is like short-hyphen-long-hyphen but the description must be supplied. The name is obtained from `\glsxtrshortlongdescname`, and the sort is obtained from `\glsxtrshortlongdescsort`.

    🖹\setabbreviationstyle{short-hyphen-long-hyphen-desc}
    \glssetcategoryattributes{abbreviation}{markwords,markshortwords}{true}
    \newabbreviation[description={sample description}]
    {ex}{SHRT FM}{long form}
    \begin{document}
    First: \gls{ex}[-insert]. Next: \gls{ex}[-insert].
    Full: \glsxtrfull{ex}[-insert].
    First plural: \glspl[prereset]{ex}[-insert].
    \printunsrtglossaries
    \end{document}

🖺
Example 68: The short-hyphen-long-hyphen-desc abbreviation style 📥🖹 📥🖺

𝍢
`short-hyphen-postlong-hyphen-desc`
This style is like short-hyphen-long-hyphen-desc but the insert and parenthetical material are placed in the post-link hook for the display full form.

    🖹\setabbreviationstyle{short-hyphen-postlong-hyphen-desc}
    \glssetcategoryattributes{abbreviation}{markwords,markshortwords}{true}
    \newabbreviation[description={sample description}]
    {ex}{SHRT FM}{long form}
    \begin{document}
    First: \gls{ex}[-insert]. Next: \gls{ex}[-insert].
    Full: \glsxtrfull{ex}[-insert].
    First plural: \glspl[prereset]{ex}[-insert].
    \printunsrtglossaries
    \end{document}

🖺
Example 69: The short-hyphen-postlong-hyphen-desc abbreviation style 📥🖹 📥🖺

Note that as with the long-hyphen-postshort-hyphen style, the insert isn’t included in the post-link hook by default for the inline full form. If you want the insert to show in the post-link hook for the inline full form you need to redefine `\glsxtrfullsaveinsert` (as described above, for the long-hyphen-postshort-hyphen style).

[top]

##### 4.5.1.2.6. Only Styles
[link]

These styles only show the long form on first use and only show the short form on subsequent use. The inline full form is the same as the display full form. See §4.5.1.3.1, §4.5.1.3.2 and §4.5.1.3.8 for style commands.

The inline full form uses a parenthetical style with the long form followed by the short form in parentheses.

𝍢
`long-only-short-only`
The name is obtained from `\glsxtronlyname` and the sort value is just the short form. The description is the long form encapsulated with `\glslongonlyfont`.

    🖹\setabbreviationstyle{long-only-short-only}
    \newabbreviation{ex}{SHRT FM}{long form}
    \begin{document}
    First: \gls{ex}[-insert]. Next: \gls{ex}[-insert].
    Full: \glsxtrfull{ex}[-insert].
    First plural: \glspl[prereset]{ex}[-insert].
    \printunsrtglossaries
    \end{document}

🖺
Example 70: The long-only-short-only abbreviation style 📥🖹 📥🖺

𝍢
`long-only-short-only-desc`
This is like long-only-short-only but the description must be supplied. The name is obtained from `\glsxtronlydescname` and the sort is obtained from `\glsxtronlydescsort`.

    🖹\setabbreviationstyle{long-only-short-only-desc}
    \newabbreviation[description={sample description}]
    {ex}{SHRT FM}{long form}
    \begin{document}
    First: \gls{ex}[-insert]. Next: \gls{ex}[-insert].
    Full: \glsxtrfull{ex}[-insert].
    First plural: \glspl[prereset]{ex}[-insert].
    \printunsrtglossaries
    \end{document}

🖺
Example 71: The long-only-short-only-desc abbreviation style 📥🖹 📥🖺

𝍢
`long-only-short-sc-only`
This is like long-only-short-only but uses small caps. The name is obtained from `\glsxtrsconlyname`, and it uses `\glsabbrvsconlyfont`, `\glsfirstabbrvsconlyfont` and `\glsxtrsconlysuffix` for the abbreviation fonts and plural suffix.

    🖹\setabbreviationstyle{long-only-short-sc-only}
    \newabbreviation{ex}{shrt fm}{long form}
    \begin{document}
    First: \gls{ex}[-insert]. Next: \gls{ex}[-insert].
    Full: \glsxtrfull{ex}[-insert].
    First plural: \glspl[prereset]{ex}[-insert].
    \printunsrtglossaries
    \end{document}

🖺
Example 72: The long-only-short-sc-only abbreviation style 📥🖹 📥🖺

𝍢
`long-only-short-sc-only-desc`
This is like long-only-short-only-desc but uses small caps. The name is obtained from `\glsxtrsconlydescname`, and the sort is obtained from `\glsxtrsconlydescsort`.

    🖹\setabbreviationstyle{long-only-short-sc-only-desc}
    \newabbreviation[description={sample description}]
    {ex}{shrt fm}{long form}
    \begin{document}
    First: \gls{ex}[-insert]. Next: \gls{ex}[-insert].
    Full: \glsxtrfull{ex}[-insert].
    First plural: \glspl[prereset]{ex}[-insert].
    \printunsrtglossaries
    \end{document}

🖺
Example 73: The long-only-short-sc-only-desc abbreviation style 📥🖹 📥🖺

[top]

##### 4.5.1.2.7. Footnote Styles
[link]

These styles show the short form (`\glsxtrshortformat`) with the long form as a footnote on first use. On subsequent use only the short form is shown. See §4.5.1.3.1 and §4.5.1.3.4 for style commands.

The inline full form uses the same parenthetical style as short-long (`\glsxtrshortlongformat`). Font variations are available with short-sc-footnote, short-sm-footnote and short-em-footnote.

𝍢
`short-footnote`
The 〈insert〉 is placed after the short form on first use and subsequent use of the `\gls`-like commands.

🖹🖺

    \setabbreviationstyle{short-footnote}
    \newabbreviation{ex}{SHRT FM}{long form}
    \begin{document}
    First: \gls{ex}[-insert]. Next: \gls{ex}[-insert].
    Full: \glsxtrfull{ex}[-insert].
    First plural: \glspl[prereset]{ex}[-insert].
    \printunsrtglossaries
    \end{document}

Example 74: The short-footnote abbreviation style 📥🖹 📥🖺

The long form is formatted with `\glsfirstlongfootnotefont` within the full form and with `\glslongfootnotefont` for the `\glsxtrlong` set of commands.

The short form is formatted with `\glsfirstabbrvdefaultfont` within the full form and with `\glsabbrvdefaultfont` for subsequent use and for the `\glsxtrshort` set of commands.

The name is set to the short form (`\glsxtrfootnotename`) and the description is set to the unencapsulated long form.

This style automatically sets the nohyperfirst attribute to `true` for the entry’s category.

𝍢
`footnote` alias: short-footnote; alias: short-footnote
A synonym for short-footnote.

𝍢
`short-footnote-desc`
As short-footnote but the description must be supplied in the optional argument of `\newabbreviation`.

🖹🖺

    \setabbreviationstyle{short-footnote-desc}
    \newabbreviation[description={sample description}]
    {ex}{SHRT FM}{long form}
    \begin{document}
    First: \gls{ex}[-insert]. Next: \gls{ex}[-insert].
    Full: \glsxtrfull{ex}[-insert].
    First plural: \glspl[prereset]{ex}[-insert].
    \printunsrtglossaries
    \end{document}

Example 75: The short-footnote-desc abbreviation style 📥🖹 📥🖺

The name is set to the short form followed by the long form in parentheses (`\glsxtrfootnotedescname`), and the sort is set to just the short form (`\glsxtrfootnotedescsort`).

𝍢
`footnote-desc` alias: short-footnote-desc; alias: short-footnote-desc
A synonym for short-footnote-desc.

𝍢
`short-postfootnote`
Similar to short-footnote but the footnote command is placed in the post-link hook. This avoids the problem of nested hyperlinks caused by the footnote marker hyperlink being inside the link text (which is why the short-footnote style switches on the nohyperfirst attribute). Using the post-link hook makes it possible to check for following punctuation so that the footnote marker can be shifted after the punctuation character.

🖹🖺

    \setabbreviationstyle{short-postfootnote}
    \newabbreviation{ex}{SHRT FM}{long form}
    \begin{document}
    First: \gls{ex}[-insert]. Next: \gls{ex}[-insert].
    Full: \glsxtrfull{ex}[-insert].
    First plural: \glspl[prereset]{ex}[-insert].
    \printunsrtglossaries
    \end{document}

Example 76: The short-postfootnote abbreviation style 📥🖹 📥🖺

𝍢
`postfootnote` alias: short-postfootnote; alias: short-postfootnote
A synonym for short-postfootnote.

𝍢
`short-postfootnote-desc`
Similar to short-footnote-desc but the footnote command is placed in the post-link hook as with short-postfootnote.

🖹🖺

    \setabbreviationstyle{short-postfootnote-desc}
    \newabbreviation[description={sample description}]
    {ex}{SHRT FM}{long form}
    \begin{document}
    First: \gls{ex}[-insert]. Next: \gls{ex}[-insert].
    Full: \glsxtrfull{ex}[-insert].
    First plural: \glspl[prereset]{ex}[-insert].
    \printunsrtglossaries
    \end{document}

Example 77: The short-postfootnote-desc abbreviation style 📥🖹 📥🖺

𝍢
`postfootnote-desc` alias: short-postfootnote-desc; alias: short-postfootnote-desc
A synonym for short-postfootnote-desc.

𝍢
`short-sc-footnote`
This style is like short-footnote but it uses `\glsxtrscsuffix`, `\glsabbrvscfont` and `\glsfirstabbrvscfont` (see §4.5.1.3.9).

🖹🖺

    \setabbreviationstyle{short-sc-footnote}
    \newabbreviation{ex}{shrt fm}{long form}
    \begin{document}
    First: \gls{ex}[-insert]. Next: \gls{ex}[-insert].
    Full: \glsxtrfull{ex}[-insert].
    First plural: \glspl[prereset]{ex}[-insert].
    \printunsrtglossaries
    \end{document}

Example 78: The short-sc-footnote abbreviation style 📥🖹 📥🖺

𝍢
`short-sc-footnote-desc`
This style is like short-footnote-desc but it uses `\glsxtrscsuffix`, `\glsabbrvscfont` and `\glsfirstabbrvscfont` (see §4.5.1.3.9).

🖹🖺

    \setabbreviationstyle{short-sc-footnote-desc}
    \newabbreviation[description={sample description}]
    {ex}{shrt fm}{long form}
    \begin{document}
    First: \gls{ex}[-insert]. Next: \gls{ex}[-insert].
    Full: \glsxtrfull{ex}[-insert].
    First plural: \glspl[prereset]{ex}[-insert].
    \printunsrtglossaries
    \end{document}

Example 79: The short-sc-footnote-desc abbreviation style 📥🖹 📥🖺

𝍢
`short-sc-postfootnote`
This style is like short-postfootnote but it uses `\glsxtrscsuffix`, `\glsabbrvscfont` and `\glsfirstabbrvscfont` (see §4.5.1.3.9).

🖹🖺

    \setabbreviationstyle{short-sc-postfootnote}
    \newabbreviation{ex}{shrt fm}{long form}
    \begin{document}
    First: \gls{ex}[-insert]. Next: \gls{ex}[-insert].
    Full: \glsxtrfull{ex}[-insert].
    First plural: \glspl[prereset]{ex}[-insert].
    \printunsrtglossaries
    \end{document}

Example 80: The short-sc-postfootnote abbreviation style 📥🖹 📥🖺

𝍢
`short-sc-postfootnote-desc`
This style is like short-postfootnote-desc but it uses `\glsxtrscsuffix`, `\glsabbrvscfont` and `\glsfirstabbrvscfont` (see §4.5.1.3.9).

🖹🖺

    \setabbreviationstyle{short-sc-postfootnote-desc}
    \newabbreviation[description={sample description}]
    {ex}{shrt fm}{long form}
    \begin{document}
    First: \gls{ex}[-insert]. Next: \gls{ex}[-insert].
    Full: \glsxtrfull{ex}[-insert].
    First plural: \glspl[prereset]{ex}[-insert].
    \printunsrtglossaries
    \end{document}

Example 81: The short-sc-postfootnote-desc abbreviation style 📥🖹 📥🖺

𝍢
`short-sm-footnote`
This style is like short-footnote but it uses `\glsxtrsmsuffix`, `\glsabbrvsmfont` and `\glsfirstabbrvsmfont` (see §4.5.1.3.9).

🖹🖺

    \setabbreviationstyle{short-sm-footnote}
    \newabbreviation{ex}{SHRT FM}{long form}
    \begin{document}
    First: \gls{ex}[-insert]. Next: \gls{ex}[-insert].
    Full: \glsxtrfull{ex}[-insert].
    First plural: \glspl[prereset]{ex}[-insert].
    \printunsrtglossaries
    \end{document}

Example 82: The short-sm-footnote abbreviation style 📥🖹 📥🖺

𝍢
`short-sm-footnote-desc`
This style is like short-footnote-desc but it uses `\glsxtrsmsuffix`, `\glsabbrvsmfont` and `\glsfirstabbrvsmfont` (see §4.5.1.3.9).

🖹🖺

    \setabbreviationstyle{short-sm-footnote-desc}
    \newabbreviation[description={sample description}]
    {ex}{SHRT FM}{long form}
    \begin{document}
    First: \gls{ex}[-insert]. Next: \gls{ex}[-insert].
    Full: \glsxtrfull{ex}[-insert].
    First plural: \glspl[prereset]{ex}[-insert].
    \printunsrtglossaries
    \end{document}

Example 83: The short-sm-footnote-desc abbreviation style 📥🖹 📥🖺

𝍢
`short-sm-postfootnote`
This style is like short-postfootnote but it uses `\glsxtrsmsuffix`, `\glsabbrvsmfont` and `\glsfirstabbrvsmfont` (see §4.5.1.3.9).

🖹🖺

    \setabbreviationstyle{short-sm-postfootnote}
    \newabbreviation{ex}{SHRT FM}{long form}
    \begin{document}
    First: \gls{ex}[-insert]. Next: \gls{ex}[-insert].
    Full: \glsxtrfull{ex}[-insert].
    First plural: \glspl[prereset]{ex}[-insert].
    \printunsrtglossaries
    \end{document}

Example 84: The short-sm-postfootnote abbreviation style 📥🖹 📥🖺

𝍢
`short-sm-postfootnote-desc`
This style is like short-postfootnote-desc but it uses `\glsxtrsmsuffix`, `\glsabbrvsmfont` and `\glsfirstabbrvsmfont` (see §4.5.1.3.9).

🖹🖺

    \setabbreviationstyle{short-sm-postfootnote-desc}
    \newabbreviation[description={sample description}]
    {ex}{SHRT FM}{long form}
    \begin{document}
    First: \gls{ex}[-insert]. Next: \gls{ex}[-insert].
    Full: \glsxtrfull{ex}[-insert].
    First plural: \glspl[prereset]{ex}[-insert].
    \printunsrtglossaries
    \end{document}

Example 85: The short-sm-postfootnote-desc abbreviation style 📥🖹 📥🖺

𝍢
`short-em-footnote`
This style is like short-footnote but it uses `\glsxtremsuffix`, `\glsabbrvemfont` and `\glsfirstabbrvemfont` (see §4.5.1.3.9).

🖹🖺

    \setabbreviationstyle{short-em-footnote}
    \newabbreviation{ex}{SHRT FM}{long form}
    \begin{document}
    First: \gls{ex}[-insert]. Next: \gls{ex}[-insert].
    Full: \glsxtrfull{ex}[-insert].
    First plural: \glspl[prereset]{ex}[-insert].
    \printunsrtglossaries
    \end{document}

Example 86: The short-em-footnote abbreviation style 📥🖹 📥🖺

𝍢
`short-em-footnote-desc`
This style is like short-footnote-desc but it uses `\glsxtremsuffix`, `\glsabbrvemfont` and `\glsfirstabbrvemfont` (see §4.5.1.3.9).

🖹🖺

    \setabbreviationstyle{short-em-footnote-desc}
    \newabbreviation[description={sample description}]
    {ex}{SHRT FM}{long form}
    \begin{document}
    First: \gls{ex}[-insert]. Next: \gls{ex}[-insert].
    Full: \glsxtrfull{ex}[-insert].
    First plural: \glspl[prereset]{ex}[-insert].
    \printunsrtglossaries
    \end{document}

Example 87: The short-em-footnote-desc abbreviation style 📥🖹 📥🖺

𝍢
`short-em-postfootnote`
This style is like short-postfootnote but it uses `\glsxtremsuffix`, `\glsabbrvemfont` and `\glsfirstabbrvemfont` (see §4.5.1.3.9).

🖹🖺

    \setabbreviationstyle{short-em-postfootnote}
    \newabbreviation{ex}{SHRT FM}{long form}
    \begin{document}
    First: \gls{ex}[-insert]. Next: \gls{ex}[-insert].
    Full: \glsxtrfull{ex}[-insert].
    First plural: \glspl[prereset]{ex}[-insert].
    \printunsrtglossaries
    \end{document}

Example 88: The short-em-postfootnote abbreviation style 📥🖹 📥🖺

𝍢
`short-em-postfootnote-desc`
This style is like short-postfootnote-desc but it uses `\glsxtremsuffix`, `\glsabbrvemfont` and `\glsfirstabbrvemfont` (see §4.5.1.3.9).

🖹🖺

    \setabbreviationstyle{short-em-postfootnote-desc}
    \newabbreviation[description={sample description}]
    {ex}{SHRT FM}{long form}
    \begin{document}
    First: \gls{ex}[-insert]. Next: \gls{ex}[-insert].
    Full: \glsxtrfull{ex}[-insert].
    First plural: \glspl[prereset]{ex}[-insert].
    \printunsrtglossaries
    \end{document}

Example 89: The short-em-postfootnote-desc abbreviation style 📥🖹 📥🖺

[top]

##### 4.5.1.2.8. Short Styles
[link]

These styles only show the short form on both first use and subsequent use. See §4.5.1.3.1 and §4.5.1.3.5 for style commands. They are essentially identical to the corresponding regular style listed in §4.5.1.2.8 except that they change the regular attribute to `false`.

𝍢
`short-nolong-noreg`
This style is a non-regular version of the short-nolong style.

𝍢
`short-nolong-desc-noreg`
This style is a non-regular version of the short-nolong-desc style.

𝍢
`nolong-short-noreg`
This style is a non-regular version of the nolong-short style.

[top]

##### 4.5.1.2.9. Long Styles
[link]

These styles only show the long form on both first use and subsequent use. See §4.5.1.3.1 and §4.5.1.3.6 for style commands. They are essentially identical to the corresponding regular style listed in §4.5.1.2.9 except that they change the regular attribute to `false`.

𝍢
`long-noshort-desc-noreg`
This style is a non-regular version of the long-noshort-desc style.

𝍢
`long-noshort-noreg`
This style is a non-regular version of the long-noshort style.

𝍢
`long-em-noshort-em-noreg`
This style is a non-regular version of the long-em-noshort-em style.

𝍢
`long-em-noshort-em-desc-noreg`
This style is a non-regular version of the long-em-noshort-em-desc style.

[top]

#### 4.5.1.3. Formatting Commands and Hooks
[link]

These commands are used by the predefined abbreviation styles. These are considered user commands, which you can redefine to customize the style.

[top]

##### 4.5.1.3.1. General
[link]

These commands apply to all styles.

📌
``\ifglsxtrinsertinside` 〈true〉`\else` 〈false〉`\fi``initial: `\iffalse`
This conditional is used to determine whether the 〈insert〉 part should go inside or outside of the style’s font formatting commands. The default setting is false.

📌
``\glsxtrinsertinsidetrue``
Set the insert inside conditional to true.

📌
``\glsxtrinsertinsidefalse``
Set the insert inside conditional to false.

📌
``\glsxtrparen`{〈text〉}`
Used for parenthetical content in the inline full form and also, for some styles, the display full form. Note that this formats the opening and closing parentheses according to the inner formatting, but not the argument, which should already incorporate it. The default definition is:

    🖹\newcommand*{\glsxtrparen}[1]{%
     \glsxtrgenentrytextfmt{(}#1\glsxtrgenentrytextfmt{)}}

📌
``\glsxtrfullsep`{〈entry-label〉}`
Separator placed before `\glsxtrparen`. This is a space by default, but it includes the inner formatting. The argument (the entry label) is ignored by default:

    🖹\newcommand*{\glsxtrfullsep}[1]{\glsxtrgenentrytextfmt{ }}

You can redefine this to use `\glsabspace` if you want to have a non-breakable space if the short form is less than `\glsacspacemax` in width. (You can use `\glsacspace` instead, but note that `\glsacspace` doesn’t incorporate the inner formatting.)

📌
``\glsabbrvdefaultfont`{〈text〉}`
Abbreviation font command used by styles that don’t have specific font markup (for example, long-short but not long-em-short-em). This just does its argument.

📌
``\glsfirstabbrvdefaultfont`{〈text〉}`
First use abbreviation font command used by styles that don’t have specific font markup. This is defined to just use `\glsabbrvdefaultfont`.

📌
``\glsxtrdefaultrevert`{〈text〉}`
This is the default definition of `\glsxtrrevert` used by styles that don’t have specific font markup. If you redefine `\glsabbrvdefaultfont`, you will need to redefine `\glsxtrdefaultrevert` as applicable.

📌
``\glslongdefaultfont`{〈text〉}`
Long form font command used by styles that don’t have specific font markup. This just does its argument.

📌
``\glsfirstlongdefaultfont`{〈text〉}`
First use long form font command used by styles that don’t have specific font markup. This is defined to just use `\glslongdefaultfont`.

[top]

##### 4.5.1.3.2. Parenthetical Styles
[link]

These commands apply to the parenthetical styles, such as long-short.

📌
``\glsxtrlongshortname``
This command should expand to the value of the name key for styles like long-short. The default definition is:

    🖹\glsxpabbrvfont{\the\glsshorttok}{\glscategorylabel}

📌
``\glsxtrlongshortdescsort``
This command should expand to the sort value used by styles such as long-short-desc. The default definition is:

    🖹\expandonce\glsxtrorglong\space (\expandonce\glsxtrorgshort)

Note that this uses the original 〈long〉 and 〈short〉 values supplied to `\newabbreviation`.

🛈
This command is irrelevant with the “unsrt” family of commands.

📌
``\glsxtrlongshortdescname``
This command should expand to the name value used by styles such as long-short-desc. The default definition is:

    🖹\glsxplongfont{\the\glslongtok}{\glscategorylabel}%
    \protect\glsxtrfullsep{\the\glslabeltok}%
    \protect\glsxtrparen
      {\glsxpabbrvfont{\the\glsshorttok}{\glscategorylabel}}

This essentially expands to 〈long〉 (〈short〉) but includes the style font changing commands, the inner text formatting, and accessibility support.

📌
``\glsxtrshortlongname``
This command should expand to the value of the name key for styles like short-long. The default definition is:

    🖹\glsxpabbrvfont{\the\glsshorttok}{\glscategorylabel}

📌
``\glsxtrshortlongdescsort``
This command should expand to the value of the sort key for styles like short-long-desc. The default definition is just ``\expandonce``\glsxtrorgshort``.

🛈
This command is irrelevant with the “unsrt” family of commands.

📌
``\glsxtrshortlongdescname``
This command should expand to the value of the name key for styles like short-long-desc. The default definition is:

    🖹\glsxpabbrvfont{\the\glsshorttok}{\glscategorylabel}%
    \protect\glsxtrfullsep{\the\glslabeltok}%
    \protect\glsxtrparen
      \glsxplongfont{\the\glslongtok}{\glscategorylabel}

[top]

##### 4.5.1.3.3. User Styles
[link]

These commands apply to the “user” styles, such as long-short-user.

📌
``\glsxtruserfield``
This command should expand to the internal label of the field used to store the additional information that should be shown in the parenthetical material on first use. The default is `useri`, which corresponds to the user1 key.

📌
``\glsxtruserparensep``
The separator used within the parenthetical content. This defaults to a comma followed by a space.

📌
``\glsxtruserfieldfmt`{〈text〉}`
Used to encapsulate the value of the field given by `\glsxtruserfield` within `\glsxtruserparen` and `\GLSxtruserparen`. This simply does its argument by default.

The inner formatting with both `\glsxtruserparen` and `\GLSxtruserparen`, and the case-change with the latter, will be included in the argument of `\glsxtruserfieldfmt`.

For example, to emphasize the user value and separate it with a semi-colon instead of a comma:

    🖹\renewcommand{\glsxtruserparensep}{; }
    \renewcommand{\glsxtruserfieldfmt}[1]{\emph{#1}}

📌
``\glsabbrvuserfont`{〈text〉}`
Formatting for the “user” short form. This defaults to `\glsabbrvdefaultfont`.

📌
``\glsfirstabbrvuserfont`{〈text〉}`
Formatting for the “user” short form shown on first use. This defaults to `\glsabbrvuserfont`.

📌
``\glsxtrusersuffix``initial: `\glsxtrabbrvpluralsuffix`
Short plural suffix used by the “user” styles. This defaults to `\glsxtrabbrvpluralsuffix`.

📌
``\glslonguserfont`{〈text〉}`
Formatting for the “user” long form. This defaults to `\glsabbrvdefaultfont`.

📌
``\glsfirstlonguserfont`{〈text〉}`
Formatting for the “user” short form shown on first use. This defaults to `\glslonguserfont`.

📌
``\glsabbrvscuserfont`{〈text〉}`
Formatting for the “sc-user” short form. This uses `\glsabbrvscfont`, which in turn uses `\textsc` to apply a small caps style, so your document font needs to support it.

🛈
`\textsc` uses small capital glyphs for lowercase characters. Uppercase characters show as normal capitals. This means that you need to use lowercase characters in the abbreviation.

📌
``\glsfirstabbrvscuserfont`{〈text〉}`
Formatting for the “sc-user” short form shown on first use. This defaults to `\glsabbrvscuserfont`.

📌
``\glsxtrscuserrevert`{〈text〉}`
Counteracts the effect of `\glsabbrvscuserfont`. The default is `\glsxtrscrevert`. If you redefine `\glsabbrvscuserfont`, you will need to redefine `\glsxtrscuserrevert` as applicable.

📌
``\glsxtrscusersuffix``
Short plural suffix used by the “sc-user” styles. This defaults to `\glsxtrscsuffix`.

📌
``\glsuserdescription`{〈text〉}{〈entry-label〉}`
The description field is set to this, where the 〈text〉 argument is the long form, for the “user” styles where the description is set by default. This is defined to ignore its second argument:

    🖹\newcommand*{\glsuserdescription}[2]{\glslonguserfont{#1}}

If you want to include the information contained in the field identified by `\glsxtruserfield`, the second argument provides a way of accessing that field without relying on the `\glscurrententrylabel` placeholder. For example:

    🖹\renewcommand*{\glsuserdescription}[2]{%
     \glslonguserfont{#1}%
     \ifglshasfield{\glsxtruserfield}{#2}%
     {, \glscurrentfieldvalue}%
     {}%
    }

📌
``\glsxtruserparen`{〈text〉}{〈entry-label〉}`
If the field given by `\glsxtruserfield` has been set, this essentially does:

    \glsxtrfullsep{〈entry-label〉}\glsxtrparen{〈text〉, 〈user-value〉}

otherwise it does:

    \glsxtrfullsep{〈entry-label〉}\glsxtrparen{〈text〉}

It’s a little more complicated than this as the definition includes the inner formatting around the comma and the field value (〈user-value〉). The comma separator is given by `\glsxtruserparensep`, and the field value is encapsulated with `\glsxtruserfieldfmt` (with the inner formatting inside).

If you redefine this command, you will also need to redefine the following one in a similar manner.

📌
``\GLSxtruserparen`{〈text〉}{〈entry-label〉}`
As above but the content of the field given by `\glsxtruserfield` is converted to all caps. Note that simply applying an uppercase command to `\glsxtruserparen` can fail as it can cause the label to be converted to all caps, which is the reason why a separate command to internally perform the case-change is provided.

📌
``\glsxtrlongshortuserdescname``
Expands to the value for the name key for styles like long-short-user-desc. The default definition is:

    🖹\protect\glslonguserfont{\the\glslongtok}%
    \protect\glsxtruserparen
    {\protect\glsabbrvuserfont{\the\glsshorttok}}{\the\glslabeltok}

📌
``\glsxtrlongshortscusername``
Expands to the value for the name key for styles like long-postshort-sc-user styles where the description is automatically set. The default definition is:

    🖹\protect\glsabbrvscuserfont{\the\glsshorttok}

📌
``\glsxtrlongshortscuserdescname``
Expands to the value for the name key for styles like long-postshort-sc-user-desc. The default definition is:

    🖹\protect\glslonguserfont{\the\glslongtok}%
    \protect\glsxtruserparen
    {\protect\glsabbrvscuserfont{\the\glsshorttok}}{\the\glslabeltok}

📌
``\glsxtrshortlonguserdescname``
Expands to the value for the name key for styles like short-long-user-desc. The default definition is:

    🖹\protect\glsabbrvuserfont{\the\glsshorttok}%
    \protect\glsxtruserparen
      {\protect\glslonguserfont{\the\glslongpltok}}%
      {\the\glslabeltok}

📌
``\glsxtruserlongshortformat`{〈entry-label〉}{〈insert〉}{〈long-fmt-cs〉}{〈short-fmt-cs〉}`
This command is used on the first use of `\gls` or with `\glsxtrfull` by styles like long-short-user to format the long form followed by the short form (with optional user information) in parentheses. The default definition is:

    🖹\newcommand*{\glsxtruserlongshortformat}[4]{%
      \glsxtrlongformat{#1}{#2}{#3}%
      \glsxtrusershortformat{#1}{#4}%
    }

📌
``\Glsxtruserlongshortformat`{〈entry-label〉}{〈insert〉}{〈long-fmt-cs〉}{〈short-fmt-cs〉}`
As above but for sentence case.

📌
``\GLSxtruserlongshortformat`{〈entry-label〉}{〈insert〉}{〈long-fmt-cs〉}{〈short-fmt-cs〉}`
As above but for all caps.

📌
``\glsxtruserlongshortplformat`{〈entry-label〉}{〈insert〉}{〈long-fmt-cs〉}{〈short-fmt-cs〉}`
This command is used on the first use of `\glspl` or with `\glsxtrfullpl` by styles like long-short-user to format the plural long form followed by the plural short form (with optional user information) in parentheses. The default definition is:

    🖹\newcommand*{\glsxtruserlongshortplformat}[4]{%
      \glsxtrlongplformat{#1}{#2}{#3}%
      \glsxtrusershortplformat{#1}{#4}%
    }

📌
``\Glsxtruserlongshortplformat`{〈entry-label〉}{〈insert〉}{〈long-fmt-cs〉}{〈short-fmt-cs〉}`
As above but for sentence case.

📌
``\GLSxtruserlongshortplformat`{〈entry-label〉}{〈insert〉}{〈long-fmt-cs〉}{〈short-fmt-cs〉}`
As above but for all caps.

📌
``\glsxtrusershortlongformat`{〈entry-label〉}{〈insert〉}{〈long-fmt-cs〉}{〈short-fmt-cs〉}`
This command is used on the first use of `\gls` or with `\glsxtrfull` by styles like short-long-user to format the short form followed by the long form (with optional user information) in parentheses. The default definition is:

    🖹\newcommand*{\glsxtrusershortlongformat}[4]{%
      \glsxtrshortformat{#1}{#2}{#3}%
      \glsxtruserlongformat{#1}{#4}%
    }

📌
``\Glsxtrusershortlongformat`{〈entry-label〉}{〈insert〉}{〈long-fmt-cs〉}{〈short-fmt-cs〉}`
As above but for sentence case.

📌
``\GLSxtrusershortlongformat`{〈entry-label〉}{〈insert〉}{〈long-fmt-cs〉}{〈short-fmt-cs〉}`
As above but for all caps.

📌
``\glsxtrusershortlongplformat`{〈entry-label〉}{〈insert〉}{〈long-fmt-cs〉}{〈short-fmt-cs〉}`
This command is used on the first use of `\glspl` or with `\glsxtrfullpl` by styles like short-long-user to format the plural short form followed by the plural long form (with optional user information) in parentheses. The default definition is:

    🖹\newcommand*{\glsxtrusershortlongplformat}[4]{%
      \glsxtrshortplformat{#1}{#2}{#3}%
      \glsxtruserlongplformat{#1}{#4}%
    }

📌
``\Glsxtrusershortlongplformat`{〈entry-label〉}{〈insert〉}{〈long-fmt-cs〉}{〈short-fmt-cs〉}`
As above but for sentence case.

📌
``\GLSxtrusershortlongplformat`{〈entry-label〉}{〈insert〉}{〈long-fmt-cs〉}{〈short-fmt-cs〉}`
As above but for all caps.

📌
``\glsxtrusershortformat`{〈entry-label〉}{〈fmt-cs〉}`
Used to format the singular short form in parentheses (with `\glsxtruserparen`) on the first use of `\gls` or `\Gls` or with `\glsxtrfull` or `\Glsxtrfull` for styles like long-short-user. The default definition is:

    🖹\newcommand*{\glsxtrusershortformat}[2]{%
      \glsxtruserparen{\glsxtrshortformat{#1}{}{#2}}{#1}%
    }

📌
``\glsxtrusershortplformat`{〈entry-label〉}{〈fmt-cs〉}`
As `\glsxtrusershortformat` but for the first use of `\glspl` or with `\glsxtrfull` for styles like long-short-user. This has a similar definition to the above but with `\glsxtrshortplformat`.

📌
``\GLSxtrusershortformat`{〈entry-label〉}{〈fmt-cs〉}`
As `\glsxtrusershortformat` but is used with the all caps `\GLS` or `\GLSxtrfull`. This uses `\GLSxtruserparen` instead of `\glsxtruserparen`.

📌
``\GLSxtrusershortplformat`{〈entry-label〉}{〈fmt-cs〉}`
As `\glsxtrusershortplformat` but is used with the all caps `\GLSpl` or `\GLSxtrfullpl`. This uses `\GLSxtruserparen` instead of `\glsxtruserparen`.

📌
``\glsxtrpostusershortformat`{〈entry-label〉}{〈fmt-cs〉}`
Used in the post-link hook to format the short form in parentheses for styles like long-postshort-user. The default definition is:

    🖹\newcommand*{\glsxtrpostusershortformat}[2]{%
      \glsxtrifallcaps
      {\GLSxtrusershortformat{#1}{#2}}%
      {\glsxtrusershortformat{#1}{#2}}%
    }

Note that this doesn’t check if the plural form was used. If you require this, you will need to redefined this command to include `\glsifplural`:

    🖹\renewcommand*{\glsxtrpostusershortformat}[2]{%
      \glsifplural
      {%
        \glsxtrifallcaps
        {\GLSxtrusershortplformat{#1}{#2}}%
        {\glsxtrusershortplformat{#1}{#2}}%
      }%
      {%
        \glsxtrifallcaps
        {\GLSxtrusershortformat{#1}{#2}}%
        {\glsxtrusershortformat{#1}{#2}}%
      }%
    }

📌
``\glsxtruserlongformat`{〈entry-label〉}{〈fmt-cs〉}`
Used to format the singular long form in parentheses (with `\glsxtruserparen`) on the first use of `\gls` or `\Gls` or with `\glsxtrfull` for styles like short-long-user. The default definition is:

    🖹\newcommand*{\glsxtruserlongformat}[2]{%
      \glsxtruserparen{\glsxtrlongformat{#1}{}{#2}}{#1}%
    }

📌
``\GLSxtruserlongformat`{〈entry-label〉}{〈fmt-cs〉}`
As `\glsxtruserlongformat` but all caps. This uses `\GLSxtruserparen` instead of `\glsxtruserparen`.

📌
``\glsxtruserlongplformat`{〈entry-label〉}{〈fmt-cs〉}`
As `\glsxtruserlongformat` but for the first use of `\glspl` or with `\glsxtrfull` for styles like short-long-user. This has a similar definition to `\glsxtruserlongformat` but with `\glsxtrlongplformat`.

📌
``\GLSxtruserlongplformat`{〈entry-label〉}{〈fmt-cs〉}`
As `\glsxtruserlongplformat` but all caps. This uses `\GLSxtruserparen` instead of `\glsxtruserparen`.

📌
``\glsxtrpostuserlongformat`{〈entry-label〉}{〈fmt-cs〉}`
Used in the post-link hook to format the long form in parentheses for styles like short-postlong-user. The default definition is:

    🖹\newcommand*{\glsxtrpostuserlongformat}[2]{%
      \glsxtrifallcaps
      {\GLSxtruserlongformat{#1}{#2}}%
      {\glsxtruserlongformat{#1}{#2}}%
    }

Note that, as with `\glsxtrpostusershortformat`, this doesn’t check if the plural form was used. If you require this, you will need to redefined this command to include `\glsifplural`.

[top]

##### 4.5.1.3.4. Footnote Styles
[link]

These commands are only used by the footnote styles.

📌
``\glsxtrfootnotename``
This command should expand to the value of the name key. The default definition is:

    🖹\glsxpabbrvfont{\the\glsshorttok}{\glscategorylabel}

📌
``\glsxtrfootnotedescname``
This command should expand to the value of the name key for styles like footnote-desc. The default definition is:

    🖹\glsxpabbrvfont{\the\glsshorttok}{\glscategorylabel}%
    \protect\glsxtrfullsep{\the\glslabeltok}%
    \protect\glsxtrparen
     {\glsxplongfont{\the\glslongtok}{\glscategorylabel}}%

📌
``\glsxtrfootnotedescsort``
This command should expand to the value of the sort key for styles like footnote-desc. The default definition is simply `\the`\glsshorttok``.

🛈
This command is irrelevant with the “unsrt” family of commands.

📌
``\glslongfootnotefont`{〈text〉}`
The formatting command used for the long form in the footnote styles. The default is to simply use `\glslongdefaultfont`.

📌
``\glsfirstlongfootnotefont`{〈text〉}`
The formatting command used for the first use long form in the footnote styles. The default is to simply use `\glslongfootnotefont`.

📌
``\glsxtrabbrvfootnote`{〈entry-label〉}{〈text〉}`
The command that produces the footnote. The default definition ignores the first argument:

    🖹\newcommand*{\glsxtrabbrvfootnote}[2]{\footnote{#2}}

📌
``\glsxtrfootnotelongformat`{〈entry-label〉}{〈fmt-cs〉}`
This command is used within the footnote to display the long form formatted with 〈fmt-cs〉 for the footnote styles on first use of `\gls`, `\Gls` and `\GLS`. The default definition is simply:

    🖹\newcommand*{\glsxtrfootnotelongformat}[2]{%
      \glsxtrlongformat{#1}{}{#2}%
    }

For example, if the footnote should start with an uppercase letter then simply redefine this to use `\Glsxtrlongformat` instead:

    🖹\renewcommand*{\glsxtrfootnotelongformat}[2]{%
      \Glsxtrlongformat{#1}{}{#2}%
    }

📌
``\glsxtrfootnotelongplformat`{〈entry-label〉}{〈fmt-cs〉}`
This command is used within the footnote to display the plural long form formatted with 〈fmt-cs〉 for the footnote styles on first use of `\glspl`, `\Glspl` and `\GLSpl`. The default definition is simply:

    🖹\newcommand*{\glsxtrfootnotelongplformat}[2]{%
      \glsxtrlongplformat{#1}{}{#2}%
    }

📌
``\glsxtrpostfootnotelongformat`{〈entry-label〉}{〈fmt-cs〉}`
This command is used for the “postfootnote” styles. This is simply defined to do `\glsxtrfootnotelongformat`. Note that there’s no plural equivalent as the “postfootnote” styles don’t check if the plural command (`\glspl` etc) was used.

[top]

##### 4.5.1.3.5. No-Long Styles
[link]

These commands are used by the “nolong” styles.

📌
``\glsxtrshortnolongname``
This command should expand to the value of the name key for styles like short-nolong. The default definition is:

    🖹\glsxpabbrvfont{\the\glsshorttok}{\glscategorylabel}

📌
``\glsxtrshortdescname``
This command should expand to the value of the name key for styles like short-nolong-desc. The default definition is:

    🖹\glsxpabbrvfont{\the\glsshorttok}{\glscategorylabel}%
    \protect\glsxtrfullsep{\the\glslabeltok}%
    \protect\glsxtrparen
      {\glsxplongfont{\the\glslongtok}{\glscategorylabel}}%

[top]

##### 4.5.1.3.6. No-Short Styles
[link]

These commands are used by the “noshort” styles.

📌
``\glsxtrlongnoshortdescname``
This command should expand to the value of the name key for styles like long-noshort-desc. The default definition is:

    🖹\glsxplongfont{\the\glslongtok}{\glscategorylabel}

📌
``\glsxtrlongnoshortname``
This command should expand to the value of the name key for styles like long-noshort. The default definition is:

    🖹\glsxpabbrvfont{\the\glsshorttok}{\glscategorylabel}

[top]

##### 4.5.1.3.7. Hyphen Styles
[link]

These are commands used by the “hyphen” styles. They are designed to work with the markwords and markshortwords attributes.

📌
``\glsabbrvhyphenfont`{〈text〉}`
The formatting command used for the short form in the hyphen styles. The default is to simply use `\glsabbrvdefaultfont`.

📌
``\glsfirstabbrvhyphenfont`{〈text〉}`
The formatting command used for the short form in the hyphen styles on first use. The default is to simply use `\glsabbrvhyphenfont`.

📌
``\glslonghyphenfont`{〈text〉}`
The formatting command used for the long form in the hyphen styles. The default is to simply use `\glslongdefaultfont`.

📌
``\glsfirstlonghyphenfont`{〈text〉}`
The formatting command used for the long form in the hyphen styles on first use. The default is to simply use `\glslonghyphenfont`.

📌
``\glsxtrhyphensuffix``initial: `\glsxtrabbrvpluralsuffix`
Short plural suffix used by the “hyphen” styles. This defaults to `\glsxtrabbrvpluralsuffix`.

📌
``\glsxtrlonghyphenshortsort``
Expands to the sort value for the styles like long-hyphen-short-hyphen. This defaults to the original short value (`\glsxtrorgshort`). This command is irrelevant with the “unsrt” family of commands.

📌
``\glsxtrshorthyphenlongsort``
Expands to the sort value for the styles like short-hyphen-long-hyphen. This defaults to the original short value (`\glsxtrorgshort`). This command is irrelevant with the “unsrt” family of commands.

📌
``\glsxtrlonghyphennoshortsort``
Expands to the sort value for the styles like long-hyphen-noshort-noreg. This defaults to the original short value (`\glsxtrorgshort`). This command is irrelevant with the “unsrt” family of commands.

📌
``\glsxtrlonghyphennoshortdescsort``
Expands to the sort value for the styles like long-hyphen-noshort-desc-noreg. This defaults to the original long value (`\glsxtrorglong`). This command is irrelevant with the “unsrt” family of commands.

📌
``\glsxtrlonghyphenshort`{〈entry-label〉}{〈long〉}{〈short〉}{〈insert〉}`
Formats the long and short form for the full or first use long-hyphen-short-hyphen style. This uses `\glsxtrifhyphenstart` to test if the 〈insert〉 starts with a hyphen. If it does, `\glsxtrwordsep` is locally set to `\glsxtrwordsephyphen` to replace the inter-word spaces with hyphens. The short form is placed in parentheses with `\glsxtrparen`, preceded by the `\glsxtrfullsep` separator. The 〈insert〉 is placed after both the long and the short form.

📌
``\GLSxtrlonghyphenshort`{〈entry-label〉}{〈long〉}{〈short〉}{〈insert〉}`
As above, but the 〈insert〉 is converted to all caps. The 〈short〉 and 〈long〉 arguments should be supplied as all caps. Note that it’s not possible to simply do `\glsxtrlonghyphenshort` with ``\MakeUppercase`{〈insert〉}` as the argument as this will interfere with the check to determine if 〈insert〉 starts with a hyphen.

📌
``\glsxtrlonghyphennoshort`{〈entry-label〉}{〈long〉}{〈insert〉}`
Formats the long form for the full or first use long-hyphen-noshort-desc-noreg style. This uses `\glsxtrifhyphenstart` to test if the 〈insert〉 starts with a hyphen. If it does, `\glsxtrwordsep` is locally set to `\glsxtrwordsephyphen` to replace the inter-word spaces with hyphens. The 〈insert〉 is placed after the long form.

📌
``\GLSxtrlonghyphennoshort`{〈entry-label〉}{〈long〉}{〈insert〉}`
As above but converts 〈insert〉 to all caps. The 〈long〉 argument should already be in all caps. Note that it’s not possible to simply do `\glsxtrlonghyphennoshort` with ``\MakeUppercase`{〈insert〉}` as the argument as this will interfere with the check to determine if 〈insert〉 starts with a hyphen.

📌
``\glsxtrlonghyphen`{〈entry-label〉}{〈long〉}{〈insert〉}`
Formats the long form for the full or first use long-hyphen-postshort-hyphen style. This is similar to the above, but the 〈insert〉 argument is only used to check if it starts with a hyphen. The actual 〈insert〉 is placed in the post-link hook.

📌
``\xpglsxtrposthyphenshort``
This command is used in the post-link hook for the long-hyphen-postshort-hyphen style on first use. It expands the placeholder commands (`\glslabel` and `\glsinsert`) and uses `\GLSxtrposthyphenshort` for all caps or `\glsxtrposthyphenshort` otherwise. Note that this doesn’t show the plural by default. If you require the plural form, you need to redefine this to add a check with `\glsifplural`:

    🖹\newcommand*{\xpglsxtrposthyphenshort}{%
      \glsifplural
      {%
        \glsxtrifallcaps
        {%
          \expandafter\GLSxtrposthyphenshortpl\expandafter\glslabel
             \expandafter{\glsinsert}%
        }%
        {%
          \expandafter\glsxtrposthyphenshortpl\expandafter\glslabel
             \expandafter{\glsinsert}%
        }%
      }%
      {%
        \glsxtrifallcaps
        {%
          \expandafter\GLSxtrposthyphenshort\expandafter\glslabel
             \expandafter{\glsinsert}%
        }%
        {%
          \expandafter\glsxtrposthyphenshort\expandafter\glslabel
             \expandafter{\glsinsert}%
        }%
      }%
    }

📌
``\glsxtrposthyphenshort`{〈entry-label〉}{〈insert〉}`
If 〈insert〉 starts with a hyphen, `\glsxtrwordsep` is locally set to `\glsxtrwordsephyphen` to replace the inter-word spaces with hyphens. The 〈insert〉 encapsulated with `\glsfirstlonghyphenfont` is then done (to complete the long form, which has already been displayed with `\glsxtrlonghyphen` in the link text). Then the short form followed by the 〈insert〉 is placed in parentheses (with `\glsxtrparen` preceded by `\glsxtrfullsep`).

📌
``\GLSxtrposthyphenshort`{〈entry-label〉}{〈insert〉}`
As above but all caps.

📌
``\glsxtrposthyphenshortpl`{〈entry-label〉}{〈insert〉}`
As `\glsxtrposthyphenshort` but plural.

📌
``\GLSxtrposthyphenshortpl`{〈entry-label〉}{〈insert〉}`
As above but all caps.

📌
``\xpglsxtrposthyphensubsequent``
This command is used in the post-link hook for the long-hyphen-postshort-hyphen style on subsequent use. It expands the placeholder commands (`\glslabel` and `\glsinsert`) and uses `\GLSxtrposthyphensubsequent` for all caps or `\glsxtrposthyphensubsequent` otherwise.

📌
``\glsxtrposthyphensubsequent`{〈entry-label〉}{〈insert〉}`
This command is used in the post-link hook for the long-hyphen-postshort-hyphen style on subsequent use. Only the 〈insert〉 is done.

📌
``\GLSxtrposthyphensubsequent`{〈entry-label〉}{〈insert〉}`
As above but all caps.

📌
``\glsxtrshorthyphenlong`{〈entry-label〉}{〈short〉}{〈long〉}{〈insert〉}`
Formats the short and long form for the full or first use short-hyphen-long-hyphen style. Similar to `\glsxtrlonghyphenshort` but the short and long forms are swapped.

📌
``\GLSxtrshorthyphenlong`{〈entry-label〉}{〈short〉}{〈long〉}{〈insert〉}`
As above, but the 〈insert〉 is converted to all caps. The 〈short〉 and 〈long〉 arguments should be supplied as all caps. Note that it’s not possible to simply do `\glsxtrshorthyphenlong` with ``\MakeUppercase`{〈insert〉}` as the argument as this will interfere with the check to determine if 〈insert〉 starts with a hyphen.

📌
``\glsxtrshorthyphen`{〈short〉}{〈entry-label〉}{〈insert〉}`
Formats the short form for the full or first use short-hyphen-postlong-hyphen style. The 〈insert〉 argument is only used to check if it starts with a hyphen. The actual 〈insert〉 is placed in the post-link hook.

📌
``\xpglsxtrposthyphenlong``
This command is used in the post-link hook for the short-hyphen-postlong-hyphen style on first use. It expands the placeholder commands (`\glslabel` and `\glsinsert`) and uses `\GLSxtrposthyphenlong` for all caps or `\glsxtrposthyphenlong` otherwise. Note that this doesn’t show the plural by default. If you require the plural form, you need to redefine this to add a check with `\glsifplural`:

    🖹\newcommand*{\xpglsxtrposthyphenlong}{%
      \glsifplural
      {%
        \glsxtrifallcaps
        {%
          \expandafter\GLSxtrposthyphenlongpl\expandafter\glslabel
             \expandafter{\glsinsert}%
        }%
        {%
          \expandafter\glsxtrposthyphenlongpl\expandafter\glslabel
             \expandafter{\glsinsert}%
        }%
      }%
      {%
        \glsxtrifallcaps
        {%
          \expandafter\GLSxtrposthyphenlong\expandafter\glslabel
             \expandafter{\glsinsert}%
        }%
        {%
          \expandafter\glsxtrposthyphenlong\expandafter\glslabel
             \expandafter{\glsinsert}%
        }%
      }%
    }

📌
``\glsxtrposthyphenlong`{〈entry-label〉}{〈insert〉}`
This command is used in the post-link hook for the short-hyphen-postlong-hyphen style on first use. Similar to `\glsxtrposthyphenshort` but shows the long form instead of the short form.

📌
``\GLSxtrposthyphenlong`{〈entry-label〉}{〈insert〉}`
As above but all caps.

📌
``\glsxtrposthyphenlongpl`{〈entry-label〉}{〈insert〉}`
As `\glsxtrposthyphenlong` but plural.

📌
``\GLSxtrposthyphenlongpl`{〈entry-label〉}{〈insert〉}`
As above but all caps.

[top]

##### 4.5.1.3.8. Only Styles
[link]

These are commands used by the “only” styles, such as long-only-short-only.

📌
``\glsabbrvonlyfont`{〈text〉}`
The formatting command used for the short form in the only styles. The default is to simply use `\glsabbrvdefaultfont`.

📌
``\glsfirstabbrvonlyfont`{〈text〉}`
The formatting command used for the short form in the only styles on first use. The default is to simply use `\glsabbrvonlyfont`.

📌
``\glslongonlyfont`{〈text〉}`
The formatting command used for the long form in the only styles. The default is to simply use `\glslongdefaultfont`.

📌
``\glsfirstlongonlyfont`{〈text〉}`
The formatting command used for the long form in the only styles on first use. The default is to simply use `\glslongonlyfont`.

📌
``\glsxtronlysuffix``initial: `\glsxtrabbrvpluralsuffix`
Short plural suffix used by the “only” styles. This defaults to `\glsxtrabbrvpluralsuffix`.

📌
``\glsabbrvsconlyfont`{〈text〉}`
The formatting command used for the short form in the “sc-only” styles. The default is to simply use `\glsabbrvscfont`.

📌
``\glsfirstabbrvsconlyfont`{〈text〉}`
The formatting command used for the short form in the “sc-only” styles on first use. The default is to simply use `\glsabbrvsconlyfont`.

📌
``\glsxtrsconlyrevert`{〈text〉}`
Counteracts the effect of `\glsabbrvsconlyfont`. The default is `\glsxtrscrevert`. If you redefine `\glsabbrvsconlyfont`, you will need to redefine `\glsxtrsconlyrevert` as applicable.

📌
``\glsxtrsconlysuffix``initial: `\glsxtrscsuffix`
Short plural suffix used by the “sc-only” styles. This defaults to `\glsxtrscsuffix`.

📌
``\glsxtronlyname``
Expands to the value for the name key for the “only” styles. The default definition is:

    🖹\protect\glsabbrvonlyfont{\the\glsshorttok}

📌
``\glsxtronlydescname``
Expands to the value for the name key for the “only” styles where the description should be described, such as long-only-short-only-desc. The default definition is:

    🖹\protect\glslongfont{\the\glslongtok}

📌
``\glsxtronlydescsort``
Expands to the value for the sort key for the “only” styles where the description should be described, such as long-only-short-only-desc. The default definition is `\the`\glslongtok``.

🛈
This command is irrelevant with the “unsrt” family of commands.

📌
``\glsxtrsconlyname``
Expands to the value for the name key for the “sc-only” styles. The default definition is:

    🖹\protect\glsabbrvsconlyfont{\the\glsshorttok}

📌
``\glsxtrsconlydescname``
Expands to the value for the name key for the “sc-only” styles where the description should be described. The default definition is to simply use `\glsxtronlydescname`.

📌
``\glsxtrsconlydescsort``
Expands to the value for the sort key for the “sc-only” styles where the description should be described, such as long-only-short-only-desc. The default definition is to simply use `\glsxtronlydescsort`.

🛈
This command is irrelevant with the “unsrt” family of commands.

[top]

##### 4.5.1.3.9. Fonts
[link]

These are commands used by styles that use a particular font shape or size, identified by one of the following two-letter tags: “sc” (`\textsc`), “sm” (`\textsmaller`) or “em” (`\emph`).

🛈
For the “sc-user” styles, see §4.5.1.3.3. For the “sc-only” styles, see §4.5.1.3.8.

📌
``\glsabbrvscfont`{〈text〉}`
Formatting for the “sc” short form. This uses `\textsc` to apply a small caps style, so your document font needs to support it.

🛈
`\textsc` uses small capital glyphs for lowercase characters. Uppercase characters show as normal capitals. This means that you need to use lowercase characters in the abbreviation.

📌
``\glsfirstabbrvscfont`{〈text〉}`
Formatting for the “sc” short form shown on first use. This defaults to `\glsabbrvscfont`.

📌
``\glsxtrscrevert`{〈text〉}`
Counteracts the effect of `\glsabbrvscfont`. This defaults to `\glstextup`. If you redefine `\glsabbrvscfont`, you will need to redefine `\glsxtrscrevert` as applicable.

📌
``\glsxtrscsuffix``
Short plural suffix used by the “sc” styles. This needs to counteract the smallcaps, so it’s defined as:

    🖹\protect\glstextup\glsxtrabbrvpluralsuffix

📌
``\glsabbrvsmfont`{〈text〉}`
Formatting for the “sm” short form. This uses `\textsmaller`, which is defined by the relsize package. You will need to load that package if you want to use any of the “sm” styles.

🛈
`\textsmaller` reduces the font size, so if you want to use it to simulate small caps, you need to use uppercase characters in the abbreviation.

📌
``\glsfirstabbrvsmfont`{〈text〉}`
Formatting for the “sm” short form shown on first use. This defaults to `\glsabbrvsmfont`.

📌
``\glsxtrsmrevert`{〈text〉}`
Counteracts the effect of `\glsabbrvsmfont`. This defaults to `\textlarger`. If you redefine `\glsabbrvsmfont`, you will need to redefine `\glsxtrsmrevert` as applicable.

📌
``\glsxtrsmsuffix``initial: `\glsxtrabbrvpluralsuffix`
Short plural suffix used by the “sm” styles. This defaults to `\glsxtrabbrvpluralsuffix`.

📌
``\glsabbrvemfont`{〈text〉}`
Formatting for the “em” short form. This uses `\emph`.

📌
``\glsfirstabbrvemfont`{〈text〉}`
Formatting for the “em” short form shown on first use. This defaults to `\glsabbrvemfont`.

📌
``\glsxtremrevert`{〈text〉}`
Counteracts the effect of `\glsabbrvemfont`. This defaults to `\textup`. If you redefine `\glsabbrvemfont`, you will need to redefine `\glsxtremrevert` as applicable.

📌
``\glsxtremsuffix``initial: `\glsxtrabbrvpluralsuffix`
Short plural suffix used by the “em” styles. This defaults to `\glsxtrabbrvpluralsuffix`.

📌
``\glslongemfont`{〈text〉}`
Formatting for the “em” long form. This uses `\emph`.

📌
``\glsfirstlongemfont`{〈text〉}`
Formatting for the “em” short form shown on first use. This defaults to `\glslongemfont`.

[top]

### 4.5.2. Advanced Style Commands
[link]

These commands should typically not be needed in a document, but are provided for advanced users. See §4.5.1.3 for commands to adjust the predefined abbreviation styles.

📌
``\glssetabbrvfmt`{〈category〉}`
Sets the current formatting commands (§4.5.3.2) associated with the abbreviation style associated with the given category. That is, the command redefinitions provided in the third argument (〈display definitions〉) of `\newabbreviationstyle` are applied.

If no abbreviation style has been set for the given category, the style associated with the abbreviation category is used.

This command is used:

- •At the start of `\glsentryfmt` if the current entry has the short field set. This ensures that the `\gls`-like commands use the appropriate formatting.

- •At the start of `\glsxtrassignfieldfont` if the current entry has the short field set. This ensures that the `\gls`-like commands use the appropriate formatting (where possible).

- •At the start of `\glsxtrshort`, `\glsxtrlong`, `\glsxtrfull` and their plural and case-changing variants.

- •At the start of `\glossentryname`, `\glossentrynameother`, `\glossentrydesc`, `\Glossentrydesc`, `\glossentrysymbol` and `\Glossentrysymbol`.

📌
``\glsuseabbrvfont`{〈style-name〉}{〈text〉}`
A robust command that applies the abbreviation font for the given category to the supplied text.

📌
``\glsuselongfont`{〈style-name〉}{〈text〉}`
A robust command that applies the long font for the given category to the supplied text.

📌
``\GlsXtrUseAbbrStyleSetup`{〈style-name〉}`
This implements the given abbreviation style’s setup code. Note that this expects the placeholder macros and token registers to be set. This may be used in the 〈setup〉 of `\newabbreviationstyle` to inherit the setup code of a related style.

📌
``\GlsXtrUseAbbrStyleFmts`{〈style-name〉}`
This implements the given abbreviation style’s display definitions code. This may be used in the 〈display definitions〉 of `\newabbreviationstyle` to inherit the formatting of a related style.

📌
``\xpglsxtrpostabbrvfootnote``
This is used by styles like postfootnote to ensure that the label and inner and outer formatting are expanded before being passed to `\glsxtrpostabbrvfootnote`, otherwise they may lose their definitions before the footnote text is typeset.

📌
``\glsxtrpostabbrvfootnote`{〈entry-label〉}{〈fmt-code〉}`
This is used by the footnote styles that defer the footnote to the post-link hook. The default definition is:

    🖹\newrobustcmd*{\glsxtrpostabbrvfootnote}[2]{%
     \glsxtrabbrvfootnote{#1}%
     {#2\glsxtrpostfootnotelongformat{#1}{\glsfirstlongfootnotefont}}%
    }

The second argument will be the expansion of `\glsxtrassignlinktextfmt`, to allow the inner formatting to be picked up, if required.

📌
``\glsxtrifhyphenstart`{〈text〉}{〈true〉}{〈false〉}`
This command is used by the hyphen styles to determine if the insert material starts with a hyphen. Does 〈true〉 if 〈text〉 starts with a hyphen otherwise does 〈false〉.

📌
``\GlsXtrWarnDeprecatedAbbrStyle`{〈old-name〉}{〈new-name〉}`
This command is used to generate a warning (with `\GlossariesExtraWarning`) if a deprecated abbreviation style is used.

[top]

### 4.5.3. Defining New Abbreviation Styles
[link]

If none of the predefined styles suit your requirements, you can define your own custom style using:

📌
``\newabbreviationstyle`{〈style-name〉}{〈setup〉}{〈display definitions〉}`
The first argument is the style name. This is used internally to form control sequences, so the name shouldn’t contain any special characters.

The second argument sets up the information that’s required when an abbreviation is defined (which is why the style must be set before the abbreviations with that style are defined). The relevant commands for this argument are listed in §4.5.3.1.

The third argument defines the commands that determine how the display style (`\gls`) and the inline style (`\glsxtrfull`) are formatted. The relevant commands for this argument are listed in §4.5.3.2.

📌
``\renewabbreviationstyle`{〈style-name〉}{〈setup〉}{〈display definitions〉}`
Redefines an existing abbreviation style.

📌
``\letabbreviationstyle`{〈new style〉}{〈existing style〉}`
Defines a synonym of an existing abbreviation style.

[top]

#### 4.5.3.1. Style Initialisation Hooks
[link]

The style initialisation hooks should be placed in the second argument (〈setup〉) of `\newabbreviationstyle`. They ensure that all the fields are correctly initialised when the entry is defined with the underlying `\newglossaryentry` command. They may also be used to set category attributes.

The following is prepended to 〈setup〉 to initialise the final hook:

    🖹\renewcommand*{\GlsXtrPostNewAbbreviation}{}

When an entry is defined with `\newabbreviation`, the following steps are performed:

1. 1.Token registers are initialised to the information provided in the arguments of `\newabbreviation`: `\glskeylisttok`, `\glslabeltok`, `\glsshorttok` and `\glslongtok`.

2. 2.The commands `\glsxtrorgkeylist`, `\glsxtrorgshort` and `\glsxtrorglong` are defined to the options, short and long values supplied to `\newabbreviation`. (The `\glskeylisttok` `\glsshorttok` and `\glslongtok` token registers may be changed before the entry is actually defined. These commands may be used to obtain the original values.)

3. 3.`\ExtraCustomAbbreviationFields` is initialised to do nothing.

4. 4.Accessibility settings are initialised, if required. These redefine `\ExtraCustomAbbreviationFields` to set the accessibility fields.

5. 5.The command `\glscategorylabel` is defined to `abbreviation`.

6. 6.The options list is parsed for the following keys: category and, if accessibility is enabled, access, textaccess, pluralaccess, firstaccess, firstpluralaccess, shortaccess, shortpluralaccess, longaccess, and longpluralaccess.

7. 7.The abbreviation style is applied for the category given by `\glscategorylabel` (which may have been changed when the options were parsed in the previous step) or the fallback if no abbreviation style is associated with that category. This performs both the 〈setup〉 and 〈display definitions〉 provided when the style was defined with `\newabbreviationstyle`.

8. 8.The long plural form is initialised to its default value (〈long〉`\glspluralsuffix`).

9. 9.The markwords attribute, if set, is implemented for the singular long form. It will also mark the entry as having a description with formatting (using `\glsexclapplyinnerfmtfield`).

10. 10.The markshortwords attribute is implemented, if set, otherwise the insertdots attribute is implemented, if set, for the singular short form.

11. 11.The aposplural attribute is implemented, if set, otherwise the noshortplural attribute is implemented, if set. This step will set the default short plural.

12. 12.`\glsshorttok` is updated to reflect any changes.

13. 13.The `\glsxtrnewabbrevpresetkeyhook` hook is performed.

14. 14.The options list is parsed for the shortplural and longplural keys. The `\glskeylisttok` token is updated to only include the remaining keys that haven’t yet been processed.

15. 15.The markwords attribute, if set, is implemented for the plural long form.

16. 16.The markshortwords attribute, if set, otherwise the insertdots attribute, if set, is implemented for the plural short form.

17. 17.The `\glsshortpltok` and `\glslongpltok` registers are set.

18. 18.`\newabbreviationhook` performed.

19. 19.The entry is defined using `\newglossaryentry` with the key value list:

        🖹type={\glsxtrabbrvtype},
        category={abbreviation},
        short={\the\glsshorttok},
        shortplural={\the\glsshortpltok},
        long={\the\glslongtok},
        longplural={\the\glslongpltok},
        name={\the\glsshorttok},
        \CustomAbbreviationFields,
        \ExtraCustomAbbreviationFields
        \the\glskeylisttok

20. 20.Add the name, first, firstplural, text and plural keys to the list of inner formatting exclusions, as they include formatting commands.

21. 21.Final hook `\GlsXtrPostNewAbbreviation` performed.

Note that when these hooks (except the last) are used, the entry hasn’t yet been defined. However, some information will have already been picked up from the arguments of `\newabbreviation`. These can be accessed in the hooks using the following (but make sure they are fully expanded):

📌
``\glscategorylabel``
Expands to the entry’s category label.

📌
``\glskeylisttok``
A token register that contains the options that were passed to `\newabbreviation` with pre-processed options removed. Use `\the`\glskeylisttok`` to expand it.

The original option list, as supplied to `\newabbreviation`, can be obtained with:

📌
``\glsxtrorgkeylist``
(Not a token register.)

📌
``\glslabeltok``
A token register that contains the entry’s label. Use `\the`\glslabeltok`` to expand it.

📌
``\glsshorttok``
A token register that contains the short form (which may have been modified after being passed to `\newabbreviation`). Use `\the`\glsshorttok`` to expand it.

The original short form, as supplied to `\newabbreviation`, can be obtained with:

📌
``\glsxtrorgshort``
(Not a token register.)

📌
``\glsshortpltok``
A token register that contains the short plural form (which may have been obtained from the short form or modified after being passed to `\newabbreviation`). Use `\the`\glsshortpltok`` to expand it.

📌
``\glslongtok``
A token register that contains the long form (which may have been modified after being passed to `\newabbreviation`). Use `\the`\glslongtok`` to expand it.

The original long form, as supplied to `\newabbreviation`, can be obtained with:

📌
``\glsxtrorglong``
(Not a token register.)

📌
``\glslongpltok``
A token register that contains the long plural form (which may have been obtained from the long form or modified after being passed to `\newabbreviation`). Use `\the`\glslongpltok`` to expand it.

📌
``\ExtraCustomAbbreviationFields``
Expands to additional field definitions for the entry. This is used to add the accessibility fields (such as shortaccess), if enabled. The abbreviation style may append (`\appto`) or prepend (`\preto`) additional information, if required, to this hook.

ℹ
If you alter this hook, make sure that you include the trailing comma after each `〈key〉={value}`, including the last one.

📌
``\CustomAbbreviationFields``
Expands to the default field definitions for the entry. Take care to protect any commands that shouldn’t be expanded. The comma may be omitted from the final `〈key〉={value}`.

📌
``\GlsXtrPostNewAbbreviation``
A hook that’s used after the entry has been defined (at the end of `\newabbreviation`). This can be used to set category attributes, define the post-link hook, or mark the entry as having a complex style (with `\glsxtrsetcomplexstyle`).

For example, the long-short abbreviation style includes the following in 〈setup〉:

    🖹\renewcommand*{\GlsXtrPostNewAbbreviation}{%
      \glsxtrsetcomplexstyle{\the\glslabeltok}{3}%
      \glshasattribute{\the\glslabeltok}{regular}%
      {%
        \glssetattribute{\the\glslabeltok}{regular}{false}%
      }%
      {}%
    }

Note that in the above, the commands within the definition of `\GlsXtrPostNewAbbreviation` are all expanded when that hook is used. However, if this hook defines other commands or hooks that will be used later, then make sure that the definitions of those commands use the inner hook’s own placeholder commands.

🛈
Remember that the post-link hook uses `\glslabel` to reference the current label. Don’t use `\glslabeltok` as that will contain the label of the last abbreviation to be defined.

For example, the long-hyphen-postshort-hyphen style has:

    🖹\renewcommand*{\GlsXtrPostNewAbbreviation}{%
      \glsexclapplyinnerfmtfield{\the\glslabeltok}{desc}%
      \csdef{glsxtrpostlink\glscategorylabel}{%
        \glsxtrifwasfirstuse
        {%
          \expandafter\glsxtrposthyphenshort\expandafter\glslabel
           \expandafter{\glsinsert}%
        }%
        {%
          \expandafter\glsxtrposthyphensubsequent\expandafter\glslabel
           \expandafter{\glsinsert}%
        }%
      }%
      \glshasattribute{\the\glslabeltok}{regular}%
      {%
        \glssetattribute{\the\glslabeltok}{regular}{false}%
      }%
      {}%
    }

In the above, `\glslabeltok` and `\glscategorylabel` are used in the parts that will be expanded at the end of `\newabbreviation`, but `\glslabel` and `\glsinsert` are used in the definition of the post-link hook, which won’t be expanded until the entry is referenced in the document with a command such as `\gls`. (The use of `\expandafter` is included to assist innertextformat.)

📌
``\glsxtrsetcomplexstyle`{〈entry-label〉}{〈n〉}`
This command should go in the definition of `\GlsXtrPostNewAbbreviation` to indicate that the entry given by 〈entry-label〉 has an abbreviation style that is complex. The second argument 〈n〉 should be numeric and indicates why it doesn’t work with `\glsfirst`, `\Glsfirst`, `\GLSfirst`, `\glsfirstplural`, `\Glsfirstplural` or `\GLSfirstplural`: 1 (all caps doesn’t work), 2 (all caps and insert doesn’t work), 3 (insert doesn’t work).

📌
``\glsfirstinnerfmtabbrvfont`{〈text〉}`
This is a robust command that applies both `\glsfirstabbrvfont` and the inner formatting command `\glsxtrgenentrytextfmt`. This is used by the following command.

📌
``\glsfirstxpabbrvfont`{〈text〉}{〈category〉}`
If the markshortwords attribute is true, this does `\protect`\glsfirstabbrvfont`{〈text〉}` otherwise it does ``\glsfirstinnerfmtabbrvfont`{〈text〉}`.

This command is designed to be used within `\CustomAbbreviationFields` to set the first and firstplural keys, so it needs to partially expand within `\newabbreviation`. For example, the postfootnote includes the following lines in the definition of `\CustomAbbreviationFields`:

    🖹first={\glsfirstxpabbrvfont{\the\glsshorttok}{\glscategorylabel}},%
    firstplural={\glsfirstxpabbrvfont{\the\glsshortpltok}{\glscategorylabel}},

This will be expanded before being passed to `\newglossaryentry`. If the markshortwords attribute is true, this will end up as:

    🖹first={\protect\glsfirstabbrvfont{〈short〉}},%
    firstplural={\protect\glsfirstabbrvfont{〈shortpl〉}}

otherwise it will end up as:

    🖹first={\glsfirstinnerfmtabbrvfont{〈short〉}},%
    firstplural={\glsfirstinnerfmtabbrvfont{〈shortpl〉}},%

where 〈short〉 and 〈shortpl〉 are, respectively, the values in the `\glsshorttok` and `\glsshortpltok` registers.

🛈
The placeholder registers and macros (such as `\glsshorttok` and `\glscategorylabel`) must be expanded before being passed to `\newglossaryentry` as their values are unreliable outside of `\newabbreviation`.

📌
``\glsinnerfmtabbrvfont`{〈text〉}`
This is a robust command that applies both `\glsabbrvfont` and the inner formatting command `\glsxtrgenentrytextfmt`. This is used by the following command.

📌
``\glsxpabbrvfont`{〈text〉}{〈category〉}`
If the markshortwords attribute is true, this does `\protect`\glsabbrvfont`{〈text〉}` otherwise it does ``\glsinnerfmtabbrvfont`{〈text〉}`. This command is designed for the name, text and plural keys within `\CustomAbbreviationFields`.

📌
``\glsfirstinnerfmtlongfont`{〈text〉}`
This is a robust command that applies both `\glsfirstlongfont` and the inner formatting command `\glsxtrgenentrytextfmt`. This is used by the following command.

📌
``\glsfirstxplongfont`{〈category〉}{〈text〉}`
If the markwords attribute is true, this does `\protect`\glsfirstlongfont`{〈text〉}` otherwise it does ``\glsfirstinnerfmtlongfont`{〈text〉}`. This command is designed for the first and firstplural keys within `\CustomAbbreviationFields`.

📌
``\glsinnerfmtlongfont`{〈text〉}`
This is a robust command that applies both `\glslongfont` and the inner formatting command `\glsxtrgenentrytextfmt`. This is used by the following command.

📌
``\glsxplongfont`{〈category〉}{〈text〉}`
If the markwords attribute is true, this does `\protect`\glslongfont`{〈text〉}` otherwise it does ``\glsinnerfmtlongfont`{〈text〉}`. This command is designed for the name, text and plural keys within `\CustomAbbreviationFields` (if they should include the long form in their value, such as the long-noshort-desc style).

📌
``\glsxtrAccSuppAbbrSetNoLongAttrs`{〈category〉}`
If accessibility support has been enabled with accsupp, this command will initialise support for the name, first, firstplural, text and plural fields for the given category (using `\glsxtrprovideaccsuppcmd`). The nameshortaccess, firstshortaccess and textshortaccess attributes are set to `true`. (Does nothing if accessibility support has not been enabled.)

This command is provided for abbreviation styles where the name, first and text are just the formatted abbreviation. The first field may just be the long form or may be a combination of short and long.

📌
``\glsxtrAccSuppAbbrSetNameLongAttrs`{〈category〉}`
If accessibility support has been enabled with accsupp, this command will initialise support for the first, firstplural, text and plural fields for the given category (using `\glsxtrprovideaccsuppcmd`). The firstshortaccess and textshortaccess attributes are set to `true`. (Does nothing if accessibility support has not been enabled.)

This command is provided for abbreviation styles where the first and text are just the formatted abbreviation. The name field may just be the long form or may be a combination of short and long.

📌
``\glsxtrAccSuppAbbrSetFirstLongAttrs`{〈category〉}`
If accessibility support has been enabled with accsupp, this command will initialise support for the name, text and plural fields for the given category (using `\glsxtrprovideaccsuppcmd`). The nameshortaccess and textshortaccess attributes are set to `true`. (Does nothing if accessibility support has not been enabled.)

This command is provided for abbreviation styles where the name and text are just the formatted abbreviation. The first field may just be the long form or may be a combination of short and long.

📌
``\glsxtrAccSuppAbbrSetTextShortAttrs`{〈category〉}`
If accessibility support has been enabled with accsupp, this command will initialise support for the text and plural fields for the given category (using `\glsxtrprovideaccsuppcmd`). The textshortaccess attribute is set to `true`. (Does nothing if accessibility support has not been enabled.)

This command is provided for abbreviation styles where the text is just the formatted abbreviation. The name and first fields may just be the long form or may be a combination of short and long. The name may also be short but followed by the long form in the description.

📌
``\glsxtrAccSuppAbbrSetNameShortAttrs`{〈category〉}`
If accessibility support has been enabled with accsupp, this command will initialise support for the name field for the given category (using `\glsxtrprovideaccsuppcmd`). The nameshortaccess attribute is set to `true`. (Does nothing if accessibility support has not been enabled.)

This command is provided for abbreviation styles where only the name is just the formatted abbreviation. The first and text fields may just be the long form or may be a combination of short and long.

[top]

#### 4.5.3.2. Style Formatting Commands
[link]

The final 〈display definitions〉 argument of `\newabbreviationstyle` should contain the redefinitions of the style commands listed here that are used to format abbreviations.

Whenever an abbreviation style is activated with commands like `\setabbreviationstyle`, `\newabbreviation` or `\glssetabbrvfmt`, 〈display definitions〉 are implemented.

ℹ
If you simply want to adjust the formatting of one of the predefined styles, you should redefine the associated commands listed in §4.5.1.3.

The following initialisation is always prepended to 〈display definitions〉 so you can omit them if the default is appropriate for your style:

    🖹\renewcommand*{\glsxtrinlinefullformat}{\glsxtrfullformat}%
    \renewcommand*{\Glsxtrinlinefullformat}{\Glsxtrfullformat}%
    \renewcommand*{\GLSxtrinlinefullformat}{\GLSxtrfullformat}%
    \renewcommand*{\glsxtrinlinefullplformat}{\glsxtrfullplformat}%
    \renewcommand*{\Glsxtrinlinefullplformat}{\Glsxtrfullplformat}%
    \renewcommand*{\GLSxtrinlinefullplformat}{\GLSxtrfullplformat}%
    \let\glsxtrsubsequentfmt\glsxtrdefaultsubsequentfmt
    \let\glsxtrsubsequentplfmt\glsxtrdefaultsubsequentplfmt
    \let\Glsxtrsubsequentfmt\Glsxtrdefaultsubsequentfmt
    \let\Glsxtrsubsequentplfmt\Glsxtrdefaultsubsequentplfmt
    \let\GLSxtrsubsequentfmt\GLSxtrdefaultsubsequentfmt
    \let\GLSxtrsubsequentplfmt\GLSxtrdefaultsubsequentplfmt

In the event that any styles omit defining the newer `\GLSxtrfullformat` or `\GLSxtrfullplformat`, these are also initialised to defaults but ideally they should have their definitions provided.

The minimal set of commands that should have their definitions provided are the abbreviation plural suffix (`\abbrvpluralsuffix`) the display full forms: `\glsxtrfullformat`, `\glsxtrfullplformat` and their case-changing variants.

The inline full form commands only need to be provided if they behave differently from the display full form. The subsequent use commands only need to be provided if the default (only show the short form) isn’t suitable.

ℹ
The content of 〈display definitions〉 is placed within the definition of an internal control sequence, so remember to use `##` instead of `#` to reference command parameters.

[top]

##### 4.5.3.2.1. Suffix and Fonts
[link]

These are the generic suffix and font commands that vary according to the abbreviation style. The style should provide the appropriate definitions. The suffix should always be provided. The font commands are only required if the style applies any font formatting to either the long or short form.

📌
``\abbrvpluralsuffix``initial: `\glsxtrabbrvpluralsuffix`
The plural suffix for the short form. For example, the long-short style defines this to just use `\glsxtrabbrvpluralsuffix`, but the smallcaps styles, such as long-short-sc define this to `\glsxtrscsuffix` in order to counteract the small caps font.

📌
``\glsfirstabbrvfont`{〈text〉}`
The font formatting command for the short form on first use. For example, the long-short-sc style has:

    🖹\renewcommand*\glsfirstabbrvfont[1]{\glsfirstabbrvscfont{##1}}

📌
``\glsabbrvfont`{〈text〉}`
The font formatting command for the short form. For example, the long-short-sc style has:

    🖹\renewcommand*\glsabbrvfont[1]{\glsabbrvscfont{##1}}

📌
``\glsxtrrevert`{〈text〉}`
This command is designed to counteract the effect of `\glsabbrvfont` if, for some reason, it shouldn’t be applied to part of the abbreviation. For example, you may prefer not to have digits reduced with the smaller (“sm”) styles.

📌
``\glsfirstlongfont`{〈text〉}`
The font formatting command for the long form on first use. For example, the long-short-sc style has:

    🖹\renewcommand*{\glsfirstlongfont}[1]{\glsfirstlongdefaultfont{##1}}

📌
``\glslongfont`{〈text〉}`
The font formatting command for the long form. For example, the long-short-sc style has:

    🖹\renewcommand*{\glslongfont}[1]{\glslongdefaultfont{##1}}

[top]

##### 4.5.3.2.2. First Use Display Format
[link]

These commands always need to be provided.

📌
``\glsxtrfullformat`{〈entry-label〉}{〈insert〉}`
The singular display full form used on the first use of `\gls`.

📌
``\glsxtrfullplformat`{〈entry-label〉}{〈insert〉}`
The plural display full form used on the first use of `\glspl`.

📌
``\Glsxtrfullformat`{〈entry-label〉}{〈insert〉}`
The sentence case singular display full form used on the first use of `\Gls`.

📌
``\Glsxtrfullplformat`{〈entry-label〉}{〈insert〉}`
The sentence case plural display full form used on the first use of `\Glspl`.

📌
``\GLSxtrfullformat`{〈entry-label〉}{〈insert〉}`
The all caps singular display full form used on the first use of `\GLS`.

📌
``\GLSxtrfullplformat`{〈entry-label〉}{〈insert〉}`
The all caps plural display full form used on the first use of `\GLSpl`.

[top]

##### 4.5.3.2.3. Subsequent Use Display Format
[link]

These commands only need to be provided if the `\gls`-like commands don’t simply show the short form.

📌
``\glsxtrsubsequentfmt`{〈entry-label〉}{〈insert〉}`
The singular form for subsequent use of `\gls`.

📌
``\glsxtrsubsequentplfmt`{〈entry-label〉}{〈insert〉}`
The plural form for subsequent use of `\glspl`.

📌
``\Glsxtrsubsequentfmt`{〈entry-label〉}{〈insert〉}`
The sentence case singular form for subsequent use of `\Gls`.

📌
``\Glsxtrsubsequentplfmt`{〈entry-label〉}{〈insert〉}`
The sentence case plural form for subsequent use of `\Glspl`.

📌
``\GLSxtrsubsequentfmt`{〈entry-label〉}{〈insert〉}`
The all caps singular form for subsequent use of `\GLS`.

📌
``\GLSxtrsubsequentplfmt`{〈entry-label〉}{〈insert〉}`
The all caps plural form for subsequent use of `\GLSpl`.

The defaults all show the short form and insert encapsulated with the inner formatting `\glsxtrgenentrytextfmt` and `\glsabbrvfont`. The purpose of the inner formatting is to get it as close as possible to the actual text so `\glsabbrvfont` is placed outside of `\glsxtrgenentrytextfmt`.

The markshortwords attribute complicates matters as it inserts `\glsxtrword` and `\glsxtrwordsep` into the actual field value. In that case, the inner formatting is within `\glsxtrword` and `\glsxtrwordsep`, so only the insert material needs to be formatted.

If a custom style doesn’t need to support innertextformat or `\ifglsxtrinsertinside`, it can reduce the complexity by omitting the inner formatting and conditionals, but this lack of support should be documented if the style is made generally available.

📌
``\glsxtrdefaultsubsequentfmt`{〈entry-label〉}{〈insert〉}`
The default singular form for subsequent use of `\gls`.

📌
``\glsxtrdefaultsubsequentplfmt`{〈entry-label〉}{〈insert〉}`
The default plural form for subsequent use of `\glspl`.

📌
``\Glsxtrdefaultsubsequentfmt`{〈entry-label〉}{〈insert〉}`
The default sentence case singular form for subsequent use of `\Gls`.

📌
``\Glsxtrdefaultsubsequentplfmt`{〈entry-label〉}{〈insert〉}`
The default sentence case plural form for subsequent use of `\Glspl`.

📌
``\GLSxtrdefaultsubsequentfmt`{〈entry-label〉}{〈insert〉}`
The default all caps singular form for subsequent use of `\GLS`.

📌
``\GLSxtrdefaultsubsequentplfmt`{〈entry-label〉}{〈insert〉}`
The default all caps plural form for subsequent use of `\GLSpl`.

[top]

##### 4.5.3.2.4. Inline Full Format
[link]

These commands only need to be provided if the inline full form is different from the display full form.

📌
``\glsxtrinlinefullformat`{〈entry-label〉}{〈insert〉}`
The singular full form of `\glsxtrfull`.

📌
``\glsxtrinlinefullplformat`{〈entry-label〉}{〈insert〉}`
The plural full form of `\glsxtrfullpl`.

📌
``\Glsxtrinlinefullformat`{〈entry-label〉}{〈insert〉}`
The sentence case singular full form of `\Glsxtrfull`.

📌
``\Glsxtrinlinefullplformat`{〈entry-label〉}{〈insert〉}`
The sentence case plural full form of `\Glsxtrfullpl`.

📌
``\GLSxtrinlinefullformat`{〈entry-label〉}{〈insert〉}`
The all caps singular full form of `\GLSxtrfull`.

📌
``\GLSxtrinlinefullplformat`{〈entry-label〉}{〈insert〉}`
The all caps plural full form of `\GLSxtrfullpl`.

[top]

##### 4.5.3.2.5. Wrapper Commands
[link]

These are commands that can be used in the definitions of the above to ensure that the appropriate accessibility fields and inner formatting is supported.

📌
``\glsxtrlongformat`{〈entry-label〉}{〈insert〉}{〈fmt-cs〉}`
This command is used in the definition of `\glsxtrlong` in some of the predefined abbreviation styles to format the long value of the entry identified by 〈entry-label〉 with the command 〈fmt-cs〉, which should take one argument.

Accessibility support is implemented with `\glsaccesslong` if the markwords attribute is true otherwise with `\glsaccessfmtlong` using `\glsxtrgenentrytextfmt` for the inner formatting.

This is then encapsulated (including or excluding the 〈insert〉, according to `\ifglsxtrinsertinside`) with 〈fmt-cs〉. If the 〈insert〉 content needs to be placed outside of 〈fmt-cs〉, it will be individually encapsulated with the inner formatting.

📌
``\Glsxtrlongformat`{〈entry-label〉}{〈insert〉}{〈fmt-cs〉}`
As above, but sentence case.

📌
``\GLSxtrlongformat`{〈entry-label〉}{〈insert〉}{〈fmt-cs〉}`
As above, but all caps.

📌
``\glsxtrlongplformat`{〈entry-label〉}{〈insert〉}{〈fmt-cs〉}`
As `\glsxtrlongformat`, but for the longplural field.

📌
``\Glsxtrlongplformat`{〈entry-label〉}{〈insert〉}{〈fmt-cs〉}`
As above, but sentence case.

📌
``\GLSxtrlongplformat`{〈entry-label〉}{〈insert〉}{〈fmt-cs〉}`
As above, but all caps.

📌
``\glsxtrlongformatgrp`{〈entry-label〉}{〈insert〉}{〈fmt-cs〉}`
As `\glsxtrlongformat`, but adds grouping around 〈insert〉 (with the inner formatting inside the group).

📌
``\Glsxtrlongformatgrp`{〈entry-label〉}{〈insert〉}{〈fmt-cs〉}`
As above, but sentence case.

📌
``\GLSxtrlongformatgrp`{〈entry-label〉}{〈insert〉}{〈fmt-cs〉}`
As above, but all caps.

📌
``\glsxtrlongplformatgrp`{〈entry-label〉}{〈insert〉}{〈fmt-cs〉}`
As `\glsxtrlongplformat`, but adds grouping around 〈insert〉 (with the inner formatting inside the group).

📌
``\Glsxtrlongplformatgrp`{〈entry-label〉}{〈insert〉}{〈fmt-cs〉}`
As above, but sentence case.

📌
``\GLSxtrlongplformatgrp`{〈entry-label〉}{〈insert〉}{〈fmt-cs〉}`
As above, but all caps.

📌
``\glsxtrshortformat`{〈entry-label〉}{〈insert〉}{〈fmt-cs〉}`
This command is used in the definition of `\glsxtrshort` and in some of the predefined abbreviation styles to format the short value of the entry identified by 〈entry-label〉 with the command 〈fmt-cs〉, which should take one argument.

Accessibility support is implemented with `\glsaccessshort` if the markshortwords attribute is true otherwise with `\glsaccessfmtshort` using `\glsxtrgenentrytextfmt` for the inner formatting.

This is then encapsulated (including or excluding the 〈insert〉, according to `\ifglsxtrinsertinside`) with 〈fmt-cs〉. If the 〈insert〉 content needs to be placed outside of 〈fmt-cs〉, it will be individually encapsulated with the inner formatting.

📌
``\Glsxtrshortformat`{〈entry-label〉}{〈insert〉}{〈fmt-cs〉}`
As above, but sentence case.

📌
``\GLSxtrshortformat`{〈entry-label〉}{〈insert〉}{〈fmt-cs〉}`
As above, but all caps.

📌
``\glsxtrshortplformat`{〈entry-label〉}{〈insert〉}{〈fmt-cs〉}`
As `\glsxtrshortformat`, but for the shortplural field.

📌
``\Glsxtrshortplformat`{〈entry-label〉}{〈insert〉}{〈fmt-cs〉}`
As above, but sentence case.

📌
``\GLSxtrshortplformat`{〈entry-label〉}{〈insert〉}{〈fmt-cs〉}`
As above, but all caps.

📌
``\glsxtrshortformatgrp`{〈entry-label〉}{〈insert〉}{〈fmt-cs〉}`
As `\glsxtrshortformat`, but adds grouping around 〈insert〉 (with the inner formatting inside the group).

📌
``\Glsxtrshortformatgrp`{〈entry-label〉}{〈insert〉}{〈fmt-cs〉}`
As above, but sentence case.

📌
``\GLSxtrshortformatgrp`{〈entry-label〉}{〈insert〉}{〈fmt-cs〉}`
As above, but all caps.

📌
``\glsxtrshortplformatgrp`{〈entry-label〉}{〈insert〉}{〈fmt-cs〉}`
As `\glsxtrshortplformat`, but adds grouping around 〈insert〉 (with the inner formatting inside the group).

📌
``\Glsxtrshortplformatgrp`{〈entry-label〉}{〈insert〉}{〈fmt-cs〉}`
As above, but sentence case.

📌
``\GLSxtrshortplformatgrp`{〈entry-label〉}{〈insert〉}{〈fmt-cs〉}`
As above, but all caps.

📌
``\glsxtrlongshortformat`{〈entry-label〉}{〈insert〉}{〈long-fmt-cs〉}{〈short-fmt-cs〉}`
A shortcut designed for 〈long〉 (〈short〉) styles. This is defined as:

    🖹\glsxtrlongformat{〈entry-label〉}{〈insert〉}{〈long-fmt-cs〉}\glsxtrfullsep{〈entry-label〉}\glsxtrparen{〈\glsxtrshortformat{〈entry-label〉}{}{〈short-fmt-cs〉}〉}

Note that the 〈insert〉 is only placed after the long form.

📌
``\Glsxtrlongshortformat`{〈entry-label〉}{〈insert〉}{〈long-fmt-cs〉}{〈short-fmt-cs〉}`
As above, but sentence case.

📌
``\GLSxtrlongshortformat`{〈entry-label〉}{〈insert〉}{〈long-fmt-cs〉}{〈short-fmt-cs〉}`
As above, but all caps.

📌
``\glsxtrlongshortplformat`{〈entry-label〉}{〈insert〉}{〈long-fmt-cs〉}{〈short-fmt-cs〉}`
As `\glsxtrlongshortformat` but uses the plural versions `\glsxtrlongplformat` and `\glsxtrshortplformat`.

📌
``\Glsxtrlongshortplformat`{〈entry-label〉}{〈insert〉}{〈long-fmt-cs〉}{〈short-fmt-cs〉}`
As above, but sentence case.

📌
``\GLSxtrlongshortplformat`{〈entry-label〉}{〈insert〉}{〈long-fmt-cs〉}{〈short-fmt-cs〉}`
As above, but all caps.

📌
``\glsxtrshortlongformat`{〈entry-label〉}{〈insert〉}{〈long-fmt-cs〉}{〈short-fmt-cs〉}`
A shortcut designed for 〈short〉 (〈long〉) styles. This is defined as:

    🖹\glsxtrshortformat{〈entry-label〉}{〈insert〉}{〈short-fmt-cs〉}\glsxtrfullsep{〈entry-label〉}\glsxtrparen{〈\glsxtrlongformat{〈entry-label〉}{}{〈long-fmt-cs〉}〉}

Note that the 〈insert〉 is only placed after the short form.

The syntax is the same as for `\glsxtrlongshortformat` even though `\glsxtrlongformat` and `\glsxtrshortformat` are flipped within the definition.

📌
``\Glsxtrshortlongformat`{〈entry-label〉}{〈insert〉}{〈long-fmt-cs〉}{〈short-fmt-cs〉}`
As above, but sentence case.

📌
``\GLSxtrshortlongformat`{〈entry-label〉}{〈insert〉}{〈long-fmt-cs〉}{〈short-fmt-cs〉}`
As above, but all caps.

📌
``\glsxtrshortlongplformat`{〈entry-label〉}{〈insert〉}{〈long-fmt-cs〉}{〈short-fmt-cs〉}`
As `\glsxtrshortlongformat` but uses the plural versions `\glsxtrshortplformat` and `\glsxtrlongplformat`.

📌
``\Glsxtrshortlongplformat`{〈entry-label〉}{〈insert〉}{〈long-fmt-cs〉}{〈short-fmt-cs〉}`
As above, but sentence case.

📌
``\GLSxtrshortlongplformat`{〈entry-label〉}{〈insert〉}{〈long-fmt-cs〉}{〈short-fmt-cs〉}`
As above, but all caps.

[top]

## 4.6. Restoring Base Acronym Mechanism
[link]

It’s possible to revert `\newacronym` back to the definition provided by the base glossaries package. However, if you do this, you will lose all the abbreviation features provided by glossaries-extra.

ℹ
Where possible, avoid this. If you’re simply trying to make the long form appear on first use with `\newacronym`, set the abbreviation style using:

    🖹\setabbreviationstyle[acronym]{long-short}

If you really need to use the original base glossaries package’s acronym mechanism, it’s better to stick with just glossaries and not use glossaries-extra. However, it may be that you need to use a glossaries-extra feature, such as `\printunsrtglossary`, but you have a custom acronym style that you can’t implement using the glossaries-extra abbreviation mechanism. This is a rare edge case for unusual formats, as it should be possible to implement most common abbreviation formats using the predefined styles.

⚠
Unpredictable results will occur if `\RestoreAcronyms` or `\MakeAcronymsAbbreviations` are used after abbreviations or acronyms have been defined.

📌
``\RestoreAcronyms``
Restores `\newacronym` back to the original base glossaries interface. Note that this doesn’t affect `\newabbreviation`. It also sets the regular attribute for the acronym category to `false` and sets the acronym style to `long-short` (which is the default for the base package).

The display style for each glossary identified in the acronym lists is switched to the default acronym display style.

📌
``\MakeAcronymsAbbreviations``
Counteracts `\RestoreAcronyms`.

[top]

# 5. Referencing (Using) Entries
[link]

Entries can be referenced using the `\gls`-like and `\glstext`-like commands, as described in the base glossaries manual. There are some additional commands provided by glossaries-extra:

- •abbreviation commands, such as `\glsxtrshort` (see §4);
- •commands for use in captions or section headings, such as `\glsfmttext` (see §5.3.2);
- •commands, such as `\glsxtrp`, designed for use within fields to help mitigate the problems of nesting (see §5.4);
- •commands, such as `\mgls`, that are designed for referencing multi (or compound) entries (see §7);
- •commands, such as `\glsaccessname`, used to incorporate accessibility support (see §9.2);
- •commands, such as `\dgls`, that are designed for bib2gls’s dual entries (see §11.5.7);
- •commands, such as `\rgls`, that depend on the number of entry records (see §11.4).

Additionally, the entry counting commands, such as `\cgls`, provided by the base glossaries package are modified by glossaries-extra (see §6.1).

The `\gls`-like commands are designed to produce text at that point in the document (the link text, §5.5), index the entry (to ensure that it appears in the glossary, §5.8) and unset the first use flag (which can alter the link text, §5.10). Additional information can be appended automatically with the post-link hook (§5.5.4). The link text is given by the entry style (see §5.5.5) or by the final argument of `\glsdisp`.

The `\glstext`-like commands are designed to produce text at that point in the document (the link text, §5.5) and index the entry (to ensure that it appears in the glossary, §5.8). Additional information can be appended automatically with the post-link hook (§5.5.4). The link text is determined by the calling command. For example, the corresponding field value (possibly encapsulated with `\glsxtrregularfont` and the inner formatting) for commands like `\glstext` or the final argument of `\glslink`.

The `\gls`-like and `\glstext`-like commands can all be used with a star (`*`) or plus (`+`) modifier. The star modifier automatically implements hyper=false (disables the hyperlink) and the plus modifier automatically implements hyper=true (forces the hyperlink on, if supported).

With glossaries-extra, it’s possible to define an additional modifier for your own use with:

📌
``\GlsXtrSetAltModifier`{〈token〉}{〈options〉}`
The 〈token〉 must be a single token, so a multi-byte UTF-8 character will required a native Unicode engine (XeLaTeX or LuaLaTeX). For example, the following:

    🖹\GlsXtrSetAltModifier{!}{format=glsignore}

means that ``\gls`!{〈label〉}` will be equivalent to ``\gls`[format=glsignore]{〈label〉}`.

It’s also possible to redefine the star and plus modifiers:

📌
``\GlsXtrSetStarModifier`{〈options〉}`
This sets the options to use for the star modifier.
📌
``\GlsXtrSetPlusModifier`{〈options〉}`
This sets the options to use for the plus modifier. For example, the following:

    🖹\GlsXtrSetPlusModifier{noindex}

means that the star modifier will now suppress indexing instead of switching on the hyperlink.

The `\gls`-like and `\glstext`-like commands have a complicated internal structure, which can be viewed as a series of layers. The outermost common layer is:

    % save settings
    % initialise options, see §5.1
    \glslinkwrcontent{〈index & fmt content〉}
    % restore settings
    % post-link hook, see §5.5.4

The 〈index & fmt content〉 consists of the indexing (see §5.8) and the (possibly hyperlinked) formatted text, see §5.5. The 〈index & fmt content〉 code is encapsulated with:
📌
``\glslinkwrcontent`{〈code〉}`
In v1.48, this was added to scope the link text and indexing code, which helped to prevent unwanted spacing caused by the whatsit and also helped to prevent some setting leakage, in the event of nesting (see §5.4), but this caused spacing issues when used in math mode, so from v1.49 this command now simply does its argument. The whatsit is now scoped with `\glsencapwrcontent` instead.

The `\glsxtrp` command, designed for nested use, deals with the problem by suppressing the post-link hook and adding an outer group. For example, ``\glsxtrp`{short}{html}` behaves like:

    {\let\glspostlinkhook\relax
     \glsxtrshort[noindex,nohyper]{html}}

Note that the code to suppress the post-link hook has been moved to `\glsxtrpInit`, so it is now possible to allow the post-link hook but it won’t be able to lookahead beyond the added outer group.

Depending on the settings (the wrgloss option or the wrgloss attribute), the indexing may come before the text:

    \glslinkwrcontent{〈index〉〈fmt content〉}

or after the text:

    \glslinkwrcontent{〈fmt content〉〈index〉}

or may be suppressed with noindex:

    \glslinkwrcontent{〈fmt content〉}

The 〈fmt content〉 part is described in §5.5. The 〈index〉 part is the actual indexing (see §5.8) but also increments the index count, if applicable. Both the associated whatsit and increment are encapsulated with `\glsencapwrcontent`.

ℹ
Avoid using `\glstext`, `\glsplural`, `\glsfirst` and `\glsfirstplural` (and their case-changing variants) with entries that have been defined with `\newabbreviation`. Some of the abbreviation styles are too complicated to work with those commands. Instead, use commands like `\glsxtrshort`, `\glsxtrfull` or use `\gls` with the prereset or preunset options.

The base glossaries package provides a way to adjust the formatting of the link text for the `\gls`-like commands according to the glossary type with `\defglsentryfmt`. The glossaries-extra package changes the default entry formatting (§5.5.5) and provides additional ways of modifying the displayed content (§5.5).

The heading commands (described in §5.3) are designed to prevent indexing or changes to the first use flag if they appear in the table of contents (or list of figures, etc) or if they appear in the page header.

Although the base glossaries package warns against nested link text, the glossaries-extra package provides `\glsxtrp` which can be used instead of `\gls` in field values to overcome some of the associated problems. See §5.4 for further details.

If you need to simply access a field value without any formatting, see §5.11. (See §3.5 to set field values.) If you want to encapsulate the value with the appropriate accessibility tag, see §9.2.

Commands such as `\glsadd` (see §5.8) and `\glssee` (see §5.9) are designed to only index (to ensure the entry appears in the glossary) without producing any text or changing the first use flag.

The `\gls`-like, `\glstext`-like and `\glsadd` commands all have an initial optional argument that can be used to override the default actions. Some options are only applicable for particular subsets of referencing commands. For example, noindex is pointless for `\glsadd` since the sole purpose of that command is to index. Whereas types is only available with `\glsaddall`.

[top]

## 5.1. Options
[link]

Some options are provided by the base glossaries package, but there are some additional options provided by glossaries-extra, which are listed in §5.1.2. Below, 〈option-list〉 indicates the options that are passed in the optional argument of the calling command (such as `\gls`).

The order that the options are applied is:

1. 1.prereset, preunset and postunset options are initialised by `\glsinitreunsets`;
2. 2.hyper is initialised by `\glsxtrchecknohyperfirst` (`\glsfirst`-like only);
3. 3.wrgloss option is initialised by `\glsxtrinitwrgloss` (not implemented by `\glsadd` or `\glsxtrfmt`);
4. 4.hyperoutside option is initialised by `\glsxtrinithyperoutside` (not implemented by `\glsadd` or `\glsxtrfmt`);
5. 5.initialise noindex=false (not `\glsadd`);
6. 6.options identified by `\GlsXtrSetDefaultGlsOpts`, `\GlsXtrAppToDefaultGlsOpts` or `\GlsXtrPreToDefaultGlsOpts` (not implemented by `\glsadd`);
7. 7.(`\glsxtrfmt` only) options provided in `\GlsXtrFmtDefaultOptions`;
8. 8.(`\gls`-like only) the hyperfirst package option, nohyperfirst attribute and nohypernext attributes are checked to determine if the hyper option should be switched off (tests followed by `\glslinkcheckfirsthyperhook`);
9. 9.`\glslinkpresetkeys` (not implemented by `\glsadd` or `\glsxtrfmt`);
10. 10.(`\glsadd` only) `\glsaddpresetkeys`;
11. 11.〈option-list〉;
12. 12.`\glslinkpostsetkeys` (provided by the base glossaries package, not implemented by `\glsadd` or `\glsxtrfmt`);
13. 13.(`\glsadd` only) `\glsaddpostsetkeys`.

[top]

### 5.1.1. Setting Up Defaults
[link]

You can (locally) set your preferred default options for the `\gls`-like and `\glstext`-like commands using:

📌
``\GlsXtrSetDefaultGlsOpts`{〈options〉}`
The 〈options〉 may be any options that you can pass to those commands. These options also apply to `\glsxtrfmt` but not to `\glsadd`.

🛈
Note that multiple instances of `\GlsXtrSetDefaultGlsOpts` will override each other.

If you want to add to the existing options, you can use one of the following commands (both may be scoped).

📌
``\GlsXtrAppToDefaultGlsOpts`{〈options〉}`
Appends 〈options〉 to the list of default options.

📌
``\GlsXtrPreToDefaultGlsOpts`{〈options〉}`
Prepends 〈options〉 to the list of default options.

For example, to prevent indexing in the front matter and back matter but not in the main matter:

    🖹\frontmatter
    \GlsXtrSetDefaultGlsOpts{noindex}
    …\mainmatter
    \GlsXtrSetDefaultGlsOpts{}
    …\backmatter
    \GlsXtrSetDefaultGlsOpts{noindex}

Note that noindex=false is now set before the options given in `\GlsXtrSetDefaultGlsOpts` to ensure that the setting is correctly initialised, so as from v1.49 you can simply set an empty options list to reset the default. Prior to v1.49, it was necessary to ensure that the noindex key was always present in the options list to avoid instability. So for pre v1.49, the line after `\mainmatter` in the above would need to be:

    🖹\GlsXtrSetDefaultGlsOpts{noindex=false}

The default location encap is glsnumberformat but can be changed (locally) with:

📌
``\GlsXtrSetDefaultNumberFormat`{〈encap〉}`
This can be overridden by explicitly setting the format key.

The default options for `\glsxtrfmt` only are given by:

📌
``\GlsXtrFmtDefaultOptions``initial: noindex
This command should simply expand to the required list of options. These options are set after any options given in `\GlsXtrSetDefaultGlsOpts` and before 〈option-list〉.

📌
``\glslinkpresetkeys``
This hook is performed after any settings provided in `\GlsXtrSetDefaultGlsOpts` but before 〈option-list〉. This hook also applies to `\glsxtrfmt` but not to `\glsadd`.

Note that `\glslinkpostsetkeys`, provided by the base glossaries package, is performed after 〈option-list〉 is processed.

📌
``\glsaddpresetkeys``
This hook, which is only used by `\glsadd`, is performed before 〈option-list〉.

📌
``\glsaddpostsetkeys``
This hook, which is only used by `\glsadd`, is performed after 〈option-list〉.

📌
``\glsinitreunsets``
This hook initialises the pre unset/reset options to: prereset=none and preunset=none. It also initialises the postunset setting to perform the post-unset (where applicable) but it will retain the current local/global setting.

This hook will also implement the local repeat unset feature of `\GlsXtrUnsetBufferEnableRepeatLocal`.

📌
``\glsxtrchecknohyperfirst`{〈entry-label〉}`
This hook is only used by `\glsfirst`, `\glsfirstplural` and their case-changing variants. The hook will implement hyper=false if the nohyperfirst attribute is set to `true`.

📌
``\glsxtrinitwrgloss``
This hook initialises the default setting of the wrgloss option. If the wrgloss attribute is set to `after` then this implements wrgloss=after otherwise it implements wrgloss=before. This setting can subsequently be overridden by `\GlsXtrSetDefaultGlsOpts`, `\glslinkpresetkeys`, the 〈option-list〉 argument or `\glslinkpostsetkeys`. This hook also applies to `\glsxtrfmt` but not to `\glsadd`.

If you prefer to have the default to place the indexing after the link text, you can redefine this hook as follows:

    🖹\renewcommand*{\glsxtrinitwrgloss}{%
     \glsifattribute{\glslabel}{wrgloss}{before}%
     %
       \glsxtrinitwrglossbeforetrue
     %
     %
       \glsxtrinitwrglossbeforefalse
     %
    }

📌
``\glsxtrinithyperoutside``
This hook initialises the default setting of the hyperoutside option. If the hyperoutside attribute is set to `false` then this implements hyperoutside=false otherwise it implements hyperoutside=true. This setting can subsequently be overridden by `\GlsXtrSetDefaultGlsOpts`, `\glslinkpresetkeys`, the 〈option-list〉 argument or `\glslinkpostsetkeys`. This hook also applies to `\glsxtrfmt` but not to `\glsadd`.

Within any of the hooks that are used by the `\gls`-like, `\glstext`-like or `\glsxtrfmt` commands, you can set options using:

📌
``\setupglslink`{〈options〉}`

Within any of the hooks that are used by `\glsadd`, you can set options with:

📌
``\setupglsadd`{〈options〉}`

[top]

### 5.1.2. Additional Options
[link]

Options for the `\gls`-like and `\glstext`-like commands that are provided by the base glossaries package also apply to new commands like `\glsxtrfmt` and `\glsfmttext`. In addition, the options below are provided by glossaries-extra. Note that some options, such as postunset, only apply to the `\gls`-like commands. Options that relate to the hyperlink, formatting, first use flag or whether/where (noindex/wrgloss) to perform indexing aren’t available for `\glsadd`.

🔘
`hyperoutside=〈boolean〉`default: true; initial: true
This boolean option determines whether the hyperlink should be inside or outside of `\glstextformat` (see §5.5.1). If true, the link text is encapsulated as:

    🖹〈hyperlink-cs〉{〈target〉}{\glstextformat{〈text〉}}

otherwise it’s encapsulated as:

    🖹\glstextformat{〈hyperlink-cs〉{〈target〉}{〈text〉}}

where 〈hyperlink-cs〉 is the command that generates the hyperlink (if enabled).

🎚
`textformat=〈csname〉`
The value of this key should be the name of a control sequence (without the leading backslash). If this option is set, the given control sequence will be used instead of `\glstextformat` to encapsulate the link text. Note that this control sequence should take a single argument (the link text). See §5.5.1 for further details.

🛈
This option will override the textformat attribute.

🎚
`innertextformat=〈csname〉`initial: glsxtrdefaultentrytextfmt
The value of this key should be the name of a control sequence (without the leading backslash). The command `\glsxtrgenentrytextfmt` (which shouldn’t be redefined) is assigned to this control sequence at the start of the `\gls`-like and `\glstext`-like commands. This command is used within the predefined abbreviation styles and within `\glsgenentryfmt` to encapsulate the entry field values.

🛈
Custom styles that don’t use `\glsxtrgenentrytextfmt` won’t support this key. See §5.5.3 for further details.

Some formatting commands require direct access to the actual text or else the content has to be placed inside a box (which inhibits line-breaking). These commands won’t work with textformat as the text is usually too deeply embedded. This option provides a way of using those problematic commands, however there’s still no guarantee that they will work (for example, in the case of custom styles or where the field value itself contains commands).

🎚
`postunset=〈value〉`default: global; initial: global
This option only applies to the `\gls`-like commands and indicates whether or not to unset the first use flag after the link text. It may take one of three values: global (behaves like local=false), local (behaves like local=true) or none (doesn’t unset the first use flag after the first use). See §5.10.

🎚
`prereset=〈value〉`default: local; initial: none
This option may take one of three values: none (no reset), local or global. This option (if not none) will reset the first use flag before the link text and additionally change `\glsxtrifwasfirstuse` so that it indicates that this was the first use of the entry. See §5.10.

Note that this is different from using `\glslocalreset` or `\glsreset` before the `\glstext`-like commands. Normally `\glstext` and `\glsplural` will define `\glsxtrifwasfirstuse` so that it indicates that this was not the first use of the entry (regardless of whether or not the entry has actually been used).

For example:

    🖹\glsdefpostlink{general}{\glsxtrpostlinkAddDescOnFirstUse}
    \newglossaryentry{sample}{name={sample},
      first={sample first use},description={an example}}
    \begin{document}
    Text field: \glstext{sample}.

    First use: \gls{sample}.  Next use: \gls{sample}.

    Force reset: \gls[prereset]{sample}.
    Used? \ifglsused{sample}{Yes}{No}.

    Force reset: \glstext[prereset]{sample}.
    Used? \ifglsused{sample}{Yes}{No}.
    \end{document}

🖺
Example 90: Illustrating the prereset option 📥🖹 📥🖺

Note that `\gls` unsets the first use flag (unless postunset=none), so the sample entry is marked as used afterwards, but `\glstext` doesn’t alter the first use flag, after the link text so the sample entry is still marked as unused afterwards.

🎚
`preunset=〈value〉`default: local; initial: none
This option may take one of three values: none (no unset), local or global. This option (if not none) will unset the first use flag before the link text and additionally change `\glsxtrifwasfirstuse` so that it indicates that this wasn’t the first use of the entry. See §5.10.

🛈
The preunset key is always performed after the prereset key.

Note the effect of using a global reset but a local unset in the example below. Both options are performed, but the unset locally overrides the global reset.

    🖹\glsdefpostlink{general}{\glsxtrpostlinkAddDescOnFirstUse}
    \newglossaryentry{sample}{name={sample},
      first={sample first use},description={an example}}
    \begin{document}
    \gls{sample}. Used? \ifglsused{sample}{Yes}{No}.

    {\glsfirst[preunset=local,prereset=global]{sample}.
    Used? \ifglsused{sample}{Yes}{No}.
    }

    Used? \ifglsused{sample}{Yes}{No}.

    {\gls[preunset=local,prereset=global]{sample}.
    Used? \ifglsused{sample}{Yes}{No}.
    }

    Used? \ifglsused{sample}{Yes}{No}.
    \end{document}

🖺
Example 91: Combining prereset and preunset 📥🖹 📥🖺

Remember that `\gls` globally unsets the first use flag (unless changed with postunset), which counteracts prereset=global.

🔘︎
`noindex=〈boolean〉`default: true; initial: false
This is a boolean option that determines whether or not to suppress the normal indexing. For example, to prevent any locations in the front matter or back matter appearing in the glossary:

    🖹\frontmatter
    \GlsXtrSetDefaultGlsOpts{noindex}
    …\mainmatter
    \GlsXtrSetDefaultGlsOpts{noindex=false}
    …\backmatter
    \GlsXtrSetDefaultGlsOpts{noindex}

Note that if you are using auto-indexing (see §12), noindex=false will also suppress the auto-indexing.

If you are using bib2gls, you may want to consider instead using format=glsignore to create an ignored location that ensures the entry is selected without adding a location to the location list. (Don’t use this method for the other indexing methods as you’ll end up with invisible locations with spurious commas in your location lists.)

🎚
`wrgloss=〈position〉`initial: before
This option may take one of two values, before or after, which indicate whether the indexing should occur before or after the link text. The indexing creates a whatsit that can interfere with spacing or cause other problems. The other thing to consider is where the link text is long, such as a phrase or full form of an abbreviation, that may be split by a page break. You will need to decide if you want the indexing before the link text, so that the location is at the end of the page where the text starts, or if you want the indexing after the link text, so that the location is at the start of the next page where the text ends.

This option corresponds to a conditional:

📌
``\ifglsxtrinitwrglossbefore` 〈true〉`\else` 〈false〉`\fi``initial: `\iftrue`
The hook `\glsxtrinitwrgloss` sets this conditional according to whether or not the wrgloss attribute has been set to `after`:

    🖹\newcommand*{\glsxtrinitwrgloss}{%
     \glsifattribute{\glslabel}{wrgloss}{after}%
     {\glsxtrinitwrglossbeforefalse}%
     {\glsxtrinitwrglossbeforetrue}%
    }

🎚
`thevalue=〈location〉`
Sets the entry location to the given value instead of obtaining it from the location counter. If you are using hyperref you may also need to set the location’s hypertarget with theHvalue.

🛈
This option is primarily intended for use with bib2gls to supply locations that don’t have an associated counter within the document, such as an external location. If you want to automatically add locations from a supplemental document to an entry’s location list, you can use the supplemental-locations resource option. See the bib2gls user manual for further details.

For example, to index a location in a supplementary document:

    🖹\glsadd[thevalue={Suppl.\ 2.45}]{sample}

This will add “Suppl. 2.45” to the location list for the “sample” entry.

ℹ
Note that the value must conform to the indexing application’s location syntax. For makeindex, this is limited to `Roman`, `roman`, `arabic`, `alph` and `Alph`. With xindy, the location syntax must be defined in the xindy module (standard location syntaxes are supplied by default). There’s no restriction on the location syntax for bib2gls, although if it can’t deduce a numerical value it won’t be able to form a range.

If you want a hyperlink to an external file, you can use:

📌
``\glsxtrsupphypernumber`{〈location〉}`
as the formatting command for the location encap. For example:

    🖹\glsadd[thevalue=S.2,format=glsxtrsupphypernumber]{sample}

The path to the external file needs to be set in the externallocation category attribute.

🛈
The hyperlink for the supplementary location may or may not take you to the relevant place in the external PDF file depending on your PDF viewer. Some may not support external links, and some may take you to the first page or last visited page.

For example, if both sample-suppl-hyp.pdf and sample-suppl-main-hyp.pdf are in the same directory, then viewing sample-suppl-main-hyp.pdf in Evince will take you to the correct location in the linked document (when you click on the S.2 external link), but Okular will take you to the top of the first page of the linked document.

This method can only be used where there is one external source for the designated category (identified by the externallocation attribute). For multiple sources, you need to use bib2gls v1.7+, which is the better method in general as it can automatically fetch the relevant locations from the aux files of the designated external documents without the need to explicitly use `\glsadd`.

🎚
`theHvalue=〈the-H-value〉`
Sets the hypertarget corresponding to the location, which will be used if the format supports hyperlinks. This is analogous to hyperref’s `\the〈counter-name〉` that provides the hypertarget for a reference to `\the〈counter-name〉`.

🛈
This option is primarily intended for use with the thevalue option.

Unless you are using record=nameref, you must ensure that it’s possible to form 〈the-H-value〉 from 〈h-prefix〉〈thevalue〉 for some 〈h-prefix〉 (where 〈thevalue〉 is given by thevalue or the value of the location counter). This restriction is due to the limitations imposed by makeindex and xindy.

🎚
`prefix=〈link-prefix〉`
This option locally redefines `\glolinkprefix` to 〈link-prefix〉. If you are using `\printunsrtglossary` to redisplay a list (possibly in a different order) then you will need some way of changing the entry targets to avoid duplicate hyperlink targets. One way of achieving this is to redefine `\glolinkprefix` for the subsequent lists. You will then need to use the prefix option in commands like `\gls` to ensure that the hyperlink for the link text points to the desired list.

🛈
This option is intended for use with the “unsrt” family of commands and `\glsxtrcopytoglossary` (which is used by bib2gls). The other indexing methods don’t support repeated lists.

[top]

## 5.2. Case Changing
[link]

Case-changing commands, such as `\Gls` and `\GLS`, perform the conversion using commands provided by mfirstuc. The underlying commands provided by mfirstuc were redesigned in v2.08 to use the newer, better case-changing commands available with the LaTeX3 kernel. The base glossaries package v4.50 and glossaries-extra v1.49 were developed concurrently with mfirstuc v2.08 to take advantage of the new features. Version 1.49 of glossaries-extra was also developed concurrently with bib2gls v3.0 which, in turn, was developed alongside version 0.9.2.7b of the TeX parser library.

It’s not possible to upload all these new versions at the same time, so it will be necessary to stagger their deployment. The new case-changing features will work best when all these new versions are installed. In the interim, a reduced feature set will be used.

[top]

### 5.2.1. Sentence Case Commands
[link]

Both the base glossaries package and the glossaries-extra package provide sentence case commands, which convert the first letter to uppercase. These are provided for situations where an entry is referenced at the start of a sentence. Sentence-casing is also implemented when the attributes glossname or glossdesc are set to `firstuc`.

The case conversion is performed using:

📌
``\glssentencecase`{〈text〉}`
The default definition uses `\makefirstuc`, which is provided by the mfirstuc package. This was originally part of the base glossaries package, but was split into a separately distributed package in 2015. Back then, there was no expandable sentence-case command. There was also a problem with referencing entries where link text was encapsulated with a text-block command (which occurs, in particular, with acronym and abbreviation styles). The first letter of the text-block command’s argument needed to be obtained, which resulted in some trickery that proved problematic with UTF-8.

The LaTeX3 kernel now provides a suitable expandable command that works with UTF-8, and mfirstuc v2.08+ provides `\MFUsentencecase` that directly interfaces with it. If an older version of mfirstuc is installed, glossaries v4.50+ and glossaries-extra v1.49+ will provide `\MFUsentencecase`. You can use this in expandable contents. For example:

    🖹\section{\MFUsentencecase{\glsentrytext{label}}}

However, in the above example, it’s simpler to do:

    🖹\section{\Glsfmttext{label}}

If hyperref has been loaded, ``\Glsfmttext`{label}` will now expand to:

    \MFUsentencecase{\glsentrytext{label}}

in the PDF bookmark.

Internally, `\makefirstuc` now uses `\MFUsentencecase` to perform the case conversion, but it still parses its argument to determine if it starts with `〈cs〉{〈text〉}`. This means that with mfirstuc v2.08+, you now don’t have to worry about UTF-8 characters occurring at the start of the text.

For example, with mfirstuc v2.07 you would need to do something like:

    🖹\newglossaryentry{elite}{name={{é}lite},
     description={...}}

in order for ``\Gls`{elite}` to work. Whereas with mfirstuc v2.08, you can now simply do:

    🖹\newglossaryentry{elite}{name={élite},
     description={...}}

(As from glossaries v4.47, it should be possible to use UTF-8 characters in the label as well.)

Whilst you can redefine `\glssentencecase` to use `\MFUsentencecase` directly (without using `\makefirstuc` as an intermediary), this may result in content being expanded that wouldn’t have been expanded previously. In particularly, if 〈cs〉 isn’t robust and expands to content that includes labels then the case-change can fail. You also won’t be able to take advantage of the blockers and mappings that are only recognised as such by `\makefirstuc`. If you use `\MFUsentencecase` instead, blockers and mappings will be treated as exclusions, which are likely to result in unwanted side-effects.

Both `\makefirstuc` and `\MFUsentencecase` recognise exclusions. These are text-block commands which take a single mandatory argument that needs to be skipped. For example, in the following ``\glsadd`{example}` needs to be skipped:

    🖹\MFUsentencecase{\glsadd{example}some text}

Exclusions are identified with `\MFUexcl`. If you have an older version of mfirstuc, this won’t be defined, so glossaries v4.50+ and glossaries-extra v1.49+ provide:
📌
``\glsmfuexcl`{〈cs〉}`
This will use `\MFUexcl` with mfirstuc v2.08+. With older versions, a definition will be provided that works with `\MFUsentencecase`, but exclusions won’t be recognised by `\makefirstuc`.

As from glossaries v4.50, `\glsadd` will be identified as an exclusion (via `\glsmfuexcl`), but the optional argument will cause a problem if present. See the mfirstuc v2.08+ manual for a workaround. Note that commands such as `\glsaddall` and `\glsaddeach` aren’t identified as exclusions as they aren’t expected to occur in text that may require a case-change.

With glossary entry references, there are commands that take a label as the argument, which shouldn’t have any case-changed applied, but also shouldn’t be skipped. For example:

    🖹\makefirstuc{\GLS{example} something}

In this situation, there shouldn’t be any case-change as `\GLS` already implements a case-change. This type of command is referred to as a blocker in the mfirstuc manual, as it indicates a command that should prevent any case-change if it’s encountered at the start of the text. Blockers are identified with `\MFUblocker`. If you have an older version of mfirstuc, this won’t be defined, so glossaries v4.50+ and glossaries-extra v1.49+ provide:
📌
``\glsmfublocker`{〈cs〉}`
This will use `\MFUblocker` with mfirstuc v2.08+. With older versions, it will simply use `\glsmfuexcl` which will instead identify the command as an exclusion and won’t be recognised by `\makefirstuc`. See the mfirstuc v2.08+ manual for further information about blockers.

As from glossaries v4.50+, commands like `\GLS` will be identified as blockers using `\glsmfublocker`, and glossaries-extra now identifies similar commands, such as `\rGLS` as blockers.

Finally, there are mappings. These are commands that should be substituted with another command, which is expected to perform the case-change. For example:

    🖹\makefirstuc{\gls{example} something}

This shouldn’t skip or block `\gls` but instead should convert the text to:

    🖹\Gls{example} something

This is implemented by adding a mapping from `\gls` to `\Gls`. Mappings are added using `\MFUaddmap`. If you have an older version of mfirstuc, this won’t be defined, so glossaries v4.50+ and glossaries-extra v1.49+ provide:
📌
``\glsmfuaddmap`{〈cs1〉}{〈cs2〉}`
This will use `\MFUaddmap` with mfirstuc v2.08+. With older versions, it will simply use `\glsmfuexcl` which will instead identify the command as an exclusion and won’t be recognised by `\makefirstuc`. See the mfirstuc v2.08+ manual for further information about mappings.

As from glossaries v4.50+, commands like `\gls` will be mapped to the appropriate sentence case command using `\glsmfuaddmap`, and glossaries-extra now identifies similar mappings, such as `\rgls` mapped to `\rGls`.

In order to integrate the full set of features provided by mfirstuc v2.08+, you will need both glossaries v4.50+ and glossaries-extra v1.49+.

[top]

### 5.2.2. Lower Case
[link]

📌
``\glslowercase`{〈text〉}`
This is defined by glossaries v4.50+ to use the LaTeX3 command to convert to lowercase. If an older version of glossaries is present, then this command will be provided by glossaries-extra but it will be defined to use `\MakeTextLowercase` instead. This command is primarily provided for use with small caps styles to convert an abbreviation to lowercase, but isn’t actually used anywhere by default.

[top]

### 5.2.3. Upper Case
[link]

📌
``\glsuppercase`{〈text〉}`
This is defined by glossaries v4.50+ to use the LaTeX3 command to convert to uppercase (all caps). If an older version of glossaries is present, then this command will be provided by glossaries-extra but it will be defined to just use `\mfirstucMakeUppercase`, which is provided by mfirstuc. This command is used by all caps commands such as `\GLSxtrusefield`.

[top]

### 5.2.4. Title Case
[link]

📌
``\glscapitalisewords`{〈content〉}`
This is defined by glossaries v4.48 to use `\capitalisewords` to convert to title case. If you experience any errors with title case commands, such as `\glsentrytitlecase`, or attributes such as glossdesc then try redefining this command to use ``\capitalisefmtwords`*` instead. See the mfirstuc manual for further details.

[top]

## 5.3. Entries in Sectioning Titles, Headers, Captions and Contents
[link]

The glossaries user manual cautions against using commands like `\gls` in chapter or section titles. The principle problems are:

- •if you have a table of contents, the first use flag will be unset in the contents rather than later in the document;

- •if you have the location lists displayed in the glossary, unwanted locations will be added to it corresponding to the table of contents (if present) and every page that contains the entry in the page header (if the page style in use adds the chapter or section title to the header);

- •if the page style in use adds the chapter or section title to the header and attempts to convert it to uppercase, the entry label (in the argument of `\gls` etc) will be converted to uppercase and the entry won’t be recognised;

- •if you use hyperref, commands like `\gls` can’t be expanded to a simple string and only the label will appear in the PDF bookmark (with a warning from hyperref);

- •if you use hyperref, you will end up with nested hyperlinks in the table of contents.

Similar problems can also occur with captions (except for the page header and bookmark issues).

The glossaries-extra package tries to resolve the header problem by modifying `\markright`, `\markboth` and `\@starttoc`. If this causes unwanted side-effects, you can restore their former definitions using:

📌
``\glsxtrRevertMarks``
This will revert `\markright`, `\markboth` and `\@starttoc` back to the definitions in effect when glossaries-extra was loaded. Alternatively, you can use:
📌
``\glsxtrRevertTocMarks``
This will only revert `\@starttoc`.

If you use `\glsxtrRevertMarks` or `\glsxtrRevertTocMarks`, you will need to employ the simplistic approach, described in §5.3.1, which is the method recommended by the glossaries user manual. Otherwise, you can use the commands described in §5.3.2, which provide a better solution.

[top]

### 5.3.1. Simplistic Approach
[link]

To get around all these problems, the glossaries user manual recommends using the expandable non-hyperlink commands, such as `\glsentrytext` (for regular entries) or `\glsentryshort` (for abbreviations). This is the simplest solution, but doesn’t allow for special formatting that’s applied to the entry through commands like `\glstext` or `\glsxtrshort`.

For example:

    🖹\documentclass{article}

    \usepackage[colorlinks]{hyperref}
    \usepackage{glossaries-extra}

    \glsdefpostlink{general}{\glsxtrpostlinkAddDescOnFirstUse}

    \newglossaryentry{sample}{name={sample},
     description={an example}}
    \newglossaryentry{alpha}{name={\ensuremath{\alpha}},description={alpha}}

    \begin{document}
    \tableofcontents
    \section{\texorpdfstring{\Glsentrytext{sample}
     and \glsentrytext{alpha}}{Sample and alpha}}

    First use: \gls{sample} and \gls{alpha}.

    Next use: \gls{sample} and \gls{alpha}.

    \printunsrtglossary
    \end{document}

🖺
Example 92: References in section headings (simplistic approach) 📥🖹 📥🖺

This solves some problems: it avoids nested links in the table of contents, the first use flag isn’t prematurely unset and the PDF bookmarks has a reasonable substitution, but it still isn’t a complete solution as the above document will fail if the page style is changed to `headings` and a page break is inserted before the section (after `\tableofcontents`), which will lead to the error:

    🔎Glossary entry `SAMPLE' has not been defined.

This is because the case-change applied to the header converts the label “sample” to “SAMPLE”, which doesn’t correspond to a defined entry. (This can now be avoided with mfirstuc v2.08+.)

If the case conversion is applied by, then the case-change can be prevented by encapsulating the label with `\NoCaseChange`, but this ends up quite complicated. This is actually what the commands describe in §5.3.2 do when they are in a heading. This allows for older versions of mfirstuc that don’t recognise exclusions. See §5.2 for further details.

🛈
The `\NoCaseChange` command was originally provided by the textcase package to prevent `\MakeTextUppercase` from applying a case-change. The functionality of the textcase package has now been absorbed into the LaTeX kernel, which means that as from 2022, textcase is deprecated and `\NoCaseChange` is defined by the kernel.

[top]

### 5.3.2. New Commands Designed for Chapter/Section Headings or Captions
[link]

This section is irrelevant if you use `\glsxtrRevertMarks` to restore the definitions of `\markright`, `\markboth` and `\@starttoc`. If you use `\glsxtrRevertTocMarks`, then this section is only applicable to `\markright` and `\markboth`.

The commands listed here are provided for use within captions or section headings. They are designed to overcome some of the problems illustrated in the previous section. Note that they only have a single argument, the entry label. There are no optional arguments. Below, “header” refers to page header text added with `\markright` or `\markboth`, and “contents” refers to the table of contents or any other “list of” that uses `\@starttoc`, such as the list of figures.

Each command `\glsfmt〈field〉` (such as `\glsfmttext` or `\glsfmtshort`) behaves like an analogous `\gls〈field〉` or `\glsxtr〈field〉` command (such as `\glstext` or `\glsxtrshort`) but with the options noindex and hyper=false and no insert. When they occur within a header, they are protected from having any case-change applied (which will interfere with the entry label). Since this means they won’t appear in all caps in the header, the headuc attribute may be set to use the all caps `\GLS〈field〉` or `\GLSxtr〈field〉` instead (such as `\GLStext` or `\GLSxtrshort`).

There is currently only support for the name, text, plural, first, firstplural, short, shortplural, long, and longplural fields, and also limited support for the full form of abbreviations. For other fields, you will need to follow the recommendation of the glossaries manual (as discussed above in §5.3.1).

The previous example can be rewritten as follows:

    🖹\documentclass{article}

    \usepackage[colorlinks]{hyperref}
    \usepackage{glossaries-extra}

    \glsdefpostlink{general}{\glsxtrpostlinkAddDescOnFirstUse}

    \newglossaryentry{sample}{name={sample},description={an example}}
    \newglossaryentry{alpha}{name={\ensuremath{\alpha}},
     description={alpha}}

    \begin{document}
    \tableofcontents
    \section{\Glsfmttext{sample} and \glsfmttext{alpha}}

    First use: \gls{sample} and \gls{alpha}.

    Next use: \gls{sample} and \gls{alpha}.

    \printunsrtglossary
    \end{document}

🖺
Example 93: References in section headings using `\glsfmttext` 📥🖹 📥🖺

Note that this still results in “Token not allowed in a PDF string” warnings from hyperref. This is due to the maths shift and `\alpha`, and is something that would also occur if the section title explicitly contained `$\alpha$`. If this is likely to happen, the issue can be solved by placing `\texorpdfstring` within the field value. For example:

    🖹\glsnoexpandfields
    \newglossaryentry{alpha}{description={alpha},
     name={\texorpdfstring{\ensuremath{\alpha}}{alpha}}}

Note the need to prevent field expansion with `\glsnoexpandfields`, otherwise `\texorpdfstring` will be prematurely expanded while the entry is being defined.

The options noindex and hyper=false are hard-coded when the commands listed below, such as `\glsfmtshort`, occur in the header or contents, but within the actual section title or caption in the document text, those options are obtained from:

📌
``\glsxtrtitleopts``
This simply expands to the option list. For example, you may actually want a hyperlink and indexing to occur in the document body, in which case redefine `\glsxtrtitleopts` to do nothing:

    🖹\documentclass{article}

    \usepackage[colorlinks]{hyperref}
    \usepackage{glossaries-extra}

    \pagestyle{headings}
    \glssetcategoryattribute{general}{headuc}{true}
    \glsdefpostlink{general}{\glsxtrpostlinkAddDescOnFirstUse}

    \newglossaryentry{sample}{name={sample},description={an example}}
    \renewcommand{\glsxtrtitleopts}{}

    \begin{document}
    \section{\Glsfmttext{sample}}
    First use: \gls{sample}.
    Next use: \gls{sample}.
    \printunsrtglossary
    \end{document}

🖺
Example 94: Reference with hyperlink in section headings 📥🖹 📥🖺

📌
``\glsfmtshort`{〈entry-label〉}`
This normally behaves like `\glsxtrshort` but expands to just `\glsentryshort` in PDF bookmarks and is adjusted when appearing in the header or contents.

📌
``\Glsfmtshort`{〈entry-label〉}`
This normally behaves like `\Glsxtrshort` but expands to:

    \MFUsentencecase{\glsentryshort{〈entry-label〉}}

in PDF bookmarks and is adjusted when appearing in the header or contents.

📌
``\GLSfmtshort`{〈entry-label〉}`
This normally behaves like `\GLSxtrshort` but expands to just `\glsentryshort` in PDF bookmarks and is adjusted when appearing in the header or contents.

📌
``\pglsfmtshort`[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉

As `\glsfmtshort` but inserts the prefix field and separator, if the prefix value is set and non-empty. Provided for use with glossaries-prefix.

📌
``\Pglsfmtshort`[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉

As `\pglsfmtshort` but sentence case. Note the initial “P” in the command name, which matches `\Pgls` (similarly for the other prefix sentence case commands).

📌
``\PGLSfmtshort`[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉

As `\pglsfmtshort` but all caps.

📌
``\glsfmtshortpl`{〈entry-label〉}`
This normally behaves like `\glsxtrshortpl` but expands to just `\glsentryshortpl` in PDF bookmarks and is adjusted when appearing in the header or contents.

📌
``\Glsfmtshortpl`{〈entry-label〉}`
This normally behaves like `\Glsxtrshortpl` but expands to:

    \MFUsentencecase{\glsentryshortpl{〈entry-label〉}}

in PDF bookmarks and is adjusted when appearing in the header or contents.

📌
``\GLSfmtshortpl`{〈entry-label〉}`
This normally behaves like `\GLSxtrshortpl` but expands to just `\glsentryshortpl` in PDF bookmarks and is adjusted when appearing in the header or contents.

📌
``\pglsfmtshortpl`[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉

As `\glsfmtshortpl` but inserts the prefixplural field and separator, if the prefixplural value is set and non-empty. Provided for use with glossaries-prefix.

📌
``\Pglsfmtshortpl`[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉

As `\pglsfmtshortpl` but sentence case.

📌
``\PGLSfmtshortpl`[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉

As `\pglsfmtshortpl` but all caps.

📌
``\glsfmtlong`{〈entry-label〉}`
This normally behaves like `\glsxtrlong` but expands to just `\glsentrylong` in PDF bookmarks and is adjusted when appearing in the header or contents.

📌
``\Glsfmtlong`{〈entry-label〉}`
This normally behaves like `\Glsxtrlong` but expands to:

    \MFUsentencecase{\glsentrylong{〈entry-label〉}}

in PDF bookmarks and is adjusted when appearing in the header or contents.

📌
``\GLSfmtlong`{〈entry-label〉}`
This normally behaves like `\GLSxtrlong` but expands to just `\glsentrylong` in PDF bookmarks and is adjusted when appearing in the header or contents.

📌
``\pglsfmtlong`[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉
As `\glsfmtlong` but inserts the prefixfirst field and separator, if the prefixfirst value is set and non-empty. Provided for use with glossaries-prefix.

📌
``\Pglsfmtlong`[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉

As `\pglsfmtlong` but sentence case.

📌
``\PGLSfmtlong`[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉

As `\pglsfmtlong` but all caps.

📌
``\glsfmtlongpl`{〈entry-label〉}`
This normally behaves like `\glsxtrlongpl` but expands to just `\glsentrylongpl` in PDF bookmarks and is adjusted when appearing in the header or contents.

📌
``\Glsfmtlongpl`{〈entry-label〉}`
This normally behaves like `\Glsxtrlongpl` but expands to:

    \MFUsentencecase{\glsentrylongpl{〈entry-label〉}}

in PDF bookmarks and is adjusted when appearing in the header or contents.

📌
``\GLSfmtlongpl`{〈entry-label〉}`
This normally behaves like `\GLSxtrlongpl` but expands to just `\glsentrylongpl` in PDF bookmarks and is adjusted when appearing in the header or contents.

📌
``\pglsfmtlongpl`[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉

As `\glsfmtlongpl` but inserts the prefixfirstplural field and separator, if the prefixfirstplural value is set and non-empty. Provided for use with glossaries-prefix.

📌
``\Pglsfmtlongpl`[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉

As `\pglsfmtlongpl` but sentence case.

📌
``\PGLSfmtlongpl`[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉

As `\pglsfmtlongpl` but all caps.

The full form is slightly different as it doesn’t correspond to an individual field but instead is formed from a combination of the short and long fields (the order depending on the abbreviation style). Since it’s too complicated to simply expand to the appropriate style, a simple expandable command is provided for the PDF bookmarks:

📌
``\glspdffmtfull`{〈entry-label〉}`
This just expands to the long form followed by the short form in parentheses:

    \newcommand*{\glspdffmtfull}[1]{\glsentrylong{#1}
      (\glsentryshort{#1})}

You will need to redefine this if you require the short form first. There is an analogous command for the plural:
📌
``\glspdffmtfullpl`{〈entry-label〉}`
This has a similar definition to `\glspdffmtfull` but uses `\glsentrylongpl` and `\glsentryshortpl`.

📌
``\glsfmtfull`{〈entry-label〉}`
This normally behaves like `\glsxtrfull` but expands to just `\glspdffmtfull` in PDF bookmarks and is adjusted when appearing in the header or contents.

📌
``\Glsfmtfull`{〈entry-label〉}`
This normally behaves like `\Glsxtrfull` but expands to:

    \MFUsentencecase{\glspdffmtfull{〈entry-label〉}}

in PDF bookmarks and is adjusted when appearing in the header or contents.

📌
``\GLSfmtfull`{〈entry-label〉}`
This normally behaves like `\GLSxtrfull` but expands to just `\glspdffmtfull` in PDF bookmarks and is adjusted when appearing in the header or contents.

📌
``\glsfmtfullpl`{〈entry-label〉}`
This normally behaves like `\glsxtrfullpl` but expands to just `\glspdffmtfullpl` in PDF bookmarks and is adjusted when appearing in the header or contents.

📌
``\Glsfmtfullpl`{〈entry-label〉}`
This normally behaves like `\Glsxtrfullpl` but expands to:

    \MFUsentencecase{\glspdffmtfullpl{〈entry-label〉}}

in PDF bookmarks and is adjusted when appearing in the header or contents.

📌
``\GLSfmtfullpl`{〈entry-label〉}`
This normally behaves like `\GLSxtrfull` but expands to just `\glspdffmtfull` in PDF bookmarks and is adjusted when appearing in the header or contents.

📌
``\glsfmtname`{〈entry-label〉}`
This normally behaves like `\glsname` but expands to just `\glsentryname` in PDF bookmarks and is adjusted when appearing in the header or contents.

📌
``\Glsfmtname`{〈entry-label〉}`
This normally behaves like `\Glsname` but expands to:

    \MFUsentencecase{\glsentryname{〈entry-label〉}}

in PDF bookmarks and is adjusted when appearing in the header or contents.

📌
``\GLSfmtname`{〈entry-label〉}`
This normally behaves like `\GLSname` but expands to just `\glsentryname` in PDF bookmarks and is adjusted when appearing in the header or contents.

📌
``\glsfmttext`{〈entry-label〉}`
This normally behaves like `\glstext` but expands to just `\glsentrytext` in PDF bookmarks and is adjusted when appearing in the header or contents.

📌
``\Glsfmttext`{〈entry-label〉}`
This normally behaves like `\Glstext` but expands to:

    \MFUsentencecase{\glsentrytext{〈entry-label〉}}

in PDF bookmarks and is adjusted when appearing in the header or contents.

📌
``\GLSfmttext`{〈entry-label〉}`
This normally behaves like `\GLStext` but expands to just `\glsentrytext` in PDF bookmarks and is adjusted when appearing in the header or contents.

📌
``\glsfmtplural`{〈entry-label〉}`
This normally behaves like `\glsplural` but expands to just `\glsentryplural` in PDF bookmarks and is adjusted when appearing in the header or contents.

📌
``\Glsfmtplural`{〈entry-label〉}`
This normally behaves like `\Glsplural` but expands to:

    \MFUsentencecase{\glsentryplural{〈entry-label〉}}

in PDF bookmarks and is adjusted when appearing in the header or contents.

📌
``\GLSfmtplural`{〈entry-label〉}`
This normally behaves like `\GLSplural` but expands to just `\glsentryplural` in PDF bookmarks and is adjusted when appearing in the header or contents.

📌
``\glsfmtfirst`{〈entry-label〉}`
This normally behaves like `\glsfirst` but expands to just `\glsentryfirst` in PDF bookmarks and is adjusted when appearing in the header or contents.

📌
``\Glsfmtfirst`{〈entry-label〉}`
This normally behaves like `\Glsfirst` but expands to:

    \MFUsentencecase{\glsentryfirst{〈entry-label〉}}

in PDF bookmarks and is adjusted when appearing in the header or contents.

📌
``\GLSfmtfirst`{〈entry-label〉}`
This normally behaves like `\GLSfirst` but expands to just `\glsentryfirst` in PDF bookmarks and is adjusted when appearing in the header or contents.

📌
``\glsfmtfirstpl`{〈entry-label〉}`
This normally behaves like `\glsfirstplural` but expands to just `\glsentryfirstplural` in PDF bookmarks and is adjusted when appearing in the header or contents.

📌
``\Glsfmtfirstpl`{〈entry-label〉}`
This normally behaves like `\Glsfirstplural` but expands to:

    \MFUsentencecase{\glsentryfirstplural{〈entry-label〉}}

in PDF bookmarks and is adjusted when appearing in the header or contents.

📌
``\GLSfmtfirstpl`{〈entry-label〉}`
This normally behaves like `\GLSfirstplural` but expands to just `\glsentryfirstplural` in PDF bookmarks and is adjusted when appearing in the header or contents.

[top]

### 5.3.3. Advanced Commands
[link]

🛈
This section is intended for advanced users and package developers.

The commands described here are irrelevant if you use `\glsxtrRevertMarks` to restore the definitions of `\markright`, `\markboth` and `\@starttoc`. If you use `\glsxtrRevertTocMarks`, then this section is only applicable to `\markright` and `\markboth`.

If you need to know whether or not some code is inside a header or contents list, you can use:

📌
``\glsxtrifinmark`{〈true〉}{〈false〉}`
This does 〈true〉 if the command occurs within `\markright`, `\markboth` or `\@starttoc` otherwise does 〈false〉.

If you need to know whether or not some code is inside a contents list (but not the header), you can use:

📌
``\glsxtrifintoc`{〈true〉}{〈false〉}`
This does 〈true〉 if the command occurs within `\@starttoc` otherwise it does 〈false〉. (The modified definition of `\@starttoc` sets `\glsxtrifintoc` to `\@firstoftwo` at the start and to `\@secondoftwo` at the end.)

If you need to know whether or not some code is in the PDF bookmarks or heading, you can use:

📌
``\glsxtrtitleorpdforheading`{〈title〉}{〈PDF bookmarks〉}{〈heading〉}`
This does the applicable argument depending on whether the command occurs within a title/caption or PDF bookmark or heading.

If this command occurs within the toc file, it will do its 〈heading〉 argument but if `\glsxtrtitleorpdforheading` expands while it’s being written to the toc file, then it will expand to 〈title〉. This can be illustrated in the following document:

    🖹\documentclass{report}
    \usepackage{lipsum}
    \usepackage{hyperref}
    \usepackage{glossaries-extra}
    \pagestyle{headings}
    \begin{document}
    \tableofcontents
    \chapter{\glsxtrtitleorpdforheading{Title}{PDF}{Heading}
    \glsxtrifinmark{in mark}{not in mark}}
    \lipsum
    \chapter{\protect\glsxtrtitleorpdforheading{Title}{PDF}{Heading}
    \protect\glsxtrifinmark{in mark}{not in mark}}
    \lipsum
    \end{document}

In the first case, `\glsxtrtitleorpdforheading` expands as it’s being written to the toc file, so it expands to “Title”. In the second case, `\glsxtrtitleorpdforheading` is protected so that command is written to the toc file. On the next LaTeX, when the table of contents is displayed, this command will expand to “Heading”, because it’s in the toc file. Similarly, in the first case, `\glsxtrifinmark` will expand to “not in mark” as it’s written to the toc file, but in the second case it’s expansion is prevented, so it will expand to “in mark” in the table of contents.

If gettitlestring has been loaded (used by nameref to provide `\nameref`) then adjustments for both `\glsxtrtitleorpdforheading` and `\glsxtrifinmark` will be added to `\GetTitleStringDisableCommands`, but bear in mind that you will need to use the following for it to have an effect:

    🖹\GetTitleStringSetup{expand}

The commands described in §5.3.2, such as `\glsfmtshort`, are essentially defined as:

    \texorpdfstring
     {\glsxtrtitle〈field〉{〈entry-label〉}}% title
     {\glsentry〈field〉{〈entry-label〉}}% bookmark

If `\texorpdfstring` isn’t defined, then the definition is:

    \glsxtrtitle〈field〉{〈entry-label〉}

For example, `\glsfmtshort` is defined as (with hyperref):

    \newcommand*{\glsfmtshort}[1]{%
     \texorpdfstring{\glsxtrtitleshort{#1}}{\glsentryshort{#1}}%
    }

This ensures that `\glsfmtshort` expands to just `\glsentryshort` within the PDF bookmarks. Provided the field value doesn’t contain any problematic commands, this allows the actual value to be added to the bookmarks.

Unfortunately the case-changing commands can’t expand and therefore aren’t appropriate for the bookmarks (which need to be a PDF string). This means that the sentence case and all caps commands also use the unmodified field value for the bookmark. For example, `\Glsfmtshort` is defined as:

    \newcommand*{\Glsfmtshort}[1]{%
     \texorpdfstring{\Glsxtrtitleshort{#1}}{\glsentryshort{#1}}%
    }

The `\glsxtrtitle〈field〉` set of commands all default to the corresponding `\glstext`-like command with the options given by `\glsxtrtitleopts` and an empty insert final argument. These title commands are redefined by `\glsxtrmarkhook` to the corresponding `\glsxtrhead〈field〉` command. These “head” commands use `\NoCaseChange` to prevent interference from page headers that convert to all caps (which can inappropriately convert the entry label to all caps). Instead, the headuc attribute needs to be set to `true` to use the appropriate all caps command. A shortcut command is provided to test for this attribute:

📌
``\glsxtrifheaduc`{〈entry-label〉}{〈true〉}{〈false〉}`
This is defined as:

    \newcommand*{\glsxtrifheaduc}[3]{%
     \glsxtrifintoc{#3}{\glsifattribute{#1}{headuc}{true}{#2}{#3}}%
    }

Since the header commands also end up in the contents, where the all caps conversion should not be applied, the definition includes `\glsxtrifintoc` to skip the check in the contents.

📌
``\glsxtrtitleshort`{〈entry-label〉}`
The normal behaviour of `\glsfmtshort`. This is redefined by `\glsxtrmarkhook` to `\glsxtrheadshort`. The default is:

    \glsxtrshort[noindex,hyper=false]{〈entry-label〉}[]

(This is performed indirectly via an internal command that ensures that `\glsxtrtitleopts` is expanded before being passed in the optional argument.)

📌
``\glsxtrheadshort`{〈entry-label〉}`
Used to display the short form in the page header. This is defined as:

    \newcommand*{\glsxtrheadshort}[1]{%
     \protect\NoCaseChange
     {%
       \glsifattribute{#1}{headuc}{true}%
       {%
         \GLSxtrshort[noindex,hyper=false]{#1}[]%
       }%
       {%
         \glsxtrshort[noindex,hyper=false]{#1}[]%
       }%
     }%
    }

The sentence case commands also check the headuc attribute.

📌
``\Glsxtrtitleshort`{〈entry-label〉}`
The normal behaviour of `\Glsfmtshort`. This is redefined by `\glsxtrmarkhook` to `\Glsxtrheadshort`. The default is:

    \Glsxtrshort[noindex,hyper=false]{〈entry-label〉}[]

(Again, this is performed indirectly via an internal command that ensures that `\glsxtrtitleopts` is expanded before being passed in the optional argument.)

📌
``\Glsxtrheadshort`{〈entry-label〉}`
Used to display the sentence case short form in the page header. This is defined as:

    \newcommand*{\Glsxtrheadshort}[1]{%
     \protect\NoCaseChange
     {%
       \glsifattribute{#1}{headuc}{true}%
       {%
         \GLSxtrshort[noindex,hyper=false]{#1}[]%
       }%
       {%
         \Glsxtrshort[noindex,hyper=false]{#1}[]%
       }%
     }%
    }

📌
``\GLSxtrtitleshort`{〈entry-label〉}`
The normal behaviour of `\GLSfmtshort`. This is redefined by `\glsxtrmarkhook` to `\GLSxtrheadshort`. The default uses `\GLSxtrshort` in a similar way to `\glsxtrtitleshort` and `\Glsxtrtitleshort`.

📌
``\GLSxtrheadshort`{〈entry-label〉}`
Used to display the all caps short form in the page header. In this case, there’s no need to check to the headuc attribute, but the label needs to be protected from any potential case-change:

    \newcommand*{\GLSxtrheadshort}[1]{%
     \protect\NoCaseChange
     {%
       \GLSxtrshort[noindex,hyper=false]{#1}[]%
     }%
    }

All the similar commands listed below are defined in an analogous way, except for the glossaries-prefix commands, where only the sentence case title version is provided. This is because commands like `\Pglsfmtshort` have to determine whether or not to use `\glsfmtshort` or `\Glsfmtshort` depending on whether or not the prefix has been set. Whereas commands like `\pglsfmtshort` simply need to insert the prefix and separator if set and then use the corresponding `\glsfmtshort`.

📌
``\Pglsxtrtitleshort`{〈entry-label〉}`

The normal behaviour of `\Pglsfmtshort`.

📌
``\Pglsxtrtitleshortpl`{〈entry-label〉}`

The normal behaviour of `\Pglsfmtshortpl`.

📌
``\Pglsxtrtitlelong`{〈entry-label〉}`

The normal behaviour of `\Pglsfmtlong`.

📌
``\Pglsxtrtitlelongpl`{〈entry-label〉}`

The normal behaviour of `\Pglsfmtlongpl`.

📌
``\glsxtrtitleshortpl`{〈entry-label〉}`
The title plural short form. (Normal behaviour of `\glsfmtshortpl`.)

📌
``\glsxtrheadshortpl`{〈entry-label〉}`
The header plural short form. (The behaviour of `\glsfmtshortpl` when it occurs in a header.)

📌
``\Glsxtrtitleshortpl`{〈entry-label〉}`
The title plural sentence case short form. (Normal behaviour of `\Glsfmtshortpl`.)

📌
``\Glsxtrheadshortpl`{〈entry-label〉}`
The header plural sentence case short form. (The behaviour of `\Glsfmtshortpl` when it occurs in a header.)

📌
``\GLSxtrtitleshortpl`{〈entry-label〉}`
The title plural all caps short form. (Normal behaviour of `\GLSfmtshortpl`.)

📌
``\GLSxtrheadshortpl`{〈entry-label〉}`
The header plural all caps short form. (The behaviour of `\GLSfmtshortpl` when it occurs in a header.)

📌
``\glsxtrtitlelong`{〈entry-label〉}`
The title long form. (Normal behaviour of `\glsfmtlong`.)

📌
``\glsxtrheadlong`{〈entry-label〉}`
The header long form. (The behaviour of `\glsfmtlong` when it occurs in a header.)

📌
``\Glsxtrtitlelong`{〈entry-label〉}`
The title sentence case long form. (Normal behaviour of `\Glsfmtlong`.)

📌
``\Glsxtrheadlong`{〈entry-label〉}`
The header sentence case long form. (The behaviour of `\Glsfmtlong` when it occurs in a header.)

📌
``\GLSxtrtitlelong`{〈entry-label〉}`
The title all caps long form. (Normal behaviour of `\GLSfmtlong`.)

📌
``\GLSxtrheadlong`{〈entry-label〉}`
The header all caps long form. (The behaviour of `\GLSfmtlong` when it occurs in a header.)

📌
``\glsxtrtitlelongpl`{〈entry-label〉}`
The title plural long form. (Normal behaviour of `\glsfmtlongpl`.)

📌
``\glsxtrheadlongpl`{〈entry-label〉}`
The header plural long form. (The behaviour of `\glsfmtlongpl` when it occurs in a header.)

📌
``\Glsxtrtitlelongpl`{〈entry-label〉}`
The title plural sentence case long form. (Normal behaviour of `\Glsfmtlongpl`.)

📌
``\Glsxtrheadlongpl`{〈entry-label〉}`
The header plural sentence case long form. (The behaviour of `\Glsfmtlongpl` when it occurs in a header.)

📌
``\GLSxtrtitlelongpl`{〈entry-label〉}`
The title plural all caps long form. (Normal behaviour of `\GLSfmtlongpl`.)

📌
``\GLSxtrheadlongpl`{〈entry-label〉}`
The header plural all caps long form. (The behaviour of `\GLSfmtlongpl` when it occurs in a header.)

📌
``\glsxtrtitlefull`{〈entry-label〉}`
The title full form. (Normal behaviour of `\glsfmtfull`.)

📌
``\glsxtrheadfull`{〈entry-label〉}`
The header full form. (The behaviour of `\glsfmtfull` when it occurs in a header.)

📌
``\Glsxtrtitlefull`{〈entry-label〉}`
The title sentence case full form. (Normal behaviour of `\Glsfmtfull`.)

📌
``\Glsxtrheadfull`{〈entry-label〉}`
The header sentence case full form. (The behaviour of `\Glsfmtfull` when it occurs in a header.)

📌
``\GLSxtrtitlefull`{〈entry-label〉}`
The title all caps full form. (Normal behaviour of `\GLSfmtfull`.)

📌
``\GLSxtrheadfull`{〈entry-label〉}`
The header all caps full form. (The behaviour of `\GLSfmtfull` when it occurs in a header.)

📌
``\glsxtrtitlefullpl`{〈entry-label〉}`
The title plural full form. (Normal behaviour of `\glsfmtfullpl`.)

📌
``\glsxtrheadfullpl`{〈entry-label〉}`
The header plural full form. (The behaviour of `\glsfmtfullpl` when it occurs in a header.)

📌
``\Glsxtrtitlefullpl`{〈entry-label〉}`
The title plural sentence case full form. (Normal behaviour of `\Glsfmtfullpl`.)

📌
``\Glsxtrheadfullpl`{〈entry-label〉}`
The header plural sentence case full form. (The behaviour of `\Glsfmtfullpl` when it occurs in a header.)

📌
``\GLSxtrtitlefullpl`{〈entry-label〉}`
The title plural all caps full form. (Normal behaviour of `\GLSfmtfullpl`.)

📌
``\GLSxtrheadfullpl`{〈entry-label〉}`
The header plural all caps full form. (The behaviour of `\GLSfmtfullpl` when it occurs in a header.)

📌
``\glsxtrtitlename`{〈entry-label〉}`
The title name field. (Normal behaviour of `\glsfmtname`.)

📌
``\glsxtrheadname`{〈entry-label〉}`
The header name field. (The behaviour of `\glsfmtname` when it occurs in a header.)

📌
``\Glsxtrtitlename`{〈entry-label〉}`
The title sentence case name field. (Normal behaviour of `\Glsfmtname`.)

📌
``\Glsxtrheadname`{〈entry-label〉}`
The header sentence case name field. (The behaviour of `\Glsfmtname` when it occurs in a header.)

📌
``\GLSxtrtitlename`{〈entry-label〉}`
The title all caps name field. (Normal behaviour of `\GLSfmtname`.)

📌
``\GLSxtrheadname`{〈entry-label〉}`
The header all caps name field. (The behaviour of `\GLSfmtname` when it occurs in a header.)

📌
``\glsxtrtitletext`{〈entry-label〉}`
The title text field. (Normal behaviour of `\glsfmttext`.)

📌
``\glsxtrheadtext`{〈entry-label〉}`
The header text field. (The behaviour of `\glsfmttext` when it occurs in a header.)

📌
``\Glsxtrtitletext`{〈entry-label〉}`
The title sentence case text field. (Normal behaviour of `\Glsfmttext`.)

📌
``\Glsxtrheadtext`{〈entry-label〉}`
The header sentence case text field. (The behaviour of `\Glsfmttext` when it occurs in a header.)

📌
``\GLSxtrtitletext`{〈entry-label〉}`
The title all caps text field. (Normal behaviour of `\GLSfmttext`.)

📌
``\GLSxtrheadtext`{〈entry-label〉}`
The header all caps text field. (The behaviour of `\GLSfmttext` when it occurs in a header.)

📌
``\glsxtrtitleplural`{〈entry-label〉}`
The title plural field. (Normal behaviour of `\glsfmtplural`.)

📌
``\glsxtrheadplural`{〈entry-label〉}`
The header plural field. (The behaviour of `\glsfmtplural` when it occurs in a header.)

📌
``\Glsxtrtitleplural`{〈entry-label〉}`
The title sentence case plural field. (Normal behaviour of `\Glsfmtplural`.)

📌
``\Glsxtrheadplural`{〈entry-label〉}`
The header sentence case plural field. (The behaviour of `\Glsfmtplural` when it occurs in a header.)

📌
``\GLSxtrtitleplural`{〈entry-label〉}`
The title all caps plural field. (Normal behaviour of `\GLSfmtplural`.)

📌
``\GLSxtrheadplural`{〈entry-label〉}`
The header all caps plural field. (The behaviour of `\GLSfmtplural` when it occurs in a header.)

📌
``\glsxtrtitlefirst`{〈entry-label〉}`
The title first field. (Normal behaviour of `\glsfmtfirst`.)

📌
``\glsxtrheadfirst`{〈entry-label〉}`
The header first field. (The behaviour of `\glsfmtfirst` when it occurs in a header.)

📌
``\Glsxtrtitlefirst`{〈entry-label〉}`
The title sentence case first field. (Normal behaviour of `\Glsfmtfirst`.)

📌
``\Glsxtrheadfirst`{〈entry-label〉}`
The header sentence case first field. (The behaviour of `\Glsfmtfirst` when it occurs in a header.)

📌
``\GLSxtrtitlefirst`{〈entry-label〉}`
The title all caps first field. (Normal behaviour of `\GLSfmtfirst`.)

📌
``\GLSxtrheadfirst`{〈entry-label〉}`
The header all caps first field. (The behaviour of `\GLSfmtfirst` when it occurs in a header.)

📌
``\glsxtrtitlefirstplural`{〈entry-label〉}`
The title firstplural field. (Normal behaviour of `\glsfmtfirstpl`.)

📌
``\glsxtrheadfirstplural`{〈entry-label〉}`
The header firstplural field. (The behaviour of `\glsfmtfirstpl` when it occurs in a header.)

📌
``\Glsxtrtitlefirstplural`{〈entry-label〉}`
The title sentence case firstplural field. (Normal behaviour of `\Glsfmtfirstpl`.)

📌
``\Glsxtrheadfirstplural`{〈entry-label〉}`
The header sentence case firstplural field. (The behaviour of `\Glsfmtfirstpl` when it occurs in a header.)

📌
``\GLSxtrtitlefirstplural`{〈entry-label〉}`
The title all caps firstplural field. (Normal behaviour of `\GLSfmtfirstpl`.)

📌
``\GLSxtrheadfirstplural`{〈entry-label〉}`
The header all caps firstplural field. (The behaviour of `\GLSfmtfirstpl` when it occurs in a header.)

The definitions of `\markright`, `\markboth` and `\@starttoc` are saved (using `\let`) when glossaries-extra loads.

📌
``\@glsxtr@org@markright`{〈text〉}`
The previous definition of `\markright`.

📌
``\@glsxtr@org@markboth`{〈left text〉}{〈right text〉}`
The previous definition of `\markboth`.

📌
``\@glsxtr@org@@starttoc`{〈toc〉}`
The previous definition of `\@starttoc`.

The glossaries-extra definitions of `\markright`, `\markboth` and `\@starttoc` all start and end with hooks that redefine commands that are sensitive to being in the header or contents.

📌
``\glsxtrmarkhook``
This saves the original definitions and redefines the sensitive commands. This includes `\MakeUppercase` which is `\let` to `\MakeTextUppercase`.

📌
``\@glsxtrinmark``
This redefines `\glsxtrifinmark` to just do its first argument (〈true〉).
📌
``\@glsxtrnotinmark``
This redefines `\glsxtrifinmark` to just do its second argument (〈false〉).
📌
``\glsxtrrestoremarkhook``
This restores the sensitive commands to the saved definitions. (For use where grouping will cause interference.) For example, `\markboth` is redefined as:

    \renewcommand*{\markboth}[2]{%
     \glsxtrmarkhook
     \@glsxtr@org@markboth
       {\@glsxtrinmark#1\@glsxtrnotinmark}%
       {\@glsxtrinmark#2\@glsxtrnotinmark}%
     \glsxtrrestoremarkhook
    }

[top]

## 5.4. Nested Links
[link]

Complications arise when you use the `\gls`-like commands in the value of the name field (or text or first fields, if set). This tends to occur with abbreviations that extend other abbreviations. For example, SHTML is an abbreviation for SSI enabled HTML, where SSI is an abbreviation for Server Side Includes and HTML is an abbreviation for Hypertext Markup Language.

For example, things can go wrong if the following is used with the glossaries package:

    🖹🛇\newacronym{ssi}{SSI}{Server Side Includes}
    \newacronym{html}{HTML}{Hypertext Markup Language}
    \newacronym{shtml}{S\gls{html}}{\gls{ssi} enabled \gls{html}}

The main problems are:

1. 1. With older versions of mfirstuc and glossaries, the sentence case commands, such as `\Gls`, won’t work for the `shtml` entry on first use if the long form is displayed before the short form (which is the default abbreviation style). This will attempt to do

       \gls{\uppercase ssi} enabled \gls{html}

   which just doesn’t work. Grouping the ``\gls`{ssi}` doesn’t work either as this will effectively try to do:

       \uppercase{\gls{ssi}} enabled \gls{html}

   This will upper case the label `ssi` so the entry won’t be recognised. This problem will also occur if you use the all caps version, such as ``\GLS`{shtml}`.

   With mfirstuc v2.08+ and glossaries v1.49+, this issue should now be resolved for sentence case where ``\gls`{ssi}` will be mapped to ``\Gls`{ssi}` within ``\Gls`{shtml}`. The all caps command ``\GLS`{shtml}` will treat `\gls` as an exclusion and so won’t perform a case-change. See §5.2 for further details.

2. 2. The long and abbreviated forms accessed through `\glsentrylong` and `\glsentryshort` are no longer expandable and so can’t be used be used in contexts that require this, such as PDF bookmarks.

3. 3. The nested commands may end up in the sort key, which will confuse the indexing.

4. 4. The `shtml` entry produces inconsistent results depending on whether the `ssi` or `html` entries have been used. Suppose both `ssi` and `html` are used before `shtml`. For example:
   🖹🖺

       This section discusses
       \gls{ssi}, \gls{html} and
       \gls{shtml}.

   This section discusses server side includes (SSI), hypertext markup language (HTML) and SSI enabled HTML (SHTML).

   In the above, the first use of the `shtml` entry produces “SSI enabled HTML (SHTML)”.

   Now let’s suppose the `html` entry is used before the `shtml` but the `ssi` entry is used after the `shtml` entry, for example:

   🖹🖺

       The sample files are
       either \gls{html} or
       \gls{shtml}, but let's
       first discuss \gls{ssi}.

   The sample files are either hypertext markup language (HTML) or server side includes (SSI) enabled HTML (SHTML), but let’s first discuss SSI.

   In this case, the first use of the `shtml` entry now produces “server side includes (SSI) enabled HTML (SHTML)”, which looks a bit cumbersome.

   Now let’s suppose the `shtml` entry is used before (or without) the other two entries:

   🖹🖺

       This article is an introduction
       to \gls{shtml}.

   This article is an introduction to server side includes (SSI) enabled hypertext markup language (HTML) (SHTML).

   Now the first use of the `shtml` entry produces “server side includes (SSI) enabled hypertext markup language (HTML) (SHTML)”, which looks strange.

   This is all aggravated when using just the base glossaries package when the acronym style is set with `\setacronymstyle`. For example:

       \setacronymstyle{long-short}

   as this references the label through the use of `\glslabel` when displaying the long and short forms, but this value changes with each use of `\gls`, so instead of displaying “(SHTML)” at the end of the first use, it now displays “(HTML)”, since `\glslabel` has been changed to `html` by ``\gls`{html}`.

   🛈
   In v1.48, the glossaries-extra package added grouping with `\glslinkwrcontent`, which scoped the link text. Unfortunately this grouping caused problems in math mode and had to be removed in v1.49. You can redefine `\glslinkwrcontent` to put the grouping back, but it still won’t scope the definitions of the placeholder commands, such as `\glslabel`, which need to be outside of this scope for the benefit of the post-link hook.

   Another oddity occurs if you reset the `html` entry between uses of the `shtml` entry. For example:

       \gls{shtml} ... \glsreset{html}\gls{shtml}

   The next use of `shtml` produces “Shypertext markup language (HTML)”, which is downright weird. (This is a result of the short form being set to `S`\gls`{html}`, but ``\gls`{html}` is showing the full form.)

   Even without this, the short form has nested formatting commands, which amount to ``\acronymfont`{S`\acronymfont`{HTML}}`. This may not be a problem for some styles, but if you use one of the “sm” styles (that use `\textsmaller`), this will produce an odd result.

5. 5. Each time the `shtml` entry is used, the `html` entry will also be indexed and marked as used, and on first use this will happen to both the `ssi` and `html` entries. This kind of duplication in the location list isn’t usually particularly helpful to the reader.

6. 6. If hyperref is in use, you’ll get nested hyperlinks and there’s no consistent way of dealing with this across the available PDF viewers. If on the first use case, the user clicks on the “HTML” part of the “SSI enabled HTML (SHTML)” link, they may be directed to the HTML entry in the glossary or they may be directed to the SHTML entry in the glossary.

For these reasons, with just the base glossaries package, it’s better to use the simple expandable commands like `\glsentrytext` or `\glsentryshort` in the definition of other entries.

The glossaries-extra package provides two other ways of dealing with these problems:

1. 1.If the term can simply be treated as a series of previously defined entries, then consider using multi-entries (or compound sets), as described in §7. This deals with all the issues, including case-changing.

2. 2.Use the partially-expandable `\glsxtrp`, described below.

📌
``\glsxtrp`{〈field〉}{〈entry-label〉}`
where 〈field〉 is the internal field label.

This command partially expands, so it will expand to just the field value if it occurs in the PDF bookmarks. Otherwise it will behave much like the commands described in §5.3.2, but with additional outer scoping and the post-link hook is suppressed.

Rather than testing the existence of the given field, this tests the existence of `\gls〈field〉` or `\glsxtr〈field〉`, which means that it may be confused if the 〈field〉 argument is set to something that isn’t a field but happens to match either of those command names (such as `full`).

The post-link hook is suppressed by the initialisation command:

📌
``\glsxtrpInit`{〈cs-name〉}{〈entry-label〉}`
This is used inside the added outer scoping and is simply defined as:

    \newcommand\glsxtrpInit[2]{\let\glspostlinkhook\relax}

It is possible to redefine this command to allow the `\glspostlinkhook` to be used, but any look-ahead (such as checking for a following punctuation character) won’t work because of the added grouping. The arguments are ignored by default. If you want to redefine `\glsxtrpInit` the first argument is the name of the control sequence that will be used, without the leading backslash (for example, `glstext` or `glsxtrshort`) and the second argument is the entry’s label.

Note that, as with commands like `\glsfmtshort`, there’s no optional argument. The default settings are noindex and hyper=false. You can change this with:

📌
``\glsxtrsetpopts`{〈options〉}`
The argument should be the new default options.

At the start of each glossary, the default options are locally changed with:

📌
``\glossxtrsetpopts``
This is defined as:

    \newcommand*{\glossxtrsetpopts}{%
      \glsxtrsetpopts{noindex}%
    }

This allows hyperlinks for any instance of `\glsxtrp` that occurs in the name or description, where it shouldn’t be problematic.

There are also sentence case and all caps versions.

📌
``\Glsxtrp`{〈field〉}{〈entry-label〉}`
This uses the corresponding sentence case command `\Gls〈field〉` or `\Glsxtr〈field〉`.

📌
``\GLSxtrp`{〈field〉}{〈entry-label〉}`
This uses the corresponding all caps command `\GLS〈field〉` or `\GLSxtr〈field〉`.

There are some shortcut commands for the most common fields:

📌
``\glsps`{〈entry-label〉}`
which is equivalent to ``\glsxtrp`{short}{〈entry-label〉}`, and
📌
``\glspt`{〈entry-label〉}`
which is equivalent to ``\glsxtrp`{text}{〈entry-label〉}`. As well as sentence case and all caps versions:
📌
``\Glsps`{〈entry-label〉}`
which is equivalent to ``\Glsxtrp`{short}{〈entry-label〉}`,
📌
``\Glspt`{〈entry-label〉}`
which is equivalent to ``\Glsxtrp`{text}{〈entry-label〉}`,
📌
``\GLSps`{〈entry-label〉}`
which is equivalent to ``\GLSxtrp`{short}{〈entry-label〉}`, and
📌
``\GLSpt`{〈entry-label〉}`
which is equivalent to ``\GLSxtrp`{text}{〈entry-label〉}`.

For example:

    🖹\documentclass{article}
    \usepackage[colorlinks]{hyperref}
    \usepackage{glossaries-extra}
    \setabbreviationstyle{long-em-short-em}
    \newabbreviation{html}{HTML}{hypertext markup language}
    \newabbreviation{ssi}{SSI}{server-side includes}
    \newabbreviation{shtml}{SHTML}{\glsps{html} enabled
    \glsps{ssi}}
    \begin{document}
    \tableofcontents
    \section{\glsfmtlong{shtml}}
    First use: \gls{shtml}, \gls{html}, \gls{ssi}.

    Next use: \gls{shtml}, \gls{html}, \gls{ssi}.

    \printunsrtglossaries
    \end{document}

🖺
Example 95: Nested link text with `\glspl` 📥🖹 📥🖺

The way that this works is as follows:

- •``\glsfmtlong`{shtml}` expands to ``\glsentrylong`{shtml}` within the PDF bookmarks, which expands to the value of the long field:

      \glsps{html} enabled \glsps{ssi}

  This means that `\glsps` (within the PDF bookmarks) in turn expands to `\glsentryshort`. So the bookmark text (which can’t contain any formatting commands) ends up as “HTML enabled SSI”.

- •``\glsfmtlong`{shtml}` essentially behaves like `\glsxtrlong`, but with the indexing and hyperlink suppressed. The link text is the value of the long field encapsulated with the abbreviation style’s formatting command (`\glslongemfont` in this case):

      \glslongemfont{\glsps{html} enabled \glsps{ssi}}

  This then becomes:

      \glslongemfont{{\let\glspostlinkhook\relax
       \glsxtrshort{html}} enabled
      {\let\glspostlinkhook\relax
       \glsxtrshort{ssi}}}

  Note the grouping and localised suppression of the post-link hook.

Note that in the above example, with older versions of mfirstuc and glossaries, it’s not possible to use ``\Glsxtrlong`{shtml}` or similar. The problem here is that it will attempt to do:

    \makefirstuc{\glsps{html} enabled \glsps{ssi}}

This will essentially end up as:

    \glsps{\uppercase html} enabled \glsps{ssi}

which doesn’t work. If you want to protect against automated case-changes, such as using the glossdesc attribute, insert an empty brace at the start:

    \newabbreviation{shtml}{SHTML}{{}\glsps{html} enabled
    \glsps{ssi}}

Alternatively, upgrade to mfirstuc v2.08+ and glossaries v4.50+. See §5.2.

[top]

## 5.5. Adjusting the Text Style
[link]

The `\gls`-like and `\glstext`-like commands produce text that’s essentially formatted either as (hyperoutside=true):

    〈hyper-cs〉{〈target〉}{〈textformat-cs〉{〈content〉}}〈post-link hook〉

or (hyperoutside=false):

    〈textformat-cs〉{〈hyper-cs〉{〈target〉}{〈content〉}}〈post-link hook〉

If hyperlinks are enabled then 〈hyper-cs〉 creates the hyperlink based on 〈target〉 with the hyperlink text given by the second argument. If hyperlinks aren’t enabled then 〈hyper-cs〉 ignores the 〈target〉 argument and simply does the second argument.

The 〈content〉 part is the link text, which includes the final optional 〈insert〉 (if supplied). The actual content depends on the command used (for example, `\gls` or `\glstext`). The `\gls`-like commands all use the entry display style associated with the entry’s glossary type, (see §5.5.5). The `\glstext`-like commands set the 〈content〉 to the corresponding field value with the insert appended, all encapsulated with the inner formatting (see §5.5.3), with appropriate case-changing, if required.

The abbreviation commands (`\glsxtrshort`, `\glsxtrlong`, `\glsxtrfull` etc) are considered part of the set of `\glstext`-like commands, but the content is set according to the abbreviation style (see §4.5).

The commands `\glsdisp` and `\glslink` both have the content part explicitly set in their final argument. There’s no insert optional argument as it can simply be included in the content part. The difference between them is that `\glsdisp` is considered a `\gls`-like command (it unsets the first use flag, §5.10, and uses the entry display style, §5.5.5), whereas `\glslink` is considered a `\glstext`-like command.

The 〈post-link hook〉 part is described in §5.5.4.

The 〈textformat-cs〉 command is the outer formatting command, described in §5.5.1. This doesn’t include the post-link hook. If you want to include the post-link hook then you need to encapsulate the entire `\gls`-like and `\glstext`-like command (including the final optional argument, if present, and following punctuation, if the post-link hook looks ahead for punctuation).

Some sensitive formatting commands need to have the actual text in their argument (or else have the argument in an unbreakable box). The 〈content〉 part is usually too complicated for these commands. To help support this type of command, there is also an inner format, which is described in §5.5.3. In general, unless you require one of these sensitive commands, avoid setting the inner text format as it requires support from the underlying style (either the entry format style or the abbreviation style), which may not be available.

The following example document is ugly, but demonstrates the outer formatting (typewriter font), middle formatting (bold for regular entries and italic for abbreviations), inner formatting (highlighted in yellow), hyperlinks (red), and the category post-link hook (the description follows in parentheses for general entries on first use).

    🖹\usepackage{courier}
    \usepackage[T1]{fontenc}
    \usepackage{xcolor}
    \usepackage{soul}
    \usepackage[colorlinks]{hyperref}
    \usepackage[nogroupskip]{glossaries-extra}
    % outer formatting:
    \renewcommand{\glstextformat}[1]{\texttt{#1}}
    % middle formatting:
    \renewcommand{\glsxtrregularfont}[1]{\textbf{#1}}
    \renewcommand{\glsxtrabbreviationfont}[1]{\textit{#1}}
    % inner formatting:
    \renewcommand{\glsxtrdefaultentrytextfmt}[1]{\hl{#1}}
    % post-link hook for 'general' category:
    \glsdefpostlink{general}{\glsxtrpostlinkAddDescOnFirstUse}
    % define entries:
    \newglossaryentry{sample}{name={sample},description={an example}}
    \newabbreviation{html}{HTML}{hypertext markup language}
    \newacronym{nasa}{NASA}{National Aeronautics and Space Administration}
    \begin{document}
    First use: \gls{sample}, \gls{html}, \gls{nasa}.

    Next use: \gls{sample}, \gls{html}, \gls{nasa}.
    \printunsrtglossaries
    \end{document}

This produces:
🖺
Example 96: Link text styles: outer, middle, inner, hyperlinks and post-link hook 📥🖹 📥🖺

Note that the hyperlink, outer and middle formatting aren’t applied to the post-link hook. The acronym category has the short-nolong abbreviation style, which sets the regular attribute to true. This means that the NASA entry uses the regular middle format (`\glsxtrregularfont`) not the abbreviation middle format (`\glsxtrabbreviationfont`).

If you have a formatting command that needs to have its argument fully-expanded before being applied, you may be able to use:

📌
``\GlsXtrExpandedFmt`{〈cs〉}{〈content〉}`
This fully-expands 〈content〉 and does `〈cs〉{〈expanded-content〉}`, where 〈cs〉 is a command that takes a single argument. For example, to use soul’s underlining command `\ul`:

    🖹\renewcommand{\glsxtrregularfont}[1]{\GlsXtrExpandedFmt{#1}}

(See Example 117.) This isn’t guaranteed to work as the link text may contain fragile content.

The inner formatting can be unpredictable. For example, abbreviation styles are complicated and so the inner formatting command is included in some of the field values, such as the name, which is why the abbreviation name is highlighted in the glossary. In the above example, the inner formatting is included in the category post-link hook, but only because `\glsxtrpostlinkAddDescOnFirstUse` is designed to include it. If the category post-link hook was simply defined as:

    🖹\glsdefpostlink{general}{%
     \glsxtrifwasfirstuse{ (\glsentrydesc{\glslabel})}{}}

then the inner formatting won’t be applied, since it’s not included in the hook. This is demonstrated in a slightly modified version of the above document (initial part of preamble that deals with loading packages and redefining formatting commands as before):

    🖹% post-link hook for 'general' category:
    \glsdefpostlink{general}{%
     \glsxtrifwasfirstuse{ (\glsentrydesc{\glslabel})}{}}
    % this style sets the post-link hook for 'abbreviation' category:
    \setabbreviationstyle{long-postshort-user}
    % this style sets the post-link hook for 'acronym' category:
    \setabbreviationstyle[acronym]{short-postfootnote}
    % define entries:
    \newglossaryentry{sample}{name={sample},description={an example}}
    \newabbreviation{html}{HTML}{hypertext markup language}
    \newacronym{nasa}{NASA}{National Aeronautics and Space Administration}
    \begin{document}
    First use: \gls{sample}, \gls{html}, \gls{nasa}.

    Next use: \gls{sample}, \gls{html}, \gls{nasa}.
    \printunsrtglossaries
    \end{document}

This produces:
🖺
Example 97: Link text styles: outer, middle, inner, hyperlinks and post-link hooks (custom and abbreviation style) 📥🖹 📥🖺

The “post” abbreviation styles put some content into the post-link hook and provide support for the inner formatting. The above example sets the abbreviation style to long-postshort-user. This sets up the post-link hook for the associated category (abbreviation, in this case) to show the parenthetical material. Be aware that this will override any previous definition of that hook. This style supports the inner formatting (so the parenthetical material is highlighted).

Similarly, the short-postfootnote style is applied to the acronym category, and sets the post-link hook for that category (which looks head for punctuation). The inner formatting is applied to the footnote text but not the marker.

The post-link hook for the general category is now much simpler and doesn’t include support for the inner formatting, so it’s not highlighted.

None of the post-link content is incorporated into the hyperlink, outer or middle formatting.

In general, it’s better to adjust the abbreviation’s style commands (see §4.5.1.3) rather than use the middle or inner formatting if abbreviations need to be displayed in a particular font.

[top]

### 5.5.1. Outer Formatting
[link]

By default, the outer formatting is produced with `\glstextformat`, which is defined by the base glossaries package. However it can be replaced by the textformat category attribute or by the textformat option. The order of precedence (not cumulative) is: the option supplied to the `\gls`-like or `\glstext`-like command, the category attribute, `\glstextformat`.

For example:

    🖹\usepackage[colorlinks]{hyperref}
    \usepackage{glossaries-extra}
    \glsdefpostlink{general}{ (\glsentrydesc{\glslabel})}
    \newglossaryentry{sample}{name={sample},description={an example}}
    \newcommand{\strong}[1]{\textbf{\color{green}#1}}
    \renewcommand{\glstextformat}[1]{\emph{#1}}
    \begin{document}
    \gls{sample}[-insert]. \strong{\gls{sample}[-insert]}.

    \glssetcategoryattribute{general}{textformat}{strong}
    \gls{sample}[-insert].
    \gls[hyperoutside=false]{sample}[-insert].

    \gls[textformat=textsf]{sample}[-insert].
    \end{document}

🖺
Example 98: Changing the outer text format 📥🖹 📥🖺

The red text colour is from the hyperlink (red is the default with hyperref’s colorlinks option). The green from the custom `\strong` command is cancelled by the hyperlink colour change when the hyperlink is inside `\strong`.

After the textformat attribute is set, the `\glstextformat` command isn’t used, which is why the remaining lines don’t have any italic. The final line uses the textformat option, which overrides the textformat attribute, so neither `\glstextformat` nor the custom `\strong` are used.

Note that the only time that the post-link hook is included in the formatting is when the entire `\gls` command has been encapsulated.

[top]

### 5.5.2. Middle Formatting
[link]

The middle formatting comes between the outer formatting (§5.5.1 above) and the inner formatting (§5.5.3 below).

The middle formatting is implemented by the entry format style (§5.5.5) for the `\gls`-like commands or is initialised by `\glsxtrassignfieldfont` for the `\glstext`-like commands.

If you provide your own custom entry format style you will need to add support for the middle formatting, if required.

📌
``\glsxtrregularfont`{〈text〉}`
The command to use for regular entries. This is initialised to just do its argument.

📌
``\glsxtrabbreviationfont`{〈text〉}`
The command to use for abbreviations that considered non-regular entries.

The following document has a regular entry (sample), a regular abbreviation (radar, which uses short-nolong the default acronym style), and a non-regular abbreviation (HTML, which uses long-short the default abbreviation style):

    🖹\newglossaryentry{sample}{name={sample},description={an example}}
    \newabbreviation{html}{HTML}{hypertext markup language}
    \newacronym{radar}{radar}{radio detection and ranging}
    \renewcommand{\glsxtrregularfont}[1]{\emph{#1}}
    \renewcommand{\glsxtrabbreviationfont}[1]{\textbf{#1}}
    \begin{document}
    \gls{sample}, \gls{html}, \gls{radar}.
    \end{document}

🖺
Example 99: Middle formatting 📥🖹 📥🖺

Note that even though radar is an abbreviation, it’s considered a regular entry because it uses a regular style.

📌
``\glsxtrassignfieldfont`{〈entry-label〉}`
This command is used by all the `\glstext`-like commands to initialise the internal command used to encapsulate the field value. This will either be set to `\glsxtrregularfont` (for regular entries) or `\@firstofone` otherwise.

Note that this doesn’t use `\glsxtrabbreviationfont` as non-regular abbreviations are too complicated to work with `\glstext`, `\glsfirst`, `\glsplural`, `\glsfirstplural` or their case-changing variants. Instead, use the `\gls`-like commands or the abbreviation commands, such as `\glsxtrshort`.

[top]

### 5.5.3. Inner Formatting
[link]

If you want to format the link text, the best method is to either use the outer formatting or encapsulate the entire `\gls`-like or `\glstext`-like command, as described in §5.5.1. However, there are some sensitive commands that don’t work if the command argument doesn’t simply contain text.

🛈
Sometimes the issue may occur when the sensitive command that needs to encapsulate `\gls` doesn’t like boolean variables being changed (which occurs when the first use flag is unset). If this is the case, you may want to consider buffering as an alternative (see §5.10.1).

For example, if the sample document from §5.5.1 is adjusted to include the soul package and the following line is added to the document:

    🖹\gls[textformat=hl]{sample}

then the document build will fail with the error:

> ! Package soul Error: Reconstruction failed.

Once solution is to do the following instead:

    🖹\hl{\mbox{\gls{sample}}}

This will now work, but the box will prevent hyphenation, so it’s only useful if the link text is short, such as a symbol. If the link text is long (such as a phrase or the first use of an abbreviation), this method can produce undesirable results with overfull or underfull lines.

The inner formatting is designed to provide a workaround, but it must be implemented deep within the entry style formatting. This means that if you provide your own custom style, you will need to add the appropriate commands if you want that style to support inner formatting. You may also need to switch to using `\MFUsentencecase` instead of `\makefirstuc` if any of the sentence case commands are required:

    🖹\renewcommand{\glssentencecase}[1]{\MFUsentencecase{#1}}

Although there’s no guarantee that this will work for some particularly problematic formatting commands.

With the default entry style, the above example can be changed to:

    🖹\gls[innertextformat=hl]{sample}

⚠
The inner formatting may be split up in order to move them into the arguments of internal commands, such as those used for case-changing. This can result in unwanted side-effects.

The following uses `\fbox` (which draws a frame around its argument) and soul’s `\so` (which spaces out the letters):

    🖹% requires glossaries.sty v4.50+ and mfirstuc v2.08+
    \renewcommand{\glssentencecase}[1]{\MFUsentencecase{#1}}
    \newacronym{radar}{radar}{radio detection and ranging}
    \begin{document}
    \Gls[innertextformat=fbox]{radar}['s] system\ldots

    \Gls[innertextformat=so]{radar}['s] system\ldots

    \fbox{\Gls{radar}['s]} system\ldots

    \so{\mbox{\Gls{radar}['s]}} system\ldots
    \end{document}

🖺
Example 100: Inner formatting 📥🖹 📥🖺

Note the fragmentation of the inner formatting. The use of `\mbox` in the final line prevents an error but the letters aren’t spaced out. The only way to deal with this case is to use `\glsdisp` or `\glslink` with the text explicitly written:

    🖹\glslink{radar}{\so{Radar's}} system\ldots

⚠
The above example requires mfirstuc v2.08+.

Below are the commands used to support inner formatting.

📌
``\glsxtrgenentrytextfmt``
This is the command that’s used to encapsulate any content that should have the inner formatting applied. It should not be redefined within the document as it’s initialised within the `\gls`-like and `\glstext`-like commands. It’s used within `\glsgenentryfmt` and included in the helper commands used by the predefined abbreviation styles.

Sometimes it may be necessary to include `\glsxtrgenentrytextfmt` within the actual field value to ensure that it’s as close as possible to the text. This is performed automatically when an entry is defined if the encapinnerfmt or encapnocaseinnerfmt attributes are set. Note that even in this case, fragmentation will occur with sentence case commands like `\Gls` or with the insert optional argument, as in the above example with `\fbox` and `\so`.

📌
``\glsxtrdefaultentrytextfmt`{〈text〉}`
This is the default command that `\glsxtrgenentrytextfmt` will be `\let` to within the `\gls`-like and `\glstext`-like commands before their options are processed. This simply does its argument but may be redefined. (See Example 117.)

📌
``\glsxtrattrentrytextfmt`{〈text〉}`
This command applies formatting according to whether or not the innertextformat attribute is set. It isn’t used by default as it should rarely be needed and increases complexity. However, if you would like to provide support for the innertextformat attribute, you can redefine `\glsxtrdefaultentrytextfmt` to use `\glsxtrattrentrytextfmt`:

    🖹\renewcommand{\glsxtrdefaultentrytextfmt}{\glsxtrattrentrytextfmt}

🛈
This command expects the entry label to be stored in `\glslabel` (from which it obtains the category label).

The `\gls`-like commands use `\glsxtrgenentrytextfmt` within `\glsgenentryfmt` for regular entries or within the abbreviation style commands for non-regular abbreviations (see §5.5.5).

The `\glstext`-like commands all essentially perform the following steps:

1. 1.Initialise the middle formatting command 〈field-font-cs〉 used for encapsulating the field with `\glsxtrassignfieldfont` (see §5.5.2).

2. 2.If `\glsifapplyinnerfmtfield` indicates that the field value should be encapsulated by `\glsxtrgenentrytextfmt`, then this essentially does (or appropriate case-change equivalent):

       🖹〈field-font-cs〉{\glsaccessfmt〈field〉{〈insert〉}{\glsxtrgenentrytextfmt}{〈entry-label〉}{〈internal-field〉}}

   otherwise it does:

       🖹〈field-font-cs〉{\glsaccess〈field〉{〈entry-label〉}\glsxtrgenentrytextfmt{〈insert〉}}

   (See §9 for the “access” commands.)

For example, the link text for `\glstext` is:

    🖹\glsifapplyinnerfmtfield{〈entry-label〉}{text}%
    {%
     〈field-font-cs〉{\glsaccessfmttext{〈insert〉}{\glsxtrgenentrytextfmt}{〈entry-label〉}}%
    }%
    {%
     〈field-font-cs〉{\glsaccesstext{〈entry-label〉}\glsxtrgenentrytextfmt{〈insert〉}}%
    }

The `\glsaccessfmt〈field〉` commands internally use `\glsfmtfield` to apply the inner formatting.

📌
``\glsifapplyinnerfmtfield`{〈entry-label〉}{〈internal-field〉}{〈true〉}{〈false〉}`
This determines whether or not the field identified by its internal field label for the given entry should have its value encapsulated by the inner formatting command. False indicates that the field value already contains the inner formatting command.

📌
``\glsexclapplyinnerfmtfield`{〈entry-label〉}{〈internal-field〉}`
Locally adds the given field identified by its internal field label to the exclusion list for the given entry.

📌
``\glsfmtfield`{〈insert〉}{〈cs〉}{〈entry-label〉}{〈internal-field〉}`
This command applies the formatting command 〈cs〉 (which takes one argument) to the entry’s field value identified by the given internal field label, including 〈insert〉 appended. This ensures that the internal control sequence used to store the field’s value is expanded before 〈cs〉 is applied.

📌
``\Glsfmtfield`{〈insert〉}{〈cs〉}{〈entry-label〉}{〈internal-field〉}`
As above but sentence case.

📌
``\GLSfmtfield`{〈insert〉}{〈cs〉}{〈entry-label〉}{〈internal-field〉}`
As above but all caps.

[top]

### 5.5.4. Post Link Hook
[link]

The post-link hook is a convenient way of automatically appending content after each instant of the `\gls`-like and `\glstext`-like commands. The simplest method of implementing this is with the category post-link hook, which is only applied to entries that have the given category. For example, the following will place an asterisk (*) after all entries with the default general category:

    🖹\glsdefpostlink{general}{*}
    \newglossaryentry{sample}{name={sample},symbol={X},
     description={an example}}
    \begin{document}
    \Gls{sample}, \glstext{sample}, \glsdesc{sample}
    and \glssymbol{sample}.
    \end{document}

🖺
Example 101: Category post-link hook 📥🖹 📥🖺

Typically, the category post-link hook is more likely to include some conditional, such as to only insert text on first use. For example, `\glsxtrpostlinkAddDescOnFirstUse` can be used to insert the description in parentheses after the first use.

⚠
The “post” abbreviation styles all set the category post-link hook, which will overwrite any previous definition for the abbreviation’s category.

Within the post-link hook, you can use the placeholder commands, such as `\glslabel` (see §5.5.5), but note that you can’t use `\ifglsused` to determine whether or not the entry has been used, since the post-link hook comes after the entry has been unset. Instead, use `\glsxtrifwasfirstuse`. Additional commands provided for use within the post-link hooks are described in this section.

The post-link hook is implemented with `\glspostlinkhook`, which is defined by the base glossaries package. It’s used at the end of the `\gls`-like and `\glstext`-like commands. The original base definition does nothing, but glossaries-extra redefines this:

    \renewcommand*{\glspostlinkhook}{%
     \ifglsentryexists{\glslabel}{\glsxtrpostlinkhook}{}%
    }

This uses:
📌
``\glsxtrpostlinkhook``
which is the main glossaries-extra post-link hook.

ℹ
If you are migrating over from only using the base glossaries package and you have redefined `\glspostlinkhook`, consider moving your modifications to the category post-link hook or prepend to `\glsxtrpostlink`, as some attributes and abbreviation styles rely on the features provided by `\glsxtrpostlinkhook`.

The main post-link hook is defined as:

    \newcommand*{\glsxtrpostlinkhook}{%
     \glsxtrdiscardperiod{\glslabel}%
     {\glsxtrpostlinkendsentence}%
     {\glsxtrifcustomdiscardperiod
      {\glsxtrifperiod{\glsxtrpostlinkendsentence}{\glsxtrpostlink}}%
      {\glsxtrpostlink}%
     }%
    }

This checks if a following full stop needs to be discarded and does the inner post-link hook `\glsxtrpostlink`. Note that `\glsxtrdiscardperiod` and `\glsxtrifperiod` look ahead for a following token, so if you need to modify this command, insert your custom code at the start or add it to the category post-link hook instead.

📌
``\glsxtrdiscardperiod`{〈entry-label〉}{〈discarded〉}{〈no discard〉}〈token〉`
This discards 〈token〉 if it’s a full stop and the entry’s category attributes indicate that a full stop should be discarded (such as discardperiod). If the punctuation character is discarded, this will then do 〈discarded〉, otherwise it will do 〈no discard〉 and process 〈token〉 as usual. If the retainfirstuseperiod attribute is set, then the following command is used to determine whether or not to discard 〈token〉.

📌
``\glsxtrdiscardperiodretainfirstuse`{〈entry-label〉}{〈discarded〉}{〈no discard〉}〈token〉`
This was introduced in v1.49 and is defined as:

    \newcommand*{\glsxtrdiscardperiodretainfirstuse}[3]{%
     \glsxtrifwassubsequentorshort{\glsxtrifperiod{#2}{#3}}{#3}%
    }

This will only discard the full stop if it follows the subsequent use of a `\gls`-like command or if it follows one of the `\glsxtrshort` set of commands. Note that this has a different effect from pre v1.49 with the `\glstext`-like commands, but it’s more appropriate since it’s typically only the short form that requires the period to be discarded. To restore the original behaviour:

    \renewcommand*{\glsxtrdiscardperiodretainfirstuse}[3]{%
     \glsxtrifwasfirstuse{#3}{\glsxtrifperiod{#2}{#3}}%
    }

If you want your own custom code to determine whether or not to check for a period (instead of using known category attributes), you can redefine:

📌
``\glsxtrifcustomdiscardperiod`{〈true〉}{〈false〉}`initial: 〈false〉
This should expand to 〈true〉 if a check should be performed, otherwise it should expand to 〈false〉. The default definition simply does 〈false〉.

📌
``\glsxtrpostlinkendsentence``
This is done if a full stop is discarded. If there is a category post-link hook for the entry’s category, that hook is performed (`\glsxtrpostlink〈category〉` not `\glsxtrpostlink`) and the full stop is put back followed by a space factor adjustment. Otherwise, just the space factor adjustment is done.

The test to determine whether or not 〈token〉 is a full stop is determined by:

📌
``\glsxtrifperiod`{〈true〉}{〈false〉}〈token〉`

It may be useful to test for other punctuation characters. For example, styles such as short-postfootnote will move the footnote after certain punctuation characters.

📌
``\glsxtrifnextpunc`{〈true〉}{〈false〉}`
This does 〈true〉 if it’s followed by one of the set of recognised punctuation characters, otherwise it does false. The set is initialised to `.,:;?!` (full stop, comma, colon, semi-colon, question mark, and exclamation mark).

A convenient way of moving code after the punctuation character is to use:

📌
``\glsxtrdopostpunc`{〈code〉}〈token〉`
If 〈token〉 is a recognised punctuation character, this will place 〈code〉 after the token, otherwise it will be placed before the token.

The earlier example can be adapted to put the asterisk after following punctuation:

    🖹\glsdefpostlink{general}{\glsxtrdopostpunc{*}}
    \newglossaryentry{sample}{name={sample},symbol={X},
     description={an example}}
    \begin{document}
    \Gls{sample}, \glstext{sample},
    (\glsdesc{sample}) and \glssymbol{sample}.
    \end{document}

🖺
Example 102: Category post-link hook with punctuation lookahead 📥🖹 📥🖺

Note that the asterisk isn’t moved after the closing parenthesis. This is because that character isn’t included in the default list.

You can add additional punctuation marks with:

📌
``\glsxtraddpunctuationmark`{〈token(s)〉}`
You may list multiple characters at the same time to add a batch, but don’t add any separators (including spaces).

ℹ
Note that each character must be a single token, which means a single-byte character for pdfLaTeX. Multi-byte characters (UTF-8) will required a native Unicode engine (XeLaTeX or LuaLaTeX).

For example:

    🖹\glsxtraddpunctuationmark{-'/}

This adds three extra punctuation marks (hyphen, apostrophe and slash). Note that this doesn’t allow for closing double-quotes and will break `''` (double apostrophe sequence for a closing double-quote) if found. The following will only work with XeLaTeX or LuaLaTeX:

    🗋U\usepackage{fontspec}
    \usepackage{glossaries-extra}
    \glsxtraddpunctuationmark{”}

You can set the list with:

📌
``\glsxtrsetpunctuationmarks`{〈token list〉}`
This will remove the default set as well as any additional characters. As above, each character must be a single token with no separators in the list. For example:

    🖹\glsxtrsetpunctuationmarks{.?!}

This sets the list to just three punctuation characters (so comma, colon, and semi-colon are no longer recognised).

📌
``\glsxtrpostlink``
This does the category post-link hook (or nothing if it hasn’t been defined):

    \newcommand*{\glsxtrpostlink}{%
     \csuse{glsxtrpostlink\glscategory{\glslabel}}%
    }

Customisation is best performed within the category post-link hook, which can be defined (or redefined) with:
📌
``\glsdefpostlink`{〈category〉}{〈definition〉}`
The first argument is the category label and the second is the code to perform. Note that this doesn’t check if the hook has already been defined for the category. The hook is a command in the form `\glsxtrpostlink〈category〉`. If the category label only consists of letters, you can also use `\newcommand` or `\renewcommand` instead.

📌
``\glspretopostlink`{〈category〉}{〈code〉}`
Similar to the above but prepends 〈code〉 to the associated hook (or simply defines it, if the hook doesn’t already exist).

📌
``\glsapptopostlink`{〈category〉}{〈code〉}`
Similar to the above but appends 〈code〉 to the associated hook.

⚠
Take care not to choose category labels that will cause a conflict. For example, `endsentence` and `hook` will conflict with the commands `\glsxtrpostlinkendsentence` and `\glsxtrpostlinkhook`.

If you want code in the post-link hook that’s not dependent on the category, consider prepending it to `\glsxtrpostlink` or `\glsxtrpostlinkhook`. Don’t append it to `\glsxtrpostlinkhook` otherwise it will interfere with the punctuation lookahead.

For convenience, some commands are provided that may be of use in the category post-link hook:

📌
``\glsxtrpostlinkAddDescOnFirstUse``
This will add the description in parentheses if the hook follows the first use of the entry. This incorporates the inner formatting and description accessibility support, if provided.

📌
``\glsxtrpostlinkAddSymbolOnFirstUse``
This will add the symbol in parentheses if that field is set and the hook follows the first use of the entry. This incorporates the inner formatting and symbol accessibility support, if provided.

📌
``\glsxtrpostlinkAddSymbolDescOnFirstUse``
This will add the symbol, if that field is set, and the description (both within the same set of parentheses), if the hook follows the first use of the entry. This incorporates the inner formatting and accessibility support, if provided. The separator between the symbol and description is given by:
📌
``\glsxtrpostlinkSymbolDescSep``
The default is a comma followed by a space.

For example:

    🖹\glsdefpostlink{general}{\glsxtrpostlinkAddDescOnFirstUse}
    \glsdefpostlink{symbol}{\glsxtrpostlinkAddSymbolOnFirstUse}
    \glsdefpostlink{number}{\glsxtrpostlinkAddSymbolDescOnFirstUse}
    \newglossaryentry{sample}{name={sample},description={an example}}
    \newglossaryentry{alpha}{name={alpha},symbol={\ensuremath{\alpha}},
     description={a symbol},category={symbol}}
    \newglossaryentry{pi}{name={pi},symbol={\ensuremath{\pi}},
     description={a constant},category={number}}
    \begin{document}
    First use: \gls{sample}, \gls{alpha}, \gls{pi}.

    Next use: \gls{sample}, \gls{alpha}, \gls{pi}.
    \end{document}

This produces:
🖺
Example 103: Category post-link hooks 📥🖹 📥🖺

The following commands are also provided for use in the post-link hook:

📌
``\glsxtrcurrentfield``
This expands to empty if the calling command isn’t associated with one specific field (such as `\glslink`, the `\gls`-like commands, the inline full form commands) otherwise it will expand to the name of the key associated with the singular form of the command. For example, this command will expand to `text` for both `\glstext` and `\glsplural`, to `description` for both `\glsdesc` and `\glsdescplural`, and to `short` for both `\glsxtrshort` and `\glsxtrshortpl`. Whereas it will expand to nothing for both `\gls` and `\glsxtrfull`.

📌
``\glsxtrifwasglslike`{〈true〉}{〈false〉}`
This expands to 〈true〉 if the calling command was a `\gls`-like command and to 〈false〉 otherwise.

📌
``\glsxtrifwasglslikeandfirstuse`{〈true〉}{〈false〉}`
This expands to 〈true〉 if the calling command was a `\gls`-like command and was the first use otherwise it expands to 〈false〉. This is simply a shortcut command that uses both `\glsxtrifwasglslike` and `\glsxtrifwasfirstuse`.

📌
``\glsxtrifwassubsequentuse`{〈true〉}{〈false〉}`
This expands to 〈true〉 if the calling command was a `\gls`-like command and was the subsequent use otherwise it expands to 〈false〉. This is simply a shortcut command that uses both `\glsxtrifwasglslike` and `\glsxtrifwasfirstuse`.

📌
``\glsxtrifwassubsequentorshort`{〈true〉}{〈false〉}`
This expands to 〈true〉 if the calling command was a `\gls`-like command and was the subsequent use or if the calling command set `\glsxtrcurrentfield` to `short`. Otherwise it expands to 〈false〉.

📌
``\glsxtrifallcaps`{〈all caps〉}{〈not all caps〉}`
This simply does:

    \glscapscase{〈not all caps〉}{〈not all caps〉}{〈all caps〉}

It’s not usually necessary for the post-link hook to differentiate between no case-change and sentence case, so this provides a convenient shortcut if only the all caps case needs to be different.

It’s possible you may also want to reference the inserted material. For the `\gls`-like commands, this can be obtained with the placeholder `\glsinsert`, but it’s not normally set by the `\glstext`-like commands, which don’t use the entry format style (§5.5.5) and instead incorporate the inserted material at the end of the link text. If you want the post-link hook to be able to access the inserted material for the `\glstext`-like commands, you must first save it, by redefining the following:

📌
``\glsxtrsaveinsert`{〈entry-label〉}{〈insert〉}`
This is used by the `\glstext`-like commands to initialise `\glsinsert`. The default is:

    \newcommand*{\glsxtrsaveinsert}[2]{\def\glsinsert{}}

For example, to always save the insert:

    🖹\renewcommand*{\glsxtrsaveinsert}[2]{\def\glsinsert{#2}}

The first argument can be used to conditionally assign the insert. For example, the following will only save it for entries with the general category:

    🖹\renewcommand*{\glsxtrsaveinsert}[2]{%
     \glsifcategory{#1}{general}{\def\glsinsert{#2}}{\def\glsinsert{}}%
    }

If you only want to save the insert for the `\glsxtrfull` set of commands, you can redefine `\glsxtrfullsaveinsert` instead (see §4.3).

📌
``\glsxtrassignlinktextfmt``
This contains the assignments required to ensure that `\glslabel`, `\glstextformat` and `\glsxtrgenentrytextfmt` have the definitions they had within the link text. They would ordinarily still have those definitions within the post-link hook, but if, for example, the hook contains content that may be deferred, such as a footnote, then judicious use and expansion of `\glsxtrassignlinktextfmt` can allow the deferred code to pick up the label, outer and inner formatting.

For example, the post-link hook might contain:

    🖹\expandafter\footnote\expandafter
     {\glsxtrassignlinktextfmt\glstextformat{%
       \Glsaccessfmtdesc{}{\glsxtrgenentrytextfmt}{\glslabel}}.}

[top]

### 5.5.5. Entry Format Style
[link]

🛈
This section is for advanced users. Minor modifications can be made by adjusting the outer formatting (§5.5.1), the post-link hook (§5.5.4) or the abbreviation style commands (§4.5.1.3).

The `\gls`-like commands have the link text set to the entry format style corresponding to the entry’s glossary type. This can be changed with `\defglsentryfmt`, but the default style is given by `\glsentryfmt`, which is defined by the base glossaries package. This uses the placeholder commands to determine the appropriate text. These are described in the glossaries manual, but to recap they are: `\glslabel` (the entry’s label), `\glscustomtext` (text provided by `\glsdisp` or empty otherwise), `\glsinsert` (supplied in the final optional argument except for `\glsdisp`, empty by default), `\glsifplural`, and `\glscapscase`.

The glossaries-extra package redefines `\glsentryfmt` to test whether or not the entry is an abbreviation and, if so, whether or not the entry should be treated as a regular entry:

    \renewcommand*{\glsentryfmt}{%
      \ifglshasshort{\glslabel}
        {\glssetabbrvfmt{\glscategory{\glslabel}}}{}%
      \glsifregular{\glslabel}%
      {\glsxtrregularfont{\glsgenentryfmt}}%
      {%
        \ifglshasshort{\glslabel}%
        {\glsxtrabbreviationfont{\glsxtrgenabbrvfmt}}%
        {\glsxtrregularfont{\glsgenentryfmt}}%
      }%
    }

This uses `\ifglshasshort` to determine whether or not the entry is an abbreviation. If it is, then `\glssetabbrvfmt` is used to setup the abbreviation style commands for the entry’s category.

Then there’s a check (with `\glsifregular`) to determine whether or not the entry should be treated as a regular entry. Note that if the regular attribute hasn’t been set to `true`, the entry will still be treated as a regular entry if it doesn’t have the short field set.

Regular entries are formatted according to:

📌
``\glsgenentryfmt``
This is the generic regular entry format. It’s encapsulated with `\glsxtrregularfont`, but note that if the entry is an abbreviation, it will still use the abbreviation style formatting commands, which are contained within the first, firstplural, text and plural field values.

The generic regular entry format `\glsgenentryfmt` is provided by the base glossaries package, but is redefined by glossaries-extra to support inner formatting (§5.5.3) and accessibility (§9), if required.

Abbreviations that aren’t considered regular, are formatted according to:

📌
``\glsxtrgenabbrvfmt``
This is the generic non-regular abbreviation format. It’s encapsulated with `\glsxtrabbreviationfont`. Unlike `\glsgenentryfmt` this doesn’t reference the first, firstplural, text or plural fields, but instead uses the abbreviation formatting commands `\glsxtrfullformat`, `\glsxtrsubsequentfmt` and their plural and case-changing variants.

If you want to define your own custom entry format, you will need to consider whether or not your format should support regular and non-regular abbreviation styles. Further detail can be found in the documented code:

    〉_texdoc glossaries-extra-code

[top]

## 5.6. Hyperlinks
[link]

The `\gls`-like and `\glstext`-like commands will automatically create a hyperlink by default, if hyperref has been loaded (before glossaries/glossaries-extra). The hyperlink can be switched off with hyper=false but will also be switched off if the entry was assigned to an ignored glossary that was defined with the unstarred `\newignoredglossary`.

The hyperfirst=false package option and the category attributes nohyper, nohyperfirst and nohypernext can also be used to automatically switch off the hyperlink. See also the hyperoutside option that determines whether the hyperlink should be inside or outside of the outer formatting.

The hyperlink target is usually created by `\glstarget` which is used by all the predefined glossary styles by the standalone commands, such as `\GlsXtrStandaloneEntryName`. This can result in duplicate targets if you have multiple glossaries or both standalone entries and a glossary. There are ways of getting around this, such as changing the target prefix or using target=false when displaying the glossary. However, the simplest method is to redefine `\glstarget` to use:

📌
``\glsxtrtarget`{〈entry-label〉}{〈text〉}`
This behaves in a similar manner to `\glstarget` but first tests the field obtained by expanding:
📌
``\glsxtrtargetfield``
By default, this expands to `target`. If this field is undefined (according to `\GlsXtrIfFieldUndef`) the target will be created in the way that `\glstarget` would ordinarily create it (if hyperlinks are enabled). The field will then be set to the target. If the field has been defined then the target won’t be created and the 〈text〉 is simply displayed. In order to use this feature just redefine `\glstarget`:

    🖹\renewcommand{\glstarget}{\glsxtrtarget}

The target for an entry with the label 〈entry-label〉 is in the form 〈prefix〉〈entry-label〉. The 〈prefix〉 is normally `\glolinkprefix` but may be changed with the prefix option when displaying the glossary.

The target can also be changed to a link to an external file with the targeturl category attribute.

[top]

## 5.7. Label Prefixes
[link]

It’s possible that you may want to prefix labels to ensure uniqueness. For example, this manual references both the `\makeglossaries` command and the makeglossaries Perl script. They are both defined as glossary entries, but they can’t both have the label `makeglossaries`. This manual uses bib2gls and is quite complicated, but a simplified version is as follows:

    🖹\newcommand{\csfmt}[1]{\texttt{\#1}}
    \newcommand{\appfmt}[1]{\texttt{#1}}
    \newglossaryentry{cs.makeglossaries}{name={\csfmt{makeglossaries}},
     description={}}
    \newglossaryentry{app.makeglossaries}{name={\appfmt{makeglossaries}},
     description={}}

So the label `cs.makeglossaries` refers to `\makeglossaries` and `app.makeglossaries` refers to makeglossaries. If you have a lot of prefixes like this, you may prefer to have a command that automatically adds the prefix. For example,

    🖹\newcommand*{\cs}[2][]{\gls[#1]{cs.#2}}

The problem with this is that the custom command `\cs` doesn’t allow for the *, + and 〈alt-mod〉 modifiers (such as ``\gls`*` or ``\gls`+`). Instead you can use:
📌
``\glsxtrnewgls`[〈default-options〉]{〈prefix〉}{〈cs〉}`
which defines the command

    〈cs〉〈modifier〉[〈options〉]{〈entry-label〉}[〈insert〉]

that behaves like

    \gls〈modifier〉[〈default options〉,〈options〉]{〈prefix〉〈entry-label〉}[〈insert〉]

For example:

    🖹\glsxtrnewgls{cs.}{\cs}

or (to default to no hyperlinks)

    🖹\glsxtrnewgls[hyper=false]{sym.}{\cs}

now you can use `\cs+{M}` to behave like ``\gls`+{cs.M}`.

If you also want the plural and sentence case versions you can use

📌
``\glsxtrnewglslike`[〈default-options〉]{〈prefix〉}{〈`\gls`-like cs〉}{〈`\glspl`-like cs〉}{〈`\Gls`-like cs〉}{〈`\Glspl`-like cs〉}`
For example:

    🖹\glsxtrnewglslike[hyper=false]{idx.}{\idx}{\idxpl}{\Idx}{\Idxpl}

For the all caps versions:
📌
``\glsxtrnewGLSlike`[〈default-options〉]{〈prefix〉}{〈`\GLS`-like cs〉}{〈`\GLSpl`-like cs〉}`
For example:

    🖹\glsxtrnewGLSlike[hyper=false]{idx.}{\IDX}{\IDXpl}

For commands that require the link text to be specified, you can use:

📌
``\glsxtrnewglslink`[〈default-options〉]{〈prefix〉}{〈cs〉}`
which defines `〈cs〉[〈options〉]{〈label〉}{〈text〉}` to behave like ``\glslink`[〈default-options〉,〈options〉]{〈prefix〉〈label〉}{〈text〉}`, or
📌
``\glsxtrnewglsdisp`[〈default-options〉]{〈prefix〉}{〈cs〉}`
which defines `〈cs〉[〈options〉]{〈label〉}{〈text〉}` to behave like ``\glsdisp`[〈default-options〉,〈options〉]{〈prefix〉〈label〉}{〈text〉}`.

If you are using bib2gls, it can pick up the custom commands that are defined using the above, so it can detect dependencies when it parses fields such as description. If you provide your own custom command with just `\newcommand` that has syntax that starts with [〈options〉]{〈entry-label〉}, then you can notify bib2gls using:

📌
``\glsxtridentifyglslike`{〈label-prefix〉}{〈cs〉}`
where 〈label-prefix〉 is the prefix to apply to the label that’s passed to the command 〈cs〉. The information is written to the aux file so that bib2gls can add the given command to those it looks for when searching for dependencies.

Another possibility when using bib2gls is to set up known label prefixes, see §11.5.7 for further details.

If you use bib2gls with record counting, there are commands to `\glsxtrnewgls` for `\rgls`:

📌
``\glsxtrnewrgls`[〈default-options〉]{〈prefix〉}{〈cs〉}`
and for `\rgls`, `\rglspl`, `\rGls` and `\rGlspl`:
📌
``\glsxtrnewrglslike`[〈default-options〉]{〈prefix〉}{〈`\rgls`-like cs〉}{〈`\rglspl`-like cs〉}{〈`\rGls`-like cs〉}{〈`\rGlspl`-like cs〉}`
and for all caps:
📌
``\glsxtrnewrGLSlike`[〈default-options〉]{〈prefix〉}{〈`\rGLS`-like cs〉}{〈`\rGLSpl`-like cs〉}`

Defining commands in this manner (rather than simply using `\newcommand`) also allows the command to be identified as a sentence case blocker to prevent the label from being converted or, in the case of `\glsxtrnewglslike` and `\glsxtrnewrglslike`, as a mapping. See §5.2 for further details.

[top]

## 5.8. Indexing
[link]

Indexing is normally performed implicitly by the `\gls`-like and `\glstext`-like commands, but this action can be prevented, such as by using the option noindex=true. These commands also generate text (the link text, §5.5). If you want to simply index an entry (to ensure that an entry is shown in the glossary) without producing any text then you can use `\glsadd`. Indexing is also performed by cross-referencing commands, such as `\glssee`. In the case of makeindex, `\glssee` simply behaves like `\glsadd` with a special format and the location set to Z (which pushes it to the end of the location list). Entries in ignored glossaries can only be indexed with bib2gls.

If you want all defined entries to appear in the glossary, regardless of whether or not they have been used in the document, then you can use `\glsaddall` or `\glsaddallunused` (both provided by the base glossaries package). These both iterate over all entries (in all non-ignored glossaries). In the first case (`\glsaddall`), every entry is indexed with the `\glsadd` options provided in the optional argument of `\glsaddall`. In the second case (`\glsaddallunused`), only those entries that haven’t been marked as used so far will be indexed using ``\glsadd`[format=glsignore]{〈label〉}`. See the glossaries manual for further details of those commands.

The glossaries-extra package provides a similar command:

📌
``\glsaddallunindexed`[〈glossary types〉]`
This is like `\glsaddallunused` but indexes all entries that haven’t been indexed so far (again using the option format=glsignore). This is preferable to `\glsaddallunused` if you have to reset the first use flag for any entries. As with `\glsaddallunused`, if this command is required, it should be placed near the end of the document. Indexing any entries after either of these commands are used will cause spurious commas in the location lists.

ℹ
Iterative commands such as `\glsaddall`, `\glsaddallunused` and `\glsaddallunindexed` should not be used with bib2gls. Use the selection=all option instead.

If you want to index a specific subset of entries, rather than all entries for a given glossary, you can use:

📌
``\glsaddeach`[〈options〉]{〈entry label list〉}`
This does ``\glsadd`[〈options〉]{〈entry-label〉}` for each entry in the comma-separated 〈entry label list〉. This command may be used with bib2gls, although it may be simpler to adjust the selection criteria or use filtering.

Explicit ranges can be formed by including `(` (range start) and `)` (range end) at the start of the format value. For example:

    🖹\glsadd[format=(]{example}
    …
    \glsadd[format=)]{example}

(See the glossaries manual for further details.) However, the isolated open and close parentheses can upset syntax highlighting. So the glossaries-extra package provides the following commands, which automatically add `(` and `)`.

📌
``\glsstartrange`[〈options〉]{〈entry label list〉}`
This effectively does:

    \glsaddeach[〈options〉,format=(〈encap〉]{〈entry-label list〉}

📌
``\glsendrange`[〈options〉]{〈entry label list〉}`
This effectively does:

    \glsaddeach[〈options〉,format=)〈encap〉]{〈entry-label list〉}

The default value of 〈encap〉 will be the same as the default number format (which can be changed with `\GlsXtrSetDefaultNumberFormat`). If you want a different default for ranges, use:
📌
``\GlsXtrSetDefaultRangeFormat`{〈encap〉}`
This sets the default format for `\glsstartrange` and `\glsendrange`. Note that this format won’t be applied if you explicitly create a range with `\glsadd` or `\glsaddeach`.

Alternatively, you can use format=encap in 〈options〉, but remember that this will need to be the same in both `\glsstartrange` and `\glsendrange`. For example:

    🖹\glsstartrange[format=hyperbf]{example}
    …
    \glsendrange[format=hyperbf]{example}

This is the same as:

    🖹\GlsXtrSetDefaultRangeFormat{hyperbf}
    \glsstartrange{example}
    …
    \glsendrange{example}

which is the same as:

    🖹\glsadd[format=(hyperbf]{example}
    …
    \glsadd[format=)hyperbf]{example}

The mandatory argument of `\glsstartrange` and `\glsendrange` may be a comma-separated list of entry labels. For example:

    🖹\glsstartrange{duck,goose}
    …
    \glsendrange{duck,goose}

This is essentially the same as:

    🖹\glsadd[format=(]{duck}%
    \glsadd[format=(]{goose}
    …
    \glsadd[format=)]{duck}%
    \glsadd[format=)]{goose}

📌
``\GlsXtrAutoAddOnFormat`[〈entry-label〉]{〈format list〉}{〈glsadd options〉}`
This will make the `\gls`-like and `\glstext`-like commands automatically use ``\glsadd`[〈glsadd options〉]{〈entry-label〉}` whenever a `\gls`-like or `\glstext`-like command is used for the entry given by 〈entry-label〉 when the format matches one of the formats in the comma-separated 〈format list〉

The optional argument 〈label〉 defaults to `\glslabel` (which will match 〈entry-label〉 that was used with `\gls` etc) and indicates the entry label to use in `\glsadd` and so needs to be expandable. The 〈format list〉 is a comma-separated list of format values that will trigger the automated adding. The 〈glsadd options〉 are the options to pass to `\glsadd` with format={format} prepended to the list.

For example, with:

    🖹\GlsXtrAutoAddOnFormat{hyperbf}{counter=chapter}

then ``\gls`[format=hyperbf]{sample}` will be equivalent to:

    \glsadd[format=hyperbf,counter=chapter]{sample}\gls[format=hyperbf]{sample}

Note that the explicit range markers will prevent a match unless you include them in 〈format list〉 (in which case, be sure to add both the start and end formats).

Here’s another example:

    🖹\GlsXtrAutoAddOnFormat[dual.\glslabel]{hyperbf}{}

In this case ``\gls`[format=hyperbf]{sample}` will now be equivalent to:

    🖹\glsadd[format=hyperbf]{dual.sample}\gls[format=hyperbf]{sample}

ℹ
`\GlsXtrAutoAddOnFormat` is not applied to `\glsadd` as it could cause an infinite loop.

In the context of glossaries and glossaries-extra, indexing refers to the mechanism used to ensure that an entry is included in its associated glossary. (If you also want to use `\index`, see §12.) This includes any entries that simply cross-reference another entry. The default is to use makeindex, which is a general purpose indexing application. Each time an entry is indexed, a line is added to an associated file that contains the indexing information, which includes the sort value, the hierarchical information (if the entry has a parent) and an associated location (the page number, by default). This information is used to sort the entries and collate the locations into a compact location list. The xindy package option switches to using xindy syntax, but the process is much the same.

Since both makeindex and xindy are general purpose indexing applications they require an associated location (or a cross-reference) since indexes are typically used to lookup the locations in the document where the term occurs. Although glossaries are similar to indexes they can simply be used to provide brief summaries of each term without any locations. The way that makeindex and xindy work means that valid locations (that is, locations that conform to makeindex/xindy syntax) must be supplied even if no location list is required. If an invalid location is used, an error will occur during the makeindex/xindy step in the build process, even if the location will eventually be ignored when typesetting the glossary.

All location lists can be suppressed with the nonumberlist option (which simply discards the location list for each entry), but there are occasions where only some locations need to be suppressed. The main way of hiding a location is to encapsulate the location with a command that does nothing. The `\glsignore` command is used for this purpose (format=glsignore). However, it’s important to remember that even though the location isn’t shown, it’s still present in the location list. This means that you will end up with spurious commas if there’s more than one item in the location list.

The “noidx” method similarly writes indexing information, but in this case the information is written to the aux file. Again, empty locations can cause spurious commas in the location lists.

The only method that recognises `\glsignore` as a special “ignored location” is bib2gls, where this format will trigger the entry’s selection but won’t add the ignored location to the location list. This avoids the problem of spurious commas caused by invisible locations.

The location corresponds to a counter. The default is the page counter, but may be changed with the counter package option, the 〈counter〉 optional argument of `\newglossary`, the counter key when defining an entry, or the counter option when indexing an entry.

Note that bib2gls v3.0+ converts an empty location (which can occur when the location counter is 0 and should be formatted as a Roman numeral) to an ignored location. For example, if you use counter=part but have `\gls` before the first `\part`. An empty location will trigger an error with makeindex and xindy.

⚠
Since no entries are defined on the first LaTeX run with bib2gls, there’s no way of determining the entry’s glossary type or of finding if the entry’s counter key has been set. This means that if the counter has been assigned to either the entry’s glossary or to the entry itself, the location counter can’t be implemented until the entry has been defined. A second build is required to ensure that the locations use the correct counter.

The location counter must expand to syntax that’s recognised by the indexing application. This is very restrictive with makeindex, which only recognises Western Arabic (`\arabic`), lowercase Roman numerals (`\roman`), uppercase Roman numerals (`\Roman`), lowercase Basic Latin (`\alph`) and uppercase Basic Latin (`\Alph`), with optionally a separator (hyphen by default). With xindy, the syntax must be defined (see the glossaries manual for further details).

There’s no restriction on the location syntax with bib2gls. The only limitation is that if bib2gls can’t determine an associated numeric value according to its location parser, it won’t form ranges. This means that with bib2gls, you can set arbitrary text as the location (that’s not related to a counter) with thevalue. You can also use thevalue with makeindex and xindy, but only if the value matches the required location syntax.

Both makeindex and xindy order the locations in the location lists. For example:

    🖹\makeglossaries
    \newglossaryentry{sample}{name={sample},description={an example}}
    \begin{document}
    \gls[thevalue=Z]{sample} (Z),  \gls[thevalue=4]{sample} (4),
    \gls[thevalue=xi]{sample} (xi), \gls[thevalue=2]{sample} (2),
    \gls[thevalue=iii]{sample} (iii), \gls[thevalue=A]{sample} (A).

    \printglossaries
    \end{document}

🖺
Example 104: Location list ordering (makeindex) 📥🖹 📥🖺

With makeindex, the location list is grouped into the different number formats (`\roman`, `\arabic` and `\Alph`), with each group ordered numerically. The same result can be produced with xindy by adding the xindy package option to the above example.

With bib2gls, the location list is always in order of indexing. The above example document can be converted to use bib2gls as follows:

    🖹\begin{filecontents*}{\jobname.bib}
    @entry{sample,name={sample},description={an example}}
    \end{filecontents*}
    \usepackage[record]{glossaries-extra}
    \GlsXtrLoadResources
    \begin{document}
    \gls[thevalue=Z]{sample} (Z),  \gls[thevalue=4]{sample} (4),
    \gls[thevalue=xi]{sample} (xi), \gls[thevalue=2]{sample} (2),
    \gls[thevalue=iii]{sample} (iii), \gls[thevalue=A]{sample} (A).
    \printunsrtglossaries
    \end{document}

🖺
Example 105: Location list ordering (bib2gls) 📥🖹 📥🖺

This example is contrived. For most documents, the order of indexing will likely match the desired location list order.

Another important difference between bib2gls and the other indexing methods is the treatment of cross-references identified by the cross-reference keys see, seealso and alias. With bib2gls, the cross-referencing information is picked up when bib2gls parses the bib file and is used to establish dependencies, which ensures that when entries with cross-references are selected, their cross-referenced entries will also be selected.

With the other methods, cross-references are added to an entry’s location list by indexing the entry with a special format. The see, seealso and alias keys automatically trigger this indexing unless autoseeindex=false. See §5.9 for further details.

Every time an entry is indexed, the following hook is also used:

📌
``\glsxtrdowrglossaryhook`{〈entry-label〉}`
This does nothing by default. The argument is the entry’s label.

The indexing code is encapsulated with:

📌
``\glsencapwrcontent`{〈code〉}`
This adds grouping, which helps to prevent spacing issues caused by the whatsit that’s created by the indexing.

The base glossaries package always performs the indexing before the link text for the `\gls`-like and `\glstext`-like commands. This means that if a page break occurs in the middle of the link text, the location will refer to the page number at the start of the link text (assuming the default page location counter). With glossaries-extra, you can use the option wrgloss=after to have the indexing occur after the link text. The wrgloss attribute can also be used. The default setting is initialised with `\glsxtrinitwrgloss` (see §5.1.1).

Every time an entry is indexed, an internal field associated with the entry’s label is globally updated to keep a count of the number of times the entry has been indexed. The value can be accessed with:

📌
``\glsentryindexcount`{〈entry-label〉}`
This command will expand to 0 if the entry hasn’t been indexed or hasn’t been defined. To test if the value is greater than 0 (that is, to test if the entry has been indexed yet), use:
📌
``\glsifindexed`{〈entry-label〉}{〈true〉}{〈false〉}`
This expands to 〈true〉 if the entry is defined and has been indexed, otherwise it expands to 〈false〉. No warning or error occurs if the entry hasn’t been defined.

Note that the index count is a running total. This is not the same as the record count saved by bib2gls’s --record-count switch, which represents the total number of records for the given entry from the previous LaTeX run.

The base glossaries package defines:

📌
``\glswriteentry`{〈entry-label〉}{〈code〉}`
This command conditionally writes the indexing code (supplied by the second argument 〈code〉). The original definition simply tests whether or not the indexonlyfirst setting is on. The glossaries-extra package redefines this command to perform additional checks to determine whether or not the indexing code should be performed.

The modified definition uses:

📌
``\glsxtrifindexing`{〈true〉}{〈false〉}`
to test the noindex setting. This does 〈false〉 if noindex=true, otherwise it does 〈true〉.
📌
``\ifglsindexonlyfirst` 〈true〉`\else` 〈false〉`\fi``initial: `\iffalse`
This is a conditional that corresponds to the indexonlyfirst package option. First use is tested using `\GlsXtrIfUnusedOrUndefined` rather than `\ifglsused`. The indexonlyfirst attribute is also tested. If the “index only first” setting is on and the entry has been used, 〈code〉 isn’t performed but auto-indexing via `\glsxtrdoautoindexname` is still performed (see §12).

⚠
Since no entries are defined on the first LaTeX run with bib2gls, there’s no way of keeping track of whether or not an entry has been used or what its category is, which is required to query the indexonlyfirst attribute, so for the first document build all instances will be indexed. A second build is required for the “index only first” feature.

[top]

## 5.9. Cross-Referencing
[link]

The base glossaries package only provides the see key, which automatically indexes the cross-reference using `\glssee`. The value of this key isn’t saved and can’t be accessed later. (The key was simply provided as a shortcut.) The indexing ensures that the cross-reference is shown in the location list.

ℹ
The auto-indexing feature of the see key was intended as a shortcut where only entries required in the document are defined. If you want to have a large file containing entries that may or may not be required in the document, then using see, seealso or alias can cause unwanted entries to appear in the glossary. In this case, see §5.9.1.

The glossaries-extra package saves the value of the see key and additionally provides the seealso and alias keys that perform similar functions. The values of the see, seealso and alias keys can all be accessed at a later point in the document.

If an entry with a cross-reference has been included in the glossary, there’s no guarantee that the cross-referenced entry will also be included. It won’t be included if it hasn’t been indexed anywhere in the document. You can use the indexcrossrefs package option to search for cross-references that require indexing at the end of the document, but note that this can be time-consuming if you have a large number of entries.

🛈
With bib2gls you can simply change the selection criteria (selection={recorded and deps and see} or selection={recorded and deps and see not also}) to ensure that all cross-referenced entries are included even if they haven’t been indexed in the document.

Example (see and seealso keys):

    🖹\newglossaryentry{pumpkin}{name={pumpkin},description={}}
    \newglossaryentry{cucumber}{name={cucumber},description={}}
    \newglossaryentry{melon}{name={melon},description={}}
    \newglossaryentry{gourd}{name={gourd},description={},
     see={pumpkin,cucumber,melon}}
    \newglossaryentry{courgette}{name={courgette},description={}}
    \newglossaryentry{marrow}{name={marrow},description={},
     seealso={courgette}}

When the `gourd` entry is defined, the cross-reference will automatically be indexed using `\glssee`. This means that the `gourd` entry will appear in the glossary, regardless of whether or not it is used in the document, with “see pumpkin, cucumber & melon” in the location list. If `gourd` is also indexed in the document, then those locations will also be added to the gourd’s location list.

The cross-referenced entries (pumpkin, cucumber and melon) will only appear in the glossary if they are also indexed in the document. This can be implemented automatically with indexcrossrefs.

The seealso key in the `marrow` entry functions in much the same way, but it is indexed with `\glsxtrindexseealso`. This means that the `marrow` entry will have “see also courgette” in its location list.

The see key may optionally start with [〈tag〉] to replace the default `\seename` tag with 〈tag〉. The seealso key doesn’t permit this. For example, the following is permitted:

    🖹\newglossaryentry{gourd}{name={gourd},description={},
     see={[related topics]pumpkin,cucumber,melon}}

but you can’t replace see with seealso in the above as it would assume that the first label in the list is `[related topics]pumpkin` which is incorrect. The tag would have to be removed:

    🖹\newglossaryentry{gourd}{name={gourd},description={},
     seealso={pumpkin,cucumber,melon}}

(You could then redefine `\seealsoname` to `related topics`, if required or redefine `\glsxtruseseealsoformat` as applicable.)

Example (alias key):

    🖹\newglossaryentry{zucchini}{name={zucchini},description={},
     alias={courgette}}

When the `zucchini` entry is defined, the alias key will automatically index zucchini with ``\glssee`{zucchini}{courgette}`. This means that the `zucchini` entry will be present in the glossary with “see courgette” in the location list. If the `zucchini` entry is referenced in the document using a command like `\gls`, then the hyperlink (if enabled) will go to the `courgette` entry (not the `zucchini` entry) but the `zucchini` entry won’t be indexed.

If you want the `zucchini` entry locations added to the `courgette` entry, you can redefine `\glsxtrsetaliasnoindex` (see §5.9.3) or, with bib2gls, use the alias-loc=transfer setting.

🛈
With bib2gls, cross-references are selected according to the selection criteria. See the bib2gls manual for further details.

[top]

### 5.9.1. Entries that may not be required
[link]

If you have a file containing a large number of entry definitions shared across multiple documents, then the use of the see, seealso or alias key can cause unwanted entries to appear in the document. This can be demonstrated as follows. Suppose the file myentries.tex contains:

    🖹\newglossaryentry{pumpkin}{name={pumpkin},description={}}
    \newglossaryentry{cucumber}{name={cucumber},description={}}
    \newglossaryentry{melon}{name={melon},description={}}
    \newglossaryentry{gourd}{name={gourd},description={},
     see={pumpkin,cucumber,melon}}
    \newglossaryentry{cucurbit}{name={cucurbit},description={},
     see={gourd}}
    \newglossaryentry{courgette}{name={courgette},description={}}
    \newglossaryentry{marrow}{name={marrow},description={},
     seealso={courgette}}
    \newglossaryentry{zucchini}{name={zucchini},description={},
     alias={courgette}}
    \newglossaryentry{broccoli}{name={broccoli},description={}}
    \newglossaryentry{cauliflower}{name={cauliflower},description={},
     seealso={broccoli}}

Some of these entries have a cross-reference key set, but not all of these entries are required in the document:

    🖹\usepackage[colorlinks]{hyperref}
    \usepackage[nostyles,stylemods=bookindex,style=bookindex]
     {glossaries-extra}
    \makeglossaries
    \loadglsentries{myentries}
    \begin{document}
    This document is only discussing \glspl{courgette} (baby
    \glspl{marrow}, also called a \gls{zucchini}),
    \glspl{pumpkin} and \glspl{melon}.
    \printglossaries
    \end{document}

🖺
Example 106: Cross-references (autoseeindex=true) 📥🖹 📥🖺

Note that the glossary includes cucurbit and gourd, which aren’t referenced in the document. They could be useful as a redirect for the reader, but the gourd entry cross-references the cucumber entry, which isn’t included in the glossary, so the hyperlink target is undefined. The cauliflower entry has also been included in the glossary, but in this case it’s not useful for the reader as neither cauliflower nor broccoli (which it cross-references) are mentioned in the document. As with the cucumber cross-reference, the broccoli cross-reference hyperlink target is undefined.

There are a number of methods to address some of these problems. The first method has the cross-referencing keys in the tex file (as above), but disables the auto-indexing:

    🖹\usepackage[colorlinks]{hyperref}
    \usepackage[autoseeindex=false,nostyles,stylemods=bookindex,
     style=bookindex]{glossaries-extra}
    \makeglossaries
    \loadglsentries{myentries}
    \begin{document}
    This document is only discussing \glspl{courgette} (baby
    \glspl{marrow}, also called a \gls{zucchini}),
    \glspl{pumpkin} and \glspl{melon}.
    \printglossaries
    \end{document}

🖺
Example 107: Cross-references (autoseeindex=false) 📥🖹 📥🖺

This doesn’t show the zucchini entry or any of the cross-references in the glossary because the information hasn’t been added to the indexing files. One way around this is to insert the cross-reference in a post-description hook.

    🖹\usepackage[colorlinks]{hyperref}
    \usepackage[autoseeindex=false,nostyles,stylemods=bookindex,
      style=bookindex]{glossaries-extra}
    \makeglossaries
    \loadglsentries{myentries}
    \glsdefpostdesc{general}{%
     \glsxtrseelists{\glscurrententrylabel}%
    }
    \begin{document}
    This document is only discussing
    \glspl{courgette} (baby \glspl{marrow},
    also called a \gls{zucchini}),
    \glspl{pumpkin} and \glspl{melon}.
    \printglossaries
    \end{document}

🖺
Example 108: Cross-references (autoseeindex=false and post-name hook) 📥🖹 📥🖺

However, this still doesn’t solve the problem that the zucchini entry isn’t included in the glossary. It needs to be indexed, but indexing has been suppressed. Firstly, because the automatic indexing triggered by the alias key has been suppressed with autoseeindex=false, and, secondly, because the presence of the alias key automatically suppresses indexing with the `\gls`-like and `\glstext`-like commands. This doesn’t cause a problem for the zucchini hyperlink, since the target is courgette (obtained from the alias key).

The second method is to not use those keys in the entry definitions and use `\glssee` or `\glsxtrindexseealso` within the document. For example, the file myentries.tex now contains:

    🖹\newglossaryentry{pumpkin}{name={pumpkin},description={}}
    \newglossaryentry{cucumber}{name={cucumber},description={}}
    \newglossaryentry{melon}{name={melon},description={}}
    \newglossaryentry{gourd}{name={gourd},description={}}
    \newglossaryentry{cucurbit}{name={cucurbit},description={}}
    \newglossaryentry{courgette}{name={courgette},description={}}
    \newglossaryentry{marrow}{name={marrow},description={}}
    \newglossaryentry{zucchini}{name={zucchini},description={}}
    \newglossaryentry{broccoli}{name={broccoli},description={}}
    \newglossaryentry{cauliflower}{name={cauliflower},description={}}

The document:

    🖹\usepackage[colorlinks]{hyperref}
    \usepackage[nostyles,stylemods=bookindex,style=bookindex]
      {glossaries-extra}
    \makeglossaries
    \loadglsentries{myentries}
    \glssee{gourd}{pumpkin,melon,courgette}
    \glssee{zucchini}{courgette}
    \GlsXtrSetField{zucchini}{alias}{courgette}
    \begin{document}
    This document is only discussing \glspl{courgette} (baby
    \glspl{marrow}, also called a \gls{zucchini}),
    \glspl{pumpkin} and \glspl{melon}.
    \printglossaries
    \end{document}

🖺
Example 109: Cross-references (no see, seealso or alias) 📥🖹 📥🖺

Note that aliases require the alias field to be set. In this case, I’ve set it with `\GlsXtrSetField`. The gourd and zucchini entries have been included in the glossary because they were added with `\glssee`. The other entries are in the glossary because they were indexed when referenced with `\gls` or `\glspl`.

Since cucumber isn’t required in the document, I haven’t included it in the cross-reference list for gourd. This method is flexible as it allows the cross-referencing to vary between documents. For example, another document may instead have:

    🖹\glsxtrindexseealso{pumpkin}{courgette,melon}
    \glsxtrindexseealso{melon}{pumpkin,courgette}
    \glsxtrindexseealso{courgette}{pumpkin,melon}

The third method is to switch to bib2gls. The file myentries.tex can be converted to myentries.bib using:

    〉_convertgls2bib --index-conversion myentries.tex myentries.bib

I’ve used the option --index-conversion (or -i) which will use `@index` instead of `@entry` for entries that have an empty description (which is the case in this example). This creates the file myentries.bib, which contains the following (space compacted):

    🖹% Encoding: UTF-8
    @index{pumpkin, name={pumpkin}}
    @index{cucumber, name={cucumber}}
    @index{melon, name={melon}}
    @index{gourd, see={pumpkin,cucumber,melon}, name={gourd}}
    @index{cucurbit, see={gourd}, name={cucurbit}}
    @index{courgette, name={courgette}}
    @index{marrow, name={marrow}, seealso={courgette}}
    @index{zucchini, name={zucchini}, alias={courgette}}
    @index{broccoli, name={broccoli}}
    @index{cauliflower, name={cauliflower}, seealso={broccoli}}

The earlier example 106 on page 271 can be rewritten as:

    🖹\usepackage[colorlinks]{hyperref}
    \usepackage[record,nostyles,stylemods=bookindex,style=bookindex]
     {glossaries-extra}
    \GlsXtrLoadResources[src=myentries]
    \begin{document}
    This document is only discussing \glspl{courgette} (baby
    \glspl{marrow}, also called a \gls{zucchini}),
    \glspl{pumpkin} and \glspl{melon}.
    \printunsrtglossaries
    \end{document}

In order to support letter groups, bib2gls needs to be invoked with the --group switch. The result is:
🖺
Example 110: Cross-references (bib2gls) 📥🖹 📥🖺

This uses the default selection={recorded and deps}, which selects entries that have records, and their dependencies. Records correspond to the usual indexing performed by the `\gls`-like, `\glstext`-like or `\glsadd` commands. With bib2gls, the cross-referencing fields don’t trigger an index but identify dependencies.

Note that the above doesn’t include the gourd entry (which cross-references entries that have been indexed). The selection criteria can be changed to also include unrecorded entries that cross-reference selected entries. There are two options to choose from: selection={recorded and deps and see}, which will apply to all cross-reference fields (see, seealso and alias, or selection={recorded and deps and see not also}, which doesn’t consider the seealso field.

Changing the resource options in the above example to:

    🖹\GlsXtrLoadResources[src=myentries,
     selection={recorded and deps and see}]

results in:
🖺
Example 111: Cross-references (bib2gls and selection=recorded and deps and see) 📥🖹 📥🖺

This now includes the gourd entry because it cross-references pumpkin and melon, which have been recorded in the document. The cucurbit entry is also included because it cross-references the (now selected) gourd entry. Note that the cucumber entry has been selected because the gourd entry depends on it. This means there are no broken links in the glossary, but it looks a bit odd as the cucumber entry has no location list. As from bib2gls v3.0, this can be removed with one of the cross-reference pruning options, such as prune-xr. For example:

    🖹\GlsXtrLoadResources[src=myentries,
     selection={recorded and deps and see},prune-xr]

results in:
🖺
Example 112: Cross-references (bib2gls and selection=recorded and deps and see, prune-xr) 📥🖹 📥🖺

This has removed the unnecessary cucumber from the gourd’s see list, and so cucumber doesn’t get selected.

🛈
See the bib2gls user manual for further details on the cross-reference selection and pruning options.

[top]

### 5.9.2. Accessing the Cross-Referencing Fields
[link]

If you have switched off the indexing of the cross-reference fields (with autoseeindex=false) or want to suppress the location lists, then you can adjust the glossary style or hooks to include the cross-references since they won’t be shown otherwise.

📌
``\glsxtrseelists`{〈entry-label〉}`
If the entry given by 〈entry-label〉 has the see, seealso or alias fields set, this will display the cross reference according to `\glsxtruseseeformat` (for see and alias) or `\glsxtruseseealsoformat` (for seealso). If any of these fields are set, the list is encapsulated with:
📌
``\glsxtrseelistsencap`{〈content〉}`
This simply does a space followed by 〈content〉. If more than one of the fields are set (not recommended), then they will be displayed in the order: see, seealso and alias. The entire set will be encapsulated with `\glsxtrseelistsencap` and each sub-list will be separated with:
📌
``\glsxtrseelistsdelim``
which defaults to a comma followed by a space.

📌
``\glsxtrusesee`{〈entry-label〉}`
If the entry given by 〈entry-label〉 has the see field set, this will display the cross reference according to `\glsxtruseseeformat`, otherwise this does nothing. An error (or warning with undefaction=warn) will occur if the entry hasn’t been defined.

📌
``\glsxtrusealias`{〈entry-label〉}`
As `\glsxtrusesee` but for the alias field.

📌
``\glsxtruseseealso`{〈entry-label〉}`
If the entry given by 〈entry-label〉 has the seealso field set, this will display the cross reference according to `\glsxtruseseealsoformat`, otherwise this does nothing. An error (or warning with undefaction=warn) will occur if the entry hasn’t been defined.

📌
``\glsxtralias`{〈entry-label〉}`
This expands to the value of the alias field (which should be a single entry label) or empty if the field isn’t set. If the entry isn’t defined, this command will expand to `\relax` (without any error or warning). If you want to first test if the field is set, you can use `\glsxtrifhasfield`.

📌
``\glsxtrseealsolabels`{〈entry-label〉}`
This expands to the value of the seealso field (which should be a comma-separated list of entry labels) or empty if the field isn’t set. If the entry isn’t defined, this command will expand to `\relax` (without any error or warning). If you want to first test if the field is set, you can use `\glsxtrifhasfield`.

📌
``\glsxtruseseealsoformat`{〈csv-list〉}`
This command is used to format a “see also” cross-reference. This is simply defined to do:

    🖹\glsseeformat[\seealsoname]{〈csv-list〉}{〈〉}

[top]

### 5.9.3. Cross-Reference Indexing
[link]

🛈
If you are using bib2gls, see the bib2gls user manual for information about the selection, see, seealso, alias, alias-loc options.

The actual indexing of the seealso key is performed with:

📌
``\glsxtrindexseealso`{〈entry-label〉}{〈xr-list〉}`
which is analogous to `\glssee`. As with `\glssee`, this can also be used explicitly.

With makeindex, `\glsxtrindexseealso` simply does:

    🖹\glssee[\seealsoname]{〈entry-label〉}{〈xr-list〉}

With xindy, `\glsxtrindexseealso` behaves in an analogous way, using the appropriate cross-referencing markup.

📌
``\glsxtrsetaliasnoindex``
This hook is used within the `\gls`-like and `\glstext`-like commands to automatically switch off the indexing for aliases. (The hook is performed after the options set by `\GlsXtrSetDefaultGlsOpts`.)

By default, this hook just sets noindex=true. If you would like to add locations to the aliased location list then you can redefine it to use:

📌
``\glsxtrindexaliased``
For example:

    🖹\renewcommand{\glsxtrsetaliasnoindex}{\glsxtrindexaliased}

Note that this needs noindex=false to ensure the indexing takes place so don’t simply append `\glsxtrindexaliased` to the definition of `\glsxtrsetaliasnoindex`.

🛈
Don’t use the above hooks with bib2gls as this function is disabled with record=only and record=nameref. Use the alias-loc resource option instead.

📌
``\glsxtraddallcrossrefs``
This is used at the end of the document if indexcrossrefs=true to automatically index any cross-references (identified in the see, seealso and alias fields). This command iterates over all entries in all glossaries and, if an entry has been marked as used, does:
📌
``\glsxtraddunusedxrefs``
which indexes any labels identified in the cross-reference fields of the entry given by 〈entry-label〉 that haven’t been marked as used.

This can be time consuming if there are a large number of entries defined. If this is the case, you may want to consider switching to bib2gls and use either selection={recorded and deps and see} or selection={recorded and deps and see not also}.

There should be no need to use `\glsxtraddallcrossrefs` explicitly, but you may want to redefine it to only iterate over specific glossaries. The unused entries are indexed using the glsxtrunusedformat format.

📌
``\glsxtrunusedformat`{〈location〉}`
This ignores its argument (the location) and just does `\unskip`.

[top]

## 5.10. First Use Flag
[link]

Each entry has an associated first use flag (a conditional or boolean variable), which determines whether or not the entry has been marked as “used”. Unsetting this flag means that the entry is marked as used. Resetting the flag means that the entry is marked as unused.

The `\gls`-like commands (which are the principle method of referencing an entry) all mark the entry as used after the link text is displayed but before the post-link hook is used.

The purpose of this is to allow for additional information that needs to be shown when a term first appears in a document. For example, an abbreviation may need to have its full form shown on the instance. However, there are some cases where that additional information may need to be shown again or where the literal first instance of the term may need to be in its terse form. For example, if the term is used in the front matter.

If any `\gls`-like commands (which are robust) are used in section headings or captions, they can end up in the table of contents or corresponding “list of …” (such as the list of figures). This can cause the first use flag to be unset too soon. For these situations, use the commands described in §5.3 instead.

The base glossaries package provides commands to explicitly unset or reset the first use flag either locally (confined to the current scope) or globally. These commands are: `\glsunset` (global unset), `\glslocalunset` (local unset), `\glsreset` (global reset) and `\glslocalreset` (local reset).

The glossaries-extra package adds hooks to the above commands. These do nothing by default, but are modified by `\glsenableentrycount` and `\glsenableentryunitcount` to perform the count increment or reset (see §6.1).

📌
``\glsxtrpostunset`{〈entry-label〉}`
This hook is added to `\glsunset`.

📌
``\glsxtrpostlocalunset`{〈entry-label〉}`
This hook is added to `\glslocalunset`.

📌
``\glsxtrpostreset`{〈entry-label〉}`
This hook is added to `\glsreset`.

📌
``\glsxtrpostlocalreset`{〈entry-label〉}`
This hook is added to `\glslocalreset`.

The base package also provides commands to unset or reset all entries or all entries within particular glossaries: `\glsunsetall` and `\glsresetall`. For example, if you don’t want the first use in the front matter, you can unset all entries at the start of the front matter and reset them at the start of the main matter.

    🖹\frontmatter\glsunsetall
    …\mainmatter\glsresetall

With glossaries-extra you can unset a specific subset of entries.

📌
``\glslocalunseteach`{〈entry-labels〉}`
Locally unsets each entry in the given comma-separated list of entry labels.
📌
``\glslocalreseteach`{〈entry-labels〉}`
Locally resets each entry in the given comma-separated list of entry labels.

You can test if an entry has been marked as used with `\ifglsused` (but take care if you are using bib2gls or the undefaction=warn option, see below). This command allows the entry display style to vary the link text according to whether or not the entry has been marked as used. However, it can’t be used within the post-link hook as by that time, the first use flag will have already been unset.

🛈
See the glossaries user manual for further details of the above commands.

For example, in the following document the “html” entry is first used in the abstract, which shows both the long and the short form, but it would be helpful for the full form to be reshown in the main section about web pages. This is achieved by resetting the first use flag.

    🖹\newabbreviation{html}{HTML}{hypertext markup language}
    \begin{document}
     \begin{abstract}
     This abstract mentions \gls{html}.
     \end{abstract}
     Some casual reference to \gls{html}.
     \section{Web Pages}
     \glsreset{html}This section is all about \gls{html}.
    \end{document}

🖺
Example 113: Resetting the first use flag (`\glsreset`) 📥🖹 📥🖺

In the above example, an alternative is to use `\glsxtrfull` where you particularly want the full form, but some abbreviation styles have a different expansion with the inline `\glsxtrfull` form compared with the first use of `\gls`.

The glossaries-extra package provides the options preunset and prereset, which can be used to unset or reset the first use flag before the link text. This means that in the above example, the line:

    🖹\glsreset{html}This section is all about \gls{html}.

can be replaced with:

    🖹This section is all about \gls[prereset]{html}.

As mentioned above, the first use flag is unset before the post-link hook, so `\ifglsused` isn’t helpful in the post-link hook. Instead, you can use:

📌
``\glsxtrifwasfirstuse`{〈true〉}{〈false〉}`
This command is initialised by the `\gls`-like commands according to the value of the first use flag before the link text. It’s also initialised by the `\glstext`-like commands: not according to the value of the first use flag but according to whether or not the `\glstext`-like command emulates first use.

For example, `\gls` will define `\glsxtrifwasfirstuse` to do its first argument if the first use flag indicates the entry hasn’t yet been used, otherwise it will define `\glsxtrifwasfirstuse` to do its second argument. Whereas `\glsfirst` will always define `\glsxtrifwasfirstuse` to do its first argument (unless used with preunset) and `\glstext` will always define `\glsxtrifwasfirstuse` to do its second argument (unless used with prereset), regardless of the state of the first use flag.

The preunset and prereset options will additionally redefine `\glsxtrifwasfirstuse` to match the option. See §5.5.4 for further details about the post-link hook.

If you want to check if the calling command was both the first use and it was a `\gls`-like command, you can use: `\glsxtrifwasglslikeandfirstuse`.

The unset function performed by the `\gls`-like commands before the post-link hook uses the global `\glsunset` by default. If you want `\glslocalunset` instead, you can use the local option (provided by the base glossaries package) or postunset=local. To prevent the first use flag from being unset after the link text, use postunset=none.

    🖹\newabbreviation{html}{HTML}{hypertext markup language}
    \begin{document}
    {% local scope
    \gls[local]{html}. Used? \ifglsused{html}{Yes}{No}.
    }% end scope

    Used? \ifglsused{html}{Yes}{No}.

    \gls[postunset=none]{html}. Used? \ifglsused{html}{Yes}{No}.
    \end{document}

🖺
Example 114: Local unset 📥🖹 📥🖺

If you are using the undefaction=warn option (which is automatically implemented by the record option), the first use flag is undefined and so is neither true nor false, in which case `\ifglsused` will trigger an error or warning and do neither. In this situation, you may need to use the following command instead.

📌
``\GlsXtrIfUnusedOrUndefined`{〈entry-label〉}{〈true〉}{〈false〉}`
This does 〈true〉 if the entry hasn’t been defined or hasn’t been marked as used, otherwise does 〈true〉. Note that this command will generate an error or warning (according to undefaction) if the entry hasn’t been defined, but will still do 〈true〉. This is more useful than `\ifglsused` with bib2gls where the entries are never defined on the first LaTeX run.

[top]

### 5.10.1. Buffering Unsets
[link]

Sometimes commands like `\gls` are used in a context where changing a boolean variable can cause things to go wrong. The outer, middle and inner formatting (see §5.5) can be used to change the font for the link text, but it may be that the `\gls`-like command occurs within a block of text that needs to be encapsulated by such a command.

One example of this is using `\gls` in one of the commands provided with the soul package. For example:

    🖹\ul{Some text about \gls{html}.}

This causes the confusing error:

    🔎Glossary entry `{html}' has not been defined.

The simplest workaround is to put ``\gls`{html}` inside the argument of `\mbox`. For example:

    🖹\ul{Some text about \mbox{\gls{html}}.}

This can work provided it’s not the first use of this entry. It if is, then unsetting the first use flag causes a problem and results in the error:

    🔎! Package soul Error: Reconstruction failed.

The glossaries-extra package provides a way of temporarily switching off `\glsunset` so that it just makes a note of the entry’s label but doesn’t actually perform the change.
📌
``\GlsXtrStartUnsetBuffering``modifier: *
This starts the buffering. The unstarred version doesn’t check for duplicates, so the internal list may end up with multiple occurrences of the same label. The starred version only adds a label to the internal list if it’s not already in it. If you are using entry counting (see §6.1) the unstarred version is preferable to ensure the entry count is correct.

ℹ
Buffering only applies to the global `\glsunset` and does not affect the local `\glslocalunset`.

The buffer can be locally cleared with:

📌
``\GlsXtrClearUnsetBuffer``
This doesn’t stop buffering. It will simply discard the labels that have been buffered so far.

In order to restore the normal behaviour of `\glsunset`, the buffering must be stopped or discarded.

📌
``\GlsXtrStopUnsetBuffering``modifier: *
This stops the buffering, restores `\glsunset`, and unsets all the buffered labels. The starred form uses `\glslocalunset` to unset the buffered labels.

Before you stop the unset buffering, you can iterate over the current buffer.

📌
``\GlsXtrForUnsetBufferedList`{〈handler-cs〉}`
This iterates over the currently buffered list of entry labels and performs ``\〈handler-cs〉`{〈entry-label〉}` for each label, where 〈cs〉 is a control sequence that takes a single argument. This is best used with the starred version of `\GlsXtrStartUnsetBuffering`* to avoid duplicates.

📌
``\GlsXtrDiscardUnsetBuffering``
This discards the buffer and restores `\glsunset` to its normal behaviour.

It’s possible to locally unset entries before use (analogous to preunset=local) if the entry has already been encountered in the buffer. This will still be problematic for situations where changing a conditional causes a problem, but may be useful in some situations. This feature is enabled with:

📌
``\GlsXtrUnsetBufferEnableRepeatLocal``
This may be placed before or after `\GlsXtrStartUnsetBuffering` but the locally collected list of unused entries will be cleared at the start of each instance of `\GlsXtrStartUnsetBuffering`. It will also be cleared by `\GlsXtrClearUnsetBuffer`. All entries that have been marked as unused can be reset with:
📌
``\GlsXtrResetLocalBuffer``
This will perform a local reset on all the entries in the “not used” list and do `\GlsXtrClearUnsetBuffer`.

This feature can be switched off with:

📌
``\GlsXtrUnsetBufferDisableRepeatLocal``
It’s disabled by default.

The way this feature works is as follows (while buffering is active):

1. 1.Each time an entry is referenced with a `\gls`-like command, the `\glsinitreunsets` hook checks if the current entry (identified by `\glslabel`) has been added to the buffer. (Bear in mind that the label is added to the buffer after the link text when `\glsunset` is used.)

   1. (a)If it has been added to the buffer, then this is an indication that the entry has already been used within the buffer zone (that is, an attempt has been made to globally unset the first use flag). A local unset is then performed, which is essentially equivalent to using the preunset=local option, so the reference will behave like subsequent use.

   2. (b)If it hasn’t been added to the buffer, then this is an indication that the entry hasn’t already been used within the buffer zone, but it may or may not have been used before the buffering started. If the first use flag indicates that the entry hasn’t been used, the entry’s label will be added to the “not used” list. The reference will behave like first use, but the unset won’t be performed afterwards (because buffering is in progress).

2. 2.The entries that are in the “not used” list can be locally reset and both the buffer and the “not used” list can be cleared with `\GlsXtrClearUnsetBuffer`.

Note that this approach can’t be used for situations where the change in conditional causes a problem, but it can be used in situations where the content of an environment or command is repeatedly processed, which upsets the first use flag.

For example, consider the following beamer document:

    🖹\documentclass{beamer}
    \usepackage{glossaries-extra}
    \newabbreviation{svm}{SVM}{support vector machine}
    \newabbreviation{html}{HTML}{hypertext markup language}
    \begin{document}
    \begin{frame}
      \frametitle{Frame 1}
      \begin{itemize}
       \item \gls{html} and \gls{html}
      \end{itemize}
    \end{frame}
    \begin{frame}
      \frametitle{Frame 2}
      \begin{itemize}
       \item<+-> \gls{svm} and \gls{svm}
       \item<+-> \gls{svm} and \gls{html}
      \end{itemize}
    \end{frame}
    \frame{\printunsrtglossaries}
    \end{document}

The first page isn’t a problem as the frame doesn’t have overlays. The first reference of the “html” entry shows the full form and the next shows just the short form. The second page (which is the first of the overlays of the second frame) correctly shows the full form of the “svm” entry for the first reference and the short form for the second reference, but on the third page (the second of the overlays) now has all instances of “svm” showing as subsequent use (just the short form).

I could put `\glslocalresetall` at the start of the frame, but that would reset the “html” entry as well. Another workaround is to locally reset the first “svm” entry with preresetlocal, but that defeats the point of the first use flag, which is intended to keep track of whether or not you have used an entry so that you don’t have to.

The frame can be placed inside a buffering zone:

    🖹\GlsXtrStartUnsetBuffering
    \begin{frame}
      \frametitle{Frame 2}
      \begin{itemize}
       \item<+-> \gls{svm} and \gls{svm}
       \item<+-> \gls{svm} and \gls{html}
      \end{itemize}
    \end{frame}
    \GlsXtrStopUnsetBuffering

This ensures that the first use flag isn’t reset until after the frame, but it means that all references to the “svm” entry on both the second and third page show the full form.

The “repeat local” function can be used so that repeated references for the same entry can be locally unset before use. This can be enabled with `\GlsXtrUnsetBufferEnableRepeatLocal` which fixes the second page, but not the third page, which shows all references to “svm” as the short form. What’s needed is to locally reset and entries that are in the frame but haven’t yet been used (“svm”, in this case) at the start of the frame with `\GlsXtrResetLocalBuffer`:

    🖹\GlsXtrStartUnsetBuffering
    \GlsXtrUnsetBufferEnableRepeatLocal
    \begin{frame}
    \GlsXtrResetLocalBuffer
      \frametitle{Frame 2}
      \begin{itemize}
       \item<+-> \gls{svm} and \gls{svm}
       \item<+-> \gls{svm} and \gls{html}
      \end{itemize}
    \end{frame}
    \GlsXtrStopUnsetBuffering

Note that on the first overlay, the buffer and “not used” list are both empty. On the second overlay, the buffer contains the “svm” and “html” labels and the “not used” list just contains the “svm” label. The reset performed by `\GlsXtrResetLocalBuffer` will reset “svm” and then clear both the buffer and the “not used” list. This means that the first “svm” reference is once again considered first use and it will once again be added to the “not used” list (so that it would be reset again if there was a third overlay).
🖺
Example 115: Abbreviations with beamer (unset buffering) 📥🖹 📥🖺

This is quite cumbersome, but these commands could potentially be added to hooks at the start and end of problematic environments (but the buffering needs to be started and ended outside of the repeated content).

The following example uses `\mbox` to protect `\gls` within the buffer zone:

    🖹\documentclass{article}

    \usepackage[T1]{fontenc}
    \usepackage{soul}
    \usepackage{glossaries-extra}

    \newabbreviation{html}{HTML}{hypertext markup language}

    \begin{document}
    \GlsXtrStartUnsetBuffering
    \ul{Some text about \mbox{\gls{html}}.
    Next use: \mbox{\gls{html}}.}
    \GlsXtrStopUnsetBuffering

    Next use: \gls{html}.
    \end{document}

This produces:
🖺
Example 116: Buffering first use unsets with `\mbox` 📥🖹 📥🖺

Note that the use of `\mbox` prevents line-breaking and the second instance of ``\gls`{html}` is treated as first use.

⚠
Note that since the change in the first use flag now doesn’t occur until `\GlsXtrStopUnsetBuffering`, multiple references of the same term within the buffering zone will always be treated as first use (if the term wasn’t used before the buffering started).

Other alternatives include using `\protect` and inner formatting (see §5.5.3 for limitations) or middle formatting (see §5.5.2) with `\GlsXtrExpandedFmt` (which can’t be used with fragile link text). Both approaches are demonstrated in the following example:

    🖹\documentclass{article}

    \usepackage[T1]{fontenc}
    \usepackage{soul}
    \usepackage{glossaries-extra}

    \newabbreviation{html}{HTML}{hypertext markup language}
    % custom command to expand content before using \ul:
    \newrobustcmd{\xpul}[1]{\GlsXtrExpandedFmt{\ul}{#1}}

    \begin{document}
    First approach (inner formatting):
    {% scope
     \renewcommand{\glsxtrdefaultentrytextfmt}[1]{\ul{#1}}%
     \ul{Some text about \protect\gls{html}.
     Next use: \protect\gls{html}}
    }

    Next use: \gls{html}.

    Second approach (middle formatting with expanded link text):
    \glsresetall
    {% scope
     \renewcommand{\glsxtrabbreviationfont}[1]{\xpul{#1}}%
     \renewcommand{\glsxtrregularfont}[1]{\xpul{#1}}%
     \ul{Some text about \protect\gls{html}.
     Next use: \gls{html}.}
    }

    Next use: \gls{html}.
    \end{document}

This produces:
🖺
Example 117: Alternatives to buffering 📥🖹 📥🖺

The change in the first use flag isn’t the only content within the `\gls`-like commands that can cause a problem. The whatsit caused by indexing can also be problematic. Buffering can also be used to help with that situation. Indexing can be switched off at the start of the buffering and `\GlsXtrForUnsetBufferedList` can be used to perform the indexing outside of the problematic content. Note that this can cause a problem if the location changes (for example, if a page break occurs within the buffering zone).

Buffering can also be used to simply gather the labels that have been referenced with a `\gls`-like command in order to, for example, display a mini-glossary at the end of the block. See for example, Gallery: Mini-Glossary.

[top]

## 5.11. Accessing Fields
[link]

See §3.5 for setting fields after an entry has been defined, §5.13 for fields that contain comma-separated lists or whose values may be contained within comma-separated lists, §5.9.2 for cross-referencing fields (see, seealso and alias), and §5.15 for testing field values. See also the base glossaries package’s commands, such as `\glsentryname` and `\glsletentryfield`.

📌
``\glsxtrusefield`{〈entry-label〉}{〈field-label〉}`
This expands to the value of the field (identified by its internal label 〈field-label〉) for the entry identified by 〈entry-label〉. Expands to `\relax` if the field or entry are undefined.

📌
``\Glsxtrusefield`{〈entry-label〉}{〈field-label〉}`
This is like `\glsxtrusefield` but converts the first character to uppercase using `\makefirstuc` (provided by mfirstuc) which is robust. If hyperref is loaded, ``\Glsxtrusefield`{〈entry-label〉}` will use the expandable:

    \MFUsentencecase{\glsxtrusefield{〈entry-label〉}}

in a PDF bookmark.

📌
``\GLSxtrusefield`{〈entry-label〉}{〈field-label〉}`
This is like `\glsxtrusefield` but converts the field value to uppercase. See §5.2.3.

📌
``\glsxtrfieldtitlecase`{〈entry-label〉}{〈field-label〉}`
This is like `\glsxtrusefield` but converts the field value to title case. This internally uses:
📌
``\glsxtrfieldtitlecasecs`{〈content〉}`
This converts 〈content〉 to title case (expanding the first token once). If `\glscapitalisewords` has been defined, that will be used, otherwise `\capitalisewords` will be used.

📌
``\glsxtrentryparentname`{〈entry-name〉}`
Expands to the entry’s parent name if defined. Expands to nothing if the entry doesn’t have a parent or if the entry isn’t defined. If you simply require the parent label then use `\glsentryparent` or, to first test if the entry has a parent, either use `\ifglshasparent` or use `\glsxtrifhasfield` with the field label set to `parent`.

📌
``\glsxtrhiername`{〈entry-label〉}`
Displays the hierarchical name for the given entry. The cross-reference format `\glsseeitemformat` may be redefined to use this command to show the hierarchy, if required.

This command has a recursive definition. If the entry given by 〈entry-label〉 has a parent, then this command will do ``\glsxtrhiername`{〈parent-label〉}` for the entry’s parent and will then do the separator `\glsxtrhiernamesep`.

Then, regardless of whether or not the entry has a parent, it will do ``\glsfmttext`{〈entry-label〉}`, if the entry is an abbreviation (see §1.2.4), or ``\glsfmtname`{〈entry-label〉}` otherwise.

🛈
If hyperref is loaded, `\glsxtrhiername` will behave as `\glsentryname` in a PDF bookmark.

📌
``\glsxtrhiernamesep``
Separator symbol ( ◁ ) used between each name in commands like `\glsxtrhiername`.

📌
``\Glsxtrhiername`{〈entry-label〉}`
As `\glsxtrhiername` but the first name in the list has its first character converted to uppercase using `\Glsfmttext` or `\Glsfmtname` (sentence case). If hyperref is loaded, `\Glsxtrhiername` will expand to:

    \MFUsentencecase{\glsentryname{〈entry-label〉}}

in a PDF bookmark. The `\makefirstuc` mapping from `\glsxtrhiername` to `\Glsxtrhiername` is set with `\glsmfuaddmap`, if supported.

📌
``\GlsXtrhiername`{〈entry-label〉}`
As `\glsxtrhiername` but each name in the list has its first character converted to uppercase using `\Glsfmttext` or `\Glsfmtname`.

📌
``\GLSxtrhiername`{〈entry-label〉}`
As `\glsxtrhiername` but the first name in the list is converted to uppercase using `\GLSfmttext` or `\GLSfmtname`.

📌
``\GLSXTRhiername`{〈entry-label〉}`
As `\glsxtrhiername` but each name in the list is converted to uppercase using `\GLSfmttext` or `\GLSfmtname` (all caps).

[top]

## 5.12. Encapsulation (Formatting) Based on Field Values
[link]

These commands assume that a given entry has a special purpose field that’s used to store information on how to format text.

[top]

### 5.12.1. Foreign Language Field
[link]

📌
``\GlsXtrForeignTextField``
This command should expand to the internal field label used to store a language tag (such as `en-GB` or `de-CH-1996`). The default value is `userii` (which corresponds to the user2 key).

📌
``\GlsXtrForeignText`{〈entry-label〉}{〈text〉}`
If the entry given by 〈entry-label〉 has the field identified by `\GlsXtrForeignTextField` set, then this command will encapsulate 〈text〉 according to the language tag stored in that field.

This uses tracklang’s interface to determine the language label that corresponds to the language tag. If the language label can be determined, the 〈text〉 will be encapsulated with `\foreignlanguage` otherwise just 〈text〉 is done.

If `\foreignlanguage` isn’t defined (that is, there’s no language support for the document), this command simply does 〈text〉. If an old version of tracklang is used, this command issues a warning and just does 〈text〉.

If tracklang can’t determine the corresponding language label to use with `\foreignlanguage`, then a warning is issued with:

📌
``\GlsXtrUnknownDialectWarning`{〈locale〉}{〈root language〉}`
where 〈locale〉 is the language tag supplied in the given field value and 〈root language〉 is the root language that tracklang has inferred from the tag.

🛈
`\GlsXtrForeignText` requires tracklang v1.3.6+.

For example:

    🖹\usepackage[main=british,brazilian,ngerman]{babel}
    \usepackage{glossaries-extra}
    \setabbreviationstyle{long-short-user}
    \newabbreviation
      [user1={Associação Brasileria de Normas Técnicas},
       user2={pt-BR}
     ]
     {abnt}{ABNT}{Brazilian National Standards Organization}

    \newabbreviation
     [user1={Deutsches Institut für Normung e.V.},
      user2={de-DE-1996}]
     {din}{DIN}{German Institute for Standardization}

    \newabbreviation{tug}{TUG}{\TeX\ User Group}

    \renewcommand*{\glsxtruserparen}[2]{%
      \glsxtrfullsep{#2}%
      \glsxtrparen
      {#1%
       \ifglshasfield{\glsxtruserfield}{#2}%
       {, \emph{\GlsXtrForeignText{#2}{\glscurrentfieldvalue}}}%
       {}%
      }%
    }

    \begin{document}
    \gls{abnt}, \gls{din}, \gls{tug}.
    \printunsrtglossaries
    \end{document}

This produces:
🖺
Example 118: Foreign language field encapsulation 📥🖹 📥🖺

[top]

### 5.12.2. Associated Entry Format
[link]

An entry may have a particular formatting style associated with it (rather than a more general category-wide format). This needs to be provided by a text-block command that takes a single argument. The name (without the leading backslash) should be stored in the field identified by:

📌
``\GlsXtrFmtField``initial: useri
This command should expand to the internal field label used to store the formatting command’s control sequence name. The default value is `useri` (which corresponds to the user1 key).

📌
``\glsxtrfmt`[〈options〉]{〈entry-label〉}{〈text〉}`
This command behaves like:

    \glslink[〈options〉]{〈entry-label〉}{〈fmt-link-text〉}

where the link text 〈fmt-link-text〉 is formatted according to:
📌
``\glsxtrfmtdisplay`{〈csname〉}{〈text〉}{〈insert〉}`
The default definition simply does `\〈csname〉{〈text〉}〈insert〉` where the control sequence name 〈csname〉 is obtained from the field given by `\GlsXtrFmtField`. If the field hasn’t been set, `\@firstofone` is used (which simply does its argument). The unstarred version assumes an empty 〈insert〉. The default `\glslink` options are given by `\GlsXtrFmtDefaultOptions`.

🛈
The post-link hook is suppressed with `\glsxtrfmt`.

If you don’t want the complexity of `\glslink`, a partially expandable command is provided that may be used in section headings:

📌
``\glsxtrentryfmt`{〈entry-label〉}{〈text〉}`
If hyperref has been loaded, this will expand to:
📌
``\glsxtrpdfentryfmt`{〈entry-label〉}{〈text〉}`
within the PDF bookmarks, which just does 〈text〉. Otherwise `\glsxtrentryfmt` will format 〈text〉 according to the control sequence name identified in the field given by `\GlsXtrFmtField` (or `@firstofone`, if not set). For example:

    🖹\documentclass{article}
    \usepackage[T1]{fontenc}
    \usepackage{amsmath}
    \usepackage[colorlinks]{hyperref}
    \usepackage[postdot,style=index]{glossaries-extra}
    \makeglossaries
    \newcommand*{\mtx}[1]{\boldsymbol{#1}}
    \newcommand*{\mtxinv}[1]{\mtx{#1}\sp{-1}}

    \newglossaryentry{matrix}{%
      name={matrix},
      symbol={\ensuremath{\mtx{M}}},
      plural={matrices},
      user1={mtx},% corresponds to \mtx
      description={rectangular array of values}
    }

    \newglossaryentry{identitymatrix}{%
      name={identity matrix},
      symbol={\ensuremath{\mtx{I}}},
      plural={identity matrices},
      description={a diagonal matrix with all diagonal    elements equal to 1 and all other elements equal to 0}
    }

    \newglossaryentry{matrixinv}{%
      name={matrix inverse},
      symbol={\ensuremath{\mtxinv{M}}},
      user1={mtxinv},% corresponds to \mtxinv
      description={a square \gls{matrix} such that    $\mtx{M}\mtxinv{M}=\glssymbol{identitymatrix}$}
    }
    \begin{document}
    A \gls{matrix} is denoted \glssymbol{matrix}.
    The inverse is denoted \glssymbol{matrixinv}.
    \[
      \glsxtrfmt{matrix}{A} \glsxtrfmt{matrixinv}{A}
      = \glssymbol{identitymatrix}
    \]
    Compare $\glsxtrfmt{matrix}{A}[_0]$
    with $\glsxtrfmt*{matrix}{A}[_0]$.
    \printglossaries
    \end{document}

This produces:
🖺
Example 119: Storing a formatting command in a field 📥🖹 📥🖺

Note the difference between using `\glsxtrfmt*` vs `\glsxtrfmt`.

There are also sentence case versions of the above commands:

📌
``\Glsxtrfmt`[〈options〉]{〈entry-label〉}{〈text〉}`
This is simply a shortcut for:

    \glsxtrfmt[〈options〉]{〈entry-label〉}{\glssentencecase{〈text〉}}

Similarly for the starred form:
📌
``\Glsxtrfmt*`[〈options〉]{〈entry-label〉}{〈text〉}[〈insert〉]`
which is a shortcut for:

    \glsxtrfmt*[〈options〉]{〈entry-label〉}{\glssentencecase{〈text〉}}[〈insert〉]

📌
``\Glsxtrentryfmt`{〈entry-label〉}{〈text〉}`
This is a shortcut for

    \glsxtrentryfmt{〈entry-label〉}{\glssentencecase{〈text〉}}

but uses:
📌
``\Glsxtrpdfentryfmt`{〈entry-label〉}{〈text〉}`
for the PDF bookmarks. This uses `\MFUsentencecase` to perform the case-change, which is expandable.

If you are writing `\glsxtrfmt` or `\glsxtrentryfmt` explicitly in the document text, you can, of course, enter the appropriate case in 〈text〉 directly. The purpose of providing the sentence case commands is to enable a mapping to be setup with `\MFUaddmap` in the event that `\glsxtrfmt` or `\glsxtrentryfmt` occur at the start of content, such as another entry’s description, that will have sentence case automatically applied. This will require mfirstuc v2.08+ to support the mapping. See the mfirstuc manual for further details.

[top]

## 5.13. Comma-Separated Lists
[link]

These commands are for field values that are comma-separated lists (for example, the field has been constructed with `\glsxtrapptocsvfield`) or for testing if field values are contained within comma-separated lists.

🛈
If you are using bib2gls, you can sort field values that contain a comma-separated list of labels (such as the see or seealso field) with the sort-label-list option (provided bib2gls can access those fields). See the bib2gls manual for further details.

📌
``\glsseelist`{〈csv-list〉}`
This is provided by the base glossaries package to format the entry labels in see cross-reference list. (It’s used internally by `\glsseeformat`, which adds the see prefix.) It may also be used for any comma-separated list of entry labels. Note that the argument isn’t expanded. If expansion is required, use:
📌
``\glsxtrseelist`{〈csv-list〉}`
This fully expands its argument and passes the result to `\glsseelist`. With just the base glossaries package, each item is encapsulated with `\glsseeitem`. The glossaries-extra package redefines `\glsseelist` to make it more flexible and provides additional commands to further customize the formatting.

📌
``\glsxtrtaggedlist`{〈singular tag〉}{〈plural tag〉}{〈label prefix〉}{〈csv-list〉}`
This is a similar command that has an initial tag inserted before the start of the list. If the list only contains one element, the 〈singular tag〉 is used. If the list contains more than one element, the 〈plural tag〉 is used. The separator between the tag and the list is given by:
📌
``\glsxtrtaggedlistsep``initial: `\space`
The separators between the elements of the list and the formatting of each list element is as for `\glsseelist` (see below). If the list is empty, nothing is displayed. The 〈label prefix〉 is inserted before the current item in the list to form the entry label.

⚠
Spaces in 〈csv-list〉 are significant. Avoid unwanted leading or trailing spaces and empty labels.

📌
``\glsseeitemformat`{〈entry-label〉}`
The base glossaries package just uses `\glsentryname` or `\glsentrytext` in this command. The glossaries-extra package redefines this so that it does:

    🖹\ifglshasshort{〈entry-label〉}{\glsfmttext{〈entry-label〉}}
    {\glsfmtname{〈entry-label〉}}

Note that the use of `\glsfmttext` rather than `\glsentrytext` allows the abbreviation style to be used.

With glossaries-extra, the first item in `\glsseelist` will be encapsulated with:

📌
``\glsseefirstitem`{〈entry-label〉}`
The default definition is simply ``\glsseeitem`{〈entry-label〉}` but can be redefined, for example to convert the first character to uppercase if sentence case is required.

🛈
If the label corresponds to a multi-entry, `\mglsseefirstitem` will be used instead (see §7.12). Similarly, `\mglsseeitem` will be used instead of `\glsseeitem` for a multi-entry label.

📌
``\glsseesep``initial: ,␣
This is used between each entry in the list, except between the final pair.

📌
``\glsseelastsep``
This is used between the penultimate and final item in the list. The default definition is:

    🖹\space\andname\space

(`\andname` is provided by glossaries, if not already defined, and simply expands to `\&` but it may be defined to expand to something else by another package before glossaries is loaded.)

With glossaries-extra, if there are at least three elements in the list, the separator between the final two elements will be given by:

📌
``\glsseelastoxfordsep``
This just defaults to `\glsseelastsep` but may be redefined to include a comma, if preferred.

📌
``\glsxtrforcsvfield`{〈entry-label〉}{〈field-label〉}{〈handler cs〉}`modifier: *
This iterates over the comma-separated list stored in the given field (identified by its internal label) for the entry identified by 〈entry-label〉 and performs `〈handler cs〉{〈element〉}` for each element of the list. This command uses `\glsxtrifhasfield` so the complete list can be obtained with `\glscurrentfieldvalue`. Does nothing if the field hasn’t been set or the entry hasn’t been defined. The unstarred version adds implicit grouping. The starred version doesn’t.

It’s possible to prematurely break the loop at the end of the current iteration with:

📌
``\glsxtrendfor``
If nested within another command that also uses `\@for`, use the unstarred version to localise the break. This command is simply set to `\@endfortrue`, which is provided by the xfor package.

📌
``\glsxtrfieldformatcsvlist`{〈entry-label〉}{〈field-label〉}`
This formats the comma-separated list stored in the given field (identified by its internal label) for the entry identified by 〈entry-label〉 using datatool-base’s `\DTLformatlist`. This command uses `\glsxtrifhasfield` so the complete list can be obtained with `\glscurrentfieldvalue`. This adds implicit grouping. There is no starred version.

The following demonstrates the difference between `\glsseelist` (which specifically requires a list of labels) and `\glsxtrfieldformatcsvlist` (which formats an arbitrary list):

    🖹\usepackage[colorlinks]{hyperref}
    \usepackage[autoseeindex=false]{glossaries-extra}
    \newglossaryentry{example}{name={example},description={},
     see={another1,another2}}
    \newglossaryentry{another1}{name={another one},description={}}
    \newglossaryentry{another2}{name={another two},description={}}
    \begin{document}
    \glsxtrapptocsvfield{example}{animals}{duck}
    \glsxtrapptocsvfield{example}{animals}{albatross}
    \glsxtrapptocsvfield{example}{animals}{arara}
    Animal list: \glsxtrfieldformatcsvlist{example}{animals}

    See list: \glsxtrifhasfield{see}{example}
     {\glsxtrseelist{\glscurrentfieldvalue}}{not set}.

    \printunsrtglossaries
    \end{document}

There’s no indexing in this document so I’ve used autoseeindex=false to avoid an error. This means there’s no cross-reference list in the glossary but, as demonstrated, the “see” list can be reproduced in the document. The result is:
🖺
Example 120: Formatting lists contained in field values 📥🖹 📥🖺

This first constructs a comma-separated list in a custom internal field with the label `animals`. There’s no associated key that can be used in `\newglossaryentry`. In this case, the field could simply be set in one command. For example:

    🖹\glsxtrdeffield{example}{animals}{duck,albatross,arara}

The main reason for providing `\glsxtrapptocsvfield` is for the benefit of bib2gls, as it sometimes has to construct a field value list while it’s writing the glstex file, but there may be other uses in complex documents that construct field values through some custom function.

📌
``\GlsXtrIfValueInFieldCsvList`{〈entry-label〉}{〈field-label〉}{〈value〉}{〈true〉}{〈false〉}`modifier: *
This does 〈true〉 if the comma-separated list stored in the given field (identified by its internal label) contains the given 〈value〉 (using `\DTLifinlist` provided by datatool-base) or 〈false〉 if the value isn’t in the list or if the field hasn’t been set or the entry hasn’t been defined. The unstarred version adds implicit grouping. The starred version doesn’t.

This command internally uses `\glsxtrifhasfield`, so take care if it’s nested. Within 〈false〉, you can test if `\glscurrentfieldvalue` is empty or undefined. If it’s defined but not empty, then the field has been set but doesn’t contain 〈value〉.

📌
``\GlsXtrIfFieldValueInCsvList`{〈entry-label〉}{〈field-label〉}{〈csv-list〉}{〈true〉}{〈false〉}`modifier: *
This command is essentially the other way around to the above. In this case, the comma-separated list is provided in the argument 〈csv-list〉 and the search value is the field’s value. This does 〈true〉 if the value is found in 〈csv-list〉 or 〈false〉 if the value isn’t in 〈csv-list〉 or the field isn’t set or the entry hasn’t been defined. The unstarred version adds implicit grouping. The starred version doesn’t. Again, this command internally uses `\glsxtrifhasfield`, so you can test `\glscurrentfieldvalue` in 〈false〉 to determine whether or not the field has been set.

📌
``\xGlsXtrIfValueInFieldCsvList`{〈entry-label〉}{〈field-label〉}{〈value〉}{〈true〉}{〈false〉}`modifier: *
As `\GlsXtrIfValueInFieldCsvList` but fully expands 〈value〉 first.

[top]

## 5.14. List Fields
[link]

Comma-separated list fields are covered in §5.13. The commands in this section are for fields that store etoolbox internal lists. Elements can be appended to these fields using commands `\glsxtrfieldlistadd`, described in §3.5. The commands listed below provide an easy interface to iterate over the field values. See the etoolbox documentation for further details about internal lists.

📌
``\glsxtrfieldformatlist`{〈entry-label〉}{〈field-label〉}`
Formats the list using the same separators as used by datatool’s `\DTLformatlist`. This internally uses etoolbox’s `\forlistcsloop` with the same handler macro as used with `\DTLformatlist`.

📌
``\glsxtrfielddolistloop`{〈entry-label〉}{〈field〉}`
This uses etoolbox’s `\dolistcsloop`, which uses the command `\do` as the handler.

📌
``\glsxtrfieldforlistloop`{〈entry-label〉}{〈field〉}{〈handler-cs〉}`
This uses etoolbox’s `\forlistcsloop`, which uses the 〈handler-cs〉 as the handler.

📌
``\glsxtrfieldifinlist`{〈entry-label〉}{〈field〉}{〈item〉}{〈true〉}{〈false〉}`
This uses etoolbox’s `\ifinlistcs` to test if 〈item〉 is in the list.

📌
``\glsxtrfieldxifinlist`{〈entry-label〉}{〈field〉}{〈item〉}{〈true〉}{〈false〉}`
This uses etoolbox’s `\xifinlistcs` to test if 〈item〉 is in the list.

[top]

## 5.15. Field Conditionals
[link]

📌
``\GlsXtrIfFieldUndef`{〈field-label〉}{〈entry-label〉}{〈true〉}{〈false〉}`
Tests if the given field (identified by its internal label) is undefined for the entry given by 〈entry-label〉. Does 〈true〉 if the entry doesn’t exists or if entry exists but the field hasn’t been set. Does 〈false〉 if the field has been set, even if it has been set to empty. Unlike `\glsxtrifhasfield` there is no grouping or starred version and no assignment of `\glscurrentfieldvalue`. This is simply a shortcut that internally uses etoolbox’s `\ifcsundef`. The base glossaries package provides a similar command `\ifglsfieldvoid`, which uses etoolbox’s `\ifcsvoid` instead.

📌
``\glsxtrifhasfield`{〈field-label〉}{〈entry-label〉}{〈true〉}{〈false〉}`modifier: *
This tests if the entry given by 〈entry-label〉 has the field identified by its internal label 〈field-label〉 set. This is like `\ifglshasfield` but doesn’t produce a warning if the entry or field doesn’t exist.

This command first assigns `\glscurrentfieldvalue` to the field value. If this is defined and not empty, 〈true〉 is done otherwise 〈false〉 is done. You can test `\glscurrentfieldvalue` within 〈false〉 to find out whether it’s undefined or empty using etoolbox’s commands, such as `\ifundef` or `\ifdefempty`.

The unstarred version adds implicit grouping to make nesting easier. The starred version doesn’t (to make assignments easier).

🛈
If you are simply displaying the value of the field (for example, in the post-description hook) then use the unstarred version. If you are making an assignment based on the value of the field, then use the starred version.

📌
``\GlsXtrIfFieldCmpNum`{〈field-label〉}{〈entry-label〉}{〈op〉}{〈number〉}{〈true〉}{〈false〉}`modifier: *
This command should only be used with fields that contain integer values. It internally uses `\glsxtrifhasfield` (the starred or unstarred version, to match the starred or unstarred version of `\GlsXtrIfFieldEqStr`) and tests if `\glscurrentfieldvalue` is equal to (〈op〉 is `=`), less than (〈op〉 is `<`) or greater than (〈op〉 is `>`) the given number 〈number〉. If the field is empty or undefined, `\glscurrentfieldvalue` will be set to `0`. Remember that the unstarred version adds implicit grouping.

📌
``\GlsXtrIfFieldEqNum`{〈field-label〉}{〈entry-label〉}{〈number〉}{〈true〉}{〈false〉}`modifier: *
This is a shortcut that uses `\GlsXtrIfFieldCmpNum` with 〈op〉 set to `=`. The unstarred version adds implicit grouping.

📌
``\GlsXtrIfFieldNonZero`{〈field-label〉}{〈entry-label〉}{〈true〉}{〈false〉}`modifier: *
This is a shortcut that uses `\GlsXtrIfFieldCmpNum` with 〈op〉 set to `=` and the final two arguments swapped. (So it’s true if the field value is not zero.) The unstarred version adds implicit grouping.

📌
``\GlsXtrIfFieldEqStr`{〈field-label〉}{〈entry-label〉}{〈value〉}{〈true〉}{〈false〉}`modifier: *
This internally uses `\glsxtrifhasfield` (the starred or unstarred version, to match the starred or unstarred version of `\GlsXtrIfFieldEqStr`) and tests if `\glscurrentfieldvalue` is equal to 〈value〉. Remember that the unstarred version adds implicit grouping.

📌
``\GlsXtrIfFieldEqXpStr`{〈field-label〉}{〈entry-label〉}{〈value〉}{〈true〉}{〈false〉}`modifier: *
This is like `\GlsXtrIfFieldEqStr` but expands the string before the comparison. This also has an starred version that doesn’t add implicit grouping.

📌
``\GlsXtrIfXpFieldEqXpStr`{〈field-label〉}{〈entry-label〉}{〈value〉}{〈true〉}{〈false〉}`modifier: *
This is like `\GlsXtrIfFieldEqStr` but expands both the field value and the string before the comparison. This also has an starred version that doesn’t add implicit grouping.

[top]

# 6. Counting References
[link]

There are three basic ways of counting entry references:

1. 1.Counting the total number of times `\glsunset` is used (`\glsreset` resets the count unless `\glsresetcurrcountfalse` and is best avoided). This is provided by the base glossaries package and is intended for documents where the term should be displayed differently if it’s only been used a certain number of times. The information has to be written to the aux file so that it’s available on the next LaTeX run.

   This method is extended by glossaries-extra and is described in §6.1. This method relies on the document only using the `\gls`-like commands and is inappropriate with bib2gls.

2. 2.Counting the total number of records. This method is only available with bib2gls and is intended for documents where the term should be displayed differently if it’s only been recorded (indexed) a certain number of times. This is a more efficient method than entry counting. See §11.4 for further details.

3. 3.Counting the number of times the `\gls`-like or `\glstext`-like commands are used. Unlike the other two methods, this just provides a running total rather than the total from the previous LaTeX run. This method is intended to make it more convenient to work with hooks like `\glslinkcheckfirsthyperhook`, `\glslinkpostsetkeys` or `\glslinkpresetkeys`. See §6.2 for further details.

[top]

## 6.1. Entry Counting (First Use Flag)
[link]

🛈
If you are using bib2gls, you need to use record counting instead (see §11.4).

Entry counting is provided by the base glossaries package and is enabled with `\glsenableentrycount`. This keeps a count of the number of times an entry is marked as used, which is done by hooking into the unset and reset commands (see §5.10). The current running total can be obtained with `\glsentrycurrcount`. The total from the end of the previous LaTeX run can be obtained with `\glsentryprevcount`.

Since entry counting relies on the first use flag, it doesn’t take the `\glstext`-like commands into account.

⚠
Entry counting is incompatible with docdef=true.

The glossaries-extra package modifies `\glsenableentrycount` to allow for the entrycount attribute. This means that you not only need to enable entry counting with `\glsenableentrycount`, but you also need to set the entrycount attribute (see below).

Prior to v1.49, the associated counter was reset back to 0 when the first use flag is reset. This behaviour is now only implemented if the following conditional is true:

📌
``\ifglsresetcurrcount` 〈true〉`\else` 〈false〉`\fi``initial: `\iffalse`
To (locally) change this conditional to true use:
📌
``\glsresetcurrcounttrue``
To (locally) change this conditional to false use:
📌
``\glsresetcurrcountfalse``
As from v1.49, the default is now false. Note that this conditional is also available with glossaries v4.50+.

ℹ
Remember that entry counting only counts the number of times an entry is used by commands that change the first use flag. (That is, all those commands that mark the entry as having been used.) There are many commands that don’t modify this flag and they won’t contribute to the entry use count.

With just the base glossaries package, the associated entry counting commands, such as `\cgls`, are only available when entry counting has been activated with `\glsenableentrycount`. Whereas with glossaries-extra, those commands are always available but behave in the same way as the corresponding `\gls`-like commands if entry counting hasn’t been activated. The commands provided by the shortcuts options, such as `\ac` are defined to use `\cgls` instead of `\gls` etc so you can use them either with or without entry counting.

In order to activate entry counting with glossaries-extra, you not only need to use `\glsenableentrycount` but also need to specify the trigger value.

📌
``\GlsXtrEnableEntryCounting`{〈category-list〉}{〈trigger-value〉}`
This command is provided as a shortcut to activate entry counting and assign the trigger value. This command performs the following:

- •enables entry counting with `\glsenableentrycount`;
- •redefines the `\gls`-like commands to do the equivalent `\cgls` commands (so you don’t need to keep track of which entries have entry counting enabled);
- •sets the entrycount attribute to 〈trigger-value〉 for all the supplied categories;
- •disables the unit counting command (which is incompatible).

If you want to have different trigger values for different categories, you can set the entrycount attribute afterwards for the other category. For example:

    🖹\GlsXtrEnableEntryCounting{abbreviation,acronym}{1}
    \glssetcategoryattribute{general}{2}

If you use `\GlsXtrEnableEntryCounting` multiple times, the repeated instances will simply set the entrycount attribute for the listed categories. So the above can also be written as:

    🖹\GlsXtrEnableEntryCounting{abbreviation,acronym}{1}
    \GlsXtrEnableEntryCounting{general}{2}

The commands like `\cgls` behave like the corresponding `\gls`-like command if the entry count at the end of the previous run was more than a trigger value. With just the base glossaries package, this trigger value is 1. With glossaries-extra you can specify a different value.

ℹ
The appropriate trigger value must be set for the required category or categories.

As with the `\gls`-like commands, the `\cgls` set of commands may also be used with the star (`*`) or plus (`+`) modifiers or the modifier given by `\GlsXtrSetAltModifier`.

If the entry count at the end of the previous run doesn’t exceed the trigger value, the corresponding formatting command is used instead. For example, `\cgls` will use `\cglsformat`. The complete set of commands are:

📌
``\cgls`[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉
If the trigger value has been supplied for the entry’s category and is exceeded, this behaves like `\gls` otherwise it uses:
📌
``\cglsformat`{〈entry-label〉}{〈insert〉}`
This is redefined by glossaries-extra to test whether or not the entry has the regular attribute set or is an abbreviation:

    \renewcommand*{\cglsformat}[2]{%
      \glsifregular{#1}{\glsentryfirst{#1}}%
      {\ifglshaslong{#1}{\glsentrylong{#1}}{\glsentryfirst{#1}}}#2%
    }

This show the first use value if the entry is regular otherwise it will show the long form. The insert is appended at the end.

📌
``\cglspl`[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉
If the trigger value has been supplied for the entry’s category and is exceeded, this behaves like `\glspl` otherwise it uses:
📌
``\cglsplformat`{〈entry-label〉}{〈insert〉}`
This is like `\cglsformat` but uses the plural commands.

📌
``\cGls`[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉
If the trigger value has been supplied for the entry’s category and is exceeded, this behaves like `\Gls` otherwise it uses:
📌
``\cGlsformat`{〈entry-label〉}{〈insert〉}`
This is like `\cglsformat` but uses the sentence case commands.

📌
``\cGlspl`[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉
If the trigger value has been supplied for the entry’s category and is exceeded, this behaves like `\Glspl` otherwise it uses:
📌
``\cGlsplformat`{〈entry-label〉}{〈insert〉}`
This is like `\cglsformat` but uses the plural sentence case commands.

The glossaries-extra package provides some additional commands:

📌
``\cGLS`[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉
If the trigger value has been supplied for the entry’s category and is exceeded, this behaves like `\GLS` otherwise it uses:
📌
``\cGLSformat`{〈entry-label〉}{〈insert〉}`
This simply uses `\cglsformat` converted to uppercase.

📌
``\cGLSpl`[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉
If the trigger value has been supplied for the entry’s category and is exceeded, this behaves like `\GLSpl` otherwise it uses:
📌
``\cGLSplformat`{〈entry-label〉}{〈insert〉}`
This simply uses `\cglsplformat` converted to uppercase.

The test to determine whether or not an entry trips the trigger value is performed by:

📌
``\glsxtrifcounttrigger`{〈entry-label〉}{〈true〉}{〈false〉}`
This obtains the trigger value from the entry’s entrycount attribute.

ℹ
Since these commands require information from the previous LaTeX run, and extra LaTeX call must be added to the build process (before the relevant indexing application).

For example, in the following document the trigger value is set to 1. The CSS entry is only used once (which doesn’t exceed the trigger). The HTML entry is used twice (which does exceed the trigger). The sample entry is only used once, but entry counting hasn’t been enabled on its category (the default general).

    🖹\usepackage[colorlinks]{hyperref}
    \usepackage{glossaries-extra}
    \makeglossaries
    \GlsXtrEnableEntryCounting{abbreviation}{1}
    \newabbreviation{css}{CSS}{cascading style sheet}
    \newabbreviation{html}{HTML}{hypertext markup language}
    \newglossaryentry{sample}{name={sample},description={an example}}
    \begin{document}
    First use: \gls{css}, \gls{html} and \gls{sample}.
    Next use: \gls{html}.
    \printglossaries
    \end{document}

If the document is saved in a file called myDoc.tex then the build process is:

    〉_pdflatex myDoc
    pdflatex myDoc
    makeglossaries myDoc
    pdflatex myDoc

Note the second LaTeX call before makeglossaries. The result is shown below:
🖺
Example 121: Entry counting according to category 📥🖹 📥🖺

Note that the CSS entry only shows the long form, doesn’t appear in the glossary and doesn’t have a hyperlink. This is because the total count from the previous LaTeX run doesn’t exceed the value (1, in this case) that triggers the normal behaviour of `\gls`. The HTML entry has a total count of 2 from the previous LaTeX run, so it’s displayed as normal with the full form on first use and has a hyperlink to its entry in the glossary.

The sample entry is only used once, but it has the default general category, which doesn’t have the entrycount attribute set.

Note that if the build process only had one LaTeX call before running makeglossaries, the HTML entry would also not appear in the glossary. This is because on the first LaTeX run, the total from the previous run is 0 (because there’s no information in the aux file).

The glossaries-extra package also provides the ability to count per sectional unit instead:

📌
``\glsenableentryunitcount``

ℹ
It’s not possible to enable both document-wide entry counting (`\glsenableentrycount`) and unit entry counting (`\glsenableentryunitcount`).

The unit entry counting provides separate totals for each section unit. As above, this uses the entrycount attribute to provide the trigger value but also requires the unitcount attribute, which should be set to the name of the appropriate counter, such as section or chapter.

⚠
Due to the asynchronous nature of TeX’s output routine, discrepancies will occur in page spanning paragraphs if you use the page counter.

As before, there is a command provided to enable the feature and set the corresponding attributes at the same time:

📌
``\GlsXtrEnableEntryUnitCounting`{〈category-list〉}{〈trigger-value〉}{〈counter〉}`
This command performs the following:

- •enables unit entry counting with `\glsenableentryunitcount`;
- •redefines the `\gls`-like commands to do the equivalent `\cgls` commands (so you don’t need to keep track of which entries have entry counting enabled);
- •sets the entrycount attribute to the supplied trigger for all the supplied categories;
- •sets the unitcount attribute to the supplied counter for all the supplied categories;
- •disables the document-wide counting command (which is incompatible).

If you use `\GlsXtrEnableEntryUnitCounting` multiple times, the repeated instances will simply set the entrycount and unitcount attributes for the listed categories.

The counter value is used as part of a label, which means that `\the〈counter-name〉` needs to be expandable. Since hyperref also has a similar requirement and provides `\the〈counter-name〉` as an expandable alternative, glossaries-extra will use `\the〈counter-name〉` if it exists otherwise it will use `\the〈counter-name〉`.

The commands for accessing the totals, `\glsentrycurrcount` and `\glsentryprevcount` have different definitions with unit entry counting and will expand to the total for the current unit. The overall totals can be obtained with additional commands:

📌
``\glsentryprevtotalcount`{〈entry-label〉}`
This expands to the overall total from the previous LaTeX run.

📌
``\glsentryprevmaxcount`{〈entry-label〉}`
This expands to the maximum per-unit total from the previous LaTeX run.

For example:

    🖹\documentclass{article}
    \usepackage[colorlinks]{hyperref}
    \usepackage{glossaries-extra}

    \GlsXtrEnableEntryUnitCounting{abbreviation}{2}{section}

    \makeglossaries
    % category={abbreviation}:
    \newabbreviation{html}{HTML}{hypertext markup language}
    \newabbreviation{css}{CSS}{cascading style sheet}

    % category={general}:
    \newglossaryentry{sample}{name={sample},description={sample}}

    \begin{document}
    \section{Sample}

    Used once: \gls{html}.

    Used three times: \gls{css} and \gls{css} and \gls{css}.

    Used once: \gls{sample}.

    \section{Another Sample}

    Used once: \gls{css}.

    Used twice: \gls{html} and \gls{html}.

    \printglossaries
    \end{document}

As before, if the document is in a file called myDoc.tex then the build process is:

    〉_pdflatex myDoc
    pdflatex myDoc
    makeglossaries myDoc
    pdflatex myDoc

The result is:
🖺
Example 122: Entry unit counting (per section) according to category 📥🖹 📥🖺

In this document, the CSS entry is used three times in the first section. This is more than the trigger value of 2, so ``\gls`{css}` is expanded on first use with the short form used on subsequent use, and the CSS entries in that section are added to the glossary. In the second section, the CSS entry is only used once, which trips the suppression trigger, so in that section, the long form is used and ``\gls`{css}` doesn’t get a line added to the glossary file.

The HTML entry is used a total of three times, but the expansion and indexing suppression trigger is tripped in both sections because the per-unit total (1 for the first section and 2 for the second chapter) is less than or equal to the trigger value.

The sample entry has only been used once, but it doesn’t trip the indexing suppression because it’s in the general category, which hasn’t been listed in `\GlsXtrEnableEntryUnitCounting`.

The per-unit entry counting can be used for other purposes. In the following example document, the trigger value is set to zero, which means the index suppression won’t be triggered, but the unit entry count is used to automatically suppress the hyperlink for commands like `\gls` by modifying the `\glslinkcheckfirsthyperhook` which is used at the end of the macro the determines whether or not to suppress the hyperlink.

    🖹\documentclass{article}
    \usepackage[colorlinks]{hyperref}
    \usepackage{glossaries-extra}
    \makeglossaries
    \GlsXtrEnableEntryUnitCounting{general}{0}{page}
    \newglossaryentry{sample}{name={sample},description={an example}}

    \renewcommand*{\glslinkcheckfirsthyperhook}{%
      \ifnum\glsentrycurrcount\glslabel>0
       \setupglslink{hyper=false}%
      \fi
    }

    \begin{document}

    A \gls{sample} entry.  Next use: \gls{sample}.

    \newpage
    Next page: \gls{sample}.  Again: \gls{sample}.

    \printglossaries
    \end{document}

This only produces a hyperlink for the first instance of ``\gls`{sample}` on each page.
🖺
Example 123: Enabling unit counting to hook into hyperlink setting 📥🖹 📥🖺

The earlier warning about using the page counter still applies. If the first instance of `\gls` occurs at the top of the page within a paragraph that started on the previous page, then the count will continue from the previous page.

[top]

## 6.2. Link Counting
[link]

As from version 1.26, an alternative method of entry counting is to count the number of times the `\gls`-like or `\glstext`-like commands are used. (The “link” in this method’s name refers to the use of the internal command `\@gls@link` not to `\hyperlink` although `\@gls@link` may use `\hyperlink` when displaying the link text.)

To enable link counting use the preamble-only command:

📌
``\GlsXtrEnableLinkCounting`[〈parent counter〉]{〈categories〉}`

where 〈categories〉 is a list of category labels. The optional argument 〈parent counter〉 may be used to identify a parent counter (which must already be defined). If present, the associated link counter will be reset when the parent counter is incremented. This command automatically sets the linkcount attribute for the given categories. If the optional argument is present, it also sets the linkcountmaster attribute.

When enabled, the `\gls`-like and `\glstext`-like commands will increment the associated counter using

📌
``\glsxtrinclinkcounter`{〈counter〉}`
This just does ``\stepcounter`{〈counter〉}` by default but if you need `\refstepcounter` instead, just redefine this command:

    🖹\renewcommand*{\glsxtrinclinkcounter}[1]{\refstepcounter{#1}}

You can access the internal count register using:

📌
``\GlsXtrLinkCounterValue`{〈entry-label〉}`
where 〈label〉 is the entry’s label. This will expand to 0 if the register hasn’t been defined.

It’s also possible to access the display value (`\the〈counter〉`) using

📌
``\GlsXtrTheLinkCounter`{〈entry-label〉}`
(This will expand to 0 if the counter hasn’t been defined.)

ℹ
In order to conserve resources, the counter is only defined when it first needs to be incremented so terms that have been defined but haven’t been used in the document won’t have the associated count register allocated.

You can test if the counter has been defined using:

📌
``\GlsXtrIfLinkCounterDef`{〈entry-label〉}{〈true〉}{〈false〉}`
This expands to 〈true〉 if the link counter associated with the entry identified by 〈entry-label〉 has been defined, otherwise expands to 〈false〉.

The counter name can be obtained using

📌
``\GlsXtrLinkCounterName`{〈entry-label〉}`
This simply expands to the counter name associated with the entry given by 〈entry-label〉 without any check for existence. For example, to change the display command (`\the〈counter〉`) using etoolbox:

    🖹\csdef{the\GlsXtrLinkCounterName{duck}}%
     {\Roman{\GlsXtrLinkCounterName{duck}}}

This is useful if you just want to change the display for specific entries but isn’t convenient if you want to change the display for all entries. Instead, it’s simpler to redefine `\GlsXtrTheLinkCounter`. For example:

    🖹\renewcommand*{\GlsXtrTheLinkCounter}[1]{%
     \GlsXtrIfLinkCounterDef{#1}%
     {\Roman{\GlsXtrLinkCounterName{#1}}}%
     {0}%
    }

In both cases, the redefinition should be implemented after `\GlsXtrEnableLinkCounting`.

Here’s an example document that uses link counting to disable the hyperlink after the first reference. This redefines `\glslinkpresetkeys` (which is used by both `\gls` and `\glstext`) instead of `\glslinkcheckfirsthyperhook` (which is used by `\gls` but not by `\glstext`).

    🖹\documentclass{article}

    \usepackage[colorlinks]{hyperref}
    \usepackage{glossaries-extra}

    \makeglossaries

    \renewcommand*{\glslinkpresetkeys}{%
     \ifnum\GlsXtrLinkCounterValue{\glslabel}>1
      \setupglslink{hyper=false}%
     \fi
    }

    \GlsXtrEnableLinkCounting{general}

    \newglossaryentry{sample1}{name={sample1},description={an example}}
    \newglossaryentry{sample2}{name={sample2},description={another example}}

    \newabbreviation{ex}{ex}{example}

    \begin{document}
    \section{Sample Section}

    \Gls{sample1}, \gls{sample2} and \gls{ex}.
    \Glstext{sample1} and \gls{ex} again.

    \section{Another Sample Section}

    \Gls{sample1}, \gls{sample2} and \gls{ex}.

    \printglossaries
    \end{document}

The use of `\glslinkpresetkeys` means that the options can override this. For example

    🖹\gls[hyper=true]{sample1}

(or simply ``\gls`+{sample1}`) will override the hyper=false setting in `\glslinkpresetkeys`. If `\glslinkpostsetkeys` is used instead, the hyper=false setting will override the setting provided in the optional argument. The resulting document is shown below:
🖺
Example 124: Link counting used to selectively suppress hyperlinks 📥🖹 📥🖺

The abbreviation category doesn’t have the linkcount attribute set (since it’s not listed in the argument of `\GlsXtrEnableLinkCounting`). This means that `\GlsXtrLinkCounterValue` always expands to 0 for the abbreviation (`ex`), so the inequality test:

    🖹\ifnum\GlsXtrLinkCounterValue{\glslabel}>1

will always be false. This means that the abbreviation won’t have hyper=false applied. If the test is changed to

    🖹\ifnum\GlsXtrLinkCounterValue{\glslabel}=1
    \else
     \setupglslink{hyper=false}%
    \fi

Then the abbreviation will always have hyper=false applied.

To reset the counter every section use the optional argument to set the parent counter:

    🖹\GlsXtrEnableLinkCounting[section]{general}

[top]

# 7. Multi (or Compound) Entries
[link]

Nested entries (where the entry definition references other entries) are discussed in §5.4. This chapter deals with occasions where a term or phrase may consist of multiple sub-terms that are independently defined. (Examples in §7.1.5 and §7.1.6 provide workarounds for nested entries.)

For example, the names of bacteria, such as Clostridium botulinum and Clostridium perfringens, are made up of the genus (for example, Clostridium) and the species (for example, botulinum or perfringens). The genus is often abbreviated after first use. For example, C. botulinum. However, if the name is defined as a single term consisting of both the genus and species then it’s not possible to apply the abbreviation when a different species with the same genus is used. Consider the following document:

    🖹\documentclass{article}
    \usepackage{glossaries-extra}
    \setabbreviationstyle{long-only-short-only}
    \newabbreviation{cbot}{C. botulinum}{Clostridium botulinum}
    \newabbreviation{cperf}{C. perfringens}{Clostridium perfringens}
    \begin{document}
    \gls{cbot}, \gls{cbot}, \gls{cperf}.
    \end{document}

The result is:
🖺
Clostridium botulinum, C. botulinum, Clostridium perfringens.
However, it should more typically be:
🖺
Clostridium botulinum, C. botulinum, C. perfringens.
In this case, the genus should actually be a separate definition:

    🖹\documentclass{article}
    \usepackage{glossaries-extra}
    \setabbreviationstyle{long-only-short-only}
    \newabbreviation{clostridium}{C.}{Clostridium}
    \newglossaryentry{botulinum}{name={botulinum},description={}}
    \newglossaryentry{perfringens}{name={perfringens},description={}}
    \begin{document}
    \gls{clostridium} \gls{botulinum},
    \gls{clostridium} \gls{botulinum},
    \gls{clostridium} \gls{perfringens}.
    \end{document}

This is quite awkward to write. This chapter describes how to provide a shortcut for this kind of construct. Each term should be defined as normal (as in the above example), and a “multi-entry” label is then defined with the list of labels of the entries that need to be referenced.

📌
``\multiglossaryentry`[〈options〉]{〈multi-label〉}[〈main-label〉]{〈entry-label-list〉}`
This defines a multi-entry set with the label 〈multi-label〉, consisting of the entries whose labels are listed in 〈entry-label-list〉, where the main entry (which must be present in 〈entry-label-list〉) is identified by 〈main-label〉. If 〈main-label〉 is omitted, it’s assumed to be the final label in 〈entry-label-list〉. The main entry is described in more detail in §7.2.

ℹ
The entries in 〈entry-label-list〉 must already be defined (using commands like `\newglossaryentry` or `\newabbreviation`).

The 〈options〉 are a comma-separated list of options to override the current settings and are described in §7.9.

The earlier example can now be modified to include the following:

    🖹\multiglossaryentry{cbot}{clostridium,botulinum}
    \multiglossaryentry{cperf}{clostridium,perfringens}

These commands must come after the `clostridium`, `botulinum` and `perfringens` definitions.

Once defined, a multi-entry set can be referenced in the document using commands like:

📌
``\mgls`[〈options〉]{〈multi-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉
This command essentially does ``\gls`{〈label〉}` for each item in the 〈label list〉 (with separators, see §7.4). If the final optional argument 〈insert〉 is provided, it will be applied to the final (non-skipped) element in the list. So the document body in the above example, can be rewritten as:

    🖹\mgls{cbot}, \mgls{cbot}, \mgls{cperf}.

There are some variants of `\mgls` listed in §7.11. The available 〈options〉 are listed in §7.10. They are applied after the `\multiglossaryentry` options and will override settings for the individual entries.

ℹ
You can’t use 〈multi-label〉 in commands like `\gls` as this label represents a set of entry labels not a single entry.

The `\multiglossaryentry` command will generate an error if the label has already been defined as a multi-entry.

📌
``\providemultiglossaryentry`[〈options〉]{〈multi-label〉}[〈main-label〉]{〈entry-label-list〉}`
This does nothing if a multi-entry set with the given label has already been defined otherwise it will act like `\multiglossaryentry`. Notes and associated commands applying to `\multiglossaryentry` also apply to `\providemultiglossaryentry` unless otherwise stated.

ℹ
`\multiglossaryentry` may be placed anywhere after the entries listed in 〈label list〉 have been defined. A multi-entry label can’t be referenced (with commands like `\mgls`) before it has been defined.

There is limited support for docdef=true. The multi-entry definition can be picked up from the aux file on the next run to allow cross-references in any glossaries that occur at the start of the document. Any changes made with commands like `\mglsSetMain` won’t be carried over to the next run.

By default `\multiglossaryentry` will be localised to the current scope. If you want to globally define a multi-entry you need to first switch on global definitions with:

📌
``\multiglossaryentryglobaltrue``
To switch back to local definitions use:
📌
``\multiglossaryentryglobalfalse``
You can test if this setting is on with:
📌
``\ifmultiglossaryentryglobal` 〈true〉`\else` 〈false〉`\fi``initial: `\iffalse`

If you want to change the multi-entry options (locally) you can use:

📌
``\mglsSetOptions`{〈multi-label〉}{〈new-options〉}`
This removes the original options and replaces them with 〈new-options〉. If you want to (locally) append to the existing options, use:
📌
``\mglsAddOptions`{〈multi-label〉}{〈new-options〉}`

Note that `\multiglossaryentry` doesn’t make any adjustments to the component entries. You will need to use the parent key when you define the entries if you want a hierarchical structure in your glossary. (See the example in §7.1.1.)

If you don’t want the other elements in the glossary, you can suppress the indexing with indexothers=false (§7.9.1) or put them in an ignored glossary. For example:

    🖹\newignoredglossary{common}
    \newabbreviation[type={common}]{clostridium}{C.}{Clostridium}

The 〈multi-label〉 can’t be used in commands like `\gls` since the label refers to a set of entry labels not to an individual entry. Similarly, an individual entry label can’t be used in commands like `\mgls`. It is possible (although potentially confusing) to use the same label for a multi-entry as for an individual entry (see the example in §7.1.6). Context will determine which is meant, except in the case of the cross-referencing fields (see, seealso and alias) where the cross-referenced label will first be tested if it’s a known multi-entry label.

If you don’t want to have to keep track of which labels refer to multi-entries and which refer to individual entries you can use:

📌
``\GlsXtrMglsOrGls`{〈mgls cs〉}{〈gls cs〉}〈modifier〉[〈options〉]{〈label〉}[〈insert〉]`
where 〈mgls cs〉 is the `\mgls`-like command to use if 〈label〉 has been defined as a multi-entry and 〈gls cs〉 is the `\gls`-like or `\glstext`-like command to use otherwise. The 〈modifier〉 may be omitted, otherwise it’s the modifier that may be used with `\mgls` or `\gls` (asterisk `*`, plus `+` or the token identified with `\GlsXtrSetAltModifier`). The modifier and remaining options are passed to the relevant command (〈mgls cs〉 or 〈gls cs〉).

You may prefer to define your own shortcut commands for common combinations. For example, (assuming these commands haven’t already been defined by the shortcuts option):

    🖹\newcommand{\ac}{\GlsXtrMglsOrGls{\mgls}{\gls}}
    \newcommand{\acp}{\GlsXtrMglsOrGls{\mglsmainpl}{\glspl}}
    \newcommand{\Ac}{\GlsXtrMglsOrGls{\Mgls}{\Gls}}
    \newcommand{\Acp}{\GlsXtrMglsOrGls{\Mglsmainpl}{\Glspl}}

[top]

## 7.1. Examples
[link]

[top]

### 7.1.1. Example: Hierarchical
[link]

Bacteria names are represented by the genus (for example, Clostridium) followed by the species (for example, botulinum). This example has the genus as a parent of the species.

    🖹\documentclass{article}

    \usepackage[colorlinks]{hyperref}
    \usepackage[stylemods=bookindex,style=bookindex]{glossaries-extra}

    \makeglossaries

    \newcommand{\latinname}[1]{\emph{#1}}
    \glssetcategoriesattributes
     {genus,species}{textformat,glossnamefont}{latinname}

    \setabbreviationstyle[genus]{long-only-short-only-desc}
    \newabbreviation
     [category={genus},description={}]
     {clostridium}{C.}{Clostridium}

    \newglossaryentry{botulinum}{name={botulinum},category={species},
      description={},parent={clostridium}}
    \newglossaryentry{perfringens}{name={perfringens},
      category={species},description={},parent={clostridium}}
    \newglossaryentry{tetani}{name={tetani},category={species},
      description={},parent={clostridium}}

    \multiglossaryentry{cbot}{clostridium,botulinum}
    \multiglossaryentry{cperf}{clostridium,perfringens}
    \multiglossaryentry{ctet}{clostridium,tetani}

    \multiglossaryentrysetup{indexothers=false,hyper=allmain}

    \begin{document}
    First use: \mgls{cbot}, \mgls{cperf}, \mgls{ctet}.

    Next use: \mgls{cbot}, \mgls{cperf}, \mgls{ctet}.
    \printglossaries
    \end{document}

This suppresses the indexing of the non-main elements (in this case, the genus). However the genus is included in the glossary (without a location list) because it’s the parent of the species (which are indexed).
🖺
Example 125: Multi-entries: hierarchical 📥🖹 📥🖺

The hyper=allmain option makes the entire content of each `\mgls` a hyperlink to the main entry in the glossary.

[top]

### 7.1.2. Example: Suffix
[link]

This example has a minor modification to the previous one. In this case the multi-entries are defined with a suffix:

    🖹\multiglossaryentry[firstsuffix=botulism]{cbot}{clostridium,botulinum}
    \multiglossaryentry[firstsuffix=gas gangrene]{cperf}{clostridium,perfringens}
    \multiglossaryentry[firstsuffix=tetanus]{ctet}{clostridium,tetani}

The rest of the document is as in §7.1.1.
🖺
Example 126: Multi-entries: hierarchical with first-use suffix 📥🖹 📥🖺

[top]

### 7.1.3. Example: Category Suffix
[link]

This is an alternative to the previous example. Instead of storing the extra information in the firstsuffix key, the information is stored in the user1 key of the last element (the species). A category suffix is used to look up the field and append it.

    🖹\newglossaryentry{botulinum}{name={botulinum},category={species},
      user1={botulism},
      description={},parent={clostridium}}
    \newglossaryentry{perfringens}{name={perfringens},category={species},
      user1={gas gangrene},
      description={},parent={clostridium}}
    \newglossaryentry{tetani}{name={tetani},category={species},
      user1={tetanus},
      description={},parent={clostridium}}

    \mglsdefcategorysuffix{bacteria}{%
     \mglsisfirstuse
     {\glsxtrifhasfield{useri}{\mglslastelementlabel}{ (\glscurrentfieldvalue)}}%
     {}%
    }

    \multiglossaryentry[category=bacteria]{cbot}{clostridium,botulinum}
    \multiglossaryentry[category=bacteria]{cperf}{clostridium,perfringens}
    \multiglossaryentry[category=bacteria]{ctet}{clostridium,tetani}

The result is the same as the previous example.
🖺
Example 127: Multi-entries: hierarchical with category suffix 📥🖹 📥🖺

[top]

### 7.1.4. Example: Separators
[link]

The first example (§7.1.1) can be modified so that the species are also abbreviations. In this case, the separators are modified to suppress the space (`\relax`) if both the genus and species are abbreviated, or to use a non-breaking space (`~`) between the genus short form (shown on subsequent use) and the species long form (shown on first use). If the genus is showing the long form (first use) then a normal space is used.

Note that the separator attributes apply to the category of the element before the separator (not to the multi-entry category).

    🖹\glssetcategoryattribute{genus}{combinedfirstsepfirst}{\space}
    \glssetcategoryattribute{genus}{combinedfirstsep}{\space}
    \glssetcategoryattribute{genus}{combinedsepfirst}{~}
    \glssetcategoryattribute{genus}{combinedsep}{\relax}

    \setabbreviationstyle[species]{long-only-short-only-desc}

    \newabbreviation[category={species},
      description={},parent={clostridium}]{botulinum}{bot.}{botulinum}
    \newabbreviation[category={species},
      description={},parent={clostridium}]{perfringens}{per.}{perfringens}
    \newabbreviation[category={species},
      description={},parent={clostridium}]{tetani}{tet.}{tetani}

This will cause a double dot at the end of the second sentence, which can be suppressed using the discardperiod and retainfirstuseperiod attributes.

    🖹\glssetcategoriesattributes{species}{discardperiod,retainfirstuseperiod}{true}

This works because the final element’s post-link hook is transferred to the multi-entry post-link hook, which can detect the sentence terminating period. If the post-link hook settings are changed, for example, to `postlinks=all,mpostlink=false` then the feature won’t work as the final element’s post-link hook can’t detect the period (because `\gls` is embedded too deeply inside the internal workings of `\mgls`).
🖺
Example 128: Multi-entries: separators 📥🖹 📥🖺

[top]

### 7.1.5. Example: Skipping Elements (Fragment Element)
[link]

This example is an alternative way of dealing with nested links (see §5.4).

    🖹\documentclass{article}

    \usepackage[colorlinks]{hyperref}
    \usepackage[stylemods,style=long]{glossaries-extra}

    \makeglossaries

    \setabbreviationstyle{long-short-sc}
    \newabbreviation{ssi}{ssi}{server-side includes}
    \newabbreviation{html}{html}{hypertext markup language}

    \setabbreviationstyle[combinedabbrv]{long-only-short-sc-only}
    \newabbreviation
     [category={combinedabbrv},
      description={\glsxtrshort{ssi} enabled \glsxtrshort{html}}]
     {shtml-frag}{shtml}{enabled}

    \glssetcategoryattribute{combinedabbrv}{multioptions}
     {usedskipothers=,firstsuffix={\glsxtrshort{\mglslastmainlabel}}}

    \multiglossaryentry
     [category=combinedabbrv]
     {shtml}[shtml-frag]{ssi,shtml-frag,html}

    \begin{document}
    Individual elements first use: \gls{ssi} and \glshtml.

    Individual elements next use: \gls{ssi} and \gls{html}.

    Multi-entry first use: \mgls{shtml}.

    Multi-entry next use: \mgls{shtml}.

    Resetting all\glsresetall\mglsreset{shtml}:

    Multi-entry first use: \mgls{shtml}.

    Multi-entry next use: \mgls{shtml}.

    Individual elements: \gls{ssi} and \gls{html}.
    \printglossaries
    \end{document}

This uses the multioptions attribute to skip “other” elements on subsequent use. The problematic abbreviation (SHTML) is defined as a fragment that simply expands to “enabled” on first use. Note that the description has to be supplied for the glossary. The resulting document is shown below.

🖺
Example 129: Multi-entries: skipping elements 📥🖹 📥🖺

The key difference here from the example using `\glsps` at the end of §5.4 is that the individual elements hyperlink to their respective entries in the glossary on first use of `\mgls`.

The problem is that with the colorlinks package option, it’s not obvious where the hyperlinks start and end. The suffix (shtml) will hyperlink to the “shtml” entry in the glossary, so the “enabled” hyperlink is redundant. The simplest fix for this is to add hyper=notmainfirst to the option list, which will prevent “enabled” from being a hyperlink.

Another problem occurs where `\mgls` is used before the individual elements are used, which leads to their full expansion with a confusing amount of parentheses. A simple solution is to use the option mglsopts=unsetothers, which will unset the other (not-main) elements first. This can be localised with presetlocal but `\gls` will then unset the first use flag globally, which means that the other elements won’t show the full form when they are first used on their on after `\mgls`. This can be switched to a local unset with others=local.

The complete set of options are now:

    🖹\glssetcategoryattribute{combinedabbrv}{multioptions}
     {%
      hyper=notmainfirst,
      mglsopts=presetlocal,unsetothers,others=local,
      usedskipothers,
      firstsuffix=\glsxtrshort{\mglslastmainlabel}
     }

🖺
Example 130: Multi-entries: skipping elements (unsetting others) 📥🖹 📥🖺

This method still has two main drawbacks: the description must be added manually and the long form can’t be accessed with `\glsxtrlong`. The next example provides an alternative approach.

[top]

### 7.1.6. Example: Skipping Elements (Prefix and Post-Link Hooks)
[link]

This is a modified version of the previous example. In this case, the main element isn’t a fragment and also happens to have the same label as the multi-entry set. (``\mgls`{shtml}` references the multi-entry label and ``\gls`{shtml}` references the individual entry.)

In this case, the nested parts are marked up with custom commands:

    🖹\newrobustcmd{\combinedpre}[1]{\glsps{#1}}
    \newrobustcmd{\combinedpost}[1]{\glsps{#1}}

    \newabbreviation{shtml}{shtml}
    {{}\combinedpre{ssi} enabled \combinedpost{html}}

This means that it’s no longer necessary to manually insert the description and the long form can be accessed as usual with ``\glsxtrshort`{shtml}`. Note that it is necessary to define the custom commands robustly otherwise they will need to be protected against premature expansion:

    🖹\newcommand{\combinedpre}[1]{\glsps{#1}}
    \newcommand{\combinedpost}[1]{\glsps{#1}}

    \newabbreviation{shtml}{shtml}
    {{}\protect\combinedpre{ssi} enabled \protect\combinedpost{html}}

In both cases, an initial empty group is added to guard against any sentence case commands, such as `\Glsxtrlong`.

The abbreviations all use the long-postshort-sc-user style, which places the short form in the post-link hook on first use. The `\gls` post-link hook for the main element can be transferred to the `\mgls` post-link using:

    🖹mpostlinkelement=main

All elements have their individual post-link hooks suppressed by default. As in the previous example, the other elements can be skipped on subsequent use:

    🖹usedskipothers

Within `\mgls`, the nested content needs to be suppressed, which can be done by redefining the custom commands. This can be done in the multi-entry prefix. Since the entire content of `\mgls` (except for the final multi-entry post-link hook) occurs inside a group, this redefinition will be localised.

The complete document is as follows:

    🖹\documentclass{article}

    \usepackage[colorlinks]{hyperref}
    \usepackage[stylemods,style=long]{glossaries-extra}

    \makeglossaries

    \setabbreviationstyle{long-postshort-sc-user}

    \newabbreviation{ssi}{ssi}{server-side includes}
    \newabbreviation{html}{html}{hypertext markup language}

    \newrobustcmd{\combinedpre}[1]{\glsps{#1}}
    \newrobustcmd{\combinedpost}[1]{\glsps{#1}}

    \newabbreviation{shtml}{shtml}
    {{}\combinedpre{ssi} enabled \combinedpost{html}}

    \glssetcategoryattribute{combinedabbrv}{multioptions}
     {%
      mpostlinkelement=main,
      usedskipothers
     }

    \multiglossaryentry
     [category=combinedabbrv]
     {shtml}[shtml]{ssi,shtml,html}

    \mglsdefcategoryprefix{combinedabbrv}{%
     \renewcommand{\combinedpre}[1]{\ignorespaces}%
     \renewcommand{\combinedpost}[1]{\unskip}%
    }

    \begin{document}
    Individual elements first use: \gls{ssi} and \gls{html}.

    Individual elements next use: \gls{ssi} and \gls{html}.

    Multi-entry first use: \mgls{shtml}.

    Multi-entry next use: \mgls{shtml}.

    Individual entry first use: \gls{shtml}.

    Resetting all\glsresetall\mglsresetall:

    Multi-entry first use: \mgls{shtml}.

    Multi-entry next use: \mgls{shtml}.

    Individual elements: \gls{ssi} and \gls{html}.

    Resetting all\glsresetall\mglsresetall:

    Individual entry first use: \gls{shtml}.

    Multi-entry first use: \mgls{shtml}. (Wrong!)

    \printglossaries
    \end{document}

This now produces:
🖺
Example 131: Multi-entries: skipping elements (prefix and post-link hooks) 📥🖹 📥🖺

Note the last two paragraphs, which highlights what happens if ``\gls`{shtml}` is used before ``\mgls`{shtml}` when neither of the other elements (`ssi` and `html`) have been used. The final instance of `\mgls` has produced the wrong result. This is because it’s the first use of the multi-entry `shtml` but not the first use of the individual entry `shtml`.

One way around this is to modify the prefix to ensure that the main element’s first use flag matches the multi-entry’s first use flag:

    🖹\mglsdefcategoryprefix{combinedabbrv}{%
     \renewcommand{\combinedpre}[1]{\ignorespaces}%
     \renewcommand{\combinedpost}[1]{\unskip}%
     \mglsisfirstuse
     {\glslocalreset{\mglscurrentmainlabel}}%
     {\glslocalunset{\mglscurrentmainlabel}}%
    }

The showtargets=annoteleft option can be used to mark up the links with the targets. For example, the first instance of ``\mgls`{shtml}` will show as:

🖺
Multi-entry first use: [glo:ssi]◁ssi▷ [glo:shtml]◁enabled▷ [glo:html]◁html▷ (shtml).
Each entry has an individual hyperlink to its own glossary item, which may be confusing. This can be made clearer by suppressing the main element link on first use with:

    🖹hyper=notmainfirst

(as in the previous example), and adjusting the abbreviation style so that the parenthetical content in the post-link hook has a hyperlink:

    🖹\renewcommand*{\glsxtruserparen}[2]{%
      \glsxtrfullsep{#2}%
      \glsxtrparen
       {\glshyperlink[#1]{#2}%
        \ifglshasfield{\glsxtruserfield}{#2}{, \glscurrentfieldvalue}{}%
       }%
    }

The remaining problem is how to deal with the possibility that ``\mgls`{shtml}` may come before the first use of the other elements. For example:

    🖹Multi-entry first use: \mgls{shtml}.

    Individual elements: \glsssi and \gls{html}.

This leads to:
🖺
Multi-entry first use: server-side includes enabled hypertext markup language (shtml).

Individual elements: ssi and html.

This means that the abbreviations ssi and html aren’t explained in the document text. One way around this is to only locally unset the other element first use flags:

    🖹\glssetcategoryattribute{combinedabbrv}{multioptions}
     {%
      hyper=notmainfirst,
      mpostlinkelement=main,
      usedskipothers=,
      mglsopts=others=local
     }

With the above setting, the following:

    🖹\glsresetall\mglsresetall

    Multi-entry first use: \mgls{shtml}.

    Multi-entry next use: \mgls{shtml}.

    Individual elements: \gls{ssi} and \gls{html}.

will now produce:
🖺
Multi-entry first use: server-side includes enabled hypertext markup language (shtml).

Multi-entry next use: shtml.

Individual elements: server-side includes (ssi) and hypertext markup language (html).

[top]

## 7.2. Main and Other Elements
[link]

The list of labels provided in the final argument of `\multiglossaryentry` consists of a main element and all the other elements. If the main element isn’t identified in the optional argument, it’s assumed to be the final element in the list.

The main element allows you to determine which target to use if you want the entire content of `\mgls` to be a single hyperlink. You can also use the settings described in §7.9 to only index the main element.

You can change the main element using: `\mglsSetMain` The new main label provided in the second argument must be in the list corresponding to 〈multi-label〉. This change is locally applied to the current scope. Note that if you are using bib2gls, this change in the document can’t be detected.

The main element can also be used to identify which element should be displayed in the plural with `\mglsmainpl`. For example:

    🖹\newglossaryentry{great}{name={great},description={}}
    \newglossaryentry{little}{name={little},description={}}
    \newglossaryentry{grebe}{name={grebe},description={}}

    \multiglossaryentry{greatgrebe}{great,grebe}
    \multiglossaryentry{littlegrebe}{little,grebe}

In the above, two multi-entries are defined: `greatgrebe` and `littlegrebe`. In both cases the main element is `grebe` (the last element). Using `\mglspl` will show the plural for all elements, but using `\mglsmainpl` will only use the plural for the main element (grebe). For example:

    🖹Plural all: \mglspl{greatgrebe}, \mglspl{littlegrebe}.
    Plural main: \mglsmainpl{greatgrebe}, \mglsmainpl{littlegrebe}.

produces:
🖺
Plural all: greats grebes, littles grebes. Plural main: great grebes, little grebes.

[top]

## 7.3. Prefixes and Suffixes
[link]

A multi-entry may have associated prefixes and suffixes. These are scoped and are placed outside of the hyperlinks and encapsulating commands. They are not affected by case-changing commands, such as `\Mgls`. If you want a prefix to obey case-changing, use the `\mpgls`-like commands instead (§7.11.4).

The prefix is inserted with:

📌
``\mglsprefix``
The default definition is:

    \newcommand*{\mglsprefix}{%
     \ifdefempty\mglscurrentcategory
     {\mglscurrentprefix}%
     {%
       \mglshascategoryprefix{\mglscurrentcategory}%
       {\mglsusecategoryprefix{\mglscurrentcategory}}%
       {\mglscurrentprefix}%
     }%
    }

This will insert the current prefix unless there is prefix command associated with the current category.

The suffix is inserted with:

📌
``\mglssuffix``
This command is defined as follows:

    \newcommand*{\mglssuffix}{%
     \ifdefempty\mglscurrentcategory
     {\ifdefempty\mglscurrentsuffix{}{\space(\mglscurrentsuffix)}}%
     {%
       \mglshascategorysuffix{\mglscurrentcategory}%
       {\mglsusecategorysuffix{\mglscurrentcategory}}%
       {\ifdefempty{\mglscurrentsuffix}{}{\space(\mglscurrentsuffix)}}%
     }%
    }

If there is a suffix associated with the current category, that will be used, otherwise if the current suffix isn’t empty this inserts a space followed by the current suffix in parentheses. You can access the label of the last (non-skipped) element with `\mglslastelementlabel`.

Note that in both cases the category corresponds to the multi-entry category (see §7.8).

To define a category-dependent prefix, use:

📌
``\mglsdefcategoryprefix`{〈category-label〉}{〈definition〉}`
You can reference the current prefix with `\mglscurrentprefix` within 〈definition〉.

To define a category-dependent suffix, use:

📌
``\mglsdefcategorysuffix`{〈category-label〉}{〈definition〉}`
You can reference the current suffix with `\mglscurrentsuffix` within 〈definition〉.

The default definition of `\mglsprefix` tests if there is a category prefix using:

📌
``\mglshascategoryprefix`{〈category-label〉}{〈true〉}{〈false〉}`
This does 〈true〉 if a prefix has been assigned to the given category, otherwise it does 〈false〉.

If you need to obtain the prefix for a particular category, you can use:

📌
``\mglsusecategoryprefix`{〈category-label〉}`
This expands to the prefix, if set, for the given category or to nothing otherwise.

The default definition of `\mglssuffix` tests if there is a category suffix using:

📌
``\mglshascategorysuffix`{〈category-label〉}{〈true〉}{〈false〉}`
This does 〈true〉 if a suffix has been assigned to the given category, otherwise it does 〈false〉.

If you need to obtain the suffix for a particular category, you can use:

📌
``\mglsusecategorysuffix`{〈category-label〉}`
This expands to the suffix, if set, for the given category or to nothing otherwise.

The current prefix `\mglscurrentprefix` and `\mglscurrentsuffix` are obtained as follows:

- •if this is the first use of the multi-entry (§7.7) then the 〈prefix〉 is set to the value of the firstprefix option and the 〈suffix〉 is set to the value of the firstsuffix option;
- •otherwise the 〈prefix〉 is set to the value of the usedprefix option and the 〈suffix〉 is set to the value of the usedsuffix option.

ℹ
The prefix and suffix (if set) are placed outside of the hyperlink and text formatting encapsulator. They are not affected by case-changing commands such as `\Mgls` or `\MGLS`.

For example:

    🖹\setabbreviationstyle{long-only-short-only}
    \newabbreviation{clostridium}{C.}{Clostridium}
    \newglossaryentry{botulinum}{name={botulinum},description={}}

    \multiglossaryentry[firstsuffix=botulism]
     {cbot}{clostridium,botulinum}

On first use, this produces (assuming the “clostridum” element hasn’t been used previously):
🖺
Clostridium botulinum (botulism).
On subsequent use, this produces:
🖺
C. botulinum.

[top]

## 7.4. Separators
[link]

The separators between each instance of `\gls` are given by the following commands, which all take two arguments. The first argument is the label of the previous element. The second argument is the label of the following element.

📌
``\glscombinedsep`{〈prev label〉}{〈next label〉}`
This is inserted between two entries that have both been marked as used. The default definition is:

    🖹\newcommand*{\glscombinedsep}[2]{%
      \glshasattribute{#1}{combinedsep}%
      {\glsgetattribute{#1}{combinedsep}}%
      { }}

This will use the combinedsep attribute for the 〈prev label〉’s category, if set. Otherwise this just does a space. Note that this ignores the second argument.

📌
``\glscombinedfirstsep`{〈prev label〉}{〈next label〉}`
This is inserted between two entries where only the next entry has been marked as used. The default definition is:

    🖹\newcommand*{\glscombinedfirstsep}[2]{%
     \glshasattribute{#1}{combinedfirstsep}%
     {\glsgetattribute{#1}{combinedfirstsep}}%
     {\glscombinedsep{#1}{#2}}%
    }

This will use the combinedfirstsep attribute for 〈prev label〉’s category, if set. If that attribute isn’t set, `\glscombinedsep` is used.

📌
``\glscombinedsepfirst`{〈prev label〉}{〈next label〉}`
This is inserted between two entries where only the previous entry has been marked as used. The default definition is:

    🖹\newcommand*{\glscombinedsepfirst}[2]{%
     \glshasattribute{#1}{combinedsepfirst}%
     {\glsgetattribute{#1}{combinedsepfirst}}%
     {\glscombinedsep{#1}{#2}}%
    }

This will use the combinedsepfirst attribute for 〈prev label〉’s category, if set. If that attribute isn’t set, `\glscombinedsep` is used.

📌
``\glscombinedfirstsepfirst`{〈prev label〉}{〈next label〉}`
This is inserted between two entries where both have been marked as used. The default definition is:

    🖹\newcommand*{\glscombinedfirstsepfirst}[2]{%
     \glshasattribute{#1}{combinedfirstsepfirst}%
     {\glsgetattribute{#1}{combinedfirstsepfirst}}%
     {\glscombinedsep{#1}{#2}}%
    }

This will use the combinedfirstsepfirst attribute for 〈prev label〉’s category, if set. If that attribute isn’t set, `\glscombinedsep` is used.

These commands may be redefined as required. For example, to have no space between two elements that have both been marked as used and are both abbreviations (disregarding category attributes):

    🖹\renewcommand*{\glscombinedfirstsepfirst}[2]{%
     \ifglshasshort{#1}{\ifglshasshort{#2}{}{\space}}{\space}%
    }

There are some commands for redefining the above separators to common combinations.

📌
``\glssetcombinedsepabbrvnbsp``
This does the following:

    🖹\renewcommand*{\glscombinedsep}[2]{%
     \glshasattribute{#1}{combinedsep}%
     {\glsgetattribute{#1}{combinedsep}}%
     {\ifglshasshort{#1}{~}{ }}%
    }%
    \renewcommand*{\glscombinedsepfirst}[2]{%
     \glshasattribute{#1}{combinedsepfirst}%
     {\glsgetattribute{#1}{combinedsepfirst}}%
     {\ifglshasshort{#1}{~}{ }}%
    }%
    \renewcommand*{\glscombinedfirstsep}[2]{%
     \glshasattribute{#1}{combinedfirstsep}%
     {\glsgetattribute{#1}{combinedfirstsep}}%
     { }%
    }%
    \renewcommand*{\glscombinedfirstsepfirst}[2]{%
      \glshasattribute{#1}{combinedfirstsepfirst}%
      {\glsgetattribute{#1}{combinedfirstsepfirst}}%
      { }%
    }

This uses a non-breaking space (`~`) following an abbreviation (that has already been marked as used). Note that if the associated attributes are set the commands will behave according to the attribute.

📌
``\glssetcombinedsepabbrvnone``

    🖹\renewcommand*{\glscombinedsep}[2]{%
     \glshasattribute{#1}{combinedsep}%
     {\glsgetattribute{#1}{combinedsep}}%
     {\ifglshasshort{#1}{}{\ifglshasshort{#2}{}{ }}}%
    }%
    \renewcommand*{\glscombinedsepfirst}[2]{%
     \glshasattribute{#1}{combinedsepfirst}%
     {\glsgetattribute{#1}{combinedsepfirst}}%
     {\ifglshasshort{#1}{}{ }}%
    }%
    \renewcommand*{\glscombinedfirstsep}[2]{%
     \glshasattribute{#1}{combinedfirstsep}%
     {\glsgetattribute{#1}{combinedfirstsep}}%
     {\ifglshasshort{#2}{}{ }}%
    }%
    \renewcommand*{\glscombinedfirstsepfirst}[2]{%
     \glshasattribute{#1}{combinedfirstsepfirst}%
     {\glsgetattribute{#1}{combinedfirstsepfirst}}%
     { }%
    }

This does nothing if either element are abbreviations that have already been used. Note that if the associated attributes are set the commands will behave according to the attribute.

📌
``\glssetcombinedsepnarrow`{〈width〉}{〈narrow-sep〉}`
This is rather more complicated as it measures a field value and uses 〈narrow-sep〉 if the width is less than 〈width〉. The field value is determined as follows:

- •on first use the long field is used if it is set otherwise the first field is used;

- •otherwise the short field is used if it is set otherwise the text field is used;

Note that this doesn’t take into account fonts, hooks, abbreviation styles or plural forms (e.g. `\mglspl`) or other field references (e.g. `\mglsname`). If the associated attributes are set the commands will behave according to the attribute.

[top]

## 7.5. `\mgls` Element Hooks
[link]

The `\mgls`-like commands use the following hooks:

📌
``\mglselementprehook``
This is done before each (non-skipped) element. (Default does nothing.)

📌
``\mglselementposthook``
This is done after each (non-skipped) element. (Default does nothing.) Note that this is different from the normal entry post-link hook `\glspostlinkhook`. If the individual entry post-link hook is enabled (see the postlinks key in §7.9), this will go before `\mglselementposthook`.

The definitions of the following commands are scoped within the `\mgls`-like commands so they can’t be accessed elsewhere (including in the post-link hook, see §7.6). They may be used in the above hooks or in the separator commands (described in §7.4) or in the command used to encapsulate the entire content. They can also be used in the post-link hook (see §5.5) to determine if an entry is being used within a `\mgls`-like command.

📌
``\mglscurrentmultilabel``
Expands to the multi-entry label.

📌
``\mglscurrentmainlabel``
Expands to the label of the main element.

📌
``\mglscurrentlist``
Expands to the complete comma-separated list of elements.

📌
``\mglscurrentoptions``
Expands to the options used when the multi-entry was defined. This doesn’t include options set with `\multiglossaryentrysetup` or those passed to `\mgls` (or whichever variant is being used).

📌
``\mglscurrentcategory``
Expands to the multi-entry category current in effect.

📌
``\glsxtrcurrentmglscsname``
Expands to the control sequence name of the calling command (for example, `mgls` or `mglspl`).

To test if the current multi-entry is the first use:

📌
``\mglsisfirstuse`{〈true〉}{〈false〉}`
This does 〈true〉 if this is the first use otherwise it does 〈false〉. Note that this applies to the multi-entry first use flag not the first use flags of the individual elements.

At each iteration of the loop over the element list, the following commands are set, which can be accessed in hooks such as `\mglselementprehook` or in hooks used by the underlying `\gls` etc commands. For example, if `\mglscurrentlabel` is defined then `\gls` is being used inside `\mgls`.

📌
``\mglscurrentlabel``
Expands to the current element label.

📌
``\mglselementindex``
This is a count register that is set to the element index.

📌
``\mglscurrentprefix``
Expands to the current multi-entry prefix.

📌
``\mglscurrentsuffix``
Expands to the current multi-entry suffix.

📌
``\mglsiflast`{〈true〉}{〈false〉}`
If this is the last iteration, does 〈true〉 otherwise does 〈false〉. This takes the skip options into account, so the last iteration may not necessarily be when the element index is equal to the total number of elements.

[top]

## 7.6. Post-Link Hook
[link]

There is a hook that occurs at the end the `\mgls`-like commands according to the mpostlink setting (see §7.9). The hook used depends on the mpostlinkelement option. These hooks can’t access the commands described in §7.5 as the hook occurs outside of the scope in which they are defined.

The mpostlinkelement=custom option uses:

📌
``\mglscustompostlinkhook``
This does nothing by default.

The mpostlinkelement=last option uses:

📌
``\mglslastelementpostlinkhook``
which emulates the post-link hook of the last element.

The mpostlinkelement=main option uses:

📌
``\mglslastmainpostlinkhook``
which emulates the post-link hook of the main element.

The default settings `postlinks=none, mpostlink=true, mpostlinkelement=last` will suppress the individual element post-link hooks (`\glspostlinkhook`) and do the multi-entry post-link hook for the last element (`\mglslastelementpostlinkhook`).

If you have the final element’s post-link hook enabled and the multi-entry post-link hook enabled (for example, `postlinks=all, mpostlink=true, mpostlinkelement=last`), the final element’s post-link hook will be done twice. Similarly for the main element with `postlinks=all, mpostlink=true, mpostlinkelement=main`.

The following commands are available for use in these hooks and may also be used in the definition of `\mglssuffix`.

📌
``\mglslastmultilabel``
Expands to the multi-entry label.

📌
``\mglslastcategory``
Expands to the multi-entry category (see §7.8). This will be empty if no category was assigned.

📌
``\mglswasfirstuse`{〈true〉}{〈false〉}`
If that was the first use of the multi-entry (see §7.7) this does 〈true〉 otherwise it does 〈false〉.

[top]

### 7.6.1. Last Element
[link]

The following commands relate to the last element.

📌
``\mglslastelementlabel``
Expands to the label of the last non-skipped element. If all elements were skipped or if the multi-entry wasn’t defined, this will be empty.

Test if the last element was skipped:

📌
``\mglsiflastelementskipped`{〈true〉}{〈false〉}`
If the last element was skipped this does 〈true〉 otherwise it does 〈false〉. If all elements were skipped or if the multi-entry wasn’t defined, this will do 〈true〉.

Test if the last element was its first use:

📌
``\mglsiflastelementwasfirstuse`{〈true〉}{〈false〉}`
If the last non-skipped element was used for the first time this does 〈true〉 otherwise it does 〈false〉. (Corresponds to `\glsxtrifwasfirstuse`.) If all elements were skipped or if the multi-entry wasn’t defined, this will do 〈true〉.

Test if the last element was plural:

📌
``\mglsiflastelementwasplural`{〈true〉}{〈false〉}`
If the last non-skipped element had the plural form displayed, this does 〈true〉 otherwise it does 〈false〉. (Corresponds to `\glsifplural`.) If all elements were skipped or if the multi-entry wasn’t defined, this will do 〈false〉.

Test if the last element was had any case-changing applied:

📌
``\mglsiflastelementcapscase`{〈no-change〉}{〈firstuc〉}{〈all caps〉}`
Corresponds to `\glscapscase` of the last non-skipped element. If all elements were skipped or if the multi-entry wasn’t defined, this will do 〈no-change〉.

[top]

### 7.6.2. Main Element
[link]

The following commands relate to the main element.

📌
``\mglslastmainlabel``
Expands to the label of the main element from the multi-entry that was just referenced. If the main element was skipped or if the multi-entry wasn’t defined, this will be empty. If this is the same as `\mglslastelementlabel` then the main element was the last element.

Test if the main element was skipped:

📌
``\mglsiflastmainskipped`{〈true〉}{〈false〉}`
If the main element from the multi-entry that was just referenced was skipped this does 〈true〉 otherwise it does 〈false〉. If the multi-entry wasn’t defined, this will do 〈true〉.

Test if the main element was its first use:

📌
``\mglsiflastmainwasfirstuse`{〈true〉}{〈false〉}`
If the main element was used for the first time this does 〈true〉 otherwise it does 〈false〉. (Corresponds to `\glsxtrifwasfirstuse`.) If the main element was skipped or if the multi-entry wasn’t defined, this will do 〈true〉.

Test if the main element was plural:

📌
``\mglsiflastmainwasplural`{〈true〉}{〈false〉}`
If the main element from the multi-entry that was just referenced had its plural form displayed this does 〈true〉 otherwise it does 〈false〉. (Corresponds to `\glsifplural`.) If the main element was skipped or if the multi-entry wasn’t defined, this will do 〈false〉.

Test if the main element was had any case-changing applied:

📌
``\mglsiflastmaincapscase`{〈no-change〉}{〈firstuc〉}{〈all caps〉}`
Corresponds to `\glscapscase` of the main element from the multi-entry that was just referenced. If the main element was skipped or if the multi-entry wasn’t defined, this will do 〈no-change〉.

[top]

## 7.7. Multi-Entry First Use
[link]

Each multi-entry set has an associated first use flag. This is independent of the first use flag associated with the individual entries that make up the set. As with the `\gls`-like commands, `\mgls` unsets this flag. Unlike the `\glstext`-like commands, all the commands described in §7.11 (including commands like `\mglsname`) unset this flag, even if the elements use commands like `\glsname` that don’t unset the entry’s first use flag.

You can determine whether or not a multi-entry set has been marked as used with:

📌
``\ifmglsused`{〈multi-label〉}{〈true〉}{〈false〉}`
This does 〈true〉 if the given multi-entry has been marked as used, otherwise it does 〈false〉.

You can (globally) unset the flag (mark the set as having been referenced) with:

📌
``\mglsunset`{〈multi-label〉}`
or reset it with:
📌
``\mglsreset`{〈multi-label〉}`
There are also local versions of these commands:
📌
``\mglslocalunset`{〈multi-label〉}`
which locally unsets the flag and
📌
``\mglslocalreset`{〈multi-label〉}`
which locally resets the flag.

It’s also possible to unset or reset all multi-entries.

📌
``\mglsunsetall``
Unsets all multi-entries.

📌
``\mglsresetall``
Resets all multi-entries.

ℹ
Note that unsetting or resetting any of the individual element first use flags doesn’t affect the multi-entry flag. Similarly, unsetting or resetting the multi-entry flag doesn’t affect the first use flags of the individual elements.

[top]

## 7.8. Multi-Entry Category
[link]

A multi-entry set may have an associated category set using the category key described in §7.9. This isn’t set by default, but if it is set the category may have attributes set in the usual way. The multi-entry category is independent of the individual entry categories. The following attribute is recognised by commands like `\mgls`:

🎚
`multioptions=〈options〉`
The value are the default options to apply to any multi-entry set with the given category. These can be overridden by the first optional argument of `\multiglossaryentry` or by the setup key in the first optional argument of commands like `\mgls`.

🎚
`combinedfirstsep=〈separator〉`
The separator to use for `\glscombinedfirstsep`.

🎚
`combinedfirstsepfirst=〈separator〉`
The separator to use for `\glscombinedfirstsepfirst`.

🎚
`combinedsepfirst=〈separator〉`
The separator to use for `\glscombinedsepfirst`.

🎚
`combinedsep=〈separator〉`
The separator to use for `\glscombinedsep`.

Note that you can’t access the category or its attributes via the multi-entry label (for example, with `\glshasattribute`). If you need to access the current multi-entry’s category within any of the `\mgls`-like hooks (§7.5), you can obtain the category with `\mglscurrentcategory` and use commands like `\glshascategoryattribute`.

[top]

## 7.9. Multi-Entry Settings
[link]

The settings that govern all multi-entries can be set using:

📌
``\multiglossaryentrysetup`{〈options〉}`
The 〈options〉 are the same as for `\multiglossaryentry`.

Whenever the `\mgls`-like commands are used, options are applied in the following order:

1. 1.general options identified by `\multiglossaryentrysetup`;

2. 2.the category key is assigned if it’s in the general options, `\multiglossaryentry` or setup key;

3. 3.multioptions category attribute (if set);

4. 4.any options provided in the first optional argument of `\multiglossaryentry`;

5. 5.any options provided in the setup key in the first optional argument of the `\mgls`-like command.

These options are described below.

[top]

### 7.9.1. Indexing
[link]

🎚
`indexmain=〈value〉`default: true; initial: true
This setting may take one of the following values:

false don’t index the main entry; true index the main entry; first only index the main entry if it’s the first use (of the main entry).

🎚
`indexothers=〈value〉`default: true; initial: true
This setting may take one of the following values:

false don’t index the other entries; true index the other entries; first only index the other entries if it’s the first use (of the non-main entry).

[top]

### 7.9.2. Location Formats (Encaps)
[link]

🎚
`encapmain=〈value〉`initial: glsnumberformat
This setting value should be the value to pass to format option (location encap) for the main entry.

🎚
`encapothers=〈value〉`initial: glsnumberformat
This setting value should be the value to pass to format option (location encap) for the other (not main) entries.

[top]

### 7.9.3. Post-Link Hooks
[link]

🎚
`postlinks=〈value〉`initial: none
This setting determines whether or not to enable the individual element’s post-link hook. The value may be one of:

none suppress the post-link hook for all elements; all don’t suppress the post-link hook for all elements; notlast only suppress the post-link hook for the last element; mainnotlast suppress the post-link hook for all “other” (not main) elements and for the last element (so only the main element will have its post-link hook as long as it’s not the last element); mainonly suppress the post-link hook for all “other” (not main) elements; othernotlast suppress the post-link hook for the main element and for the last element (so only the other elements will have their post-link hook as long as the element isn’t the last one); otheronly suppress the post-link hook for the main element.

🎚
`mpostlink=〈value〉`default: true; initial: true
This setting determines whether or not to enable the multi-entry post-link hook (see §7.6). The value may be one of:

false suppress the multi-entry post-link hook; true enable the multi-entry post-link hook; firstonly enable the multi-entry post-link hook only for the first use of the multi-entry; usedonly enable the multi-entry post-link hook only for the subsequent use of the multi-entry.

🎚
`mpostlinkelement=〈value〉`initial: last
This setting indicates which post-link hook should be used if the multi-entry post-link hook has been enabled. Allowed values:

last use `\mglslastelementpostlinkhook` (that is, use the post-link hook for the last element); main use `\mglslastmainpostlinkhook` (that is, use the post-link hook for the main element); custom use `\mglscustompostlinkhook`.

⚠
Some combinations may cause a repeated hook.

[top]

### 7.9.4. Prefixes and Suffixes
[link]

See §7.3 for more information on prefixes and suffixes. Note that the prefixes and suffixes are not affected by case-changing commands such as `\Mgls` or `\MGLS`. If you want a prefix to obey case-changing, use the `\mpgls`-like commands instead (see §7.11.4).

🎚
`firstprefix=〈value〉`
The prefix to use on first use of the multi-entry.

🎚
`usedprefix=〈value〉`
The prefix to use on subsequent use of the multi-entry.

🎚
`firstsuffix=〈value〉`
The suffix to use on first use of the multi-entry.

🎚
`usedsuffix=〈value〉`
The suffix to use on subsequent use of the multi-entry.

[top]

### 7.9.5. Skipping Elements
[link]

🛈
The skip options apply to the multi-entry first use flag not the individual element first use. See §7.7.

🔘︎
`firstskipmain=〈boolean〉`default: true; initial: false
If true, the main element will be omitted on (multi-entry) first use.

🔘︎
`firstskipothers=〈boolean〉`default: true; initial: false
If true, the other (non-main) elements will be omitted on (multi-entry) first use.

🔘︎
`usedskipmain=〈boolean〉`default: true; initial: false
If true, the main element will be omitted on (multi-entry) subsequent use.

🔘︎
`usedskipothers=〈boolean〉`default: true; initial: false
If true, the other (non-main) elements will be omitted on (multi-entry) subsequent use.

Note that it is technically possible to set the skip options so that both the main and the other elements are skipped. However, by default, this will generate a warning and only the final optional argument (the 〈insert〉) will be displayed. There won’t be a loop over all elements so the commands set at each iteration, such as `\mglscurrentlabel`, won’t be defined.

The warning and the insertion of the 〈insert〉 is done by:

📌
``\glsxtrmglsWarnAllSkipped`{〈message〉}{〈insert〉}{〈fmt-cs〉}`
where 〈message〉 is the warning message and 〈cs〉 is the control sequence that encapsulates the entire content (including hyperlink and the textformat setting, if enabled).

If, for some particular reason, you want this scenario, you can redefine this command to omit the warning.

[top]

### 7.9.6. General
[link]

🎚
`hyper=〈value〉`initial: individual
This setting may take one of the following values:

none no hyperlinks; allmain encapsulate the entire content with a single hyperlink to the main entry’s target; mainonly only hyperlink the main entry; individual hyperlink each entry individually; otheronly only hyperlink the other entries; notmainfirst don’t hyperlink the main entry on multi-entry first use; nototherfirst don’t hyperlink the other entries on multi-entry first use; notfirst don’t hyperlink any entries on multi-entry first use.

🎚
`textformat=〈value〉`initial: @firstofone
This setting value should be the control sequence name (without the leading backslash) of the command used to encapsulate the entire content.

🎚
`category=〈category-label〉`
The category to apply to the multi-entry. This is independent of the categories of each of the elements. The default is no category. See §7.8.

🎚
`mglsopts=〈option list〉`
Default options to pass to commands like `\mgls`. Note that setup can’t be used within this value.

[top]

## 7.10. `\mgls` Options
[link]

The 〈options〉 for `\mgls` (and similar commands) are listed below. Any additional options provided will be appended to the all value. For example:

    🖹\mgls[counter=chapter]{cbot}

is equivalent to:

    🖹\mgls[all=counter=chapter]{cbot}

Whereas:

    🖹\mgls[counter=chapter,all=counter=section]{cbot}

is treated as:

    🖹\mgls[all=counter=section,counter=chapter]{cbot}

which has the same effect as:

    🖹\mgls[all=counter=chapter]{cbot}

🛈
The descriptions below reference `\gls` which is used internally by `\mgls`. Replace this with `\glspl` etc as applicable for the variants, such as `\mglspl`.

🎚
`setup=〈option list〉`
The value should be a list of any options that can be passed to `\multiglossaryentrysetup`. These options will override any conflicting options that were supplied to `\multiglossaryentry` or `\multiglossaryentrysetup`. Note that mglsopts can’t be used within this value.

🎚
`all=〈option list〉`
The value should be a list of any options that can be passed to `\gls`. These options will be passed to each instance of `\gls` and will override any conflicting setting in setup.

🎚
`main=〈option list〉`
The value should be a list of any options that can be passed to `\gls`. These options will be passed to the instance of `\gls` used for the main label and will override any conflicting setting in all.

🎚
`others=〈option list〉`
The value should be a list of any options that can be passed to `\gls`. These options will be passed to each instance of `\gls` used for the other (not main) labels and will override any conflicting setting in all.

🔘︎
`hyper=〈boolean〉`default: true
A boolean option to determine whether or not to use hyperlinks (if supported). This may cause a conflict with other options, but is essentially provided to allow the starred version of `\mgls` to switch off all hyperlinks.

🎚
`multiunset=〈value〉`initial: global
This only applies to the multi-entry first use flag, described in §7.7, not the first use flags of the elements. The value may be one of:

global globally unset the flag; local locally unset the flag; none don’t unset the flag.

🔘︎
`presetlocal=〈boolean〉`default: true; initial: false
A boolean option that governs whether or not the following options should have a local or global effect.

🔘︎
`resetall=〈boolean〉`default: true; initial: false
A boolean option to determine whether or not to reset all elements before using `\gls`. This option refers to the individual entry’s first use flag not the multi-entry first use flag. (This is similar to passing prereset to each `\gls` but it’s also applied to any skipped elements.)

🔘︎
`resetmain=〈boolean〉`default: true; initial: false
A boolean option to determine whether or not to reset the main entry’s first use flag before using `\gls`.

🔘︎
`resetothers=〈boolean〉`default: true; initial: false
A boolean option to determine whether or not to reset the first use flag of all the other (not main) elements before using `\gls`.

🔘︎
`unsetall=〈boolean〉`default: true; initial: false
A boolean option to determine whether or not to unset all elements before using `\gls`. This option refers to the individual entry’s first use flag not the multi-entry first use flag. (This is similar to passing preunset to each `\gls` but it’s also applied to any skipped elements.)

🔘︎
`unsetmain=〈boolean〉`default: true; initial: false
A boolean option to determine whether or not to unset the main entry’s first use flag before using `\gls`.

🔘︎
`unsetothers=〈boolean〉`default: true; initial: false
A boolean option to determine whether or not to unset the first use flag of all the other (not main) elements before using `\gls`.

The reset… options all use:

📌
``\mglselementreset`{〈entry-label〉}`
The unset… options all use:
📌
``\mglselementunset`{〈entry-label〉}`
These take the presetlocal into account.

An alternative way of resetting the other elements is to use:

📌
``\mglsunsetothers`{〈multi-label〉}`
or for a local reset:
📌
``\mglslocalunsetothers`{〈multi-label〉}`

[top]

## 7.11. Variants of `\mgls`
[link]

The commands listed in this section all behave like `\mgls`. These (including `\mgls` itself) are collectively referred to as the `\mgls`-like commands. All commands unset the multi-entry first use flag (unless the multiunset=none option is applied). Only those commands that use the `\gls`-like commands (such as `\gls` or `\glspl`) will unset the individual entry’s first use flag.

[top]

### 7.11.1. `\gls`-like
[link]

📌
``\mglspl`[〈options〉]{〈multi-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉
This uses `\glspl` instead of `\gls` for each entry.

📌
``\mglsmainpl`[〈options〉]{〈multi-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉
This uses `\glspl` instead of `\gls` for the main entry and `\gls` for all the other entries.

📌
``\Mgls`[〈options〉]{〈multi-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉
This uses `\Gls` for the first entry and `\gls` for the other entries.

📌
``\MGls`[〈options〉]{〈multi-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉
This uses `\Gls` for all entries.

📌
``\Mglspl`[〈options〉]{〈multi-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉
This uses `\Glspl` for the first entry and `\glspl` for the remaining entries.

📌
``\Mglsmainpl`[〈options〉]{〈multi-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉
The first entry uses the appropriate sentence case command. The plural form is used for the main entry. So, if the first entry is also the main entry, `\Glspl` is used, otherwise `\Gls` is used. For the remaining entries, `\glspl` will be used if the entry is the main one, otherwise `\gls` will be used.

📌
``\MGlspl`[〈options〉]{〈multi-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉
This uses `\Glspl` for all entries.

📌
``\MGlsmainpl`[〈options〉]{〈multi-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉
This uses `\Glspl` for the main entry and `\Gls` for the other entries.

📌
``\MGLS`[〈options〉]{〈multi-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉
This uses `\GLS` for all entries.

📌
``\MGLSpl`[〈options〉]{〈multi-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉
This uses `\GLSpl` instead of `\gls` for each entry.

📌
``\MGLSmainpl`[〈options〉]{〈multi-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉
This uses `\GLSpl` for the main entry and `\GLS` for the others.

[top]

### 7.11.2. Abbreviations
[link]

📌
``\mglsshort`[〈options〉]{〈multi-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉
This will use `\glsxtrshort` for any entries that have the short field set and will use `\glstext` otherwise.

📌
``\mglslong`[〈options〉]{〈multi-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉
This will use `\glsxtrlong` for any entries that have the long field set and will use `\glstext` otherwise.

📌
``\mglsfull`[〈options〉]{〈multi-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉
This will use `\glsxtrfull` for any entries that have the short field set and will use `\glsfirst` otherwise.

📌
``\Mglsshort`[〈options〉]{〈multi-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉
As `\mglsshort` but sentence case for the first entry.

📌
``\Mglslong`[〈options〉]{〈multi-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉
As `\mglslong` but sentence case for the first entry.

📌
``\Mglsfull`[〈options〉]{〈multi-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉
As `\mglsfull` but sentence case for the first entry.

[top]

### 7.11.3. Other Fields
[link]

📌
``\mglsname`[〈options〉]{〈multi-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉
This uses `\glsname` for each entry.

📌
``\Mglsname`[〈options〉]{〈multi-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉
This uses `\Glsname` for the first entry and `\glsname` for the remaining entries.

📌
``\MGlsname`[〈options〉]{〈multi-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉
This uses `\Glsname` for each entry.

📌
``\mglssymbol`[〈options〉]{〈multi-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉
This uses `\glssymbol` for each entry if the symbol field has been set, otherwise it uses `\gls`.

📌
``\MGlssymbol`[〈options〉]{〈multi-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉
This uses `\glssymbol` if the symbol field has been set otherwise it uses `\Gls` for each element. (Note that no case change is applied to the symbol as this usually isn’t appropriate.)

📌
``\Mglssymbol`[〈options〉]{〈multi-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉
As `\MGlssymbol`, but `\Gls` is only used for the first element (if it doesn’t have the symbol field set).

📌
``\mglsusefield`[〈options〉]{〈multi-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉
If the field given by `\mglsfield` exists for an element, `\glsdisp` will be used for that element, with the link text obtained from the field value (followed by the 〈insert〉), otherwise `\gls` will be used.

📌
``\mglsfield``initial: useri
This command expands to the internal field label required by `\mglsusefield`. The default value is `useri`, which corresponds to the user1 key.

📌
``\Mglsusefield`[〈options〉]{〈multi-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉
As `\mglsusefield` but sentence case for the first element.

📌
``\MGlsusefield`[〈options〉]{〈multi-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉
As `\mglsusefield` but sentence case for each element.

You can use the pre-element hook `\mglselementprehook` to locally redefine `\mglsfield`. Examples:

1. 1.if the multi-category is “sample” then use the user2 field otherwise use the user1 field:

       🖹\renewcommand{\mglselementprehook}{%
         \ifdefstring{\mglscurrentcategory}{sample}%
         {\renewcommand{\mglsfield}{userii}}%
         {\renewcommand{\mglsfield}{useri}}%
       }

2. 2.if the element’s category is “sample” then use the user2 field otherwise use the user1 field:

       🖹\renewcommand{\mglselementprehook}{%
         \glsifcategory{\mglscurrentlabel}{sample}%
         {\renewcommand{\mglsfield}{userii}}%
         {\renewcommand{\mglsfield}{useri}}%
       }

3. 3.if either the multi-entry’s category or the element’s category has the custom attribute “mglsfield” set then use it otherwise use the user1 field:

       🖹\renewcommand{\mglselementprehook}{%
        \glshascategoryattribute{\mglscurrentcategory}{mglsfield}%
        {\renewcommand{\mglsfield}{\glsgetcategoryattribute{\mglscurrentcategory}{mglsfield}}}%
        {%
          \glshasattribute{\mglscurrentlabel}{mglsfield}%
          {\renewcommand{\mglsfield}{\glsgetattribute{\mglscurrentlabel}{mglsfield}}}%
          {\renewcommand{\mglsfield}{useri}}%
        }%
       }

[top]

### 7.11.4. Support for glossaries-prefix (`\pgls`)
[link]

If you load the glossaries-prefix package (either after glossaries-extra) or with the prefix package option, then the following commands will use one of the `\pgls`-like commands provided by that package. (See the glossaries user manual for further details.)

If the glossaries-prefix package hasn’t been loaded then `\gls` (or analogous case-changing variant) will be used instead and a warning is issued with:

📌
``\mpglsWarning``
This may be redefined to do nothing to remove the warning.

📌
``\mpgls`[〈options〉]{〈multi-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉
Uses `\pgls` for the first element and `\gls` for the remaining elements.

📌
``\mpglspl`[〈options〉]{〈multi-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉
Uses `\pglspl` for the first element and `\glspl` for the remaining elements.

📌
``\mpglsmainpl`[〈options〉]{〈multi-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉
Only uses the plural form for the main element. The first element uses the prefixing command (`\pgls` or `\pglspl`, depending on whether the first element is the main element).

📌
``\Mpgls`[〈options〉]{〈multi-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉
Uses `\Pgls` for the first element and `\gls` for the remaining elements.

📌
``\Mpglsmainpl`[〈options〉]{〈multi-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉
Only uses the plural form for the main element. The first element uses the sentence case prefixing command (`\Pgls` or `\Pglspl`, depending on whether the first element is the main element).

📌
``\MPGls`[〈options〉]{〈multi-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉
Uses `\Pgls` for the first element and `\Gls` for the remaining elements.

📌
``\MPGlspl`[〈options〉]{〈multi-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉
Uses `\Pglspl` for the first element and `\Glspl` for the remaining elements.

📌
``\MPGlsmainpl`[〈options〉]{〈multi-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉
Only uses the plural form for the main element. The first element uses the prefixing command (`\Pgls` or `\Pglspl`, depending on whether the first element is the main element). All elements are use sentence case.

📌
``\MPGLS`[〈options〉]{〈multi-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉
Uses `\PGLS` for the first element and `\GLS` for the remaining elements.

📌
``\MPGLSpl`[〈options〉]{〈multi-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉
Uses `\PGLSpl` for the first element and `\GLSpl` for the remaining elements.

📌
``\MPGLSmainpl`[〈options〉]{〈multi-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉
Only uses the plural form for the main element. All elements are converted to all caps. The first element uses the prefixing command (`\PGLS` or `\PGLSpl`, depending on whether the first element is the main element).

[top]

## 7.12. Cross-References
[link]

Multi-entry labels may be used in the cross-referencing keys see and seealso. The formatting command will use:

📌
``\mglsseefirstitem`{〈multi-label〉}`
for the first item in the list (if it’s a multi-entry) and
📌
``\mglsseeitem`{〈multi-label〉}`
for any subsequent items that are multi-entries. The default definition of `\mglsseeitem` is:

    \newcommand*{\mglsseeitem}[1]{%
     \mglsname[all=noindex,setup={hyper=allmain}]{#1}%
    }

This switches off indexing, sets the hyperlink to encompass the entire multi-entry content and uses the name field. The default definition of `\mglsseefirstitem` is simply `\mglsseeitem`.

For example, to use the short or text fields:

    \renewcommand*{\mglsseeitem}[1]{%
     \mglsshort[all=noindex,setup={hyper=allmain}]{#1}%
    }

A multi-entry label may also be used in the alias key. The hyperlink target will be the target for the main entry. For example:

    🖹\multiglossaryentry{cbot}{clostridium,botulinum}
    \newglossaryentry{botox}{name={botox},description={},alias={cbot}}

In this case ``\gls`{botox}` will hyperlink to the `botulinum` target.

ℹ
Any multi-entries used in the cross-referencing keys must be defined before the glossary is displayed. There is some support for docdef=true but not for the other docdef settings.

[top]

## 7.13. Additional Commands
[link]

You can test if a label represents a multi-entry using:

📌
``\glsxtrifmulti`{〈multi-label〉}{〈true〉}{〈false〉}`
This does 〈true〉 if a multi-entry has been defined with the label 〈multi-label〉 otherwise it does 〈false〉.

📌
``\glsxtrmultimain`{〈multi-label〉}`
Expands to the main entry label for the multi-entry identified by 〈multi-label〉 or nothing if not defined.

📌
``\glsxtrmultilist`{〈multi-label〉}`
Expands to the list of element labels for the multi-entry identified by 〈multi-label〉 or nothing if not defined.

📌
``\mglsforelements`{〈multi-label〉}{〈cs〉}{〈body〉}`
Iterates over all the list of element labels for the multi-entry identified by 〈multi-label〉. This defines 〈cs〉 to the current element label on each iteration of the loop, which can be used to reference the label in 〈body〉. This internally uses `\@for` (patched by the xfor package, which allows the loop to be broken).

📌
``\mglsforotherelements`{〈multi-label〉}{〈cs〉}{〈body〉}`
As `\mglsforelements` but skips the main entry label.

📌
``\glsxtrmultitotalelements`{〈multi-label〉}`
Expands to the total number of elements in the given multi-entry or nothing if 〈multi-label〉 hasn’t been defined.

📌
``\glsxtrmultimainindex`{〈multi-label〉}`
Expands to the index of the main element in the given multi-entry or nothing if 〈multi-label〉 hasn’t been defined. Indexing starts from 1 for the first element.

📌
``\glsxtrmultilastotherindex`{〈multi-label〉}`
Expands to the index of the final non-main element in the given multi-entry or nothing if 〈multi-label〉 hasn’t been defined.

The `\multiglossaryentry` command will write the label information to the aux file using:

📌
``\writemultiglossentry`{〈options〉}{〈multi-label〉}{〈main-label〉}{〈list〉}`
This is will write the following line to the aux file:
📌
``\@glsxtr@multientry`{〈options〉}{〈multi-label〉}{〈main-label〉}{〈list〉}`
This is provided to support docdef=true and also for the benefit of any tools that require the information (such as bib2gls or autocompletion tools). If it’s not required and causes too much clutter, it can be disabled by redefining `\writemultiglossentry` to do nothing.

[top]

## 7.14. bib2gls
[link]

In the bib2gls v2.9+ user manual, these multi-entry sets are referred to as “compound entries” or “compound sets” to differentiate them from bib2gls’s multi-entry types (such as `@dualentry`).

Each instance of one of the `\mgls`-like commands is written to the aux file and so can be picked up by bib2gls (at least version 2.9). The resource option can be used to determine whether or not to consider the other (non-main) elements to be dependent on the main element.

With bib2gls, you can either define the compound entries in the document with `\multiglossaryentry` (or `\providemultiglossaryentry`) or you can use the `@compoundset` entry type in a bib file. Whichever method you use, remember that the entries that form the elements of the set must be defined first. See the bib2gls manual (v2.9+) for further details.

You can use the resource option compound-adjust-name to replace the name field of the main entry to:

📌
``\glsxtrmultientryadjustedname`{〈sublist1〉}{〈name〉}{〈sublist2〉}{〈multi-label〉}`
where 〈multi-label〉 is the label identifying the compound set, 〈name〉 was the value of the name before adjustment, 〈sublist1〉 is the sub-list of other element labels before the main element (empty if the main element is the first element in the list), and 〈sublist2〉 is the sub-list of other elements after the main element (empty if the main label is the final element).

This command is defined in glossaries-extra-bib2gls, which is automatically loaded with record=only and record=nameref. Case-changing versions of this command are also available.

📌
``\Glsxtrmultientryadjustedname`{〈sublist1〉}{〈name〉}{〈sublist2〉}{〈multi-label〉}`
This is a sentence case version of `\glsxtrmultientryadjustedname`.

📌
``\GlsXtrmultientryadjustedname`{〈sublist1〉}{〈name〉}{〈sublist2〉}{〈multi-label〉}`
This is a title case version of `\glsxtrmultientryadjustedname`.

📌
``\GLSxtrmultientryadjustedname`{〈sublist1〉}{〈name〉}{〈sublist2〉}{〈multi-label〉}`
This is an all caps version of `\glsxtrmultientryadjustedname`.

Note that the above commands don’t take the prefix or suffix into account (see §7.3).

The separator between each element in the sub-lists is produced with:

📌
``\glsxtrmultientryadjustednamesep`{〈pre-label〉}{〈post-label〉}`
The default definition just uses `\glscombinedfirstsepfirst`.

The separator between the last element of 〈sublist1〉 and the main element is produced with:

📌
``\glsxtrmultientryadjustednamepresep`{〈pre-label〉}{〈post-label〉}`
Similarly for the separator between the main element and the first element of 〈sublist2〉:
📌
``\glsxtrmultientryadjustednamepostsep`{〈pre-label〉}{〈post-label〉}`
These both default to `\glsxtrmultientryadjustednamesep`.

The 〈name〉 is encapsulated with:

📌
``\glsxtrmultientryadjustednamefmt`{〈text〉}`
This just does its argument by default. If 〈sublist1〉 is empty for the sentence case version, then 〈name〉 is encapsulated with:
📌
``\Glsxtrmultientryadjustednamefmt`{〈text〉}`
This does `\makefirstuc`{text} by default. For the title case version, the name is encapsulated with:
📌
``\GlsXtrmultientryadjustednamefmt`{〈text〉}`
This uses `\glscapitalisewords`, if defined, or `\capitalisewords` otherwise. The all caps version uses:
📌
``\GLSxtrmultientryadjustednamefmt`{〈text〉}`
This uses `\mfirstucMakeUppercase` by default.

Each element label in the sub-lists is encapsulated with:

📌
``\glsxtrmultientryadjustednameother`{〈text〉}`
This does ``\glsentryname`{〈label〉}` by default. For the sentence case version (where 〈sublist1〉 isn’t empty), then the element label is encapsulated with:
📌
``\Glsxtrmultientryadjustednameother`{〈text〉}`
This does ``\Glsentryname`{〈label〉}` by default. The title case version uses:
📌
``\GlsXtrmultientryadjustednameother`{〈text〉}`
This does ``\glsentrytitlecase`{〈label〉}{name}` by default. The all caps version uses:
📌
``\GLSxtrmultientryadjustednameother`{〈text〉}`
This is defined as:

    \newcommand*{\GLSxtrmultientryadjustednameother}[1]{%
     \mfirstucMakeUppercase{\glsentryname{#1}}}

[top]

# 8. Defining and Displaying Glossaries
[link]

As with the base glossaries package, you need to establish the indexing method in the preamble and use the appropriate `\print〈…〉glossary` command. For example, to use the “noidx” method you need `\makenoidxglossaries` in the preamble and `\printnoidxglossary` in the document. Whereas if you want to use makeindex or xindy, you need `\makeglossaries` in the preamble and `\printglossary` in the document. The glossaries-extra package provides a hybrid approach:

📌
``\makeglossaries`[〈types〉]`
If the optional argument is present, then 〈types〉 should be a comma-separated list of glossary labels that should be processed by makeindex or xindy as per the normal behaviour of `\makeglossaries`. Any non-ignored glossaries that are not listed in 〈types〉 should be treated as though `\makenoidxglossaries` was used. This means that the glossaries listed in 〈types〉 should be displayed using `\printglossary` and the other (non-ignored glossaries) should be displayed with `\printnoidxglossary`. See sample-mixedsort.tex for an example.

If the optional argument is omitted, it will be treated as per the original `\makeglossaries` provided by the base glossaries package. If the optional argument is present, `\glsindexingsetting` will be set to `makeindex-noidx` or `xindy-noidx`, depending on whether makeindex or xindy should be used.

🛈
Glossaries can’t be defined after `\makeglossaries`. This ensures that all the required indexing files are opened. If you’re not using `\makeglossaries`, glossaries need to be defined before any entries that should belong to them are defined.

The base glossaries package provides `\newignoredglossary` to define an ignored glossary that doesn’t have any associated indexing files. This will automatically switch off hyperlinks for any entries assigned to the glossary (since there will be no target). With glossaries-extra, it’s possible to have targets without using the indexing methods provided by the base package. For example, it’s possible to have standalone entries (see §8.5) or targets can be created with `\printunsrtglossary`, so glossaries-extra provides a starred version.

📌
``\newignoredglossary*`{〈glossary-label〉}`
This behaves like the unstarred version but doesn’t disable hyperlinks. The glossary will still be omitted by iterative commands, such as `\printunsrtglossaries`, and can’t be used with `\printglossary` or `\printnoidxglossary`. If you use an ignored glossary with `\printunsrtglossary`, you will need to use the title option to override the default title, if required.

📌
``\provideignoredglossary`{〈glossary-label〉}`modifier: *
This is like `\newignoredglossary` but does nothing if the glossary has already been defined.

With the indexing options provided by the base glossaries package, if you want a term to appear in more than one glossary, it’s necessary to define a duplicate entry with a different label. With the “unsrt” family of commands, the same entry can appear in multiple glossaries. This can be done by simply copying the entry’s label to the required glossary using:

📌
``\glsxtrcopytoglossary`{〈entry-label〉}{〈glossary-type〉}`modifier: *
This just adds the label to the target glossary’s internal comma-separated list that commands like `\printunsrtglossary` iterate over. The unstarred version locally adds the label. The starred version performs a global change.

⚠
`\glsxtrcopytoglossary` is not compatible with docdef=true.

Note that the type field will still be set to the original glossary. This is considered the entry’s primary glossary. There’s no field that keeps track of the additional glossaries the entry has been copied to.

If used with `\printglossary` or `\printnoidxglossary`, the entry will only be indexed for its primary glossary. It won’t show up in the other glossaries, but will be found when using an iterative command, such as `\glsaddall`, over the target glossary.

You can test if an entry has already been added to a glossary with:

📌
``\GlsXtrIfInGlossary`{〈entry-label〉}{〈glossary-type〉}{〈true〉}{〈false〉}`
This does 〈true〉 if the entry given by 〈entry-label〉 is in the internal list of the glossary identified by 〈glossary-type〉, otherwise it does 〈false〉. If the glossary doesn’t exist, this does 〈false〉 and will either generate an error (undefaction=error) or a warning (undefaction=warn). This command considers ignored glossaries as existing.

You can test if a glossary is empty with:

📌
``\glsxtrifemptyglossary`{〈glossary-type〉}{〈true〉}{〈false〉}`
This does 〈true〉 if the glossary identified by 〈glossary-type〉 is empty, otherwise does 〈false〉. If the glossary doesn’t exist, this does 〈true〉 and will either generate an error (undefaction=error) or a warning (undefaction=warn). This command considers ignored glossaries as existing.

To test for the existence of a glossary, you can use `\ifglossaryexists` and `\doifglossarynoexistsordo`, which are documented in the “Conditionals” section of the glossaries user manual.

The base glossaries package provides `\forallglossaries` to iterate over a list of glossaries labels (all non-ignored glossaries by default). This can also be used with glossaries-extra but `\forallacronyms` is only for glossaries that have been declared as lists of acronyms, so it’s inappropriate with the glossaries-extra package. Instead, you can use the analogous command:

📌
``\forallabbreviationlists`{〈cs〉}{〈body〉}`
Each instance of `\newabbreviation` will add the abbreviation’s associated glossary (identified by the type key) to the internal list of labels (if not already added). Note that this won’t take into account any glossaries that had abbreviations copied or moved to it.

[top]

## 8.1. Entry Page Reference
[link]

The base glossaries package provides `\glsrefentry`, which uses `\ref` to reference the entry’s associated counter (enabled with entrycounter or subentrycounter, not the location counter). The glossaries-extra package additionally provides:

📌
``\glsxtrpageref`{〈entry-label〉}`
This works in the same way but uses `\pageref` instead of `\ref`. As with `\glsrefentry`, if the corresponding counter has not been enabled, this just does ``\gls`{〈entry-label〉}`.

[top]

## 8.2. Glossary Preamble
[link]

The base package provides `\glossarypreamble`, which is used at the start of the glossary. By default, this will use the preamble associated with the current glossary. If you redefine `\glossarypreamble`, this will set the preamble for all glossaries. To set the preamble for a particular glossary, you can use `\setglossarypreamble`. With glossaries-extra, you can additionally append to an existing preamble using:

📌
``\apptoglossarypreamble`[〈type〉]{〈text〉}`
This (locally) appends 〈text〉 to the preamble for the glossary identified by 〈type〉. If 〈type〉 is omitted, `\glsdefaulttype` is assumed.

📌
``\pretoglossarypreamble`[〈type〉]{〈text〉}`
This (locally) prepends 〈text〉 to the preamble for the glossary identified by 〈type〉. If 〈type〉 is omitted, `\glsdefaulttype` is assumed.

[top]

## 8.3. Options
[link]

In addition to the options available with `\printglossary`, the following options are also provided. Some of these listed here are specific to `\printunsrtglossary` and printunsrtglossarywrap. Options provided by the base package that aren’t available for the “unsrt” family of commands are identified below.

🎚
`sort=〈method〉`
This option is only available for `\printnoidxglossary`. The `\printunsrtglossary` and `\printunsrtinnerglossary` commands simply iterate over the glossary’s internal list in the order in which the entries have been added to that glossary. If you are using bib2gls, use the sort resource option instead.

🎚
`title=〈text〉`
This option is provided by the base glossaries package to override the default title for the glossary. This option is also available for `\printunsrtglossary` and printunsrtglossarywrap but not for `\printunsrtinnerglossary`.

🎚
`toctitle=〈text〉`
This option is provided by the base glossaries package to override the default table of contents title for the glossary. This option is also available for `\printunsrtglossary` and printunsrtglossarywrap but not for `\printunsrtinnerglossary`.

🎚
`numberedsection=〈value〉`default: nolabel; initial: false
This option is provided by the base glossaries package to indicate whether or not the section header used at the start of the glossary should be numbered rather than unnumbered (and whether or not to automatically label the glossary with ``\label`{`\glsautoprefix`〈glossary-type〉}`). The numberedsection package option will change the default setting to match. This option is not available for `\printunsrtinnerglossary`.

🎚
`style=〈style-name〉`
This option is provided by the base glossaries package to set the glossary style. This option is not available for `\printunsrtinnerglossary`.

🎚
`label=〈label〉`
This option is provided by glossaries-extra to add ``\label`{〈label〉}` after the section header. This is essentially like numberedsection=nameref but you supply the label. This option is not available for `\printunsrtinnerglossary`. Alternatively, you can use:
📌
``\glsxtrsetglossarylabel`{〈label〉}`
This will need to be scoped or changed between glossaries or use a command in 〈label〉 that expands differently for each glossary to avoid duplicate labels.

🛈
If the supplied value is empty, the label is suppressed (without otherwise altering the numberedsection setting).

🎚
`leveloffset=〈offset〉`initial: 0
This option sets or increments the hierarchical level offset. If 〈offset〉 starts with `++` then the current offset is incremented by the given amount otherwise the current offset is set to 〈offset〉. For example, an entry with a normal hierarchical level of 1 will be treated as though it has hierarchical level 1+〈offset〉. Note that the glossary style may not support the resulting hierarchical level. This option is only available for the “unsrt” family of commands and the printunsrtglossarywrap environment. See §8.4.3.1 for an example.

🔘︎
`flatten=〈boolean〉`default: true; initial: false
Treats all entries as though they have the same hierarchical level (the value of leveloffset). This option is only available for the “unsrt” family of commands and the printunsrtglossarywrap environment. Unlike the flatten resource option, this option doesn’t actually remove the parent field.

🔘
`groups=〈boolean〉`default: true; initial: true
This option is only applicable to the “unsrt” family of commands and printunsrtglossarywrap. If set to false, it will prevent groups from being formed. If true (the default), groups will only be formed if they are supported. See §8.4 for further details.

🎚
`prefix=〈prefix〉`
This option is provided by glossaries-extra and simply redefines `\glolinkprefix` to expand to 〈prefix〉. If hyperlinks are supported and the glossary style uses `\glstarget` to create the entry’s hypertarget, the target name is obtained from ``\glolinkprefix`〈entry-label〉`. If you are displaying multiple glossaries with shared entries (for example, using the secondary resource option with bib2gls), then changing the prefix can avoid duplicate targets. Alternatively, you can redefine `\glstarget` to use `\glsxtrtarget`.

Note that this option will also affect the targets used by the `\gls`-like and `\glstext`-like commands. This means that if you have, for example, `\gls` in the description of an entry, then its hyperlink will go to that entry’s item in the current glossary. Whereas referencing that entry outside of the glossary will hyperlink to the glossary that uses the prefix matching the setting at that point in the document. For example:

    🖹\usepackage[colorlinks]{hyperref}
    \usepackage[showtargets=annoteleft,style=tree]{glossaries-extra}
    \newglossaryentry{sample}{name={sample},
     description={an example description that references \gls{another}}}
    \newglossaryentry{another}{name={another},
     description={some other example description that references \gls{sample}}}
    \begin{document}
    Link to glossary 1: \gls{sample}.

    Link to glossary 2: \gls[prefix=other-]{sample}.
    \printunsrtglossary
    \printunsrtglossary[prefix=other-]
    \end{document}

This uses the showtargets package option to show the target names to the left of the hyperlink or hypertarget. The result is:
🖺
Example 132: Changing the target prefix 📥🖹 📥🖺

Within the main part of the document, the first reference to “sample” has a hyperlink to the first glossary (with the target `glo:sample`, which uses the default prefix), and the second reference has a hyperlink to the second glossary (with the target `other-sample`).

Within the glossaries, the `\gls` references use the current glossary prefix, so the target is in the same glossary.

🎚
`targetnameprefix=〈prefix〉`
This is similar to the previous option but only affects the prefix for the entry item’s target and doesn’t change the prefix for any references contained within the glossary. This prepends the given prefix to the default prefix.

If the above example is modified to:

    🖹Link to glossary 1: \gls{sample}.

    Link to glossary 2: \gls[prefix=other-glo:]{sample}.
    \printunsrtglossary
    \printunsrtglossary[targetnameprefix=other-]

Then the result will be:
🖺
Example 133: Prepending to the target prefix for just the entry item 📥🖹 📥🖺

Note that this has prepended `other-` to the existing `glo:` prefix. This is why the prefix option in the second `\gls` reference had to be changed to match the appropriate hypertarget name. The `\gls` references in the second glossary now point to the relevant line in the first glossary.

It’s possible to combine targetnameprefix with prefix={} but that will also affect the `\gls` references within the glossary.

🔘
`target=〈boolean〉`default: true; initial: true
This is a boolean option that can be used to switch off the automatic creation of the entry hypertargets but still allows hyperlinks within the glossary. This can be used to prevent duplicate destinations for secondary glossaries.

🎚
`preamble=〈text〉`
Redefines `\glossarypreamble` to 〈text〉.

🎚
`postamble=〈text〉`
Redefines `\glossarypostamble` to 〈text〉.

[top]

## 8.4. Displaying a Glossary Without Sorting or Indexing
[link]

The base glossaries package provides two ways of displaying a glossary, depending on the indexing option: `\printglossary` (used with `\makeglossaries`) or `\printnoidxglossary` (used with `\makenoidxglossaries`).

The glossaries-extra package provides an alternative that doesn’t require sorting or indexing.

📌
``\printunsrtglossary`[〈options〉]`
This behaves in a similar way to `\printnoidxglossary`, but it always lists all the defined entries for the given glossary in the order in which they were added to the glossary. Unlike `\printglossary`, you may use `\printunsrtglossary` with an ignored glossary.

ℹ
The “unsrt” family of commands and printunsrtglossarywrap are not intended for use with `\makeglossaries` and `\makenoidxglossaries`. Mixing these different methods can result in unexpected behaviour.

There is also a starred version which has a mandatory argument:

📌
``\printunsrtglossary*`[〈options〉]{〈init-code〉}`
This is equivalent to:

    \begingroup
      〈init-code〉\printunsrtglossary[〈options〉]
    \endgroup

There’s no significant difference between doing:

    {〈init-code〉\printunsrtglossary[〈options〉]}

and

    \printunsrtglossary*[〈options〉]{〈init-code〉}

Note that unlike `\glossarypreamble`, the supplied 〈init-code〉 is done before the glossary header.

ℹ
If you want to use one of the tabular-like styles with `\printunsrtglossary`, make sure you load glossaries-extra-stylemods which modifies the definition of `\glsgroupskip` to avoid the “Incomplete `\iftrue`” error that may otherwise occur.

As with `\printglossary` and `\printnoidxglossary`, there is also a command to print all non-ignored glossaries in the order in which they were defined:

📌
``\printunsrtglossaries``

This means you now have the option to simply list all entries on the first LaTeX run without the need for a post-processor, however there will be no location list in this case, as that has to be set by a post-processor such as bib2gls (see §11).

⚠
No attempt is made to gather hierarchical elements. If child entries aren’t defined immediately after their parent entry, they won’t be together in the glossary when using `\printunsrtglossary`.

The way that `\printunsrtglossary` basically works is to iterate over every label in the glossary’s internal label list and format each entry according to the way the glossary style would normally format the entry’s hierarchical level (described in more detail in §8.4.3). If a change in letter group is detected, the letter group heading and group skip will be inserted.

A label is appended to the glossary’s internal label list whenever an entry is defined. This means that the list will normally be in order of definition, but it’s also possible to copy an entry’s label to another glossary’s internal label list using `\glsxtrcopytoglossary`, which can be used to provide a different order. A simple example:

    🖹\documentclass{article}
    \usepackage[style=treegroup]{glossaries-extra}
    \newglossaryentry{ant}{name={ant},description={}}
    \newglossaryentry{gazelle}{name={gazelle},description={}}
    \begin{document}
    \printunsrtglossary
    \end{document}

The document build only requires one LaTeX call in this case.
🖺
Example 134: Displaying unsorted glossaries 📥🖹 📥🖺

Note the difference if the stylemods option is used:

    🖹\usepackage[stylemods,style=treegroup]{glossaries-extra}

🖺
Example 135: Displaying unsorted glossaries with stylemods 📥🖹 📥🖺

In this case, the group headings are now numbers instead of letters. The styles provided with glossaries-extra and those modified by glossaries-extra-stylemods are designed to assist integration with bib2gls. Without these modifications, `\printunsrtglossary` behaves like the less sophisticated `\printnoidxglossary` which checks if the label is an integer less than 256 and uses `\char` to create the title (if no title has been provided).

If you really want to use `\printunsrtglossary` without bib2gls and you want letter groups with stylemods without having to define all the titles, you can use:

📌
``\glsxtrnoidxgroups``
which will switch over to using the group titling method used with `\printnoidxglossary` (which only supports ASCII). This command is only available with record=off and can’t be used with `\makeglossaries`.

If, conversely, you don’t want any groups formed, regardless of the glossary style, you can disable them with groups=false. The above example can be modified so that the document contains:

    🖹\printunsrtglossary[title={Glossary 1}]
    \glsxtrnoidxgroups
    \printunsrtglossary[title={Glossary 2}]
    \printunsrtglossary[groups=false,title={Glossary 3}]
    \printunsrtglossary[style=tree,nogroupskip,title={Glossary 4}]

This repeats the same glossary. The first is the same as the previous example. The second is the same as the example that didn’t use stylemods. The final two glossaries have the groups suppressed. Using groups=false (Glossary 3) is more efficient than using nogroupskip and switching to a style that doesn’t show the header (Glossary 4).

I’ve also switched to two column mode to display the result in a more compact form. The first two glossaries are shown on the left and the last two are on the right:

🖺
Example 136: Displaying unsorted glossaries with different group settings 📥🖹 📥🖺

The “unsrt” family of commands were designed for use with bib2gls, which uses more complex alphanumeric group labels to allow for greater customization and to avoid conflict where there are multiple glossaries or hierarchical levels with potentially the same letter groups.

The way that bib2gls works is to select entries from a bib file, according to the document requirements, sort the entries, and then write the entry definitions (with commands like `\longnewglossaryentry*` or `\newabbreviation`) in the glstex in the desired order, which is then input by `\GlsXtrLoadResources`. This means that `\printunsrtglossary` will display the entries in that order since, from glossaries-extra’s point of view, that’s the order of definition.

While it is possible to use `\printunsrtglossary` without bib2gls, as in the above example, for long or complex glossaries it’s better to use bib2gls which can automatically assign appropriate titles to the groups.

Groups and hierarchy are discussed in more detail in §8.4.1. See §8.4.2 for location lists and §8.4.3.1. Advanced commands and further detail about the way `\printunsrtglossary` works are covered in §8.4.3.

[top]

### 8.4.1. Groups and Hierarchy
[link]

🛈
See Gallery: Logical Glossary Divisions (type vs group vs parent) for the difference between the group, type and parent fields.

Here’s a longer example that uses stylemods to automatically load glossary-bookindex:

    🖹\documentclass{article}
    \usepackage[stylemods=bookindex,style=bookindex]{glossaries-extra}
    \newglossaryentry{waterfowl}{name={waterfowl},description={}}
    \newglossaryentry{ant}{name={ant},description={}}
    \newglossaryentry{adder}{name={adder},description={}}
    \newglossaryentry{duck}{name={duck},parent={waterfowl},
     description={}}
    \newglossaryentry{zebra}{name={zebra},description={}}
    \newglossaryentry{aardvark}{name={aardvark},description={}}
    \newglossaryentry{gazelle}{name={gazelle},description={}}
    \newglossaryentry{mallard}{name={mallard},parent={duck},
     description={}}

    \newglossary*{another}{Another Glossary}
    \glsxtrcopytoglossary{mallard}{another}
    \glsxtrcopytoglossary{aardvark}{another}
    \glsxtrcopytoglossary{zebra}{another}
    \glsxtrcopytoglossary{ant}{another}
    \glsxtrcopytoglossary{duck}{another}
    \begin{document}
    \printunsrtglossary
    \printunsrtglossary[type=another]
    \end{document}

Unlike the previous examples that defined the entries in alphabetical order, this example hasn’t used any logical order. Note, in particular, that the child entries “duck” and “mallard” (which have the parent key set) have not been defined immediately after their parent.

The first `\printunsrtglossary` has the default type=main and lists all entries defined in the `main` glossary, in the order in which they were defined. The second `\printunsrtglossary` lists all entries in the custom `another` glossary and is in the order in which the entries were copied to that glossary.

The document build again simply requires one LaTeX call. The result is shown in Example 137.

🖺
Example 137: Displaying unsorted glossaries with a copied list 📥🖹 📥🖺

There are some oddities in both lists. It’s the glossary style that determines the formatting of the entries according to the entry’s hierarchical level, but it looks strange for the duck and mallard entries to be indented when they don’t follow after their parent entry.

As the internal loop within `\printunsrtglossary` iterates over each entry, it tries to determine which letter group the entry belongs to. If it’s different from the group for the previous entry (in the same hierarchical level), a group header is added (which may or may not be displayed, depending on the glossary style). This means than an unordered list of entries, such as in the above example, may contain repeated headers.

The way that the group is determined depends on whether or not the group key has been defined. If it isn’t defined (the default), then the group label is obtained from the uppercase character code of the first token of the sort key. If the token doesn’t have an uppercase character code (indicating that it’s not a letter) or if the sort value is empty then the label will be set to `glssymbols` (which corresponds to the symbol group). This is the same way that `\printnoidxglossary` inserts groups.

Remember that if the sort key hasn’t been set, it will be assigned automatically to the same value as the name key (or with sort=use or sort=def to a numerical value). The sort key will be empty if you use sort=clear. The sort=none setting simply skips the pre-processing of the sort key (such as sanitizing).

For example, the ant entry doesn’t explicitly use the sort key, so the sort value is obtained from the name key, which is set to `ant`. The first token is “a”, which is a letter. The group’s label is obtained from the letter’s uppercase character decimal code (65). There’s no associated title (which can be assigned with `\glsxtrsetgrouptitle`), so the title is simply “65” (with stylemods, see earlier) or “A” (without stylemods or with `\glsxtrnoidxgroups`).

The ant entry is followed by “adder”. The same process determines that the “adder” group label is also 65. There’s no change in the group label from the previous entry (ant) so no header is inserted.

By default, this group check is omitted for child entries, which is why no group header is inserted before duck or mallard. So the next entry to be checked for a group is the zebra entry, which has the group label 90 (the decimal code for “Z”). Again there’s no title associated with that label so the title is simply the label.

The zebra entry is followed by aardvark which, following the same process, has the group label 65. This is different from the previous group label (90) so a group header is inserted. This is why there are two “90” letter groups.

ℹ
The “unsrt” family of commands don’t order the entries.

If the group key has been defined (which is the case with record=only and record=nameref) then the group label is obtained from the group field. If the group field is defined but empty then the entry will belong to the empty group. The value of the sort field is now irrelevant.

So, simply adding the record option to the above example document will cause the group headers to disappear. This is because the group key will now be defined but is empty for each entry. Even with a style like bookindex, there won’t be any group headers.

Provided the group key has been defined, the field used to store the group label is given by:

📌
``\glsxtrgroupfield``initial: group
This expands to `group`, by default. However it’s possible to use a different field in which to store the group label, in which case `\glsxtrgroupfield` will need to be redefined. For example:

    🖹{\renewcommand{\glsxtrgroupfield}{othergroup}\printunsrtglossary}

or

    🖹\printunsrtglossary*{\renewcommand{\glsxtrgroupfield}{othergroup}}

(but this still requires the group key to be defined, even if it’s not being used to store the group label). With bib2gls, the secondary resource option (combined with --group) will store the group label obtained from the secondary sort in the secondarygroup field and adds the redefinition of `\glsxtrgroupfield` to the associated glossary preamble. This prevents it from clashing with the group field in the event that the secondary sort method has produced a different set of groups (which is likely).

The follow example document uses record to create the group key and assigns group labels with associated titles. Note that the secondarygroup field doesn’t have an associated key, so it needs to be set with a field assignment command, such as `\GlsXtrSetField`.

    🖹\documentclass{article}
    \usepackage[record,stylemods=bookindex,style=bookindex]{glossaries-extra}

    \glsxtrsetgrouptitle{group1label}{Group 1}
    \glsxtrsetgrouptitle{group2label}{Group 2}
    \glsxtrsetgrouptitle{group3label}{Group 3}
    \glsxtrsetgrouptitle{group4label}{Group 4}

    \newglossaryentry{waterfowl}{name={waterfowl},description={},
     group={group1label}}
    \newglossaryentry{ant}{name={ant},description={},
     group={group1label}}
    \GlsXtrSetField{ant}{secondarygroup}{group4label}
    \newglossaryentry{adder}{name={adder},description={},
     group={group2label}}
    \newglossaryentry{duck}{name={duck},parent={waterfowl},
     description={},group={group4label}}
    \GlsXtrSetField{duck}{secondarygroup}{group2label}
    \newglossaryentry{zebra}{name={zebra},description={},
     group={group2label}}
    \GlsXtrSetField{zebra}{secondarygroup}{group3label}
    \newglossaryentry{aardvark}{name={aardvark},description={},
     group={group2label}}
    \GlsXtrSetField{aardvark}{secondarygroup}{group1label}
    \newglossaryentry{gazelle}{name={gazelle},description={},
     group={group1label}}
    \newglossaryentry{mallard}{name={mallard},parent={duck},
     description={},group={group2label}}
    \GlsXtrSetField{mallard}{secondarygroup}{group3label}

    \newglossary*{another}{Another Glossary}
    \glsxtrcopytoglossary{mallard}{another}
    \glsxtrcopytoglossary{aardvark}{another}
    \glsxtrcopytoglossary{zebra}{another}
    \glsxtrcopytoglossary{ant}{another}
    \glsxtrcopytoglossary{duck}{another}
    \setglossarypreamble[another]{\renewcommand{\glsxtrgroupfield}{secondarygroup}}
    \begin{document}
    \printunsrtglossary
    \printunsrtglossary[type=another]
    \end{document}

This is essentially mimicking the way that the secondary resource option sets the secondarygroup field and adds the redefinition of `\glsxtrgroupfield` to the secondary glossary’s preamble. (Although in this case, there’s no logical order.) The result is shown in Example 138.
🖺
Example 138: Displaying unsorted glossaries with custom groups 📥🖹 📥🖺

Note that even though the duck and mallard entries have the group and secondarygroup fields set, there’s no group title for them in either glossary because they are child entries.

📌
``\glsxtraddgroup`{〈entry-label〉}{〈code〉}`
This command will perform 〈code〉 if the entry identified by 〈entry-label〉 should have group support (provided the group field has been set). The default definition is:

    \newcommand*{\glsxtraddgroup}[2]{%
      \ifglsxtrprintglossflatten
        #2%
      \else
        \ifglshasparent{#1}{}{#2}%
      \fi
    }

This means that only entries that don’t have a parent (with flatten=false) or any entry (with flatten=true) will have the group check performed. With bib2gls, the group-level will redefine `\glsxtraddgroup` to always do 〈code〉, which means that all entries will have the group check performed.

ℹ
If no group label has been provided no header will be added.

The following hook is used just before the header information is appended:

📌
``\printunsrtglossarygrouphook`{〈internal cs〉}`
The argument is the internal command used to build the group header (which will then be appended to main internal command containing the glossary code). This hook may be redefined to insert any additional code before the heading. Use ``\preto`#1{〈content〉}` if you want to insert 〈content〉 before the header and ``\appto`#1{〈content〉}` if you want to insert 〈content〉 after the header. (You can reference the entry label with `\glscurrententrylabel` and the current hierarchical level with `\glscurrententrylevel` but make sure they are expanded if they occur in 〈content〉.) For example, `\printunsrttable` redefines this hook to finish off the current row before the group header is added.

The above document can be modified to show the sub-group headings:

    🖹\renewcommand*{\glsxtraddgroup}[2]{#2}
    \printunsrtglossary
    \renewcommand*{\glsxtraddgroup}[2]{%
      \ifnum\glscurrententrylevel<2 #2\fi}
    \printunsrtglossary[type=another]

The result is shown in Example 139.
🖺
Example 139: Displaying unsorted glossaries with custom groups and sub-group headings 📥🖹 📥🖺

Note that the mallard entry (which has hierarchical level 2) has its group shown in the first glossary (where the group is formed for all levels) but not in the second glossary (where the redefinition of `\glsxtraddgroup` restricts group formation to just level 0 and level 1).

There’s a small visual distinction between the group titles in different hierarchical levels in the above. The top-level (level 0) groups have the title centred, whereas the sub-groups have their titles indented by the same amount as the corresponding sub-entries. This is due to the glossary style. Other styles may use the same formatting for all hierarchical levels.

The glossary styles provided with glossaries-extra and the base styles patched by glossaries-extra-stylemods all redefine:

📌
``\glssubgroupheading`{〈previous level〉}{〈level〉}{〈parent-label〉}{〈group-label〉}`
to format the sub-group headings in a manner applicable to the style. For example, styles that don’t show sub-entry names typically redefine this command to do nothing.

A default definition that simply does ``\glsgroupheading`{〈group-label〉}` is automatically initialised by `\setglossarystyle` (via `\glsxtrpreglossarystyle`) to allow for styles that don’t redefine this command. The first two arguments refer to the hierarchical level, where 〈previous level〉 is the level of the previous group and 〈level〉 is the level of this new sub-group. The 〈parent-label〉 is the label of the current entry’s parent, where the current entry is the first entry of the sub-group that immediately follows the heading.

The bookindex style defines `\glssubgroupheading` to use the style’s associated command `\glsxtrbookindexformatsubheader`. This can be redefined as required. For example, the following uses the parent entry’s hierarchical information:

    🖹\renewcommand*{\glsxtrbookindexformatsubheader}[5]{%
     \ifnum#2>1\relax
      \glstreesubsubitem\glstreegroupheaderfmt{\GlsXtrhiername{#3} / #5}%
     \else
      \glstreesubitem\glstreegroupheaderfmt{\GlsXtrhiername{#3} / #5}%
     \fi
    }

The above examples are contrived and demonstrate the need to define entries in a sensible order to achieve a sensible glossary with `\printunsrtglossary`. If you want to use this approach to display a glossary, you would need to make sure that you take care with the order that you define entries. This can be quite tedious for a large number of entries.

To switch to bib2gls, the entry data needs to be provided in a bib file. For example, the file animalfamilies.bib might contain:

    🖹@index{waterfowl,user1={Anseriformes}}
    @index{ant,user1={Formicidae}}
    @index{adder,user1={Vipera berus}}
    @index{duck,parent={waterfowl},user1={Anatidae}}
    @index{zebra,user1={Hippotigris}}
    @index{aardvark,user1={Orycteropus afer}}
    @index{gazelle,user1={Gazella}}
    @index{mallard,parent={duck},user1={Anas platyrhynchos}}

I’ve included some additional information stored in the user1 field that wasn’t in the earlier examples. The document needs to use the record option and `\GlsXtrLoadResources` in order for it to work properly with bib2gls:

    🖹\usepackage[record,stylemods=bookindex,style=bookindex]
     {glossaries-extra}
    \newglossary*{another}{Another Glossary}
    \GlsXtrLoadResources[selection=all,% select all entries
     src={animalfamilies},% identify bib file(s)
     sort=en-GB,% sort method
     secondary={la:user1:another}% sort again and copy to `another'
    ]
    \glsdefpostname{index}{
     (\emph{\glsentryuseri{\glscurrententrylabel}})}
    \begin{document}
    \printunsrtglossary
    \printunsrtglossary[type=another]
    \end{document}

If this code is saved in the file myDoc.tex then the build process is now:

    〉_pdflatex myDoc
    bib2gls --group myDoc
    pdflatex myDoc

The --group (or -g) switch is important as it instructs bib2gls to set the group field for the primary sort and the secondarygroup for the secondary sort. The primary sort will sort entries according to `en-GB` (British English). This can simply be set to `en` without a region. The secondary sort will resort the entries, but this time according to `la` (Latin) using the user1 key as the sort value. The entry labels will then be copied to the custom `another` glossary.

The glstex file created by bib2gls (which will then be input by `\GlsXtrLoadResources` on the subsequent LaTeX run) essentially contains the following code:

    🖹\glsxtrsetgrouptitle{6881280}{W}
    \glsxtrsetgrouptitle{5832704}{G}
    \glsxtrsetgrouptitle{5373952}{A}
    \glsxtrsetgrouptitle{7077888}{Z}
    \glsxtrsetgrouptitle{another5373952}{A}
    \glsxtrsetgrouptitle{another5767168}{F}
    \glsxtrsetgrouptitle{another6356992}{O}
    \glsxtrsetgrouptitle{another5898240}{H}
    \glsxtrsetgrouptitle{another6815744}{V}
    \glsxtrsetgrouptitle{another5832704}{G}

    \longnewglossaryentry*{aardvark}{name={aardvark},
     user1={Orycteropus afer},group={5373952}}{}
    \longnewglossaryentry*{adder}{name={adder},
     user1={Vipera berus},group={5373952}}{}
    \longnewglossaryentry*{ant}{name={ant},
     user1={Formicidae},group={5373952}}{}
    \longnewglossaryentry*{gazelle}{name={gazelle},
     user1={Gazella},group={5832704}}{}
    \longnewglossaryentry*{waterfowl}{name={waterfowl},
     user1={Anseriformes},group={6881280}}{}
    \longnewglossaryentry*{duck}{name={duck},
     parent={waterfowl},user1={Anatidae},group={}}{}
    \longnewglossaryentry*{mallard}{name={mallard},
     parent={duck},user1={Anas platyrhynchos},group={}}{}
    \longnewglossaryentry*{zebra}{name={zebra},
     user1={Hippotigris},group={7077888}}{}

    \apptoglossarypreamble[another]
     {\renewcommand{\glsxtrgroupfield}{secondarygroup}}
    \glsxtrcopytoglossary{waterfowl}{another}
    \GlsXtrSetField{waterfowl}{secondarygroup}{another5373952}
    \glsxtrcopytoglossary{duck}{another}
    \glsxtrcopytoglossary{mallard}{another}
    \glsxtrcopytoglossary{ant}{another}
    \GlsXtrSetField{ant}{secondarygroup}{another5767168}
    \glsxtrcopytoglossary{gazelle}{another}
    \GlsXtrSetField{gazelle}{secondarygroup}{another5832704}
    \glsxtrcopytoglossary{zebra}{another}
    \GlsXtrSetField{zebra}{secondarygroup}{another5898240}
    \glsxtrcopytoglossary{aardvark}{another}
    \GlsXtrSetField{aardvark}{secondarygroup}{another6356992}
    \glsxtrcopytoglossary{adder}{another}
    \GlsXtrSetField{adder}{secondarygroup}{another6815744}

It’s more complicated than this as helper commands are provided to make it easier to customize and the entries will all have category={index} since they were defined with `@index`, but this is basically like the preamble in the earlier examples, except that the ordering and groups are more logical. The result is shown in Example 140.

🖺
Example 140: Displaying sorted glossaries with groups using bib2gls 📥🖹 📥🖺

Note that the group and secondarygroup fields haven’t been set for the child entries (duck and mallard). This is the default behaviour and it means that regardless of the definition you provide for `\glsxtraddgroup`, sub-groups won’t be displayed. If you want those fields set for child entries, you need to use the group-level resource option. For example:

    🖹\GlsXtrLoadResources[selection=all,% select all entries
     group-level={<=1},% level 0 and 1
     src={animalfamilies},% identify bib file(s)
     sort=en-GB,% sort method
     secondary={la:user1:another}% sort again and copy
    ]

This will add support for level 0 (no parent) and level 1 (parent but no grandparent) entries. Deeper levels won’t have support. The --group switch is still required.

[top]

### 8.4.2. Location Lists
[link]

The “unsrt” family of commands check for the existence of the location and loclist keys. These are both defined by the record option. (The loclist field is also used by `\makenoidxglossaries` but isn’t defined as a key.)

The location field (if set) should contain the formatted location list. This is checked first and used if not empty. Otherwise the loclist field (if set) is used, but that will use the same method as `\printnoidxglossary` to format, which doesn’t compact consecutive locations.

It’s possible to choose a different field for the formatted location list by redefining:

📌
``\GlsXtrLocationField``initial: location
This should expand to the internal field label. If the field is not the default location then the test for loclist is omitted.

Whichever field is used, the formatted location list is passed to the appropriate glossary style command (`\glossentry` or `\subglossentry`) encapsulated with `\glossaryentrynumbers`.

If there’s no location field or if the tested fields are empty, then an empty argument (with no `\glossaryentrynumbers` encapsulator) is passed to the glossary style command. In this case, the nonumberlist option is redundant as there’s no location list to suppress.

[top]

### 8.4.3. Advanced Commands
[link]

To provide a better understanding of how filtered and inner glossaries work, it’s useful to understand the difference between `\printglossary` (used with makeindex and xindy) and `\printunsrtglossary` (used with bib2gls).

In the first case, makeindex or xindy is used to create a file that contains content in the form:

    🖹\glossarysection[\glossarytoctitle]{\glossarytitle}%
    \glossarypreamble
    \begin{theglossary}\glossaryheader
    〈content〉
    \end{theglossary}\glossarypostamble

where 〈content〉 contains lines such as:

    🖹\glsgroupheading{〈group label〉}\relax \glsresetentrylist
    \glossentry{〈entry label〉}{〈location list〉}%
    \subglossentry{〈level〉}{〈entry label〉}{〈location list〉}%

The group headings (see §8.4.1) are typeset using `\glsgroupheading`. Top-level entries are typeset with `\glossentry` and child entries are typeset with `\subglossentry` where 〈level〉 indicates the hierarchical level. Both makeindex and xindy order the items so that the child entries are placed immediately after the corresponding parent entry.

The `\printglossary` command essentially does:

    🖹〈Set default title and style.〉
    \bgroup
      〈Initial setup.〉
      〈Input the file created by makeindex or xindy.〉
    \egroup

The initial setup part sets the glossary style (which determines the definitions of theglossary, `\glossaryheader`, `\glsgroupheading`, `\glossentry` and `\subglossentry`), assigns the title (`\glossarytitle` and `\glossarytoctitle`) and defines `\currentglossary`. (There is some other stuff done both before and after the file is input, but that’s not relevant here.)

In the case of bib2gls, there isn’t a glossary file to input. Instead, bib2gls is used to create a file that contains the entry definitions, which is input in the document preamble (via `\GlsXtrLoadResources`). The entries are defined in the required order and use internal fields to store the indexing information (such as the group label and location lists). Now `\printunsrtglossary` is used to display the glossary, which essentially does:

    🖹〈Set default title and style.〉
    \bgroup
      〈Initial setup.〉
      \glossarysection[\glossarytoctitle]{\glossarytitle}%
      \glossarypreamble
      〈Construct internal control sequence containing glossary content.〉
      〈Expand internal control sequence.〉
      \glossarypostamble
    \egroup

The 〈initial setup〉 is the same as for `\printglossary`. The key difference here is that there’s no file containing the typeset glossary that can be simply input. Instead it’s necessary to iterate over the glossary’s internal label list. Some of the glossary styles use a tabular-like environment (such as longtable, which is used by the long styles). It’s always problematic having a loop inside a tabular context so `\printunsrtglossary` by-passes the problem by moving the loop outside of the theglossary environment. The command iterates over all entry labels (in the order in which they were added to the glossary) and constructs an internal control sequence (`\@glsxtr@doglossary`), which ends up containing:

    🖹\begin{theglossary}\glossaryheader
    〈begin code〉
    〈content〉
    〈end code〉
    \end{theglossary}

⚠
Note that `\glsresetentrylist` has been removed in v1.50 since it’s generally unnecessary with bib2gls and causes interference with tabular styles.

The 〈begin code〉 can be inserted just after ``\begin{theglossary}`` by the command:

📌
``\printunsrtglossarypostbegin`{〈internal cs〉}`
This does nothing by default (so 〈begin code〉 will be omitted). If you still need to have `\glsresetentrylist` at the start, you can redefine this hook as follows:

    🖹\renewcommand*{\printunsrtglossarypostbegin}[1]{%
     \appto#1{\glsresetentrylist}%
    }

The 〈end code〉 can be inserted just before ``\end{theglossary}`` by the command:

📌
``\printunsrtglossarypreend`{〈internal cs〉}`
This does nothing by default (so 〈end code〉 will be omitted). (These two hooks are only used in `\printunsrtglossary` not in by `\printunsrtinnerglossary` or printunsrtglossarywrap.) For example, `\printunsrttable` redefines the end hook to finish off the final row.

In both hooks, the argument will be `\@glsxtr@doglossary` and, in both cases, you need to use `\appto` within the definition in order to insert 〈begin code〉 and 〈end code〉 in the correct place. If you use `\preto`, the code will end up at the start, before ``\begin{theglossary}``

The 〈content〉 in this case is different as it doesn’t explicitly contain `\glossentry` and `\subglossentry` but instead uses an internal handler that just takes the entry label as the argument. The ``\glsgroupheading`{〈group label〉}` command is inserted whenever a top-level entry has the group field set to a label that’s different to the previous top-level entry’s group field (and, if supported, sub-groups are similarly inserted with `\glssubgroupheading`, see §8.4.1). So the content is in the form:

    🖹\glsgroupheading{〈group label〉}%
    \〈internal cs handler〉{〈entry label〉}%
    \〈internal cs handler〉{〈entry label〉}%
    …\glsgroupheading{〈group label〉}%
    \〈internal cs handler〉{〈entry label〉}%
    \〈internal cs handler〉{〈entry label〉}%
    …

There are hooks and commands available for use within those hooks that may be adjusted to customize the way the glossary is displayed. These are described below.

At each iteration (while the glossary content is being constructed), the following steps are performed:

1. 1.Store the current entry label in `\glscurrententrylabel`.

2. 2.If `\glscurrententrylabel` is empty, skip this iteration.

3. 3.Define placeholder commands:
   📌
   ``\glscurrententrylevel``
   This is set to the current entry’s hierarchical level (taking leveloffset and flatten options into account);
   📌
   ``\glscurrenttoplevelentry``
   This is set to the current entry label if `\glscurrententrylevel` is 0 (that is, it expands to the most recent top-level entry, allowing for flatten and leveloffset);
   📌
   ``\glscurrentrootentry``
   This is set to the current entry label if flatten=true or if the current entry doesn’t have a parent (that is, it expands to the most recent top-level entry, allowing for flatten but not leveloffset).

4. 4.Perform the entry process hook:
   📌
   ``\printunsrtglossaryentryprocesshook`{〈entry-label〉}`
   This does nothing by default. Within the definition of this hook, you may use:
   📌
   ``\printunsrtglossaryskipentry``
   This will cause the remainder of the current iteration to be skipped, which will prevent the current entry from being shown in the glossary.

5. 5.If groups=true, use `\glsxtraddgroup` (see §8.4.1) to append the top-level group heading (`\glsgroupheading`) or the sub-group heading (`\glssubgroupheading`) to `\@glsxtr@doglossary`.

6. 6.Perform the pre-entry process hook:
   📌
   ``\printunsrtglossarypreentryprocesshook`{〈internal cs〉}`
   The argument will be `\@glsxtr@doglossary`. This may be used to insert any additional content before the entry (use ``\appto`#1{〈content〉}`). (The entry label can be referenced with `\glscurrententrylabel` but make sure it’s expanded if it occurs in 〈content〉.) For example, `\printunsrttable` redefines this hook to insert and `\tabularnewline` between blocks.

7. 7.Append `\〈internal cs handler〉{〈entry label〉}` to `\@glsxtr@doglossary`.

8. 8.Perform the post-entry process hook:
   📌
   ``\printunsrtglossarypostentryprocesshook`{〈internal cs〉}`
   The argument will be `\@glsxtr@doglossary`. This may be used to append any additional content after the entry (use ``\appto`#1{〈content〉}`). (The entry label can be referenced with `\glscurrententrylabel` but make sure it’s expanded if it occurs in 〈content〉.) For example, `\printunsrttable` redefines this hook to reset the block index if the end of a row has been reached.

⚠
The placeholders `\glscurrenttoplevelentry` and `\glscurrentrootentry` may not be an ancestor of the current entry. For example, if the glossary doesn’t have child entries immediately following their parent entry.

Once the glossary construction (`\@glsxtr@doglossary`) has been completed, the following hook is performed:

📌
``\printunsrtglossarypredoglossary``
This does nothing by default. You can redefine this to show the definition of `\@glsxtr@doglossary` for debugging purposes:

    🖹\renewcommand{\printunsrtglossarypredoglossary}{%
     \csshow{@glsxtr@doglossary}}

This will interrupt the LaTeX run and display the definition in the transcript.

The handler command `\〈internal cs handler〉` performs the following:

    🖹\protected@xdef\glscurrententrylabel{〈entry-label〉}%
    \printunsrtglossaryhandler\glscurrententrylabel

This stores the entry’s label in `\glscurrententrylabel` (which allows it to be referenced in style hooks, such as the post-name hook or post-description hook). Note that it uses a global definition to avoid scoping issues caused with tabular-like styles. The main handling of the entry is performed by:
📌
``\printunsrtglossaryhandler`{〈entry-label〉}`
This is simply defined to use:
📌
``\glsxtrunsrtdo`{〈entry-label〉}`
This displays the entry according to the current glossary style, taking the hierarchical level into account (as given by `\glscurrententrylevel`).

The following are additional commands that may be useful in the above hooks.

📌
``\glsxtriflabelinlist`{〈label〉}{〈label-list〉}{〈true〉}{〈false〉}`
Does 〈true〉 if the given label is in the given comma-separated list of labels, otherwise does 〈false〉. The label and list are fully expanded.

📌
``\ifglsxtrprintglossflatten` 〈true〉`\else` 〈false〉`\fi``initial: `\iffalse`
This conditional is set by the flatten option and can be used to test if the option has been set.

For example, the following skips all entries that have the category set to symbol:

    🖹\usepackage[style=index]{glossaries-extra}
    \newglossaryentry{ant}{name={ant},description={}}
    \newglossaryentry{pi}{name={\ensuremath{\pi}},description={},
     category={symbol}}
    \newglossaryentry{aardvark}{name={aardvark},description={}}
    \newglossaryentry{alpha}{name={\ensuremath{\alpha}},description={},
     category={symbol}}
    \begin{document}
    \renewcommand{\printunsrtglossaryentryprocesshook}[1]{%
     \glsifcategory{#1}{symbol}%
     {\printunsrtglossaryskipentry}%
     {}%
    }
    \printunsrtglossary
    \end{document}

🖺
Example 141: Filtering by category 📥🖹 📥🖺

[top]

#### 8.4.3.1. Inner Glossaries
[link]

🛈
See also Gallery: Inner or Nested Glossaries.

It’s possible you may want to combine multiple glossaries sequentially, as sub-blocks of a single list. The inner part of `\printunsrtglossary` can be created with:

📌
``\printunsrtinnerglossary`[〈options〉]{〈pre-code〉}{〈post-code〉}`
This can’t be used on its own, as it only forms a fragment. It doesn’t include the section header, style initialisation, preamble, theglossary environment, header and postamble.

As with `\printunsrtglossary`, `\printunsrtinnerglossary` constructs an internal control sequence containing the content, but it adds scoping to localise the effects of any supplied options. So it essentially does:

    🖹\begingroup
      〈Initial setup (process options).〉
      〈pre-code〉
      〈Construct internal control sequence containing glossary content.〉
      〈Expand internal control sequence.〉
      〈post-code〉
    \endgroup

There are two ways this command may be used.

📌
``\begin`{printunsrtglossarywrap}[〈options〉]〈content〉`\end{printunsrtglossarywrap}``
The printunsrtglossarywrap environment takes one optional argument that uses the same keys as `\printunsrtglossary` (see §8.3). Note that in this case the type key simply provides a title (if one has been assigned to that glossary). It doesn’t indicate the content. There’s no point using both type and title.

The start of the environment sets up the glossary style and does the header:

    🖹〈Set default title and style.〉
    〈Initial setup.〉
    \glossarysection[\glossarytoctitle]{\glossarytitle}%
    \glossarypreamble
    \begin{theglossary}\glossaryheader\glsresetentrylist

The end of this wrapper environment ends theglossary and does the postamble:

    🖹\end{theglossary}\glossarypostamble

Note that the `\printunsrtglossarypostbegin`, `\printunsrtglossarypreend` and `\printunsrtglossarypredoglossary` hooks aren’t used.

For example, the following has two glossaries but displays them as inner glossaries:

    🖹\newglossaryentry{ant}{name={ant},description={}}
    \newglossaryentry{bee}{name={bee},description={}}
    \newignoredglossary*{other}
    \newglossaryentry{duck}{name={duck},description={}}
    \newglossaryentry{goose}{name={goose},description={}}
    \begin{document}
    \begin{printunsrtglossarywrap}[style=index]
    \glstreeitem First Glossary
    \printunsrtinnerglossary[leveloffset=1]{}{}
    \glstreeitem Second Glossary
    \printunsrtinnerglossary[type=other,leveloffset=1]{}{}
    \end{printunsrtglossarywrap}
    \end{document}

🖺
Example 142: Inner glossaries using printunsrtglossarywrap 📥🖹 📥🖺

The other way that `\printunsrtinnerglossary` can be used is within `\printunsrtglossary`. The handler function described in §8.4.3 that’s used to process each entry to be displayed in the glossary, is defined as:

    🖹\newcommand{\printunsrtglossaryhandler}[1]{\glsxtrunsrtdo{#1}}

It’s possible to redefine this so that it also displays an inner glossary. The following example has the terms “pictograph” and “Greek symbol” in the `main` glossary. Two ignored glossaries are created (which don’t require a title) where the glossary label matches an entry label in the `main` glossary.

    🖹\usepackage{fontawesome}
    \usepackage[style=tree]{glossaries-extra}
    \newglossaryentry{pictograph}{name={pictograph},
     description={picture or symbol representing a word or phrase}}
    \newglossaryentry{mathgreek}{name={Greek symbol},
     description={mathematical constants or functions}}
    \newignoredglossary*{pictograph}
    \newignoredglossary*{mathgreek}
    \newglossaryentry{cut}{type={pictograph},
     name={\faCut},
     description={cut}}
    \newglossaryentrypaste{type={pictograph},
    name={\faPaste},
     description={paste}}
    \newglossaryentry{alpha}{type={mathgreek},
     name={\ensuremath{\alpha}},
     description={alpha}}
    \newglossaryentry{beta}{type={mathgreek},
     name={\ensuremath{\beta}},
     description={beta}}
    \begin{document}
    \newcommand{\nestedhandler}[1]{%
      \glsxtrunsrtdo{#1}%
      \ifglossaryexists*{#1}%
      {%
        \printunsrtinnerglossary[type={#1},leveloffset={++1},
          groups=false]{}{}%
      }%
      %
    }
    \printunsrtglossary*{\let\printunsrtglossaryhandler\nestedhandler}
    \end{document}

This creates a custom command `\nestedhandler` that can be used as the handler to create nested glossaries. After each item in the glossary, if the entry’s label matches the label of a defined glossary, that glossary is displayed with its hierarchical level incremented by 1, which creates the illusion of child entries. The resulting document is shown in Example 143.

🖺
Example 143: Nested glossaries 📥🖹 📥🖺

[top]

#### 8.4.3.2. Per-Unit Glossaries
[link]

If you are using bib2gls then it’s possible to only list entries that match a particular counter value. For example, you may want a mini-glossary at the start of a section that only lists the entries that have been recorded in that section. This can be done by using the handler to skip entries that don’t have a matching record. It can also be implemented with record counting, as shown in Example 156 in §11.4.

It’s also possible to make each indexing instance automatically make a note of a particular counter using:

📌
``\GlsXtrRecordCounter`{〈counter-name〉}`

(This doesn’t correspond to a bib2gls record. That’s dealt with by the indexing that comes first.)

This command may only be used in the preamble (with record) and indicates that whenever an entry is indexed, the following line should be added to the aux file:

📌
``\glsxtr@counterrecord`{〈entry-label〉}{〈counter〉}{〈value〉}`
where 〈value〉 is given by `\the〈counter〉`. On the next LaTeX run, this information is picked up from the aux file and the information is added to the record.〈counter〉 field (stored as an etoolbox internal list). This internal command is only used in the aux file and has a user-level hook:
📌
``\glsxtrAddCounterRecordHook`{〈entry-label〉}{〈counter〉}{〈value〉}`
This does nothing by default. If you want to redefined this, the redefinition must be placed in the document preamble before the aux file is input.

There are two ways of skipping an entry. The first is to redefine `\printunsrtglossaryentryprocesshook` to perform the test and use `\printunsrtglossaryskipentry` to skip an unwanted entry (as illustrated earlier). The second is to perform the test in `\printunsrtglossaryhandler`. The first method is the better option for large lists that may contain group headers. The example below uses the second method.

The file myentries.bib contains the following:

    🖹@symbol{pi,name={\ensuremath{\pi}},
    description={ratio of the length of the circumference of a circle to its diameter}}
    @symbol{root2,name={\ensuremath{\surd2}},
    description={Pythagoras' constant}}
    @symbol{zeta3,name={\ensuremath{\zeta(3)}},
    description={Ap\'ery's constant}}
    @symbol{zero,name={0},
    description={nothing or nil}}
    @symbol{one,name={1},
    description={single entity, unity}}

The document redefines the handler to only show entries in the current section:

    🖹\usepackage[record,stylemods,style=index]{glossaries-extra}
    \GlsXtrRecordCounter{section}
    \GlsXtrLoadResources[src={myentries}]
    \begin{document}
    \renewcommand{\printunsrtglossaryhandler}[1]{%
      \glsxtrfieldxifinlist{#1}{record.section}{\thesection}
      {\glsxtrunsrtdo{#1}}%
      {}%
    }
    \section{Sample}
    \printunsrtglossary
    This section discusses \gls{pi}, \gls{root2} and
    \gls{zeta3}.

    \section{Another Sample}
    \printunsrtglossary
    This section discusses \gls{one}, \gls{pi} and
    \gls{zero}.
    \end{document}

If the document is saved in the file myDoc.tex then the build process is:

    〉_pdflatex myDoc
    bib2gls myDoc
    pdflatex myDoc

The first LaTeX run adds the records to the aux file for bib2gls to pick up, but also adds the `\glsxtr@counterrecord` lines (which bib2gls ignores) that setup the `record.section` list field for the given entry.

This means that `\glsxtrfieldxifinlist` can be used to determine whether or not the current section number (`\thesection`) is in the list. If it is, then the entry is displayed in the current glossary style using the default `\glsxtrunsrtdo`. Otherwise nothing is displayed.

The following command is provided that performs something similar:

📌
``\printunsrtglossaryunit`[〈options〉]{〈counter-name〉}`
This is equivalent to:

    \printunsrtglossary*[type=\glsdefaulttype,#1]{%
      \printunsrtglossaryunitsetup{#2}%
    }

This initialises the hook via:
📌
``\printunsrtglossaryunitsetup`{〈counter-name〉}`
This is essentially does:

    % redefine handler to only show entries with a match:
    \renewcommand{\printunsrtglossaryhandler}[1]{%
      \glsxtrfieldxifinlist{#1}{record.〈counter-name〉}{\the〈counter-name〉}
      {\glsxtrunsrtdo{#1}}%
      {}%
    }%
    〈assign target name prefixes (see below)〉
    % suppress section header:
    \renewcommand*{\glossarysection}[2][]{}%
    % append vertical space after the glossary:
    \appto\glossarypostamble{\printunsrtglossaryunitpostskip}%

This is more complicated than the original example as it also suppresses the glossary section header and modifies the target name prefix. Additionally, the following is appended to the end of the glossary:
📌
``\printunsrtglossaryunitpostskip``
This simply does:

    \glspar\medskip\glspar

which creates a small vertical space. The target name prefix (targetnameprefix) is assigned as follows. If `\the〈counter-name〉` has been defined, the prefix is:

    record.〈counter-name〉.\the〈counter-name〉.\@gobble

otherwise the prefix is:

    record.〈counter-name〉.\the〈counter-name〉.\@gobble

The use of `\@gobble` at the end discards `\glolinkprefix`.

The above example can be rewritten using `\printunsrtglossaryunit`. I’ve added symbol-sort-fallback to sort by the description and a full glossary at the end of the document.

    🖹\usepackage[record,stylemods,style=index]{glossaries-extra}
    \GlsXtrRecordCounter{section}
    \GlsXtrLoadResources[src={myentries},
     symbol-sort-fallback=description
    ]
    \begin{document}
    \section{Sample}
    \printunsrtglossaryunit{section}
    This section discusses \gls{pi}, \gls{root2} and
    \gls{zeta3}.

    \section{Another Sample}
    \printunsrtglossaryunit{section}
    This section discusses \gls{one}, \gls{pi} and
    \gls{zero}.

    \printunsrtglossaries
    \end{document}

The build process is the same as before:

    〉_pdflatex myDoc
    bib2gls myDoc
    pdflatex myDoc

The resulting document is shown in Example 144. Note that all glossaries show the location lists, which all contain the page number 1, since the example document is only one page long.

🖺
Example 144: Sub-glossary for a given counter value 📥🖹 📥🖺

Other variations include creating a secondary glossary that’s ordered differently for the mini-glossaries. For example:

    🖹\newignoredglossary*{glossary2}
    \GlsXtrLoadResources[src={\jobname},
     symbol-sort-fallback=description,
     secondary=use:glossary2
    ]

This orders the secondary glossary according to use (the first record for the entire document not for the given unit). The mini-glossaries will then need the type option:

    🖹\printunsrtglossaryunit[type=glossary2]{section}

There is an alternative method that ensures the mini-glossaries are ordered by use within the section. This can be done by redefining `\glsxtrAddCounterRecordHook` to create a glossary for each unit (instead of using a secondary glossary):

    🖹\renewcommand{\glsxtrAddCounterRecordHook}[3]{%
     \provideignoredglossary{#2.#3}%
     \glsxtrcopytoglossary*{#1}{#2.#3}%
    }

(Remember this needs to be done in the preamble, before the aux file is input.)

This creates a glossary with the label `〈counter〉.〈value〉`, if it’s not already defined, and adds the entry’s label to it. This means that this glossary will only contain the entries for the matching 〈counter〉 and 〈value〉, and the entry labels are in the order they were added to the aux file.

The glossary needs to be set appropriately. For example:

    🖹\printunsrtglossaryunit[type=section.\thesection]{section}

There’s now no filtering required, but `\printunsrtglossaryunit` is still useful as it automatically suppresses the section header, alters the hyperlink prefix and adds extra spacing after the glossary. However, if you prefer, you can simply do something like:

    🖹\printunsrtglossary*[type=section.\thesection,
     target=false]
    \renewcommand*{\glossarysection}[2][]{}
    \printunsrtglossaryunitpostskip

This is done in Example 145.

🖺
Example 145: Sub-glossary for a given counter value ordered by use in the section 📥🖹 📥🖺

[top]

## 8.5. Standalone Entry Items
[link]

It may be that you don’t want a list but would rather display entry details throughout the document. You can simply do `\glsentryname` followed by `\glsentrydesc`. (Remember that if you don’t want a sorted list, use sort=none or sort=clear to skip the preprocessing of the sort field.) For example, in the preamble provide a custom command to display the entry’s name and description:

    🖹\newcommand{\displayterm}[1]{%
     \par\medskip\par\noindent
     Definition: \glsentryname{#1}.\par
     \glsentrydesc{#1}
     \par\medskip
    }

define your entries, for example:

    🖹\newglossaryentry{function}{name={function},
      description={a relation or expression involving variables}
    }

and then later in the text:

    🖹\displayterm{function}

However, if may be that you want to use hyperref and have commands like `\gls` link back to the place where the term is described. Instead of using `\glsentryname` use:

📌
``\glsxtrglossentry`{〈entry-label〉}`
where 〈entry-label〉 is the entry’s label.

This is designed to behave much like the way the name is displayed in the glossary. It performs the following:

- •Defines `\glscurrententrylabel` to the entry’s label. This is usually done at the start of the glossary style commands `\glossentry` and `\subglossentry` and may be used by hooks, such as the post-name hook. Here the definition is localised so that it’s only available for use in `\glossentryname`.

- •Defines `\currentglossary` to the entry’s glossary type. This is usually done at the start of commands like `\printglossary` and may be used by style hooks. Here the definition is localised so that it’s only available for use in `\glsentryitem` and `\glssubentryitem`. The value is obtained by fully expanding:
  📌
  ``\GlsXtrStandaloneGlossaryType``
  which defaults to the value of the type field for the current entry.

- •Increments and display the entry counters if the entrycounter or subentrycounter package options are set. If the entry doesn’t have a parent, then this does:

      \glsentryitem{〈entry-label〉}

  otherwise it does:
  📌
  ``\GlsXtrStandaloneSubEntryItem`{〈entry-label〉}`
  which defaults to ``\glssubentryitem`{〈entry-label〉}` if the entry has a parent but not a grandparent.

  This reflects the behaviour of the predefined hierarchical styles. A bug in pre-version 1.31 used `\glsentryitem` for all child levels, which doesn’t match the hierarchical glossary styles. If you want to restore this behaviour, just do:

      🖹\renewcommand*{\GlsXtrStandaloneSubEntryItem}[1]{%
       \glssubentryitem{#1}}

- •Sets the hyper-target if supported (using `\glstarget`) and displays the entry name using:
  📌
  ``\GlsXtrStandaloneEntryName`{〈entry-label〉}`
  which uses ``\glstarget`{〈entry-label〉}{`\glossentryname`{〈entry-label〉}}` by default. Remember that `\glossentryname` uses `\glsnamefont` or picks up the style from category attributes such as glossnamefont. This can result in duplicate targets if you use both standalone commands and display the glossary. In which case, you can redefine `\glstarget` to use `\glsxtrtarget`, which will ensure that the first target will be the one that takes precedence.

If you have used `\nopostdesc` or `\glsxtrnopostpunc` in any of your description fields, you can use:
📌
``\glsxtractivatenopost``
to make these commands behave as they normally do within a glossary. This needs to be placed before:

    \glossentrydesc{〈entry-label〉}\glspostdescription

and scoped. Note that `\glsnonextpages` and `\glsnextpages` have no effect outside of the glossary and are not intended for use in a standalone context.

It’s also possible to select a different field (rather than using name):

📌
``\glsxtrglossentryother`{〈header〉}{〈entry-label〉}{〈field-label〉}`
The 〈field-label〉 must be given using its internal field label. The 〈header〉 argument is the code to pass to the third argument of `\glsxtrtitleorpdforheading`. It may be left empty in which case the default is determined as follows:

- •If `\glsxtrhead〈field-label〉` is defined (see §5.3.3), then 〈header〉 is `\glsxtrhead〈field-label〉`{entry-label}.

- •Otherwise 〈header〉 is simply the field value.

The `\glsxtrglossentryother` command internally uses
📌
``\GlsXtrStandaloneEntryOther`{〈entry-label〉}{〈field-label〉}`
instead of `\GlsXtrStandaloneEntryName`, which uses ``\glossentrynameother`{〈entry-label〉}{field-label}` instead of ``\glossentryname`{〈entry-label〉}`.

If you have loaded the glossaries-accsupp package (through the accsupp option) then accessibility support will be provided if there’s a corresponding command:

    \gls〈field-label〉accessdisplay{〈text〉}{〈entry-label〉}

(for example, `\glssymbolaccessdisplay`).

This means that my custom command can be changed to:

    🖹\newcommand{\displayterm}[1]{%
     \par\medskip\par\noindent
     Definition: \glsxtrglossentry{#1}.\par
     \glsentrydesc{#1}
     \par\medskip
    }

If I want numbered definitions, then I can use the package options entrycounter or subentrycounter and remove the colon:

    🖹\newcommand{\displayterm}[1]{%
     \par\medskip\par\noindent
     Definition \glsxtrglossentry{#1}.\par
     \glsentrydesc{#1}
     \par\medskip
    }

The counter label uses a dot after the number by default but this can be changed to a colon:

    🖹\renewcommand*{\glsentrycounterlabel}{\theglossaryentry:\space}

It’s now possible to not only use `\gls` to link back to the definition but also use `\glsrefentry` to reference the counter and `\glsxtrpageref` to reference the page number.

If I want the description to behave more like it does in a glossary in need to make the following modification:

    🖹\newcommand{\displayterm}[1]{%
     \par\medskip\par\noindent
     Definition \glsxtrglossentry{#1}.\par
     \begingroup
      \glsxtractivatenopost
      \glossentrydesc{#1}\glspostdescription
     \endgroup
     \par\medskip
    }

(Note the grouping to localise `\glsxtractivatenopost`.)

You can also use `\glsxtrglossentry` within section headings. For example:

    🖹\section{\glsxtrglossentry{function}}

If `\glsxtrglossentry` occurs in a section title and hyperref has been loaded, then `\glsxtrglossentry` will expand in the PDF bookmark as:

📌
``\GlsXtrStandaloneEntryPdfName`{〈entry-label〉}`
This defaults to ``\glsentryname`{〈entry-label〉}` The page headers and table of contents will use
📌
``\GlsXtrStandaloneEntryHeadName`{〈entry-label〉}`
which defaults to ``\glsxtrheadname`{〈entry-label〉}`. For example, to ensure that the name is displayed in sentence case in the title, PDF bookmarks and heading:

    🖹\glssetcategoryattribute{general}{glossname}{firstuc}
    \renewcommand{\GlsXtrStandaloneEntryPdfName}[1]{\Glsentryname{#1}}
    \renewcommand{\GlsXtrStandaloneEntryHeadName}[1]{\Glsentryname{#1}}

Note that this requires glossaries v4.50+ to ensure that `\Glsentryname` expands. An alternative is to use `\Glsxtrusefield`.

If `\glsxtrglossentryother` occurs in a section title and hyperref has been loaded, then `\glsxtrglossentryother` will expand in the PDF bookmark as:

📌
``\GlsXtrStandaloneEntryPdfOther`{〈entry-label〉}{〈field-label〉}`
This defaults to the value of the given field. The page headers and table of contents will use the 〈header〉 argument, if not empty, otherwise it will use:
📌
``\GlsXtrStandaloneEntryHeadOther`{〈entry-label〉}{〈field-label〉}`
This does `\glsxtrhead〈field-label〉`, if it exists, or otherwise it just does the value of the given field (which can be obtained with `\glsxtrusefield`).

If you’re using a page style or table of contents that doesn’t use `\markright` or `\markboth` or `\@starttoc` then you need to insert `\glsxtrmarkhook` and `\@glsxtrinmark` at the start of the header or table of contents either scoped or afterwards cancelled with `\@glsxtrnotinmark` and `\glsxtrrestoremarkhook`, see §5.3.3.

[top]

## 8.6. Glossary Style Modifications
[link]

The glossaries-extra package redefines `\setglossarystyle`, and it now includes a hook that’s performed before the style is set:

📌
``\glsxtrpreglossarystyle``
This allows for new style commands that aren’t provided by the base glossaries package to be initialised in the event that a style that doesn’t redefine them is used. The default definition is:

    \newcommand{\glsxtrpreglossarystyle}{%
      \renewcommand*{\glssubgroupheading}[4]{\glsgroupheading{##4}}%
    }

If you prefer a different default, you can redefine this command as appropriate.

The commands `\glossentryname` and `\glossentrydesc` are modified to take into account the glossname, glossnamefont, glossdesc and glossdescfont attributes (see §10). This means you can make simple font or case-changing modifications to the name and description without defining a new glossary style.

The command `\glossentrysymbol` is modified to take into account the glosssymbolfont attribute. Note that, unlike the above, there’s no corresponding attribute to change the case as it’s usually not appropriate to change the case of a symbol (and for some symbols, such as pictographs, there’s no concept of case). If `\texorpdfstring` has been defined `\glossentrysymbol` will be defined to do:

    🖹\texorpdfstring{〈TeX code〉}{〈PDF〉}

The 〈TeX code〉 part is robust and deals with the actual typesetting of the symbol. The 〈PDF〉 part is simply:
📌
``\glsentrypdfsymbol`{〈entry-label〉}`
which is defined to just do ``\glsentrysymbol`{〈entry-label〉}`. The chances are that the code in the symbol key won’t be valid in the PDF bookmarks, so you can redefine `\glsentrypdfsymbol` to use a more appropriate field. (If you do redefine this command, remember that it needs to fully expand.)

For example, if you are using glossaries-accsupp, you could use the symbolaccess field:

    🖹\renewcommand{\glsentrypdfsymbol}[1]{%
     \glsentrysymbolaccess{#1}}

Alternatively, if you are using bib2gls you can use the TeX parser library to interpret a copy of the symbol field and use that. For example, with the resource options:

    🖹replicate-fields={symbol=user1},
    interpret-fields=user1

This copies the value of the symbol field to the user1 field (replicate-fields) and then replaces the value of the user1 field with its interpreted value (interpret-fields).

This means you can then do:

    🖹\renewcommand{\glsentrypdfsymbol}[1]{%
     \glsentryuseri{#1}}

(You may need XeLaTeX or LuaLaTeX with this method.) This allows `\glossentrysymbol` to be used in a section heading with standalone definitions. See the bib2gls manual for further details about the TeX interpreter.

If you want to adapt a style to use another field instead of name, you can use:

📌
``\glossentrynameother`{〈entry-label〉}{〈field-label〉}`
This behaves just like `\glossentryname` (that is, it obeys the glossname attribute, uses either the glossnamefont attribute or `\glsnamefont` to format the text, and uses the post-name hook) but the text is obtained from the field given 〈field-label〉 instead of name. The 〈field-label〉 argument must be the internal field label (for example `desc` rather than `description`).

[top]

### 8.6.1. Post-Name Hooks
[link]

The glossaries-extra package adds a hook to `\glossentryname` and `\Glossentryname` (which is used in glossary styles to display the entry’s name):

📌
``\glsxtrpostnamehook`{〈entry-label〉}`
This is the main post-name hook, which implements additional hooks to allow for customisation. By default, `\glsxtrpostnamehook` checks the indexname attribute. If the attribute exists for the category to which the entry belongs, then the name is automatically indexed using:

    \glsxtrdoautoindexname{〈entry-label〉}{indexname}

See §12 for further details.

The post-name hook `\glsxtrpostnamehook` will also use:

📌
``\glsxtrpostname〈category〉``
if it exists. You can use `\glscurrententrylabel` to obtain the entry label with the definition of this command. For example, suppose you are using a glossary style the doesn’t display the symbol, you can insert the symbol after the name for a particular category, say, the “symbol” category:

    🖹\newcommand*{\glsxtrpostnamesymbol}{\space
     (\glsentrysymbol{\glscurrententrylabel})}

For convenience, you can use:
📌
``\glsdefpostname`{〈category〉}{〈definition〉}`
This is simply a shortcut for:

    \csdef{\glsxtrpostname〈category〉}{〈definition〉}

Note that it doesn’t check if the command has already been defined.

The post-name hook also does:

📌
``\glsextrapostnamehook`{〈entry-label〉}`
(before `\glsxtrpostname〈category〉`) to allow for additional non-category related code. This does nothing by default.

[top]

### 8.6.2. Post-Description Hooks
[link]

The glossaries package provides the hook `\glspostdescription`, which is placed after the description in some of the predefined styles. The glossaries-extra-stylemods package modifies the predefined styles to ensure that they all use this hook. This provides a convenient way to make slight adjustments, such as appending content after the description, without having to define a custom glossary style.

The glossaries-extra package redefines `\glspostdescription` so that it includes the following hook:

📌
``\glsxtrpostdescription``
This new hook simply performs the category post-description hook:

    🖹\newcommand*{\glsxtrpostdescription}{%
      \csuse{glsxtrpostdesc\glscategory{\glscurrententrylabel}}%
    }

🛈
The punctuation that is automatically inserted with postdot or postpunc is placed after `\glsxtrpostdescription`, not before.

If you want to modify the hook for all entries (without affecting the postpunc or postdot options), then redefine `\glsxtrpostdescription`. If you want to adjust this hook according to the entry’s category, then you can simply redefine the category post-description hook.

📌
``\glsxtrpostdesc〈category〉``
Some common category post-description hooks are provided:
📌
``\glsxtrpostdescgeneral``initial: empty
The post-description hook for the general category.

📌
``\glsxtrpostdescterm``initial: empty
The post-description hook for the term category.

📌
``\glsxtrpostdescacronym``initial: empty
The post-description hook for the acronym category.

📌
``\glsxtrpostdescabbreviation``initial: empty
The post-description hook for the abbreviation category.

The above all do nothing by default. You can redefine them with `\renewcommand` or use:

📌
``\glsdefpostdesc`{〈category〉}{〈definition〉}`
This will define (or redefine) `\glsxtrpostdesc〈category〉`. The package options symbols, numbers and index provide corresponding category post-description hooks.

You can reference the current entry within these hooks using `\glscurrententrylabel`, which is defined within the glossary (any of the `\print…glossary` commands) and also within the standalone commands, such as `\glsxtrglossentry`.

📌
``\glsxtrnopostpunc``
Suppresses the post-description punctuation that is automatically inserted by package options postdot or postpunc.

The glossaries package provides `\nopostdesc`, which may be used in the description to suppress the post-description hook for that entry. This suppresses both the post-description punctuation and the additional `\glsxtrpostdescription` hook. If you only want to suppress to punctuation, then use `\glsxtrnopostpunc` instead.

🛈
The post-description hooks are implemented by `\glspostdescription` within the glossary style. If this command isn’t used in the style, then the additional hooks won’t be available.

📌
``\glsxtrrestorepostpunc``
If this command is placed in the definition of `\glsxtrpostdescription` or added to the category post-link hook, then it will counter-act any use of `\glsxtrnopostpunc` to restore the post-description punctuation.

These commands have no effect outside of the glossary (except with standalone entries that use `\glsxtractivatenopost` and `\glspostdescription`, see §8.5).

[top]

### 8.6.3. Number (Location) List
[link]

The location list is now placed inside the argument of:

📌
``\GlsXtrFormatLocationList`{〈location list〉}`
This is internally used by `\glossaryentrynumbers`. The nonumberlist option redefines `\glossaryentrynumbers` so that it doesn’t display the number list, but it still saves the number list in case it’s required. The desired font formatting for the location list can now more easily be set by redefining `\GlsXtrFormatLocationList`, without interfering with `\glossaryentrynumbers`.

ℹ
If you want to suppress the number list always use the nonumberlist option instead of redefining `\glossaryentrynumbers` to do nothing.

Note that if you are using the “unsrt” family of commands the location list will only be present if the appropriate field has been set (see §8.4.2). There’s no need to save locations with bib2gls or with `\printnoidxglossary` because this is performed automatically (unlike `\printglossary` where the trick with `\glossaryentrynumbers` is required to capture the location list).

Sometimes users like to insert “page” or “pages” in front of the location list. This is quite fiddly to do with the base glossaries package, but glossaries-extra provides a way of doing this. First you need to enable this option and specify the text to display using:

📌
``\GlsXtrEnablePreLocationTag`{〈page tag〉}{〈pages tag〉}`
where 〈page tag〉 is the text to display if the location list only contains a single location and 〈pages tag〉 is the text to display otherwise. For example:

    🖹\GlsXtrEnablePreLocationTag{Page: }{Pages: }

An extra run is required when using this command.

ℹ
Use glsignore not @gobble as the format if you want to suppress the page number (and only index the entry once).

See the accompanying sample file sample-pages.tex for an example.

🛈
Note that bib2gls the loc-prefix resource option inserts a prefix at the start of non-empty location lists, which can be used as an alternative to `\GlsXtrEnablePreLocationTag`. There is also a corresponding loc-suffix option to provide a suffix.

Location lists displayed with `\printnoidxglossary` internally use: `\glsnoidxdisplayloc` This command is provided by glossaries, but is modified by glossaries-extra to check for the start and end range formation identifiers ( and ) which are discarded to obtain the actual control sequence name that forms the location formatting command.

If the range identifiers aren’t present, this just uses

📌
``\glsxtrdisplaysingleloc`{〈format〉}{〈location〉}`
otherwise it uses
📌
``\glsxtrdisplaystartloc`{〈format〉}{〈location〉}`
for the start of a range (where the identifier has been stripped from 〈format〉) or
📌
``\glsxtrdisplayendloc`{〈format〉}{〈location〉}`
for the end of a range (where the identifier has been stripped from 〈format〉).

By default the start range command saves the format in:

📌
``\glsxtrlocrangefmt``
and does:

    \glsxtrdisplaysingleloc{〈format〉}{〈location〉}

(If the format is empty, it will be replaced with `glsnumberformat`.)

The end command checks that the format matches the start of the range, does:

📌
``\glsxtrdisplayendlochook``
(which does nothing by default), followed by:

    \glsxtrdisplaysingleloc{〈format〉}{〈location〉}

and then sets `\glsxtrlocrangefmt` to empty.

This means that the list

    🖹\glsnoidxdisplayloc{}{page}{(textbf}{1},
    \glsnoidxdisplayloc{}{page}{textbf}{1},
    \glsnoidxdisplayloc{}{page}{)textbf}{1}.

doesn’t display any differently from

    🖹\glsnoidxdisplayloc{}{page}{textbf}{1},
    \glsnoidxdisplayloc{}{page}{textbf}{1},
    \glsnoidxdisplayloc{}{page}{textbf}{1}.

but it does make it easier to define your own custom list handler that can accommodate the ranges.

[top]

### 8.6.4. Indexing Groups
[link]

The letter or symbol or number groups are a by-product of the indexing application. These are usually determined during the sorting according to the first (significant) character of the sort value. If the first character is an alphabetical character, the group is a letter group, with the group label the same as the letter. If the sort value is numeric, the group is a number group, with the label `glsnumbers`, otherwise the group is a symbol group with the label `glssymbols`.

🛈
For the “unsrt” family of commands, see §8.4.1 for more details about how group headers are inserted into the glossary. Only those commands are able to support sub-groups.

With xindy, the number group is automatically provided with the xindy=glsnumbers package option. It can be suppressed with xindy={glsnumbers=false} (see the base glossaries user manual for further details).

With bib2gls, group formation requires --group (or -g). This setting is off by default to allow for a faster process where no groups are required. When this setting is on, there are additional groups, depending on the sort method. For example, if you use a date-time sort method, then you will have date-time groups.

⚠
Take care not to confusion groups with hierarchy. See Gallery: Logical Glossary Divisions (type vs group vs parent) for the difference between the group, type and parent fields.

The base glossaries package provides a simplistic way of assigning a title to a group to allow for the use of language-sensitive commands `\glssymbolsgroupname` and `\glsnumbersgroupname`, which correspond to the `glssymbols` and `glsnumbers` groups. The more flexible groups that can be created with bib2gls require a better approach that is less likely to cause a conflict.

📌
``\glsxtrsetgrouptitle`{〈group-label〉}{〈group-title〉}`
Globally assigns the given title 〈group-title〉 to the group identified by 〈group-label〉. This command is used implicitly within the glstex file to assign titles to groups obtained by bib2gls. Judicious definitions of the helper commands provided by bib2gls can provide a more flexible way of assigning groups.

📌
``\glsxtrlocalsetgrouptitle`{〈group-label〉}{〈group-title〉}`
As above but the assignment is local.

📌
``\glsxtrgetgrouptitle`{〈group-label〉}{〈cs〉}`
Obtains the title corresponding to the group identified by 〈group-label〉 and stores the result in 〈cs〉. This command first checks if a title has been assigned by `\glsxtrgetgrouptitle` and then, for compatibility with the base glossaries package, it will test for the existence of `\〈group-label〉groupname` if 〈group-label〉 is `glssymbols` or `glsnumbers` or a single character. If no title is obtained from any of these tests, then the title will be assumed to be the same as the label.

🛈
The `\printnoidxglossary` command has a slightly different method, which uses the character code so it’s not suitable with UTF-8. In general, `\printnoidxglossary` is best avoided, where possible, and is inappropriate for locale-sensitive sorting.

[top]

### 8.6.5. glossaries-extra-stylemods
[link]

The glossaries-extra-stylemods package (more conveniently loaded through the glossaries-extra stylemods option) modifies some of the predefined styles that are provided with the glossaries package.

ℹ
Any styles loaded after glossaries-extra-stylemods won’t be patched.

The stylemods option may be provided without a value, in which case all currently defined styles will be patched. Alternatively, you can supply a comma-separated list as the value, which indicates that, for each 〈element〉 in the list, the package glossary-〈element〉 should be loaded and, if it’s a package provided with the base glossaries package, patched. For example:

    \usepackage{glossaries-extra}
    \usepackage{glossary-longragged}
    \usepackage{glossary-mcols}
    \usepackage{glossaries-extra-stylemods}
    \setglossarystyle{mcolindex}

is equivalent to:

    \usepackage[stylemods={longragged,mcols},style=mcolindex]{glossaries-extra}

You may prefer to combine stylemods=with nostyles to reduce the overhead of loading unnecessary packages.

The glossaries-extra-stylemods package adjusts the predefined styles so that they all use `\glspostdescription` and replaces any hard-coded space before the location list with

📌
``\glsxtrprelocation``initial: `\space`
You can therefore redefine that command in combination with postpunc to alter the separator before the location list. For example, to have a comma followed by `\hfil`:

    🖹\usepackage[postpunc=comma,stylemods]{glossaries-extra}
    \renewcommand{\glsxtrprelocation}{\hfil}

⚠
Be careful with doing this as it will look odd if the location list is missing.

With bib2gls you can instead redefine `\glsxtrprelocation` to do nothing and set the location prefixes with loc-prefix which will only apply if the entry has a location list. Alternatively, you could redefine `\glsxtrprelocation` to check if the location field is set.

[top]

#### 8.6.5.1. Inline Style
[link]

The patched inline style is dealt with slightly differently. The original definition provided by the glossary-inline package uses `\glspostdescription` at the end of the glossary (not after each entry description) within the definition of `\glspostinline`. The style modification changes this so that `\glspostinline` just does a full stop followed by space factor adjustment, and the description `\glsinlinedescformat` and sub-entry description formats `\glsinlinesubdescformat` are redefined to include `\glsxtrpostdescription` (not `\glspostdescription`). This means that the modified inline style isn’t affected by the nopostdot option, but the category post-description hook can still be used.

[top]

#### 8.6.5.2. Tabular Styles
[link]

The tabular-like styles, such as long are adjusted so that the `\ifglsnogroupskip` conditional (set with nogroupskip) is moved outside of the definition of `\glsgroupskip` to avoid problems that cause an “Incomplete `\iftrue`” error with `\printunsrtglossary` and `\printnoidxglossary`. This means that if you want to change this conditional using `\setupglossaries` or using the nogroupskip option in `\printglossary`, `\printnoidxglossary` or `\printunsrtglossary`, you must also reset the glossary style.

[top]

#### 8.6.5.3. List Styles
[link]

The list styles use:

📌
``\glslistprelocation``initial: `\glsxtrprelocation`
(which defaults to `\glsxtrprelocation`) for top-level items and:
📌
``\glslistchildprelocation``initial: `\glslistprelocation`
(which defaults to `\glslistprelocation`) for child items.

The description (including the post-description hook) is governed by:

📌
``\glslistdesc`{〈entry-label〉}`
for the list and altlist styles (but not the listdotted variations).

The hard-coded ``\item`[〈target and name〉]` is replaced with:

📌
``\glslistitem`{〈entry-label〉}`
The altlist styles use:
📌
``\glsaltlistitem`{〈entry-label〉}`
which internally uses `\glslistitem`. The header item (for the list styles that should the group title, such as listgroup) is governed by:
📌
``\glslistgroupheaderitem`{〈group-label〉}{〈header code〉}`
This ignores the 〈group-label〉 by default and simply places the second argument in the optional argument of `\item`. The 〈header code〉 is the formatted group title, possibly including a hypertarget. The spacing after the group item is given by:
📌
``\glslistgroupafterheader``

For just the list style and its letter group variations (not the altlist or listdotted variations) the location list for child entries is followed by:

📌
``\glslistchildpostlocation``initial: .
which defaults to a full stop.

The default value of `\glslistdottedwidth` is changed so that it’s set at the start of the document (if it hasn’t been changed in the preamble). This should take into account situations where `\hsize` isn’t set until the start of the document.

The separator between groups (if not nogroupskip) is now given by:

📌
``\glslistgroupskip``
This defaults to `\indexspace` with penalties to deter page breaks. This command isn’t used if nogroupskip is set.

[top]

#### 8.6.5.4. Tree Styles
[link]

The group headings for styles like treegroup are formatted with:

📌
``\glstreegroupheaderfmt`{〈text〉}`
The navigation elements for styles like treehypergroup is formatted with:
📌
``\glstreenavigationfmt`{〈text〉}`
The above two commands are defined in terms of `\glstreenamefmt`, since that was the command originally used for the group headings and navigation. This now allows these different elements to be defined independently, but the most common redefinition is for `\glstreenamefmt` to remove the bold in the name. If the bold is still required for the group heading and navigation elements, then both other commands also need redefining. To simplify matters, all three commands have been defined to use:
📌
``\glstreedefaultnamefmt`{〈text〉}`
This simply does ``\textbf`{〈text〉}`.

This means that if you want to change all three to use a particular style you only need to redefine `\glstreedefaultnamefmt`, but if you only want to redefine `\glstreenamefmt` without affecting the other two commands, then you now can.

The separator between groups without headers is given by:

📌
``\glstreegroupskip``
This defaults to just `\indexspace` without penalties. This command isn’t used if nogroupskip is set. (The penalties introduced in v1.41 were moved to `\glstreegroupheaderskip` in v1.42 as they are inappropriate when there’s no header.)

The separator between groups with headers is now given by:

📌
``\glstreegroupheaderskip``
This defaults to `\glstreegroupskip` with penalties to deter page breaks after the group heading.

The styles that display the group titles now use:

📌
``\glstreePreHeader`{〈group-label〉}{〈group-title〉}`
This does nothing by default and is inserted before the group title. You can redefine it to add the group title to the PDF bookmarks. For example, if the glossary title uses `\chapter` then:

    🖹\renewcommand{\glstreePreHeader}[2]{%
     \pdfbookmark[1]{#2}{\currentglossary.#1}%
    }

will insert section-level bookmarks. The use of `\currentglossary` helps to provide unique bookmark labels in the event of multiple glossaries.

The glossary-tree package provides the commands

📌
``\glstreepredesc``
and
📌
``\glstreechildpredesc``
(which both default to a space) and uses them in the tree-like styles, but not for the alttree style. The glossaries-extra-stylemods package modifies the alttree style so that it has equivalent hooks:
📌
``\glsalttreepredesc``
and
📌
``\glsalttreechildpredesc``
These do nothing by default.

The index-like and tree-like styles insert the pre-location list space with:

📌
``\glstreeprelocation``initial: `\glsxtrprelocation`
(which defaults to `\glsxtrprelocation`) for top-level items and
📌
``\glstreechildprelocation``initial: `\glstreeprelocation`
(which defaults to `\glstreeprelocation`) for child items.

The styles like treenoname use:

📌
``\glstreenonamedesc`{〈entry-label〉}`
to display the pre-description separator, the description and the post-description hook. Similarly for the symbol:
📌
``\glstreenonamesymbol`{〈entry-label〉}`
The above are just used for top-level entries. Child entries don’t have the name or symbol displayed for the treenoname styles, so there’s only a command for the child description:
📌
``\glstreenonamechilddesc`{〈entry-label〉}`

For the tree styles (but not the treenoname or alttree styles), the description is displayed using:

📌
``\glstreedesc`{〈entry-label〉}`
and the symbol with:
📌
``\glstreesymbol`{〈entry-label〉}`
Again the above two commands are just for top-level entries. The child entries use:
📌
``\glstreechilddesc`{〈entry-label〉}`
for the description and
📌
``\glstreechildsymbol`{〈entry-label〉}`
for the symbol. There are now wrapper commands for `\glstreedesc` and `\glstreechilddesc` that check for the description and symbol to determine what separator to use before the page list:
📌
``\glstreeDescLoc`{〈entry-label〉}{〈location list〉}`
for top-level entries and
📌
``\glstreeChildDescLoc`{〈entry-label〉}{〈location list〉}`
for sub-entries.

If either the symbol or description is present these will use `\glstreeprelocation` or `\glstreechildprelocation`, respectively. Otherwise, both will use:

📌
``\glstreeNoDescSymbolPreLocation``
The default is a space. This means that you could have, say, a comma followed by a space for terms that are simply an alias, but just have a space for terms that have a description that ends with a full stop (or that just have a symbol without a description) where the comma would be inappropriate.

🛈
Version 1.42 has corrected an error that was introduced to v1.41 that caused the name to run into the location list if there was no symbol and no description.

There are some additional commands for use with the alttree style to make it easier to modify. These commands are only defined if the glossary-tree package has already been loaded, which is typically the case unless the notree or nostyles option has been used when loading glossaries.

📌
``\gglssetwidest`[〈level〉]{〈name〉}`
This is like `\glssetwidest` but performs a global assignment.

📌
``\eglssetwidest`[〈level〉]{〈name〉}`
This is like `\glssetwidest` but expands 〈name〉.

📌
``\xglssetwidest`[〈level〉]{〈name〉}`
This is like `\eglssetwidest` but performs a global assignment.

The following only set the value if 〈name〉 is wider than the current value. Local update:

📌
``\glsupdatewidest`[〈level〉]{〈name〉}`
Global update:
📌
``\gglsupdatewidest`[〈level〉]{〈name〉}`
Locale update (expands 〈name〉):
📌
``\eglsupdatewidest`[〈level〉]{〈name〉}`
Global update (expands 〈name〉):
📌
``\xglsupdatewidest`[〈level〉]{〈name〉}`

The widest entry value can later be retrieved using:

📌
``\glsgetwidestname``
which expands to the widest top-level name and:
📌
``\glsgetwidestsubname`{〈level〉}`
expands to either the widest name for the given hierarchical level or to the widest top-level name, if no widest name set for 〈level〉.

Note that if you are using bib2gls, you can use the resource option set-widest which will try to determine the widest name of all the selected entries. This isn’t guaranteed to work as it may depend on fonts or commands that bib2gls can’t replicate, but it should be suitable for names that just consist of text, and can be more efficient than iterating over all the defined entries using TeX.

The command `\glsfindwidesttoplevelname` provided by glossary-tree has a CamelCase synonym:

📌
``\glsFindWidestTopLevelName``
Similar commands are also provided. If the optional 〈glossary labels〉 is omitted, the list of all non-ignored glossaries is assumed.
📌
``\glsFindWidestUsedTopLevelName`[〈glossary labels〉]`
This has an additional check that the entry has been used. Naturally this is only useful if the glossaries that use the alttree style occur at the end of the document. This command should be placed just before the start of the glossary. (Alternatively, place it at the end of the document and save the value in the auxiliary file for the next run.)

📌
``\glsFindWidestUsedAnyName`[〈glossary labels〉]`
This is like the previous command but if doesn’t check the parent key. This is useful if all hierarchical levels should have the same width for the name.

📌
``\glsFindWidestAnyName`[〈glossary labels〉]`
This is like the previous command but doesn’t check if the entry has been used.

📌
``\glsFindWidestUsedLevelTwo`[〈glossary labels〉]`
This is like `\glsFindWidestUsedTopLevelName` but also sets the first two sub-levels as well. Any entry that has a great-grandparent is ignored.

📌
``\glsFindWidestLevelTwo`[〈glossary labels〉]`
This is like the previous command but doesn’t check if the entry has been used.

📌
``\glsFindWidestUsedAnyNameSymbol`[〈glossary labels〉]{〈register〉}`
This is like `\glsFindWidestUsedAnyName` but also measures the symbol. The length of the widest symbol is stored in 〈register〉.

📌
``\glsFindWidestAnyNameSymbol`[〈glossary labels〉]{〈register〉}`
This is like the previous command but it doesn’t check if the entry has been used.

📌
``\glsFindWidestUsedAnyNameSymbolLocation`[〈glossary labels〉]{〈register1〉}{〈register2〉}`
This is like `\glsFindWidestUsedAnyNameSymbol` but also measures the location list. This requires `\glsentrynumberlist`. The length of the widest symbol is stored in 〈register1〉 and the length of the widest location list is stored in 〈register2〉.

📌
``\glsFindWidestAnyNameSymbolLocation`[〈glossary labels〉]{〈register1〉}{〈register2〉}`
This is like the previous command but it doesn’t check if the entry has been used.

📌
``\glsFindWidestUsedAnyNameLocation`[〈glossary labels〉]{〈register〉}`
This is like `\glsFindWidestUsedAnyNameSymbolLocation` but doesn’t measure the symbol. The length of the widest location list is stored in 〈register〉.

📌
``\glsFindWidestAnyNameLocation`[〈glossary labels〉]{〈register〉}`
This is like the previous command but doesn’t check if the entry has been used.

The layout of the symbol, description and location list is governed by:

📌
``\glsxtralttreeSymbolDescLocation`{〈entry-label〉}{〈location list〉}`
for top-level entries and
📌
``\glsxtralttreeSubSymbolDescLocation`{〈entry-label〉}{〈location list〉}`
for sub-entries.

There is now a user level command that performs the initialisation for the alttree style:

📌
``\glsxtralttreeInit``
The paragraph indent for subsequent paragraphs in multi-paragraph descriptions is provided by the length:
📌
``\glsxtrAltTreeIndent``

For additional commands that are available with the alttree style, see the documented code (glossaries-extra-code.pdf). See also the accompanying sample files sample-alttree.tex, sample-alttree-sym.tex and sample-alttree-marginpar.tex.

[top]

## 8.7. New Glossary Styles
[link]

The glossaries-extra package comes with some new styles. The associated style package needs to be loaded. This can be done with `\usepackage` but it’s simpler to use the stylemods option. For example:

    🖹\usepackage[stylemods=bookindex,style=bookindex]{glossaries-extra}

If you don’t require any of the base styles, use nostyles (but note that some style packages automatically load another style package if it the style builds on an existing one).

[top]

### 8.7.1. glossary-bookindex package
[link]

The glossary-bookindex package provides the glossary style bookindex. This is very similar to the mcolindexgroup style but is designed for indexes, so by default only the name and location list are displayed. This style is demonstrated in Example 146 (using bib2gls). Note that some entries don’t have location lists because they weren’t recorded in the document, but were included as dependencies. See §5.9.1 for dealing with cross-references that may not be required.

🖺
Example 146: The bookindex style 📥🖹 📥🖺

The bookindex style only supports a maximum hierarchical level of 2 (top-level, level 1 and level 2). It’s primarily designed for use with bib2gls. It may be used with other indexing options, but some features may not be present and UTF-8 characters may cause a problem with non-Unicode engines in letter group headings or PDF bookmarks. (bib2gls uses numeric identifies by default to avoid these problems, see §8.4.1.)

The number of columns is given by:

📌
``\glsxtrbookindexcols``initial: 2
which defaults to 2.

This style uses the multicols environment. If the command:

📌
``\glsxtrbookindexcolspread``
isn’t empty then it’s supplied as the optional argument following ``\begin{multicols}`{〈n〉}`. You can switch from multicols to multicols* by redefining:
📌
``\glsxtrbookindexmulticolsenv``
For example:

    🖹\renewcommand{\glsxtrbookindexmulticolsenv}{multicols*}

Each top-level entry is displayed using:

📌
``\glsxtrbookindexname`{〈entry-label〉}`
This just does ``\glossentryname`{〈entry-label〉}` by default. For example, if you want the symbol to be included:

    🖹\renewcommand*{\glsxtrbookindexname}[1]{%
     \glossentryname{#1}%
     \ifglshassymbol{#1}{\space (\glossentrysymbol{#1})}{}%
    }

or if you want the description (if set):

    🖹\renewcommand*{\glsxtrbookindexname}[1]{%
     \glossentryname{#1}%
     \ifglshasdesc{#1}{\space \glossentrydesc{#1}\glspostdescription}%
    }

(which picks up the post-description hook).

Alternatively you can use the `\glsxtrpostname〈category〉` hook to append information after the name according to the entry’s category.

Sub-entries are displayed using:

📌
``\glsxtrbookindexsubname`{〈entry-label〉}`
which just defaults to ``\glsxtrbookindexname`{〈entry-label〉}`.

The separator used before the location list for top-level entries is given by:

📌
``\glsxtrbookindexprelocation`{〈entry-label〉}`
where 〈entry-label〉 is the entry’s label. This checks if the location field has been set. If it has, it does:

    🖹,\glsxtrprelocation

otherwise it just does `\glsxtrprelocation` (which defaults to `\space`) with no comma. If you’re using bib2gls with save-locations=false, the location field won’t be set.

The separator used before the location list for sub-entries is given by:

📌
``\glsxtrbookindexsubprelocation`{〈entry-label〉}`
which defaults to ``\glsxtrbookindexprelocation`{entry-label}`.

The actual location list is encapsulated with:

📌
``\glsxtrbookindexlocation`{〈entry-label〉}{〈location list〉}`
for top-level entries and:
📌
``\glsxtrbookindexsublocation`{〈entry-label〉}{〈location list〉}`
for sub-entries. These both just do 〈location list〉 by default.

The separator used between a top-level parent and child entry is given by:

📌
``\glsxtrbookindexparentchildsep``
This defaults to `\nopagebreak`.

The separator used between a sub-level parent and child entry is given by:

📌
``\glsxtrbookindexparentsubchildsep``
This defaults to `\glsxtrbookindexparentchildsep`.

The separator between top-level entries is given by:

📌
``\glsxtrbookindexbetween`{〈entry1-label〉}{〈entry2-label〉}`
This comes after the entry given by 〈entry1-label〉, if the entry has no children, or after the last descendent otherwise, so it always comes immediately before the entry given by 〈entry2-label〉 unless the entry occurs at the start of a group. This does nothing by default.

The separator between two level 1 entries is given by:

📌
``\glsxtrbookindexsubbetween`{〈entry1-label〉}{〈entry2-label〉}`

The separator between two level 2 entries is given by:

📌
``\glsxtrbookindexsubsubbetween`{〈entry1-label〉}{〈entry2-label〉}`

At the end of each letter group, the following hooks are done in order:

📌
``\glsxtrbookindexsubsubatendgroup`{〈entry-label〉}`
where 〈entry-label〉 is the label of the last level 2 entry
📌
``\glsxtrbookindexsubatendgroup`{〈entry-label〉}`
where 〈entry-label〉 is the label of the last level 1 entry
📌
``\glsxtrbookindexatendgroup`{〈entry-label〉}`
where 〈entry-label〉 is the label of the last level 0 entry.

For example, the resource option seealso=omit instructs bib2gls to omit the seealso cross-reference from the location list. (The see cross-reference will still be added unless you also have see=omit.) The seealso cross-reference can instead be appended after the child entries using:

    🖹\renewcommand{\glsxtrbookindexatendgroup}[1]{%
      \glsxtrifhasfield{seealso}{#1}%
      {\glstreesubitem\glsxtruseseealso{#1}}{}%
    }
    \renewcommand{\glsxtrbookindexbetween}[2]{%
      \glsxtrbookindexatendgroup{#1}%
    }
    \renewcommand{\glsxtrbookindexsubatendgroup}[1]{%
      \glsxtrifhasfield{seealso}{#1}%
      {\glstreesubsubitem\glsxtruseseealso{#1}}{}%
    }

    \renewcommand{\glsxtrbookindexsubbetween}[2]{%
      \glsxtrbookindexsubatendgroup{#1}%
    }

    \renewcommand{\glsxtrbookindexsubsubatendgroup}[1]{%
      \glsxtrifhasfield{seealso}{#1}%
      {\glstreeitem\hspace*{40pt}\glsxtruseseealso{#1}}{}%
    }

    \renewcommand{\glsxtrbookindexsubsubbetween}[2]{%
      \glsxtrbookindexsubsubatendgroup{#1}%
    }

This uses `\glstreesubitem` and `\glstreesubsubitem` to indent the cross-reference according to the next level down, so the cross-reference for a top-level entry is aligned with the sub-entries, and a level 1 entry has its cross-reference aligned with sub-sub-entries. In the event that a level 2 entry has a cross-reference, this is indented a bit further (but it won’t be aligned with any deeper level as the bookindex style only supports a maximum of two sub-levels).

The bookindex style uses group headings. (If you use bib2gls remember to invoke it with the --group or -g switch, see §8.4.1.) The heading will use:

📌
``\glsxtrbookindexbookmark`{〈group-title〉}{〈bookmark-name〉}`
If `\pdfbookmark` has been defined, this will use that command to bookmark the group title. If section=chapter is set (default if chapters are defined) then this uses level 1 otherwise it uses level 2. You can redefine this command if this isn’t appropriate. If `\pdfbookmark` hasn’t been defined, this command does nothing.

The group heading is formatted according to:

📌
``\glsxtrbookindexformatheader`{〈group-title〉}`
which is defined as:

    🖹\newcommand*{\glsxtrbookindexformatheader}[1]{%
      \par{\centering\glstreegroupheaderfmt{#1}\par}%
    }

where `\glstreegroupheaderfmt` is provided by the glossary-tree package, which is automatically loaded. Note that the entry names aren’t encapsulated with `\glstreenamefmt`.

The skip after a group header is given by:

📌
``\glsxtrbookindexpregroupskip`{〈skip〉}`
The argument is the skip that would normally be inserted if there wasn’t a group header.

The glossary-bookindex package provides some supplementary commands that aren’t used by default, but may be used when adjusting the style. These commands should only be used within one of the `\print…glossary` commands. (That is, they should only be used in glossary styles or in hooks.)

📌
``\glsxtrbookindexmarkentry`{〈entry-label〉}`
This writes information to the aux file that can be read on the next run to obtain the first and last entry on each page of the glossary.

You can display the first entry associated with the current page using:

📌
``\glsxtrbookindexfirstmark`{〈entry-label〉}`
and the last entry associated with the current page using:
📌
``\glsxtrbookindexlastmark`{〈entry-label〉}`
These do nothing if there are no entries marked on the current page (or if the document build isn’t up to date).

The entry is formatted using:

📌
``\glsxtrbookindexfirstmarkfmt`{〈entry-label〉}`
for the first instance and
📌
``\glsxtrbookindexlastmarkfmt`{〈entry-label〉}`
for the last.

These commands are designed for use in page headers or footers where the page number is stable. For example, `\glsxtrbookindexname` can be redefined to mark the current entry:

    🖹\renewcommand{\glsxtrbookindexname}[1]{%
      \glsxtrbookindexmarkentry{#1}%
      \glossentryname{#1}%
    }

If you only want to mark the top-level entries, remember to redefine `\glsxtrbookindexsubname` as it defaults to `\glsxtrbookindexname`:

    🖹\renewcommand{\glsxtrbookindexsubname}[1]{%
      \glossentryname{#1}%
    }

Then if you’re using fancyhdr you can set the page style to show the first and last entry for the current page with:

    🖹\pagestyle{fancy}%
    \lhead{\thepage}%
    \lfoot{\glsxtrbookindexfirstmark}%
    \cfoot{}%
    \rfoot{\glsxtrbookindexlastmark}%

[top]

### 8.7.2. glossary-longextra package
[link]

The glossary-longextra package provides additional tabular-like styles similar to those provided by glossary-longbooktabs (which is automatically loaded). These don’t support hierarchical levels except for homographs (level 1 entries with the same name as their parent).

By default, these styles use the longtable environment, but if you know that your glossary won’t span more than a page and you need to use it in a context that’s incompatible with longtable, you can instead setup these styles to use tabular instead. In order to do this you must use:

📌
``\GlsLongExtraUseTabulartrue``
before the style is set. If you later want to switch back to using longtable for another glossary, use:
📌
``\GlsLongExtraUseTabularfalse``
(or scope `\GlsLongExtraUseTabulartrue`). Again, the style must be set after this change to the conditional is implemented. You can test this setting with:
📌
``\ifGlsLongExtraUseTabular` 〈true〉`\else` 〈false〉`\fi``initial: `\iffalse`

For example:

    🖹\GlsLongExtraUseTabulartrue
    \setglossarystyle{long-name-desc}

or

    🖹\GlsLongExtraUseTabulartrue
    \printunsrtglossary[style=long-name-desc]

If you switch to tabular, the default vertical alignment is obtained from:
📌
``\glslongextraTabularVAlign``initial: c
This should expand to one of: `c` (centred), `t` (top) or `b` (bottom). The default is `c`.

For either tabular or longtable, the column titles are formatted according to:

📌
``\glslongextraHeaderFmt`{〈text〉}`
which simply does `\textbf{〈text〉}` by default. As with the long-like styles, the header text for the columns are given by the language-sensitive commands: `\entryname`, `\descriptionname`, `\symbolname` and `\pagelistname`.

Most styles show the name which, as with other predefined styles, also includes the entry item number (if entrycounter is on) and hypertarget anchor. These are all performed for top-level entries with:

📌
``\glslongextraNameFmt`{〈entry-label〉}`
This uses `\glossentryname`, so it supports the post-name hook and associated attributes. Child entries are displayed with:
📌
``\glslongextraSubNameFmt`{〈level〉}{〈entry-label〉}`
This includes the sub-entry item number (if subentrycounter is on) and the hypertarget anchor. The actual name isn’t shown by default.

The horizontal alignment for the name column is obtained with:

📌
``\glslongextraNameAlign``initial: l
This expands to `l` by default.

For styles that show the description, that’s formatted with:

📌
``\glslongextraDescFmt`{〈entry-label〉}`
for top-level entries, which uses `\glossentrydesc` and the post-description hook, and
📌
``\glslongextraSubDescFmt`{〈level〉}{〈entry-label〉}`
for child entries (which just uses `\glslongextraDescFmt`).

The horizontal alignment for the description column is obtained with:

📌
``\glslongextraDescAlign``
This expands to `>{\raggedright}p{`\glsdescwidth`}` by default. This means ragged-right paragraph style with width given by `\glsdescwidth`. (See the documentation for the array package for information about this alignment syntax.) If a widest name has been set, `\glsdescwidth` will be calculated according to the best fit for the given style.

If you are using bib2gls, you may be able to use the set-widest option, otherwise to set the widest name, use:

📌
``\glslongextraSetWidest`{〈widest-name〉}`
If you have already used `\glssetwidest` provided with the alttree style, the default widest name will be obtained from that, but note that only level 0 is supported for the glossary-longextra styles.

You can update the widest name with:

📌
``\glslongextraUpdateWidest`{〈name〉}`
This is like `\glslongextraSetWidest` but will only set the new value if it’s wider than the current widest name.

Although these styles don’t support hierarchy, the following is provided for child entries:

📌
``\glslongextraUpdateWidestChild`{〈level〉}{〈name〉}`
This does nothing by default. If `\glslongextraSubNameFmt` is redefined to show the child name, then the above command will need to be redefined to use `\glslongextraUpdateWidest`.

For styles that show the location list, that’s formatted with:

📌
``\glslongextraLocationFmt`{〈entry-label〉}{〈location list〉}`
for top-level entries. Child location lists are formatted with:
📌
``\glslongextraSubLocationFmt`{〈level〉}{〈entry-label〉}{〈location list〉}`
Both of these simply do the 〈location list〉 argument.

The horizontal alignment for the location list column is obtained with:

📌
``\glslongextraLocationAlign``
This expands to `>{\raggedright}p{`\glspagelistwidth`}` by default. This means ragged-right paragraph style with width given by `\glspagelistwidth`.

For styles that show the symbol (in addition to the name), that’s formatted with:

📌
``\glslongextraSymbolFmt`{〈entry-label〉}`
for top-level entries. This simply uses `\glossentrysymbol`. Child entries use:
📌
``\glslongextraSubSymbolFmt`{〈level〉}{〈entry-label〉}`
which uses `\glslongextraSymbolFmt`.

The horizontal alignment for the symbol column (except for the long-sym-desc and long-desc-sym styles) is obtained with:

📌
``\glslongextraSymbolAlign``initial: c
This expands to `c` by default.

Top-level group headings are formatted with:

📌
``\glslongextraGroupHeading`{〈number columns〉}{〈group-label〉}`
The first argument is the total number of columns in the table. For example, 2 for the long-name-desc style or 3 for the long-name-sym-desc style. The second argument is the group’s label (not the title). This command does nothing by default. (If you are using bib2gls, remember that you need to use the --group or -g switch to support groups.)

Sub-level groups are only supported with the “unsrt” family of commands (see §8.4.1). When they are supported, the heading will be formatted with:

📌
``\glslongextraSubGroupHeading`{〈number columns〉}{〈prev group level〉}{〈group level〉}{〈parent-entry-label〉}{〈group-label〉}`

The styles are sub-divided below into the set of elements that are shown in each column, which may consist of: name, symbol, description or location list. There will be blank cells if any of the corresponding fields have not been set or if the location list has been suppressed.

[top]

#### 8.7.2.1. Name and Description Only
[link]

These styles don’t display the symbol or location list, regardless of whether or not they have been set. In each case, the style starts with:

📌
``\glslongextraSetDescWidth``
which updates `\glsdescwidth` according to the widest name, identified with `\glslongextraSetWidest`. The column header text is also taken into account. If a widest name hasn’t been set and the column header is shorter than one or more names, the description column may be too wide. The value of `\glsdescwidth` is calculated as `\linewidth`-4`\tabcolsep`-W, where W is the width of the widest name.

If you want to set `\glsdescwidth` to a specific value, then redefine `\glslongextraSetDescWidth` with the desired length assignment.

𝍢
`long-name-desc`
This has two columns: the name on the left and the description on the right. The table header is given by:
📌
``\glslongextraNameDescTabularHeader``
which shows the column headers with horizontal rules. The table footer is given by:
📌
``\glslongextraNameDescTabularFooter``
which just does a horizontal rule. With longtable, the table header and footer are set with:
📌
``\glslongextraNameDescHeader``
which uses the above header and footer commands.

𝍢
`long-desc-name`
This has two columns: the name on the right and the description on the left. The table header is given by:
📌
``\glslongextraDescNameTabularHeader``
which shows the column headers with horizontal rules. The table footer is given by:
📌
``\glslongextraDescNameTabularFooter``
which just does a horizontal rule. With longtable, the table header and footer are set with:
📌
``\glslongextraDescNameHeader``
which uses the above header and footer commands.

[top]

#### 8.7.2.2. Name, Symbol and Description Only
[link]

These styles don’t show the location list. In each case, the style starts with:

📌
``\glslongextraSymSetDescWidth``
which updates `\glsdescwidth` according to the widest name, identified with `\glslongextraSetWidest`. This starts by calculating `\glsdescwidth` with `\glslongextraSetDescWidth` and then subtracts the width of the symbol column header text (which is assumed to be the widest text in that column).

If you want to set `\glsdescwidth` to a specific value, then redefine `\glslongextraSymSetDescWidth` with the desired length assignment.

𝍢
`long-name-desc-sym`
This has three columns: the name on the left, the description in the middle and the symbol on the right. The table header is given by:
📌
``\glslongextraNameDescSymTabularHeader``
which shows the column headers with horizontal rules. The table footer is given by:
📌
``\glslongextraNameDescSymTabularFooter``
which just does a horizontal rule. With longtable, the table header and footer are set with:
📌
``\glslongextraNameDescSymHeader``
which uses the above header and footer commands.

𝍢
`long-name-sym-desc`
This has three columns: the name on the left, the symbol in the middle and the description on the right. The table header is given by:
📌
``\glslongextraNameSymDescTabularHeader``
which shows the column headers with horizontal rules. The table footer is given by:
📌
``\glslongextraNameSymDescTabularFooter``
which just does a horizontal rule. With longtable, the table header and footer are set with:
📌
``\glslongextraNameSymDescHeader``
which uses the above header and footer commands.

𝍢
`long-sym-desc-name`
This has three columns: the name on the right, the description in the middle and the symbol on the left. The table header is given by:
📌
``\glslongextraSymDescNameTabularHeader``
which shows the column headers with horizontal rules. The table footer is given by:
📌
``\glslongextraSymDescNameTabularFooter``
which just does a horizontal rule. With longtable, the table header and footer are set with:
📌
``\glslongextraSymDescNameHeader``
which uses the above header and footer commands.

𝍢
`long-desc-sym-name`
This has three columns: the name on the right, the symbol in the middle and the description on the left. The table header is given by:
📌
``\glslongextraDescSymNameTabularHeader``
which shows the column headers with horizontal rules. The table footer is given by:
📌
``\glslongextraDescSymNameTabularFooter``
which just does a horizontal rule. With longtable, the table header and footer are set with:
📌
``\glslongextraDescSymNameHeader``
which uses the above header and footer commands.

[top]

#### 8.7.2.3. Name, Description and Location Only
[link]

These styles don’t display the symbol, regardless of whether or not the symbol field has been set. In each case, the style starts with:

📌
``\glslongextraLocSetDescWidth``
which updates `\glsdescwidth` according to the widest name, identified with `\glslongextraSetWidest`. This starts by calculating `\glsdescwidth` with `\glslongextraSetDescWidth` and then subtracts 2`\tabcolsep`-`\glspagelistwidth`.

If you want to set `\glsdescwidth` to a specific value, then redefine `\glslongextraLocSetDescWidth` with the desired length assignment.

𝍢
`long-name-desc-loc`
This has three columns: the name on the left, the description in the middle and the location list on the right. The table header is given by:
📌
``\glslongextraNameDescLocationTabularHeader``
which shows the column headers with horizontal rules. The table footer is given by:
📌
``\glslongextraNameDescLocationTabularFooter``
which just does a horizontal rule. With longtable, the table header and footer are set with:
📌
``\glslongextraNameDescLocationHeader``
which uses the above header and footer commands.

𝍢
`long-loc-desc-name`
This has three columns: the name on the right, the description in the middle and the location list on the left. The table header is given by:
📌
``\glslongextraLocationDescNameTabularHeader``
which shows the column headers with horizontal rules. The table footer is given by:
📌
``\glslongextraLocationDescNameTabularFooter``
which just does a horizontal rule. With longtable, the table header and footer are set with:
📌
``\glslongextraLocationDescNameHeader``
which uses the above header and footer commands.

[top]

#### 8.7.2.4. Name, Description, Symbol and Location
[link]

These styles show the name, description, symbol and location list. In each case, the style starts with:

📌
``\glslongextraSymLocSetDescWidth``
which updates `\glsdescwidth` according to the widest name, identified with `\glslongextraSetWidest`. This starts by calculating `\glsdescwidth` with `\glslongextraSymSetDescWidth` and then subtracts 2`\tabcolsep`-`\glspagelistwidth`.

If you want to set `\glsdescwidth` to a specific value, then redefine `\glslongextraSymLocSetDescWidth` with the desired length assignment.

𝍢
`long-name-desc-sym-loc`
This has four columns, from left to right: the name, description, symbol and the location list. The table header is given by:
📌
``\glslongextraNameDescSymLocationTabularHeader``
which shows the column headers with horizontal rules. The table footer is given by:
📌
``\glslongextraNameDescSymLocationTabularFooter``
which just does a horizontal rule. With longtable, the table header and footer are set with:
📌
``\glslongextraNameDescSymLocationHeader``
which uses the above header and footer commands.

𝍢
`long-name-sym-desc-loc`
This has four columns, from left to right: the name, symbol, description and the location list. The table header is given by:
📌
``\glslongextraNameSymDescLocationTabularHeader``
which shows the column headers with horizontal rules. The table footer is given by:
📌
``\glslongextraNameSymDescLocationTabularFooter``
which just does a horizontal rule. With longtable, the table header and footer are set with:
📌
``\glslongextraNameSymDescLocationHeader``
which uses the above header and footer commands.

𝍢
`long-loc-sym-desc-name`
This has four columns, from left to right: the location list, symbol, description and the name. The table header is given by:
📌
``\glslongextraLocationSymDescNameTabularHeader``
which shows the column headers with horizontal rules. The table footer is given by:
📌
``\glslongextraLocationSymDescNameTabularFooter``
which just does a horizontal rule. With longtable, the table header and footer are set with:
📌
``\glslongextraLocationSymDescNameHeader``
which uses the above header and footer commands.

𝍢
`long-loc-desc-sym-name`
This has four columns, from left to right: the location list, description, symbol and the name. The table header is given by:
📌
``\glslongextraLocationDescSymNameTabularHeader``
which shows the column headers with horizontal rules. The table footer is given by:
📌
``\glslongextraLocationDescSymNameTabularFooter``
which just does a horizontal rule. With longtable, the table header and footer are set with:
📌
``\glslongextraLocationDescSymNameHeader``
which uses the above header and footer commands.

[top]

#### 8.7.2.5. Symbol and Description Only
[link]

These are two-column styles designed to show only the symbol and description. However, if the symbol isn’t set then the name will be used instead. If this occurs, you may need to change the width of the description column.

The horizontal alignment for the symbol column is obtained with:

📌
``\glslongextraSymbolNameAlign``initial: l
which expands to `l` by default. Note that this is different from the alignment used for styles like long-name-sym-desc.

These styles have the entry item number (if entrycounter is on) and the hypertarget anchor (if enabled) in the symbol column since there’s no name shown (unless the symbol is missing). These are all performed by for top-level entries by:

📌
``\glslongextraSymbolTargetFmt`{〈entry-label〉}`
The symbol is formatted according to `\glslongextraSymbolFmt`. Child entries use:
📌
``\glslongextraSubSymbolTargetFmt`{〈level〉}{〈entry-label〉}`
Unlike `\glslongextraSubNameFmt` this shows the field value (formatted with `\glslongextraSymbolFmt`).

The following commands use the above if the symbol field is set, otherwise they show the name.

📌
``\glslongextraSymbolOrName`{〈entry-label〉}`
Shows the symbol, if set, or the name otherwise, with the target. Child entries use:
📌
``\glslongextraSubSymbolOrName`{〈level〉}{〈entry-label〉}`
Shows the symbol with `\glslongextraSubSymbolTargetFmt`, if set, or the name otherwise, with the target.

In each case, the style starts with:

📌
``\glslongextraSymNoNameSetDescWidth``
which calculates `\glsdescwidth` as `\linewidth`-4`\tabcolsep`-W, where W is the width of the symbol column header. Note that this assumes the content of the symbol column isn’t wider than the column header.

If you want to set `\glsdescwidth` to a specific value, then redefine `\glslongextraSymNoNameSetDescWidth` with the desired length assignment. For example, if you have a mixture of entries with symbols and some without, which means that there will be a name shown that’s wider than the symbol column header, then set the widest name (for example, with the set-widest resource option) and add the following redefinition:

    🖹\renewcommand{\glslongextraSymNoNameSetDescWidth}{%
     \glslongextraSetDescWidth
    }

Note that, in this case, if you don’t set the widest name then the description column will end up even wider (and therefore cause the table to be even wider) if the name header is narrower than the symbol header.

𝍢
`long-sym-desc`
The symbol is in the left column (or the name, if the symbol isn’t set). The description is in the right. The location list isn’t shown. The table header is given by:
📌
``\glslongextraSymDescTabularHeader``
which shows the column headers with horizontal rules. The table footer is given by:
📌
``\glslongextraSymDescTabularFooter``
which just does a horizontal rule. With longtable, the table header and footer are set with:
📌
``\glslongextraSymDescHeader``
which uses the above header and footer commands.

𝍢
`long-desc-sym`
The symbol is in the right column (or the name, if the symbol isn’t set). The description is in the left. The location list isn’t shown. The table header is given by:
📌
``\glslongextraDescSymTabularHeader``
which shows the column headers with horizontal rules. The table footer is given by:
📌
``\glslongextraDescSymTabularFooter``
which just does a horizontal rule. With longtable, the table header and footer are set with:
📌
``\glslongextraDescSymHeader``
which uses the above header and footer commands.

[top]

#### 8.7.2.6. Abbreviations Only
[link]

These styles are designed for abbreviations. They display the short and long forms, rather than the name and description, although these may happen to match. They are primarily intended for mini-glossaries or similar summary lists.

Although these styles don’t show the name or description, they still use some of the name and description settings provided by glossary-longextra. The column for the short form uses the same alignment as for the name columns (`\glslongextraNameAlign`). The column for the long form uses the same alignment as for the description columns (`\glslongextraDescAlign`) and has the width set to `\glsdescwidth`. However, the name and description formatting commands or attributes (such as `\glsnamefont`, glossnamefont or glossname) aren’t used as the formatting is left to the abbreviation style.

If the short field hasn’t been set, the short column will show the name instead, and if the long field hasn’t been set, the long column will show the description instead (using the same commands as for styles like long-name-desc, which do use the associated formatting commands and attributes).

These styles use the following commands:

📌
``\glslongextraShortHeader``initial: `\entryname`
The header for the column showing the short form. This is defined as:

    \newcommand{\glslongextraShortHeader}{\entryname}

📌
``\glslongextraLongHeader``initial: `\descriptionname`
The header for the column showing the long form. This is defined as:

    \newcommand{\glslongextraLongHeader}{\descriptionname}

📌
``\glslongextraShortTargetFmt`{〈entry-label〉}`
This governs the way that the short form should be displayed, including the target. This is defined as:

    \newcommand{\glslongextraShortTargetFmt}[1]{%
     \glsentryitem{#1}\glstarget{#1}{{\glsxtrshort[noindex,hyper=false]{#1}}}%
     \glsxtrpostnamehook{#1}}

Note that the post-name hook is included.

📌
``\glslongextraLongFmt`{〈entry-label〉}`
This governs the way that the long form should be displayed. This is defined as:

    \newcommand{\glslongextraLongFmt}[1]{%
     {\glsxtrlong[noindex,hyperfalse]{#1}}\glspostdescription
    }

Note that the post-description hook is included.

📌
``\glslongextraSubShortTargetFmt`{〈level〉}{〈entry-label〉}`
This governs the way that the short form for child entries should be displayed, including the target. This is defined as:

    \newcommand{\glslongextraSubShortTargetFmt}[2]{%
     \glssubentryitem{#2}\glstarget{#2}{{\glsxtrshort[noindex,hyper=false]{#2}}}%
     \glsxtrpostnamehook{#2}}

📌
``\glslongextraSubLongFmt`{〈level〉}{〈entry-label〉}`
This governs the way that the long form for child entries should be displayed. This is defined as:

    \newcommand{\glslongextraSubLongFmt}[2]{\glslongextraLongFmt{#2}}

📌
``\glslongextraShortNoNameSetDescWidth``
This is used to compute the value of `\glsdescwidth` and assumes that none of the short forms are wider than `\glslongextraShortHeader`.

𝍢
`abbr-short-long`
A two column style. The short form is in the left column. The long form is in the right. The location list isn’t shown.

The table header is given by:

📌
``\glslongextraShortLongTabularHeader``
which shows the column headers with horizontal rules.

The table footer is given by:

📌
``\glslongextraShortLongTabularFooter``
which just does a horizontal rule. With longtable, the table header and footer are set with:
📌
``\glslongextraShortLongHeader``
which uses the above header and footer commands.

𝍢
`abbr-long-short`
A two column style. The short form is in the right column. The long form is in the left. The location list isn’t shown.

The table header is given by:

📌
``\glslongextraLongShortTabularHeader``
which shows the column headers with horizontal rules.

The table footer is given by:

📌
``\glslongextraLongShortTabularFooter``
which just does a horizontal rule. With longtable, the table header and footer are set with:
📌
``\glslongextraLongShortHeader``
which uses the above header and footer commands.

[top]

#### 8.7.2.7. Custom Fields
[link]

These styles allow one, two or three custom columns in addition to the name column. The “custom1” styles indicate one custom column, the “custom2” styles indicate two custom columns, and the “custom3” styles indicate three custom columns. Some styles also include the description column. These styles don’t display the location. However, if you are using bib2gls you can set one of the custom fields to location, but if you have long location lists you may need to change the corresponding alignment command to switch to a paragraph column.

🛈
The “first custom column” means the first of the custom columns, which may not be the first column in the table. Similarly the “second custom column” means the second of the custom columns (if supported by the style), and the “third custom column” means the third of the custom columns (if supported by the style).

📌
``\glslongextraCustomIField``initial: useri
Expands to the internal field label for the first custom column. This will be used in the “custom1”, “custom2” and “custom3” styles.

📌
``\glslongextraCustomIIField``initial: userii
Expands to the internal field label for the second custom column. This will be used in the “custom2” and “custom3” styles.

📌
``\glslongextraCustomIIIField``initial: useriii
Expands to the internal field label for the third custom column. This will be used in the “custom3” style.

📌
``\glslongextraCustomIHeader``
Expands to the header text for the first custom column. The default definition is:

    \MFUsentencecase{\glslongextraCustomIField}

which means that it will be “Useri” by default, which is unlikely to be appropriate, but it may be suitable if you change the first custom field.

📌
``\glslongextraCustomIIHeader``
Expands to the header text for the second custom column. The default likewise simply applies sentence case to the internal field label.

📌
``\glslongextraCustomIIIHeader``
Expands to the header text for the third custom column. The default likewise simply applies sentence case to the internal field label.

📌
``\glslongextraCustomIFmt`{〈entry-label〉}`
This is used to format each top-level entry in the first custom column. The default definition is:

    \glsxtrusefield{〈entry-label〉}{\glslongextraCustomIField}

📌
``\glslongextraSubCustomIFmt`{〈level〉}{〈entry-label〉}`
This is used to format each sub-entry in the first custom column. The default definition is:

    \glslongextraCustomIFmt{〈entry-label〉}

📌
``\glslongextraCustomIIFmt`{〈entry-label〉}`
This is used to format each top-level entry in the second custom column. The default definition is:

    \glsxtrusefield{〈entry-label〉}{\glslongextraCustomIIField}

📌
``\glslongextraSubCustomIIFmt`{〈level〉}{〈entry-label〉}`
This is used to format each sub-entry in the second custom column. The default definition is:

    \glslongextraCustomIIFmt{〈entry-label〉}

📌
``\glslongextraCustomIIIFmt`{〈entry-label〉}`
This is used to format each top-level entry in the third custom column. The default definition is:

    \glsxtrusefield{〈entry-label〉}{\glslongextraCustomIIIField}

📌
``\glslongextraSubCustomIIIFmt`{〈level〉}{〈entry-label〉}`
This is used to format each sub-entry in the third custom column. The default definition is:

    \glslongextraCustomIIIFmt{〈entry-label〉}

📌
``\glslongextraCustomIAlign``initial: l
Expands to the alignment specifier for the first custom column.

📌
``\glslongextraCustomIIAlign``initial: l
Expands to the alignment specifier for the second custom column.

📌
``\glslongextraCustomIIIAlign``initial: l
Expands to the alignment specifier for the third custom column.

📌
``\glslongextraCustomTabularFooter``
The footer used for all the custom styles. The default definition simply does `\bottomrule`.

📌
``\glslongextraNameCustomITabularHeader``
The table header for the long-name-custom1 style (which has two columns). This command and the previous command are used in the following.

📌
``\glslongextraNameCustomIHeader``
The longtable header and footer markup for the long-name-custom1 style.

📌
``\glslongextraCustomINameTabularHeader``
The table header for the long-custom1-name style (which has two columns). Used in the following.

📌
``\glslongextraCustomINameHeader``
The longtable header and footer markup for the long-custom1-name style.

📌
``\glslongextraNameCustomIITabularHeader``
The table header for the long-name-custom2 style (which has three columns). Used in the following.

📌
``\glslongextraNameCustomIIHeader``
The longtable header and footer markup for the long-name-custom2 style.

📌
``\glslongextraCustomIINameTabularHeader``
The table header for the long-custom2-name style (which has three columns). Used in the following.

📌
``\glslongextraCustomIINameHeader``
The longtable header and footer markup for the long-custom2-name style.

📌
``\glslongextraNameCustomIIITabularHeader``
The table header for the long-name-custom3 style (which has four columns). Used in the following.

📌
``\glslongextraNameCustomIIIHeader``
The longtable header and footer markup for the long-name-custom3 style.

📌
``\glslongextraCustomIIINameTabularHeader``
The table header for the long-custom3-name style (which has four columns). Used in the following.

📌
``\glslongextraCustomIIINameHeader``
The longtable header and footer markup for the long-custom3-name style.

𝍢
`long-name-custom1`
A two column style with the name in the first column and the first custom field in the second. For top-level entries, the name is formatted with `\glslongextraNameFmt` and the custom field is formatted with `\glslongextraCustomIFmt`. Sub-entries use `\glslongextraSubNameFmt` and `\glslongextraSubCustomIFmt`.

𝍢
`long-custom1-name`
As long-name-custom1 but with the name in the last column.

𝍢
`long-name-custom2`
A three column style with the name in the first column, the first custom field in the second and the second custom field in the third. As long-name-custom1, but additionally the second custom field is formatted with `\glslongextraCustomIIFmt` for top-level entries and with `\glslongextraSubCustomIIFmt` for child-entries.

𝍢
`long-custom2-name`
As long-name-custom2 but with the name in the last column.

𝍢
`long-name-custom3`
A four column style with the name in the first column, the first custom field in the second, the second custom field in the third, and the third custom field in the fourth. As long-name-custom2, but additionally the third custom field is formatted with `\glslongextraCustomIIIFmt` for top-level entries and with `\glslongextraSubCustomIIIFmt` for child-entries.

𝍢
`long-custom3-name`
As long-name-custom3 but with the name in the last column.

The following styles also have a description column, which uses `\glslongextraDescAlign` for the column alignment. These styles attempt to calculate an appropriate width for `\glsdescwidth`.

📌
``\glslongextraCustomISetDescWidth``
Sets `\glsdescwidth` for the long-name-custom1-desc style. This first uses `\glslongextraSetDescWidth` to calculate the width W if there were only a name and description column. It then measures the width of the first custom column header w and sets `\glsdescwidth` to w - 2`\tabcolsep` - w. This assumes that the first custom column header is wider than the value of each entry’s first custom field. If this isn’t the case, then you will need to redefined this command as appropriate.

📌
``\glslongextraCustomIISetDescWidth``
Sets `\glsdescwidth` for the long-name-custom2-desc style. This first uses `\glslongextraCustomISetDescWidth` to calculate the width W if there were only a name column, first custom column, and description column. It then measures the width of the second custom column header w and sets `\glsdescwidth` to w - 2`\tabcolsep` - w. This assumes that the second custom column header is wider than the value of each entry’s second custom field. If this isn’t the case, then you will need to redefined this command as appropriate.

📌
``\glslongextraCustomIIISetDescWidth``
Sets `\glsdescwidth` for the long-name-custom3-desc style. This first uses `\glslongextraCustomIISetDescWidth` to calculate the width W if there were only a name column, first custom column, second custom column, and description column. It then measures the width of the third custom column header w and sets `\glsdescwidth` to w - 2`\tabcolsep` - w. This assumes that the third custom column header is wider than the value of each entry’s third custom field. If this isn’t the case, then you will need to redefined this command as appropriate.

📌
``\glslongextraNameCustomIDescTabularHeader``
The table header for the long-name-custom1-desc style (which has three columns). Used in the following.

📌
``\glslongextraNameCustomIDescHeader``
The longtable header and footer markup for the long-name-custom1-desc style.

📌
``\glslongextraDescCustomINameTabularHeader``
The table header for the long-desc-custom1-name style (which has three columns). Used in the following.

📌
``\glslongextraDescCustomINameHeader``
The longtable header and footer markup for the long-desc-custom1-name style.

📌
``\glslongextraNameCustomIIDescTabularHeader``
The table header for the long-name-custom2-desc style (which has four columns). Used in the following.

📌
``\glslongextraNameCustomIIDescHeader``
The longtable header and footer markup for the long-name-custom2-desc style.

📌
``\glslongextraDescCustomIINameTabularHeader``
The table header for the long-desc-custom2-name style (which has four columns). Used in the following.

📌
``\glslongextraDescCustomIINameHeader``
The longtable header and footer markup for the long-desc-custom2-name style.

📌
``\glslongextraNameCustomIIIDescTabularHeader``
The table header for the long-name-custom3-desc style (which has five columns). Used in the following.

📌
``\glslongextraNameCustomIIIDescHeader``
The longtable header and footer markup for the long-name-custom3-desc style.

📌
``\glslongextraDescCustomIIINameTabularHeader``
The table header for the long-desc-custom3-name style (which has five columns). Used in the following.

📌
``\glslongextraDescCustomIIINameHeader``
The longtable header and footer markup for the long-desc-custom3-name style.

𝍢
`long-name-custom1-desc`
A three column style with the name in the first column, the first custom field in the second, and the description in the third. This is like long-name-custom1 but additionally has the description column formatted as per long-name-desc.

𝍢
`long-desc-custom1-name`
As long-name-custom1-desc but the name and description columns are swapped.

𝍢
`long-name-custom2-desc`
A four column style with the name in the first column, the first custom field in the second, the second custom field in the third, and the description in the fourth. This is like long-name-custom2 but additionally has the description column formatted as per long-name-desc.

𝍢
`long-desc-custom2-name`
As long-name-custom2-desc but the name and description columns are swapped.

𝍢
`long-name-custom3-desc`
A five column style with the name in the first column, the first custom field in the second, the second custom field in the third, the third custom field in the fourth, and the description in the fifth. This is like long-name-custom3 but additionally has the description column formatted as per long-name-desc.

𝍢
`long-desc-custom3-name`
As long-name-custom3-desc but the name and description columns are swapped.

[top]

### 8.7.3. glossary-topic package
[link]

The glossary-topic package provides glossary styles designed for hierarchical glossaries where the top-level entries are topic titles. This package automatically loads the multicol package. If the glossary-tree package is also loaded then commands like `\glssetwidest` can be used on these styles in much the same way as for the alttree style. If a widest value isn’t set then these styles behave more like the tree style.

This package provides styles designed for glossaries that are lists of topics. That is, the top-level entries are considered topic titles (which may or may not have an associated symbol or description) and the sub-entries are items within that topic. By default the location list isn’t shown for the top-level entries but is shown after the description for sub-entries (unless suppressed with nonumberlist or save-locations=false).

The following styles are provided:

𝍢
`topic`
This style is similar to the tree style but the indentation doesn’t start until the second sub-item level. The top-level entries have the name displayed in a larger font with the description following in a new paragraph (see Example 147). This style doesn’t support the nogroupskip setting.

🖺
Example 147: The topic style 📥🖹 📥🖺

𝍢
`topicmcols`
This style is like the topic style but the sub-entries are placed inside a multicols environment (unlike styles such as mcoltree where the entire glossary content is within a single multicols environment). The environment name is supplied in the value of the command:
📌
``\glstopicColsEnv``
This defaults to `multicols`. You can change this to the starred form. For example:

    🖹\renewcommand{\glstopicColsEnv}{multicols*}

The number of columns is given by the command:
📌
``\glstopicCols``
This expands to 2, by default. This style is demonstrated in Example 148.

🖺
Example 148: The topicmcols style 📥🖹 📥🖺

Both styles can have a widest name set like the alttree style, using the commands provided by glossary-tree and glossaries-extra-stylemods or with the set-widest resource option. If a widest name is set, then the sub-entry names will be placed in a box of the given width otherwise they won’t be placed in a box. In Example 149, the widest names have been set for level 1 and level 2 using:

    🖹\glssetwidest[1]{parameter}
    \glssetwidest[2]{\glsentryname{cosine}}

Note that this doesn’t change the indentation at the start of the level 2 items to match the width of the level 1 widest name.

🖺
Example 149: The topicmcols style with the widest name set 📥🖹 📥🖺

Both of the above styles use the following commands.

📌
``\glstopicParIndent``
This command is a length that’s used for the paragraph indentation in any multi-paragraph description for top-level entries, but not for the first paragraph (at the start of the description) which isn’t indented.

📌
``\glstopicSubIndent``
This command is a length that’s used to calculate the hanging indentation for sub-entries. The level 1 sub-entries don’t indent the name. Level n sub-entries have the name indented by (n-1)×`\glstopicSubIndent`. The hanging indent depends on whether or not a widest name has been set for the level.

There is also a length for additional indentation used in the second paragraph onwards for child entries with multi-paragraph descriptions:

📌
``\glstopicSubItemParIndent``
This is initialised to `\parindent` when glossary-topic is loaded.

📌
``\glstopicInit``
This hook is used at the start of the glossary. It does nothing by default.

Although the styles don’t support letter groups by default, if you have many topics (top-level entries) and you feel that it would help the reader to divide them up into headed letter groups, you can redefine:

📌
``\glstopicGroupHeading`{〈group-label〉}`
This does nothing by default. If you want to redefine it, you can fetch the title corresponding to the group label with `\glsxtrgetgrouptitle`. For example:

    🖹\renewcommand*{\glstopicGroupHeading}[1]{%
      \glsxtrgetgrouptitle{#1}{\thisgrptitle}%
      \section*{\thisgrptitle}%
    }

Remember that if you are using bib2gls, you will need the --group or -g switch to support groups (see §8.4.1).

Sub-groups are only available with bib2gls and the group-level option. If they are supported, sub-group headings are formatted according to:

📌
``\glstopicSubGroupHeading`{〈prev group level〉}{〈group level〉}{〈parent entry〉}{〈group-label〉}`
This formats the sub-group heading. Note that unlike `\glstopicGroupHeading` this command does actually format the sub-group heading by default. This means that it you use group-level=all, the top-level groups won’t be displayed, but the sub-groups will be.

Top-level entries are formatted according to:

📌
``\glstopicItem`{〈entry-label〉}{〈location list〉}`
This formats the name and (if provided) the symbol. The description (if set) will follow in a new paragraph. At the start of `\glstopicItem`, a vertical space is added with:
📌
``\glstopicPreSkip``
which defaults to `\medskip`. There is then a hook:
📌
``\glstopicMarker`{〈entry-label〉}`
which does nothing by default, but may be redefined. For example, to add a line to the table of contents. The name and symbol are set in the form of a title using:
📌
``\glstopicTitle`{〈entry-label〉}`
This uses `\Glossentryname` which uses sentence case. If there’s a symbol, this is added in parentheses. Both name and symbol (if present) are encapsulated by:
📌
``\glstopicTitleFont`{〈text〉}`
This uses a bold, large font by default.

If the entry has the description key set (tested with `\ifglshasdesc`) then a paragraph break is inserted followed by:

📌
``\glstopicMidSkip``
which defaults to `\smallskip`. This is followed by the description which is formatted according to:
📌
``\glstopicDesc`{〈entry-label〉}`
This just does ``\Glossentrydesc`{entry-label}` followed by the post-description hook. There is then a paragraph break followed by:
📌
``\glstopicPostSkip``
regardless of whether or not the description was displayed. This defaults to `\smallskip`. This is then followed by:
📌
``\glstopicLoc`{〈entry-label〉}{〈location list〉}`
which may be used to display the location list, but does nothing by default.

The sub-entries first set up the paragraph and hanging indentations using:

📌
``\glstopicAssignSubIndent`{〈level〉}`
This uses:
📌
``\glstopicAssignWidest`{〈level〉}`
to determine if a widest name has been set for the given level.

The sub-entry has its information displayed using:

📌
``\glstopicSubItem`{〈level〉}{〈entry-label〉}{〈location list〉}`
This encapsulates the name with:
📌
``\glstopicSubNameFont`{〈text〉}`
By default this just uses `\textbf`. This is followed by:
📌
``\glstopicSubItemSep``
which defaults to `\quad`. The name and separator are passed in the 〈text〉 argument of:
📌
``\glstopicSubItemBox`{〈level〉}{〈text〉}`
If a widest name was set for the given level, this will put 〈text〉 inside a box of that width otherwise it just does 〈text〉.

This is followed by the symbol in parentheses if set. Then, if the description is set, the description and post-description hook are displayed followed by:

📌
``\glstopicSubPreLocSep``
(This command isn’t used if the description isn’t set.)

Finally the location list is displayed using:

📌
``\glstopicSubLoc`{〈entry-label〉}{〈location list〉}`
which just does 〈location〉 by default.

[top]

### 8.7.4. glossary-table package
[link]

The glossary-table package is new to version 1.49. It automatically loads the longtable, array and booktabs packages. If you want to use `\glspenaltygroupskip` for the group skip, you will need to also load glossary-longbooktabs.

ℹ
This package is designed specifically for use with bib2gls. It can be used to create a supplemental glossary with other indexing options, but the entries will be listed in order of definition and no child entries will be shown.

The glossary-table package doesn’t provide any general purpose styles, but instead provides one highly customized style (table), which is designed to work with a supplied command:

📌
``\printunsrttable`[〈options〉]`
The table style should not be set with the style package option, `\setglossarystyle` or the style option, as it’s only intended for use within `\printunsrttable`, which sets up the appropriate hooks to allow the style to work with `\printunsrtglossary` (which is used implicitly).

Tabular styles such as long create a longtable with one entry per row and no caption. The longheader style is similar but adds a header row, and the long-booktabs style includes rules above and below the header row and at the end of the table. In all these longtable styles, the glossary title is outside of the style, and is typically put in a sectioning command. Similarly, the glossary preamble `\glossarypreamble` and postamble `\glossarypostamble` are outside of longtable.

The table style, on the other hand, allows multiple entries per row. The glossary title (title) is the table caption with what’s normally the table of contents title (toctitle) as the caption title for the list of tables. Similarly, the preamble and postamble are included in the table header and footer, instead of being outside of the table.

This means that `\glossarysection`, `\glossarypreamble` and `\glossarypostamble` are redefined by `\printunsrttable` to do nothing so that they aren’t shown outside of the longtable by `\printunsrtglossary`, otherwise there would be a duplication of the information in the header and footer of the table. The `\printunsrtglossary` hooks are used to insert the inter-block tabulation (`&`) character and new row command in the construction performed outside of longtable, which would otherwise cause issues if used directly in the table style.

The block styles (see §8.7.4.3) alter the way the table style sets up the longtable environment and the way that the entries are formatted. The top level glossary style command `\glossentry` is defined to do the block according to the designated block style, which includes the child entries, if the childcount field has been set and is non-zero.

🛈
The `\subglossentry` command is redefined to do nothing, but it won’t be used as the child entries are all filtered out. If you don’t use the save-child-count resource option, no child entries will be shown. There’s no recursive descent down the hierarchical levels.

This means that the child entries will be listed in one of the columns in the block, according to the style. This can make the column quite wide. The child names aren’t displayed by default but the block styles support the subentrycounter option. The child entries are listed in a tabular environment, which means they are contained in the same row as their parent and can’t be broken across a page.

A “block” indicates a block of columns used to format one entry (and, optionally, its children). One row of the table may contain multiple blocks. For example, a block may consist of two columns with the name in the first column and the description in the second, or may consist of three columns with the name in the first column, the symbol in the second, and the description in the third. So if a block style has 3 columns, and the desired number of blocks is set to 2, then the table will have a total of 3×2=6 columns.

The style supports up to 1 hierarchical level, but you will need the save-child-count resource option if you want the level 1 sub-entries to show. Deeper level entries are omitted. Sub-entries are automatically filtered by a custom hook that `\printunsrtglossaryentryprocesshook` is assigned to within `\printunsrttable`. This custom hook allows additional filtering to be employed with the command:

📌
``\glstableiffilter`{〈entry-label〉}{〈true〉}{〈false〉}`
This command should do 〈true〉 if the entry identified by 〈entry-label〉 should be skipped, otherwise it should do 〈false〉. The default definition simply does 〈false〉.

For example, the following will filter entries that have the category set to general:

    🖹\renewcommand{\glstableiffilter}[1]%
     \glsifcategory{#1}{general}

Note that if this command is redefined to do neither 〈true〉 nor 〈false〉 or does both, it will interfere with the width calculations if par isn’t set to the default par=false.

You can use the init option to locally redefine commands within `\printunsrttable`. For example:

    🖹\printunsrttable[init={%   \renewcommand{\glstableiffilter}[1]%    \glsifcategory{##1}{general}%  }]

An extra field (the “other” field) may be added with the other key. If this value is empty, then no extra field will be added. Some block styles, such as other-name and symbol-other put the other field in its own column. If the other field isn’t set, this will lead to an empty column.

If there isn’t a designated column for the other field, then block styles that show the description will put the other field in before the description, but in the same column as the description. Otherwise, block styles that don’t show the description, will put the other field after the name, but in the same column as the name.

The following example uses the name block style, which only has one column per block. The name is followed by the description in parentheses (if set), which is then followed by the child list. I redefined `\glstableNameFmt` to make the name appear in bold, to highlight it. I’ve used the par=ragged option, otherwise the table will be too wide to fit the page.

    🖹\usepackage
     [record,stylemods=table,subentrycounter]
     {glossaries-extra}

    \GlsXtrLoadResources[
     % entries in example-glossaries-childnoname.bib:
     src=example-glossaries-childnoname,
     selection=all,
     save-child-count=]
    \begin{document}
    \printunsrttable
     [
      block-style=name,par=ragged,
      preamble={Some preamble text},
      postamble={Some postamble text},
      init={%      \let\glstableNameFmt\textbf     \def\glstablenameheader{Summary}%    }
     ]
    \end{document}

This creates a table with two entries per row.
🖺
Example 150: Two entries per row with `\printunsrttable` 📥🖹 📥🖺

Note that each row is as deep as the entry with the most children. So where a row has one column with two children and another with seven, the row is deep enough to accommodate the seven child entries, which leaves a gap below the smaller list of two children.

[top]

#### 8.7.4.1. Child Entries
[link]

Entries with a hierarchical level greater than 0 are filtered out (see above). This takes the leveloffset option into account. Child entries can be included, but only by checking if the childcount field has been set and is non-zero. This is done by:

📌
``\glstableChildEntries`{〈entry-label〉}`
Note that `\glstableiffilter` filters top-level entries, and their child entries will also be filtered. Child entries for non-filtered top-level entries can be filtered by redefining:
📌
``\glstableiffilterchild`{〈entry-label〉}{〈true〉}{〈false〉}`
where 〈entry-label〉 is the child entry label. This command should do 〈true〉 if the child entry should be filtered and 〈false〉 otherwise.

If the child count is non-zero, taking both childcount and child filtering into account, then `\glstableChildEntries` command will display the non-filtered children in the form:

    \glstablePreChildren
    \begin{glstablesubentries}
    \glstableblocksubentry{〈child-1-label〉}
    \glstableblocksubentrysep
    \glstableblocksubentry{〈child-2-label〉}
    …\glstableblocksubentrysep
    \glstableblocksubentry{〈child-n-label〉}
    \end{glstablesubentries}

This consists of the following.
📌
``\glstablePreChildren``
Occurs at the start. If par=justified or par=ragged, this will do `\par` otherwise it does nothing.

⚠
In general, it’s best not to list children with par=false, except with a style like name or name-desc with no description, as the table can end up too wide for the page.

📌
``\begin`{glstablesubentries}〈content〉`\end{glstablesubentries}``
This environment encapsulates the child list. By default, this does:

    \begin{tabular}[t]{〈align〉}
    〈content〉
    \end{tabular}

The 〈align〉 argument is obtained by expanding:
📌
``\glstablesubentryalign``
which takes the par setting into account.

Each child item is display using `\glstableblocksubentry` which is redefined by the block style.

The separator between each child item is given by:

📌
``\glstableblocksubentrysep``
This just expands to `\glstablenewline`.

[top]

#### 8.7.4.2. Options
[link]

The optional argument of `\printunsrttable` may have the options that can typically be passed to `\printunsrtglossary`, except that the nonumberlist and style options won’t have an effect. If you want the location list, it can simply be obtained from the location field in the appropriate style hook.

Some default settings are changed: groups=false and nogroupskiptrue. If you want letter group headings, you will need to both add groups=true to the options list and invoke bib2gls with the --group switch. The group headings will span the entire width of the table. This may result in empty blocks at the end of the previous row. If you want a vertical gap before the group heading (but not before the first group), you will need to add nogroupskipfalse, but you will also need to load glossary-longbooktabs. Note that this option is designed to be used with group headings and will have no effect with groups=false.

Additionally, the following options may also be used.

🎚
`blocks=〈n〉`initial: 2
The value is the number of blocks in the table. The total number of columns in the table will be this value multiplied by the number of columns per block, which is determined by the block style. For example, the name-desc block style has two columns, so if there are three blocks then there will be a total of six columns.

🔘
`caption=〈boolean〉`default: true; initial: true
A boolean option that determines whether or not to include a caption. The caption on the first page of the table is produced with:
📌
``\glstablecaption`{〈lot title〉}{〈title〉}{〈label code〉}`
where 〈label code〉 is the code to create the label, if one has been supplied (either by an option such as numberedsection=autolabel or by the label option). The 〈title〉 argument will be `\glossarytitle`, which can be changed with the title option. The 〈lot title〉 argument is the title for the list of tables and is actually what would normally be the title for the table of contents, which can be set with the toctitle option. The default definition simply does:

    \caption[〈lot title〉]{〈label code〉〈title〉}

An empty 〈lot title〉 (toctitle={}) will prevent the caption from being added to the list of tables.

ℹ
The numberedsection option will only influence the label, not the table numbering. If you don’t want the table numbered, redefine `\glstablecaption` to use `\caption*`.

If the table spans across multiple pages, the caption for subsequent pages will be produced with:

📌
``\glstablenextcaption`{〈lot title〉}{〈title〉}`
This ignores the 〈lot title〉 argument by default and does:

    \caption[]{〈title〉\glstablepostnextcaption}

This has an empty optional argument to prevent the caption from being repeatedly added to the list of tables. The title is followed by:
📌
``\glstablepostnextcaption``initial: ␣Cont./
You can either redefine this command to adjust the content after the title or redefine `\glstablenextcaption`, as appropriate.

🔘
`header=〈boolean〉`default: true; initial: true
A boolean option to determine whether or not to show the header row. Note that a header with three column block styles, such as name-symbol-desc, can result in overfull lines. You may need to shorten the header text to fit.

The header text is produced with one of the following commands:

📌
``\glstablenameheader``
Expands to the header for the name column. Just uses `\entryname` by default.

📌
``\glstabledescheader``
Expands to the header for the description column for block styles like name-desc and name-symbol-desc. Just uses `\descriptionname` by default.

📌
``\glstablesymbolheader``
Expands to the header for the symbol column for block styles like name-symbol and name-symbol-desc. Just uses `\symbolname` by default.

📌
``\glstableotherheader``
Expands to the header for the other column. The default definition applies `\MFUsentencecase` to the other field label.

🔘
`rules=〈boolean〉`default: true; initial: true
A boolean option to determine whether or not to show the horizontal rules (provided by booktabs). If used with header=true, there will be a rule above and below the header row. If used with header=false, there will only be one rule at the top of the table. In both cases, there will be a rule at the bottom of the table.

🎚
`blocksep=〈alignment spec〉`initial: |
The value is inserted into the alignment specifier list between blocks. For example, the default value of the pipe character will insert a vertical line. Set this value to empty to remove it.

🎚
`par=〈value〉`initial: false
Indicates whether or not the columns should be paragraphs. The value may be one of: false, justified or ragged. The default par=false will just use one of the column specifiers `l`, `r` or `c`. The other values will use the `p` specifier, in which case the column widths will be calculated.

🎚
`other=〈field-label〉`initial: empty
This should be set to the internal field label of the other field or to empty if no other field should be included.

🎚
`init={〈code〉}`initial: empty
The 〈code〉 will be added shortly before `\printunsrtglossary` is called and any local changes will be scoped.

🎚
`block-style=〈value〉`initial: name-desc
The block style. Available styles are listed in §8.7.4.3.

[top]

#### 8.7.4.3. Block Styles
[link]

The block style may be set with the block-style option or with:

📌
``\glstablesetstyle`{〈style-name〉}`

⚠
The block styles are still under development, so the underlying commands are not yet documented and liable to change.

The following block styles are predefined.

🔖
block-style=`name`
Blocks have one column with the name, which is followed by the symbol and the description, if they have been set, in parentheses. The child list follows at the end of the column (if childcount is set and non-zero).

🔖
block-style=`name-desc`
This is the default style. Blocks have two columns with the name in the first column of the block and the description in the second. If the other field is set, it will follow the description. The child entries will be at the end of the second column (if childcount is set and non-zero).

🔖
block-style=`desc-name`
As name-desc but with the columns swapped. The child entries (if childcount is set and non-zero) will be at the end of the first column.

🔖
block-style=`name-symbol`
Blocks have two columns with the name in the first column of the block and the symbol in the second. If the other field is set, it will be placed after the name in the first column. The child entries are at the end of the first column (if childcount is set and non-zero).

🔖
block-style=`symbol-name`
As name-symbol but with the columns swapped. The child entries (if childcount is set and non-zero) will be at the end of the second column.

🔖
block-style=`name-other`
This is like name-desc but puts the other field in the second column. The description and symbol aren’t shown. The child entries (if childcount is set and non-zero) will be at the end of the second column.

🔖
block-style=`other-name`
This is like desc-name but puts the other field in the second column. The description and symbol aren’t shown. The child entries (if childcount is set and non-zero) will be at the end of the first column.

🔖
block-style=`symbol-other`
This is like name-other but shows the symbol instead of the name. The child entries (if childcount is set and non-zero) will be at the end of the second column.

🔖
block-style=`other-symbol`
This is like other-name but shows the symbol instead of the name. The child entries (if childcount is set and non-zero) will be at the end of the first column.

🔖
block-style=`name-symbol-desc`
Blocks have three columns with the name in the first column of the block, the symbol in the second, and the description in the third, preceded by the other field, if set. The child entries are at the end of the third column (if childcount is set and non-zero).

🔖
block-style=`name-desc-symbol`
Blocks have three columns with the name in the first column of the block, the description in the second, preceded by the other field, if set, and the symbol in the third. The child entries are at the end of the second column (if childcount is set and non-zero).

🔖
block-style=`name-other-desc`
Blocks have three columns with the name in the first column of the block, the other in the second, and the description in the third. The child entries are at the end of the third column (if childcount is set and non-zero).

🔖
block-style=`desc-other-name`
Blocks have three columns with the description in the first column of the block, the other in the second, and the name in the third. The child entries are at the end of the first column (if childcount is set and non-zero).

🔖
block-style=`name-symbol-other-desc`
Blocks have four columns with the name in the first column of the block, the symbol in the second, the other in the third, and the description in the fourth. The child entries are at the end of the fourth column (if childcount is set and non-zero).

🔖
block-style=`name-other-symbol-desc`
Blocks have four columns with the name in the first column of the block, the other in the second, the symbol in the third, and the description in the fourth. The child entries are at the end of the fourth column (if childcount is set and non-zero).

🔖
block-style=`desc-symbol-other-name`
Blocks have four columns with the description in the first column of the block, the symbol in the second, the other in the third, and the name in the fourth. The child entries are at the end of the first column (if childcount is set and non-zero).

🔖
block-style=`desc-other-symbol-name`
Blocks have four columns with the description in the first column of the block, the other in the second, the symbol in the third, and the name in the fourth. The child entries are at the end of the first column (if childcount is set and non-zero).

[top]

#### 8.7.4.4. Associated Commands
[link]

The rows are separated with:

📌
``\glstablenewline``
This simply does `\tabularnewline` (not `\\` which has a different action in paragraph columns).

The following commands are used in the column specifier where a left, right or centred column is required, taking the par option into account. Note that with par=justified, the result will always be `p{〈width〉}`, whereas with par=ragged the paragraph will be ragged right or ragged left or have centring applied.

📌
``\glstableleftalign`{〈width〉}`
Expands to `l` or `p{〈width〉}` or `>\protect\raggedrightp{〈width〉}`, depending on the par setting.

This command is used in the column specifier where a left-justified column is required.

📌
``\glstablerightalign`{〈width〉}`
Expands to `r` or `p{〈width〉}` or `>\protect\raggedleftp{〈width〉}`, depending on the par setting.

This command is used in the column specifier where a right-justified column is required.

📌
``\glstablecenteralign`{〈width〉}`
Expands to `c` or `p{〈width〉}` or `>\protect\centeringp{〈width〉}`, depending on the par setting.

This command is used in the column specifier where a centred column is required.

📌
``\glstablenamecolalign``
Expands to the alignment for the name column. The default definition uses left alignment:

    \glstableleftalign{\glstablenamewidth}

📌
``\glstabledesccolalign``
Expands to the alignment for the description column. The default definition uses left alignment:

    \glstableleftalign{\glstabledescwidth}

📌
``\glstablesymbolcolalign``
Expands to the alignment for the symbol column, in block styles where the symbol has its own column. The default definition uses centred alignment:

    \glstablecenteralign{\glstablesymbolwidth}

📌
``\glstableothercolalign``
Expands to the alignment for the other column, in block styles where the other field has its own column. The default definition uses left alignment:

    \glstableleftalign{\glstableotherwidth}

If par=justified or par=ragged, the column widths will be calculated. The following length registers will be set, where applicable to the block style.

📌
``\glstablenamewidth``
The width of the name column.

📌
``\glstabledescwidth``
The width of the description column.

📌
``\glstablesymbolwidth``
The width of the symbol column.

📌
``\glstableotherwidth``
The width of the other column.

Unless par=false, the table will be the width of a line and each block will have equal width.

📌
``\glstableblockwidth``

Note that in all the above, the width doesn’t include the inter-column space given by `\tabcolsep`. The length registers below are initialise to 5pt, and can be redefined as appropriate.

📌
``\glstablepostpreambleskip``initial: 5pt
The vertical skip after the preamble.

📌
``\glstableprepostambleskip``initial: 5pt
The vertical skip before the postamble.

Formatting for the name, symbol, description and other field values are applied by the following commands.

📌
``\glstableNameFmt`{〈text〉}`
Formatting applied to the name. Simply does 〈text〉 by default. Note that the argument 〈text〉 will ``\glossentryname`{〈label〉}`, so any formatting applied by that command will also be in effect.

📌
``\glstableSubNameFmt`{〈text〉}`
Formatting applied to the child name. Does nothing by default, which means that the child name won’t show.

📌
``\glstableSymbolFmt`{〈text〉}`
Formatting applied to the symbol. Simply does 〈text〉 by default. Note that the argument 〈text〉 will ``\glossentrysymbol`{〈label〉}`, so any formatting applied by that command will also be in effect.

📌
``\glstableSubSymbolFmt`{〈text〉}`
Formatting applied to the child symbol. Just does `\glstableSymbolFmt` by default.

📌
``\glstableDescFmt`{〈text〉}`
Formatting applied to the description. Simply does 〈text〉 by default. Note that the argument 〈text〉 will be:

    \glossentrydesc{〈label〉}\glspostdescription

so any formatting applied by `\glossentrydesc` will also be in effect. Note that the post-description hook is included in the formatted.

📌
``\glstableSubDescFmt`{〈text〉}`
Formatting applied to the child description. Just does `\glstableDescFmt` by default.

The other field’s internal label is provided by expanding:

📌
``\glstableotherfield``initial: empty
This is redefined by the other option, but it may be redefined before `\printunsrttable` if a default field is required.

📌
``\glstableOtherFmt`{〈text〉}`
The formatting applied to the other field. This just does 〈text〉 by default. The field value itself is displayed with:
📌
``\glstableOther`{〈entry-label〉}`
The default definition does:

    \glstableOtherFmt{%
     \glsxtrusefield{〈entry-label〉}{\glstableotherfield}}

The value for the child entries is displayed with:

📌
``\glstableSubOther`{〈entry-label〉}`
The default definition simply does `\glstableOther`{〈entry-label〉}

You can test whether or not the other field is set for a given entry with:

📌
``\glstableifhasotherfield`{〈entry-label〉}{〈true〉}{〈false〉}`
This does 〈true〉 of the other field is non-void (according to `\ifglsfieldvoid`) otherwise it does 〈false〉. This will always do 〈false〉 if `\glstableotherfield` is void.

The column headers are supplied by the following commands, where applicable.

📌
``\glstablenameheader``
The header for the name column. The default definition is `\entryname`.

📌
``\glstabledescheader``
The header for the description column. The default definition is `\descriptionname`.

📌
``\glstablesymbolheader``
The header for the symbol column. The default definition is `\symbolname`.

📌
``\glstableotherheader``
The header for the other column. The default definition is:

    \MFUsentencecase{\glstableotherfield}

The column headers are formatted according to:

📌
``\glstableHeaderFmt`{〈text〉}`
The default definition is ``\textbf`{〈text〉}`.

⚠
The remaining commands are undocumented as they are liable to change.

[top]

# 9. Accessibility Support
[link]

The glossaries package comes with a supplementary package glossaries-accsupp that helps provide accessibility support. The glossaries-extra package provides additional support, but only if the glossaries-accsupp package has already been loaded when the relevant commands are defined. The best and simplest way to do this is through the accsupp package option.

See the “Accessibility Support” chapter in the glossaries user guide for further information about glossaries-accsupp.

[top]

## 9.1. Abbreviations
[link]

The accessibility fields relating to abbreviations are shortaccess, shortpluralaccess, longaccess and longpluralaccess. These provide the replacement text for the corresponding short, shortplural, long and longplural fields. The access field provides the replacement text for the name field.

Some of these accessibility fields are automatically assigned by `\newabbreviation` if they haven’t been set.

📌
``\glsxtrassignactualsetup``

This command is used to locally redefine common formatting commands so that they can be stripped to obtain only the text. You can add additional commands with `\appto`. For example, the following eccentric example has some strange styling in the abbreviation:

    🖹\newabbreviation{foo}{f\textsuperscript{o}\textsubscript{o}}{furry old otters}

If an accessibility field is being automatically assigned with text obtained from the short value, then the subscript and superscript commands will need to be stripped. These need to be locally redefined to just do their arguments:

    🖹\appto\glsxtrassignactualsetup{%
      \letcs{\textsuperscript}{@firstofone}%
      \letcs{\textsubscript}{@firstofone}%
    }

The attributes that specifically relate to accessibility in abbreviations are listed below. The “actual short value” means the value obtained from the short value after any markup commands have have locally redefined using `\glsxtrassignactualsetup`. The actual short value may then be modified by these attributes. Similarly, for the “actual long value”.

Finally, if shortaccess hasn’t already been set, it will be set to:

    🖹\glsdefaultshortaccess{〈actual long〉}{〈actual short〉}

(with `\glsdefaultshortaccess` expanded). This command is provided by glossaries-accsupp and is defined to do just {〈actual long〉}. It was redefined by glossaries-extra v1.42 to do `{〈actual long〉} ({〈actual short〉})`, but has been reverted back to its original definition in v1.49.

🔘︎
`accessinsertdots=〈boolean〉`
If the shortaccess key hasn’t been set then this attribute will be checked. If true, the actual short value will have dots inserted (as per insertdots). Note that if this attribute hasn’t been set but insertdots is true (and the shortaccess key hasn’t been set), then the actual short value will also have dots inserted.

🔘︎
`accessaposplural=〈boolean〉`
If the shortpluralaccess key hasn’t been set then this attribute will be checked. If true, the actual short plural value will have the apostrophe suffix (similar to aposplural but using `\glsxtrabbrvpluralsuffix` instead of `\abbrvpluralsuffix`). Note that if this attribute hasn’t been set but aposplural is true (and the shortpluralaccess key hasn’t been set), then the actual short plural value will also have the apostrophe suffix.

🔘︎
`accessnoshortplural=〈boolean〉`
If the shortpluralaccess key hasn’t been set and the accessaposplural attribute hasn’t been set, then this attribute will be checked. If true, the actual short plural value will be the same as the singular (as noshortplural). Note that if this attribute hasn’t been set but noshortplural is true (and the shortpluralaccess key hasn’t been set), then the actual short plural value will also be the singular form.

🔘︎
`nameshortaccess=〈boolean〉`
If the access key hasn’t been set and this attribute is true, then the access field will be set to the same as the shortaccess.

🔘︎
`textshortaccess=〈boolean〉`
If the textaccess key hasn’t been set and this attribute is true, then the textaccess field will be set to the same as the shortaccess. Additionally, if the pluralaccess key hasn’t been set, then it will be set to the same as the shortpluralaccess value.

🔘︎
`firstshortaccess=〈boolean〉`
If the firstaccess key hasn’t been set and this attribute is true, then the firstaccess field will be set to the same as the shortaccess. Additionally, if the firstpluralaccess key hasn’t been set, then it will be set to the same as the shortpluralaccess value.

[top]

## 9.2. Accessibility Wrappers
[link]

The glossary style commands such as `\glossentryname` incorporate accessibility support by using the `\glsaccess〈field〉` commands instead of the corresponding `\glsentry〈field〉` commands.

If the glossaries-accsupp package hasn’t been loaded or if the relevant accessibility field hasn’t been set, these commands simply do the corresponding `\glsentry〈field〉` command.

📌
``\glsaccessname`{〈entry-label〉}`
This shows the name field encapsulated with `\glsnameaccessdisplay` or just `\glsentryname`{〈entry-label〉}.

📌
``\Glsaccessname`{〈entry-label〉}`
As above but sentence case.

📌
``\GLSaccessname`{〈entry-label〉}`
As above but all caps.

📌
``\glsaccesstext`{〈entry-label〉}`
This shows the text field encapsulated with `\glstextaccessdisplay` or just `\glsentrytext`{〈entry-label〉}.

📌
``\Glsaccesstext`{〈entry-label〉}`
As above but sentence case.

📌
``\GLSaccesstext`{〈entry-label〉}`
As above but all caps.

📌
``\glsaccessplural`{〈entry-label〉}`
This shows the plural field encapsulated with `\glspluralaccessdisplay` or just `\glsentryplural`{〈entry-label〉}.

📌
``\Glsaccessplural`{〈entry-label〉}`
As above but sentence case.

📌
``\GLSaccessplural`{〈entry-label〉}`
As above but all caps.

📌
``\glsaccessfirst`{〈entry-label〉}`
This shows the first field encapsulated with `\glsfirstaccessdisplay` or just `\glsentryfirst`{〈entry-label〉}.

📌
``\Glsaccessfirst`{〈entry-label〉}`
As above but sentence case.

📌
``\GLSaccessfirst`{〈entry-label〉}`
As above but all caps.

📌
``\glsaccessfirstplural`{〈entry-label〉}`
This shows the firstplural field encapsulated with `\glsfirstpluralaccessdisplay` or just `\glsentryfirstplural`{〈entry-label〉}.

📌
``\Glsaccessfirstplural`{〈entry-label〉}`
As above but sentence case.

📌
``\GLSaccessfirstplural`{〈entry-label〉}`
As above but all caps.

📌
``\glsaccesssymbol`{〈entry-label〉}`
This shows the symbol field encapsulated with `\glssymbolaccessdisplay` or just `\glsentrysymbol`{〈entry-label〉}.

📌
``\Glsaccesssymbol`{〈entry-label〉}`
As above but sentence case.

📌
``\GLSaccesssymbol`{〈entry-label〉}`
As above but all caps.

📌
``\glsaccesssymbolplural`{〈entry-label〉}`
This shows the symbolplural field encapsulated with `\glssymbolpluralaccessdisplay` or just `\glsentrysymbolplural`{〈entry-label〉}.

📌
``\Glsaccesssymbolplural`{〈entry-label〉}`
As above but sentence case.

📌
``\GLSaccesssymbolplural`{〈entry-label〉}`
As above but all caps.

📌
``\glsaccessdesc`{〈entry-label〉}`
This shows the description field encapsulated with `\glsdescriptionaccessdisplay` or just `\glsentrydesc`{〈entry-label〉}.

📌
``\Glsaccessdesc`{〈entry-label〉}`
As above but sentence case.

📌
``\GLSaccessdesc`{〈entry-label〉}`
As above but all caps.

📌
``\glsaccessdescplural`{〈entry-label〉}`
This shows the descriptionplural field encapsulated with `\glsdescriptionpluralaccessdisplay` or just `\glsentrydescplural`{〈entry-label〉}.

📌
``\Glsaccessdescplural`{〈entry-label〉}`
As above but sentence case.

📌
``\GLSaccessdescplural`{〈entry-label〉}`
As above but all caps.

📌
``\glsaccessshort`{〈entry-label〉}`
This shows the short field encapsulated with `\glsshortaccessdisplay` or just `\glsentryshort`{〈entry-label〉}.

📌
``\Glsaccessshort`{〈entry-label〉}`
As above but sentence case.

📌
``\GLSaccessshort`{〈entry-label〉}`
As above but all caps.

📌
``\glsaccessshortpl`{〈entry-label〉}`
This shows the shortplural field encapsulated with `\glsshortpluralaccessdisplay` or just `\glsentryshortpl`{〈entry-label〉}.

📌
``\Glsaccessshortpl`{〈entry-label〉}`
As above but sentence case.

📌
``\GLSaccessshortpl`{〈entry-label〉}`
As above but all caps.

📌
``\glsaccesslong`{〈entry-label〉}`
This shows the long field encapsulated with `\glslongaccessdisplay` or just `\glsentrylong`{〈entry-label〉}.

📌
``\Glsaccesslong`{〈entry-label〉}`
As above but sentence case.

📌
``\GLSaccesslong`{〈entry-label〉}`
As above but all caps.

📌
``\glsaccesslongpl`{〈entry-label〉}`
This shows the longplural field encapsulated with `\glslongpluralaccessdisplay` or just `\glsentrylongpl`{〈entry-label〉}.

📌
``\Glsaccesslongpl`{〈entry-label〉}`
As above but sentence case.

📌
``\GLSaccesslongpl`{〈entry-label〉}`
As above but all caps.

📌
``\glsaccessuseri`{〈entry-label〉}`
This shows the user1 field encapsulated with `\glsuseriaccessdisplay` or just `\glsentryuseri`{〈entry-label〉}.

📌
``\Glsaccessuseri`{〈entry-label〉}`
As above but sentence case.

📌
``\GLSaccessuseri`{〈entry-label〉}`
As above but all caps.

📌
``\glsaccessuserii`{〈entry-label〉}`
This shows the user2 field encapsulated with `\glsuseriiaccessdisplay` or just `\glsentryuserii`{〈entry-label〉}.

📌
``\Glsaccessuserii`{〈entry-label〉}`
As above but sentence case.

📌
``\GLSaccessuserii`{〈entry-label〉}`
As above but all caps.

📌
``\glsaccessuseriii`{〈entry-label〉}`
This shows the user3 field encapsulated with `\glsuseriiiaccessdisplay` or just `\glsentryuseriii`{〈entry-label〉}.

📌
``\Glsaccessuseriii`{〈entry-label〉}`
As above but sentence case.

📌
``\GLSaccessuseriii`{〈entry-label〉}`
As above but all caps.

📌
``\glsaccessuseriv`{〈entry-label〉}`
This shows the user4 field encapsulated with `\glsuserivaccessdisplay` or just `\glsentryuseriv`{〈entry-label〉}.

📌
``\Glsaccessuseriv`{〈entry-label〉}`
As above but sentence case.

📌
``\GLSaccessuseriv`{〈entry-label〉}`
As above but all caps.

📌
``\glsaccessuserv`{〈entry-label〉}`
This shows the user5 field encapsulated with `\glsuservaccessdisplay` or just `\glsentryuserv`{〈entry-label〉}.

📌
``\Glsaccessuserv`{〈entry-label〉}`
As above but sentence case.

📌
``\GLSaccessuserv`{〈entry-label〉}`
As above but all caps.

📌
``\glsaccessuservi`{〈entry-label〉}`
This shows the user6 field encapsulated with `\glsuserviaccessdisplay` or just `\glsentryuservi`{〈entry-label〉}.

📌
``\Glsaccessuservi`{〈entry-label〉}`
As above but sentence case.

📌
``\GLSaccessuservi`{〈entry-label〉}`
As above but all caps.

[top]

## 9.3. Inner Formatting Wrappers
[link]

These `\glsaccessfmt〈field〉` commands are similar to the corresponding `\glsaccess〈field〉` commands described above, but they format the field value using `\glsfmtfield`, `\Glsfmtfield` or `\GLSfmtfield` with the supplied 〈cs〉 encapsulating command.

The default entry display style `\glsgenentryfmt`, and the predefined abbreviation styles all incorporate accessibility support by using these commands in order to support the inner formatting.

📌
``\glsaccessfmtname`{〈insert〉}{〈cs〉}{〈entry-label〉}`
This shows the name field formatted with 〈cs〉 and, if accessibility support provided, encapsulated with `\glsnameaccessdisplay`.

📌
``\Glsaccessfmtname`{〈insert〉}{〈cs〉}{〈entry-label〉}`
As above but sentence case.

📌
``\GLSaccessfmtname`{〈insert〉}{〈cs〉}{〈entry-label〉}`
As above but all caps.

📌
``\glsaccessfmttext`{〈insert〉}{〈cs〉}{〈entry-label〉}`
This shows the text field formatted with 〈cs〉 and, if accessibility support provided, encapsulated with `\glstextaccessdisplay`.

📌
``\Glsaccessfmttext`{〈insert〉}{〈cs〉}{〈entry-label〉}`
As above but sentence case.

📌
``\GLSaccessfmttext`{〈insert〉}{〈cs〉}{〈entry-label〉}`
As above but all caps.

📌
``\glsaccessfmtplural`{〈insert〉}{〈cs〉}{〈entry-label〉}`
This shows the plural field formatted with 〈cs〉 and, if accessibility support provided, encapsulated with `\glspluralaccessdisplay`.

📌
``\Glsaccessfmtplural`{〈insert〉}{〈cs〉}{〈entry-label〉}`
As above but sentence case.

📌
``\GLSaccessfmtplural`{〈insert〉}{〈cs〉}{〈entry-label〉}`
As above but all caps.

📌
``\glsaccessfmtfirst`{〈insert〉}{〈cs〉}{〈entry-label〉}`
This shows the first field formatted with 〈cs〉 and, if accessibility support provided, encapsulated with `\glsfirstaccessdisplay`.

📌
``\Glsaccessfmtfirst`{〈insert〉}{〈cs〉}{〈entry-label〉}`
As above but sentence case.

📌
``\GLSaccessfmtfirst`{〈insert〉}{〈cs〉}{〈entry-label〉}`
As above but all caps.

📌
``\glsaccessfmtfirstplural`{〈insert〉}{〈cs〉}{〈entry-label〉}`
This shows the firstplural field formatted with 〈cs〉 and, if accessibility support provided, encapsulated with `\glsfirstpluralaccessdisplay`.

📌
``\Glsaccessfmtfirstplural`{〈insert〉}{〈cs〉}{〈entry-label〉}`
As above but sentence case.

📌
``\GLSaccessfmtfirstplural`{〈insert〉}{〈cs〉}{〈entry-label〉}`
As above but all caps.

📌
``\glsaccessfmtsymbol`{〈insert〉}{〈cs〉}{〈entry-label〉}`
This shows the symbol field formatted with 〈cs〉 and, if accessibility support provided, encapsulated with `\glssymbolaccessdisplay`.

📌
``\Glsaccessfmtsymbol`{〈insert〉}{〈cs〉}{〈entry-label〉}`
As above but sentence case.

📌
``\GLSaccessfmtsymbol`{〈insert〉}{〈cs〉}{〈entry-label〉}`
As above but all caps.

📌
``\glsaccessfmtsymbolplural`{〈insert〉}{〈cs〉}{〈entry-label〉}`
This shows the symbolplural field formatted with 〈cs〉 and, if accessibility support provided, encapsulated with `\glssymbolpluralaccessdisplay`.

📌
``\Glsaccessfmtsymbolplural`{〈insert〉}{〈cs〉}{〈entry-label〉}`
As above but sentence case.

📌
``\GLSaccessfmtsymbolplural`{〈insert〉}{〈cs〉}{〈entry-label〉}`
As above but all caps.

📌
``\glsaccessfmtdesc`{〈insert〉}{〈cs〉}{〈entry-label〉}`
This shows the description field formatted with 〈cs〉 and, if accessibility support provided, encapsulated with `\glsdescriptionaccessdisplay`.

📌
``\Glsaccessfmtdesc`{〈insert〉}{〈cs〉}{〈entry-label〉}`
As above but sentence case.

📌
``\GLSaccessfmtdesc`{〈insert〉}{〈cs〉}{〈entry-label〉}`
As above but all caps.

📌
``\glsaccessfmtdescplural`{〈insert〉}{〈cs〉}{〈entry-label〉}`
This shows the descriptionplural field formatted with 〈cs〉 and, if accessibility support provided, encapsulated with `\glsdescriptionpluralaccessdisplay`.

📌
``\Glsaccessfmtdescplural`{〈insert〉}{〈cs〉}{〈entry-label〉}`
As above but sentence case.

📌
``\GLSaccessfmtdescplural`{〈insert〉}{〈cs〉}{〈entry-label〉}`
As above but all caps.

📌
``\glsaccessfmtshort`{〈insert〉}{〈cs〉}{〈entry-label〉}`
This shows the short field formatted with 〈cs〉 and, if accessibility support provided, encapsulated with `\glsshortaccessdisplay`.

📌
``\Glsaccessfmtshort`{〈insert〉}{〈cs〉}{〈entry-label〉}`
As above but sentence case.

📌
``\GLSaccessfmtshort`{〈insert〉}{〈cs〉}{〈entry-label〉}`
As above but all caps.

📌
``\glsaccessfmtshortpl`{〈insert〉}{〈cs〉}{〈entry-label〉}`
This shows the shortplural field formatted with 〈cs〉 and, if accessibility support provided, encapsulated with `\glsshortpluralaccessdisplay`.

📌
``\Glsaccessfmtshortpl`{〈insert〉}{〈cs〉}{〈entry-label〉}`
As above but sentence case.

📌
``\GLSaccessfmtshortpl`{〈insert〉}{〈cs〉}{〈entry-label〉}`
As above but all caps.

📌
``\glsaccessfmtlong`{〈insert〉}{〈cs〉}{〈entry-label〉}`
This shows the long field formatted with 〈cs〉 and, if accessibility support provided, encapsulated with `\glslongaccessdisplay`.

📌
``\Glsaccessfmtlong`{〈insert〉}{〈cs〉}{〈entry-label〉}`
As above but sentence case.

📌
``\GLSaccessfmtlong`{〈insert〉}{〈cs〉}{〈entry-label〉}`
As above but all caps.

📌
``\glsaccessfmtlongpl`{〈insert〉}{〈cs〉}{〈entry-label〉}`
This shows the longplural field formatted with 〈cs〉 and, if accessibility support provided, encapsulated with `\glslongpluralaccessdisplay`.

📌
``\Glsaccessfmtlongpl`{〈insert〉}{〈cs〉}{〈entry-label〉}`
As above but sentence case.

📌
``\GLSaccessfmtlongpl`{〈insert〉}{〈cs〉}{〈entry-label〉}`
As above but all caps.

📌
``\glsaccessfmtuseri`{〈insert〉}{〈cs〉}{〈entry-label〉}`
This shows the user1 field formatted with 〈cs〉 and, if accessibility support provided, encapsulated with `\glsuseriaccessdisplay`.

📌
``\Glsaccessfmtuseri`{〈insert〉}{〈cs〉}{〈entry-label〉}`
As above but sentence case.

📌
``\GLSaccessfmtuseri`{〈insert〉}{〈cs〉}{〈entry-label〉}`
As above but all caps.

📌
``\glsaccessfmtuserii`{〈insert〉}{〈cs〉}{〈entry-label〉}`
This shows the user2 field formatted with 〈cs〉 and, if accessibility support provided, encapsulated with `\glsuseriiaccessdisplay`.

📌
``\Glsaccessfmtuserii`{〈insert〉}{〈cs〉}{〈entry-label〉}`
As above but sentence case.

📌
``\GLSaccessfmtuserii`{〈insert〉}{〈cs〉}{〈entry-label〉}`
As above but all caps.

📌
``\glsaccessfmtuseriii`{〈insert〉}{〈cs〉}{〈entry-label〉}`
This shows the user3 field formatted with 〈cs〉 and, if accessibility support provided, encapsulated with `\glsuseriiiaccessdisplay`.

📌
``\Glsaccessfmtuseriii`{〈insert〉}{〈cs〉}{〈entry-label〉}`
As above but sentence case.

📌
``\GLSaccessfmtuseriii`{〈insert〉}{〈cs〉}{〈entry-label〉}`
As above but all caps.

📌
``\glsaccessfmtuseriv`{〈insert〉}{〈cs〉}{〈entry-label〉}`
This shows the user4 field formatted with 〈cs〉 and, if accessibility support provided, encapsulated with `\glsuserivaccessdisplay`.

📌
``\Glsaccessfmtuseriv`{〈insert〉}{〈cs〉}{〈entry-label〉}`
As above but sentence case.

📌
``\GLSaccessfmtuseriv`{〈insert〉}{〈cs〉}{〈entry-label〉}`
As above but all caps.

📌
``\glsaccessfmtuserv`{〈insert〉}{〈cs〉}{〈entry-label〉}`
This shows the user5 field formatted with 〈cs〉 and, if accessibility support provided, encapsulated with `\glsuservaccessdisplay`.

📌
``\Glsaccessfmtuserv`{〈insert〉}{〈cs〉}{〈entry-label〉}`
As above but sentence case.

📌
``\GLSaccessfmtuserv`{〈insert〉}{〈cs〉}{〈entry-label〉}`
As above but all caps.

📌
``\glsaccessfmtuservi`{〈insert〉}{〈cs〉}{〈entry-label〉}`
This shows the user6 field formatted with 〈cs〉 and, if accessibility support provided, encapsulated with `\glsuserviaccessdisplay`.

📌
``\Glsaccessfmtuservi`{〈insert〉}{〈cs〉}{〈entry-label〉}`
As above but sentence case.

📌
``\GLSaccessfmtuservi`{〈insert〉}{〈cs〉}{〈entry-label〉}`
As above but all caps.

[top]

# 10. Categories
[link]

🛈
For multi-entry categories, see §7.8.

Each entry defined by `\newglossaryentry` (or commands that internally use it such as `\newabbreviation`) is assigned a category through the category key. You may add any category that you like, but since the category is a label used in the creation of some control sequences, avoid problematic characters within the category label. (So take care if you have babel shorthands on that make some characters active.)

The use of categories can give you more control over the way entries are displayed in the text or glossary. Note that an entry’s category is independent of the glossary type. Be careful not to confuse category with type.

📌
``\glscategory`{〈entry-label〉}`
Expands to the category of the given entry or does nothing if the entry doesn’t exist (analogous to `\glsentryname`).

📌
``\glsifcategory`{〈entry-label〉}{〈category〉}{〈true〉}{〈false〉}`
Tests if the entry given by 〈entry-label〉 has the category set to 〈category〉.

An entry may have its category field changed using commands such as `\GlsXtrSetField` (see §3.5). In addition, the following commands are provided to batch set the category for a collection of entries.

📌
``\glsxtrsetcategory`{〈entry-labels〉}{〈category-label〉}`
Globally sets the category field to the fully expanded 〈category-label〉 for each entry listed in 〈entry-labels〉.

📌
``\glsxtrsetcategoryforall`{〈glossary-labels〉}{〈category-label〉}`
Globally sets the category field to the fully expanded 〈category-label〉 for each entry belonging to the glossaries listed in 〈glossary-labels〉.

There are also some iterative commands available:

📌
``\glsforeachincategory`[〈glossary-types〉]{〈category〉}{〈glossary-cs〉}{〈label-cs〉}{〈body〉}`
This iterates through all entries in the glossaries identified by the comma-separated list 〈glossary-labels〉 that have the category given by 〈category-label〉 and performs 〈body〉 for each match. Within 〈body〉, you can use 〈glossary-cs〉 and 〈label-cs〉 (which much be control sequences) to access the current glossary and entry label. If 〈glossary-labels〉 is omitted, all glossaries are assumed.

📌
``\glsforeachwithattribute`[〈glossary-types〉]{〈attribute-label〉}{〈attribute-value〉}{〈glossary-cs〉}{〈label-cs〉}{〈body〉}`
This iterates over all entries in the given list of glossaries that have a category with the given 〈attribute-label〉 set to 〈attribute-value〉 and performs 〈body〉 at each iteration. If 〈glossary-types〉 is omitted, the list of all non-ignored glossaries is assumed. The remaining arguments are as for `\glsforeachincategory`.

[top]

## 10.1. Known Categories
[link]

These are the category labels that are set or referenced by glossaries-extra.

𝍢
`general`
The default category assumed by `\newglossaryentry`.

𝍢
`abbreviation`
The default category assumed by `\newabbreviation`.

𝍢
`acronym`
The default category assumed by `\newacronym`.

𝍢
`index`
The default category assumed by `\newterm`.

𝍢
`symbol`
The default category assumed by `\glsxtrnewsymbol`.

𝍢
`number`
The default category assumed by `\glsxtrnewnumber`.

[top]

## 10.2. Attributes
[link]

Each category may have a set of attributes, where each attribute has an associated value for its given category. An entry’s attribute set corresponds to the attributes associated with the entry’s category.

As with the category, the attribute name is also a label. You can provide your own custom attributes, which you can set and access with the commands described in §10.2.2.

[top]

### 10.2.1. Known Attributes
[link]

This section lists attributes that glossaries-extra sets or accesses. If an attribute hasn’t been set, a default is assumed. For boolean attributes, the test may simply be to determine if the attribute has been set to `true`, in which case any other value or a missing value will be interpreted as false. Conversely, the test may be to determine if the attribute has been set to `false`, in which case any other value or a missing value will be interpreted as true.

🛈
See §7.8 for attributes relating to multi-entry categories.

[top]

#### 10.2.1.1. Abbreviation Attributes
[link]

See §9.1 for abbreviation accessibility attributes.

🔘︎
`regular=〈boolean〉`
This attribute indicates whether or not an entry should be considered a regular entry. This enables `\glsentryfmt` to determine whether to use `\glsgenentryfmt` or `\glsxtrgenabbrvfmt`.

The general and acronym categories have the regular attribute automatically set to `true`. Some abbreviation styles change this value.

🔘︎
`discardperiod=〈boolean〉`
If set to “true”, the post-link hook will discard a full stop that follows non-plural commands like `\gls` or `\glstext`(see §5.5.4).

🛈
This attribute doesn’t apply to the accessibility fields. See §9.1 for attributes related to accessibility support for abbreviations.

Note that this can cause a problem if you access a field that doesn’t end with a full stop. For example:

    🖹\newabbreviation
     [user1={German Speaking \TeX\ User Group}]
     {dante}{DANTE e.V.}{Deutschsprachige Anwendervereinigung
      \TeX\ e.V.}

Here the short and long fields end with a full stop, but the user1 field doesn’t. The simplest solution in this situation is to put the sentence terminator in the final optional argument. For example:

    🖹\glsuseri{dante}[.]

This will bring the punctuation character inside the link text and it won’t be discarded.

🔘︎
`pluraldiscardperiod=〈boolean〉`
If this attribute is set to “true” and the discardperiod attribute is set to “true”, this will behave as above for the plural commands like `\glspl` or `\glsplural`.

🔘︎
`retainfirstuseperiod=〈boolean〉`
If this attribute is set to “true” then the discard is determined by `\glsxtrdiscardperiodretainfirstuse`, regardless of the discardperiod or pluraldiscardperiod attributes. This is useful for 〈short〉 (〈long〉) abbreviation styles where only the short form has a trailing full stop.

🛈
This attribute doesn’t apply to the accessibility fields. See §9.1 for attributes related to accessibility support for abbreviations.

🔘︎
`markwords=〈boolean〉`
If this attribute is set to “true” any entry defined using `\newabbreviation` will automatically have spaces in the long form replaced with:
📌
``\glsxtrwordsep``
and each word is encapsulated with:
📌
``\glsxtrword`{〈word〉}`
For example:

    🖹\glssetcategoryattribute{abbreviation}{markwords}{true}
    \newabbreviation{ip}{IP}{Internet Protocol}

is essentially the same as

    🖹\newabbreviation{ip}{IP}
    {\glsxtrword{Internet}\glsxtrwordsep\glsxtrword{Protocol}}

The “hyphen” styles, such as long-hyphen-short-hyphen, take advantage of this markup. If the inserted material (provided in the final argument of `\gls`-like commands) starts with a hyphen then `\glsxtrwordsep` is locally redefined to a hyphen. (The default value is a space). Note that this only applies to commands like `\gls` and not like `\glsxtrlong`. You can provide your own localised switch, if required. For example:

    🖹\newcommand{\hyplong}[2][]{%
     {\def\glsxtrwordsep{-}\glsxtrlong[#1]{#2}}}

This setting will also adjust the long plural. This attribute is only applicable to entries defined using `\newabbreviation` (or `\newacronym` if it’s using `\newabbreviation`.)

ℹ
This setting may result in the `\glsxtrword` and `\glsxtrwordsep` markup ending up in the sort field, depending on the style in use.

🔘︎
`markshortwords=〈boolean〉`
This is similar to markwords but applies to the short form. (Only useful for abbreviations that contain spaces.) This attribute is only applicable to entries defined using `\newabbreviation` (or `\newacronym` if it’s using `\newabbreviation`.)

This setting will only adjust the short plural if the shortplural key isn’t used. This setting will take precedence over insertdots.

ℹ
This setting may result in the `\glsxtrword` and `\glsxtrwordsep` markup ending up in the sort field, depending on the style in use.

🔘︎
`insertdots=〈boolean〉`
If this attribute is set to “true” any entry defined using `\newabbreviation` will automatically have full stops inserted after each letter. The entry will be defined with those dots present as though they had been present in the 〈short〉 argument of `\newabbreviation` (rather than inserting them every time the entry is used). The short plural form defaults to the new dotted version of the original 〈short〉 form with the plural suffix appended. This setting is incompatible with markshortwords. This attribute is only applicable to entries defined using `\newabbreviation` (or `\newacronym` if it’s using `\newabbreviation`.)

ℹ
If you explicitly override the short plural using the shortplural key, you must explicitly insert the dots yourself (since there’s no way for the code to determine if the plural has a suffix that shouldn’t be followed by a dot).

This attribute is best used with the discardperiod attribute set to “true”.

🔘︎
`aposplural=〈boolean〉`
If this attribute is set to “true”, `\newabbreviation` will insert an apostrophe (’) before the plural suffix for the short plural form (unless explicitly overridden with the shortplural key). The long plural form is unaffected by this setting. This setting overrides noshortplural. This attribute is only applicable to entries defined using `\newabbreviation` (or `\newacronym` if it’s using `\newabbreviation`.) Check with your supervisor, publisher or editor if you want to use this attribute as this usage is controversial.

🔘︎
`noshortplural=〈boolean〉`
If this attribute is set to “true”, `\newabbreviation` won’t append the plural suffix for the short plural form. This means the short and shortplural values will be the same unless explicitly overridden. This setting is incompatible with aposplural. This attribute is only applicable to entries defined using `\newabbreviation` (or `\newacronym` if it’s using `\newabbreviation`.)

🔘︎
`tagging=〈boolean〉`
If this attribute is set to “true”, the tagging command defined by `\GlsXtrEnableInitialTagging` will be activated to use `\glsxtrtagfont` in the glossary (see §4.4)

[top]

#### 10.2.1.2. Attributes that Alter `\glslink` Options
[link]

🔘︎
`nohyperfirst=〈boolean〉`
When used with the `\gls`-like commands, if this attribute is set to `true`, this will automatically suppress the hyperlink on first use.

🛈
This settings can be overridden by explicitly setting the hyper key on or off in the optional argument of the `\gls`-like command.

As from version 1.07, `\glsfirst`, `\Glsfirst`, `\GLSfirst` and their plural versions (which should ideally behave in a similar way to the first use of `\gls` or `\glspl`) now honour this attribute (but not the package-wide hyperfirst=false option, which matches the behaviour of glossaries). If you want commands like `\glsfirst` to ignore the nohyperfirst attribute then just redefine `\glsxtrchecknohyperfirst` to do nothing.

🔘︎
`nohypernext=〈boolean〉`
If set to `true`, this will automatically set hyper=false on subsequent use when using the `\gls`-like commands.

🔘︎
`nohyper=〈boolean〉`
If set to `true`, this will automatically set hyper=false when using the `\gls`-like or `\glstext`-like commands.

🔘︎
`indexonlyfirst=〈boolean〉`
This is similar to the indexonlyfirst package option but only for entries that have a category with this attribute set to “true”.

🎚
`wrgloss=〈value〉`
When using the `\gls`-like or `\glstext`-like commands, this will automatically set wrgloss=after it this attribute is set to “after”.

🎚
`textformat=〈cs-name〉`
The `\gls`-like and `\glstext`-like commands have the link text encapsulated in the argument of `\glstextformat` by default (the outer formatting, see §5.5.1). If the textformat attribute is set, the control sequence given by the attribute value will be used instead. The attribute value should be the name (without the leading backslash) of a command that takes a single argument (the link text). Remember that the abbreviation styles may apply an additional font change.

🔘︎
`hyperoutside=〈boolean〉`
This boolean attribute may be `false`, `true` or unset. If unset, `true` is assumed. This indicates the default setting of the hyperoutside option, described in §5.1.

[top]

#### 10.2.1.3. Glossary Attributes
[link]

🎚
`glossdesc=〈value〉`
This attribute is checked by the `\glossentrydesc` to determine whether or not to apply any case change. The value may be one of:

firstuc
  Applies sentence case. That is, the first letter of the description will be converted to uppercase (using `\Glsentrydesc`).

title
  Applies title case. If you have at least glossaries v4.48, the title casing is indirectly performed by `\glscapitalisewords`, which defaults to `\capitalisewords` (provided by mfirstuc). You can either redefine `\glscapitalisewords` if you want the change to also affect `\glsentrytitlecase` or if you only want the change to apply to the attribute case-changing then redefine `\glsxtrfieldtitlecasecs`. For example:

      🖹\newcommand*{\glsxtrfieldtitlecasecs}[1]{\xcapitalisefmtwords*{#1}}

  (Note that the argument to `\glsxtrfieldtitlecasecs` will be a control sequence whose replacement text is the entry’s description, which is why `\xcapitalisefmtwords` is needed instead of `\capitalisefmtwords`.)

  ⚠
  If an error occurs with this setting, try redefining `\glsxtrfieldtitlecasecs` as shown above.

Any other values of this attribute are ignored. Remember that there are design limitations for both the sentence case and the title case commands. See the mfirstuc user manual for further details.

🛈
If you are using bib2gls, you can use the description-case-change setting instead.

🎚
`glossdescfont=〈cs-name〉`
If set, the value should be the name of a control sequence (without the leading backslash) that takes one argument. This control sequence will be applied by `\glossentrydesc` to the description text. For example:

    🖹\glssetcategoryattribute{general}{glossdescfont}{emph}

🎚
`glossname=〈value〉`
As glossdesc but applies to `\glossentryname`. Additionally, if this attribute is set to “uc” the name is converted to all caps.

🛈
If you are using bib2gls, you can use the name-case-change setting instead.

🎚
`indexname={〈value〉}`
If set, the post-name hook will index the entry using `\index`. See §12 for further details.

🎚
`glossnamefont=〈cs-name〉`
As glossdescfont but applies to `\glossentryname`. Note that this overrides `\glsnamefont` which will only be used if this attribute hasn’t been set.

Remember that glossary styles may additionally apply a font change, such as the list styles which put the name in the optional argument of `\item`.

🎚
`glosssymbolfont=〈cs-name〉`
This is similar to glossnamefont and glossdescfont but is used by `\glossentrysymbol`.

[top]

#### 10.2.1.4. Other Attributes
[link]

🔘︎
`headuc=〈boolean〉`
If this attribute is set to “true”, commands like `\glsfmtshort` will use the upper case version in the page headers.

🎚
`entrycount=〈trigger-value〉`
The value of this attribute (if set) must be an integer and is used in combination with `\glsenableentrycount` (see §6.1). Leave blank or undefined for categories that shouldn’t have this facility enabled. The value of this attribute is used by `\glsxtrifcounttrigger` to determine how commands such as `\cgls` should behave.

🔘︎
`linkcount=〈boolean〉`
This attribute is set to `true` by `\GlsXtrEnableLinkCounting` (see §6.2).

🎚
`linkcountmaster=〈counter-name〉`
This attribute is set by `\GlsXtrEnableLinkCounting` to the name of the counter that requires the link counter to be added to its reset list (see §6.2).

🎚
`dualindex=〈value〉`
If this attribute is set, whenever a glossary entry has information written to the external glossary file through commands like `\gls` and `\glsadd`, a corresponding line will be written to the indexing file using `\index`. The value may be `true` to simply enable this feature or the value may be the encap to use with `\index`. See §12 for further details.

🎚
`targeturl=〈url〉`
If set, the hyperlink generated by commands like `\gls` will be set to the URL provided by this attribute’s value. For example:

    🖹\glssetcategoryattribute{general}{targeturl}{master-doc.pdf}

(See also the accompanying sample file sample-external.tex.) If the URL contains awkward characters (such as % or ~) remember that the base glossaries package provides commands like `\glspercentchar` and `\glstildechar` that expand to literal characters.

🎚
`targetname=〈anchor〉`
If you want to a named anchor within the target URL (notionally adding `#〈name〉` to the URL), then you also need to set targetname to the anchor 〈name〉. You may use `\glslabel` within 〈name〉 which is set by commands like `\gls` to the entry’s label.

All the predefined glossary styles start each entry listing with `\glstarget` which sets the anchor to ``\glolinkprefix``\glslabel``, so if you want entries to link to glossaries in the URL given by targeturl, you can just do:

    🖹\glssetcategoryattribute{general}{targetname}{\glolinkprefix\glslabel}

(If the target document changed `\glolinkprefix` then you will need to adjust the above as appropriate.)

🎚
`targetcategory=〈anchor〉`
If the anchor is in the form `〈name1〉.〈name2〉` then use targetname for the 〈name2〉 part and targetcategory for the 〈name1〉 part.

For example:

    🖹\glssetcategoryattribute{general}{targeturl}{master-doc.pdf}
    \glssetcategoryattribute{general}{targetcategory}{page}
    \glssetcategoryattribute{general}{targetname}{7}

will cause all link text for general entries to link to master-doc.pdf#page.7 (page 7 of that PDF).

If you want a mixture in your document of entries that link to an internal glossary and entries that link to an external URL then you can use `\newignoredglossary*` for the external list. For example:

    🖹\newignoredglossary*{external}

    \glssetcategoryattribute{external}{targeturl}{master-doc.pdf}
    \glssetcategoryattribute{general}{targetname}{\glolinkprefix\glslabel}

    \newglossaryentry{sample}{name={sample},description={local example}}

    \newglossaryentry{sample2}{name={sample2},
      type={external},
      category={external},
      description={external example}}

🎚
`externallocation=〈PDF filename〉`
The value should be the file name of the target document when manually indexing an external location with thevalue. In general, it’s better to use bib2gls v1.7+ which can handle multiple external sources and doesn’t require this attribute.

[top]

### 10.2.2. Accessing and Setting Attributes
[link]

Attributes can be set using the following commands:

📌
``\glssetcategoryattribute`{〈category〉}{〈attribute〉}{〈value〉}`
Locally sets the given attribute to 〈value〉 for the given category.

📌
``\glssetcategoriesattribute`{〈category list〉}{〈attribute〉}{〈value〉}`
Globally sets the given attribute to 〈value〉 for all the categories in the comma-separated list 〈category list〉.

📌
``\glssetcategoryattributes`{〈category〉}{〈attribute list〉}{〈value〉}`
Globally sets each attribute in the comma separated 〈attribute list〉 to 〈value〉 for the given 〈category〉.

📌
``\glssetcategoriesattributes`{〈category list〉}{〈attribute list〉}{〈value〉}`
Globally sets each attribute in the comma separated 〈attribute list〉 to 〈value〉 for each category in the comma-separated list 〈category list〉.

📌
``\glssetattribute`{〈entry-label〉}{〈attribute〉}{〈value〉}`
Locally sets the given attribute to 〈value〉 for the category associated with the entry identified by 〈entry-label〉. This command can’t be used to assign an attribute for a multi-entry category.

📌
``\glssetregularcategory`{〈category〉}`
A shortcut that sets the regular attribute to `true` for the given category using `\glssetcategoryattribute`.

An attribute can be locally unset using:

📌
``\glsunsetcategoryattribute`{〈category〉}{〈attribute〉}`

Attribute values can be obtained with the following commands:

📌
``\glsgetcategoryattribute`{〈category〉}{〈attribute〉}`
Expands to the value of the given attribute for the given category. Expands to nothing if the attribute hasn’t been set.

📌
``\glsgetattribute`{〈entry-label〉}{〈attribute〉}`
Expands to the value of the given attribute for the category associated with the entry identified by 〈entry-label〉. Expands to nothing if the attribute hasn’t been set. This command can’t be used to assign an attribute for a multi-entry category.

Attributes can be tested with the following commands.

📌
``\glshascategoryattribute`{〈category〉}{〈attribute〉}{〈true〉}{〈false〉}`
This uses etoolbox’s `\ifcsvoid` and does 〈true〉 if the attribute has been set and isn’t blank and isn’t `\relax` otherwise it does 〈false〉.

📌
``\glshasattribute`{〈entry-label〉}{〈attribute〉}{〈true〉}{〈false〉}`
As `\glshascategoryattribute` but the category is obtained from the given entry. This command can’t be used to test an attribute associated with a multi-entry category.

📌
``\glsifcategoryattribute`{〈category〉}{〈attribute〉}{〈value〉}{〈true〉}{〈false〉}`
This tests if the given attribute for the given category is set and equal to 〈value〉. If true, 〈true〉 is done. If the attribute isn’t set or is set but isn’t equal to 〈value〉, 〈false〉 is done.

For example:

    🖹\glsifcategoryattribute{general}{nohyper}{true}{NO HYPER}{HYPER}

This does “NO HYPER” if the general category has the nohyper attribute set to `true` otherwise if does “HYPER”.

📌
``\glsifattribute`{〈entry-label〉}{〈attribute〉}{〈value〉}{〈true〉}{〈false〉}`
As `\glsifcategoryattribute` but the category is obtained from the given entry. This command can’t be used to test an attribute associated with a multi-entry category.

📌
``\glsifregularcategory`{〈category〉}{〈true〉}{〈false〉}`
A shortcut that tests if the given category has the regular attribute set to `true`.

📌
``\glsifnotregularcategory`{〈category〉}{〈true〉}{〈false〉}`
A shortcut that tests if the given category has the regular attribute set to `false`.

⚠
If the regular attribute hasn’t been set, both `\glsifregularcategory` and `\glsifnotregularcategory` will do 〈false〉. The choice of command needs to be determined by what outcome should occur if the attribute hasn’t been set.

📌
``\glsifregular`{〈entry-label〉}{〈true〉}{〈false〉}`
As `\glsifregularcategory` but the category is obtained from the given entry. This command can’t be used to test an attribute associated with a multi-entry category.

📌
``\glsifnotregular`{〈entry-label〉}{〈true〉}{〈false〉}`
As `\glsifnotregularcategory` but the category is obtained from the given entry. This command can’t be used to test an attribute associated with a multi-entry category.

📌
``\glsifcategoryattributetrue`{〈category〉}{〈attribute〉}{〈true〉}{〈false〉}`
Expands to 〈true〉 if the attribute is `true` and 〈false〉 otherwise. Expands to 〈false〉 if there’s no such attribute for the given category.

📌
``\glsifattributetrue`{〈entry-label〉}{〈attribute〉}{〈true〉}{〈false〉}`
As `\glsifcategoryattributetrue` but the category is obtained from the given entry. Expands to 〈false〉 if the entry isn’t defined. This command can’t be used to test an attribute associated with a multi-entry category.

📌
``\glsifcategoryattributehasitem`{〈category〉}{〈attribute〉}{〈item〉}{〈true〉}{〈false〉}`
Does 〈true〉 if the category has the attribute (whose value is a comma-separated list) contains the given item and 〈false〉 otherwise. Does 〈false〉 if there’s no such attribute for the given category. The item and list are expanded and passed to datatool’s `\DTLifinlist` to perform the test.

[top]

# 11. bib2gls: Managing Reference Databases
[link]

The command line application bib2gls performs two functions in one:

- •selects entries according to records found in the aux file (similar to BibTeX),
- •hierarchically sorts entries and collates location lists (similar to makeindex or xindy).

Instead of storing all your entry definitions in a tex and loading them using `\input` or `\loadglsentries`, the entries can instead be stored in a bib file and bib2gls can selectively write the appropriate commands to a glstex file which is loaded using `\GlsXtrLoadResources`.

This means that you can use a reference managing system to maintain the database and it reduces the TeX overhead by only defining the entries that are actually required in the document. If you currently have a tex file that contains hundreds of definitions, but you only use a dozen or so in your document, then the build time is needlessly slowed by the unrequired definitions that occur when the file is input. (You can convert an existing tex file containing glossary definitions to a bib file using convertgls2bib, supplied with bib2gls.)

There are some new commands and options added to glossaries-extra to help assist the integration of bib2gls into the document build process.

This chapter just provides a general overview of bib2gls. The full details and some sample documents are provided in the bib2gls manual

    〉_texdoc bib2gls

An example of the contents of bib file that stores glossary entries that can be extracted with bib2gls called, say, terms.bib:

    🖹@entry{bird,
     name={bird},
     description={feathered animal},
     see={[see also]duck,goose}
    }

    @entry{duck,
     name={duck},
     description={a waterbird with short legs}
    }

    @entry{goose,
     name="goose",
     plural="geese",
     description={a waterbird with a long neck}
    }

The following provides some abbreviations in a file called, say, abbrvs.bib:

    🖹@string{ssi={server-side includes}}
    @string{html={hypertext markup language}}

    @abbreviation{shtml,
     short="shtml",
     long= ssi # " enabled " # html,
     description={a combination of \gls{html} and \gls{ssi}}
    }

    @abbreviation{html,
     short ="html",
     long = html,
     description={a markup language for creating web pages}
    }

    @abbreviation{ssi,
     short="ssi",
     long = ssi,
     description={a simple interpreted server-side scripting language}
    }
    @abbreviation{xml,
     short={xml},
    long={extensible markup language},
    description={a simple text-base format for
    representing structured information}
    }

The above defines bib strings (with `@string`) and uses string concatenation (with `#`), which is a BibTeX feature. Another supported bib feature is `@preamble`, which may be used to provide command definitions.

Here are some symbols in a file called, say, symbols.bib:

    🖹@preamble{"\providecommand{\mtx}[1]{\boldsymbol{#1}}"}

    @symbol{M,
     name={\ensuremath{\mtx{M}}},
     description={a matrix}
    }

    @symbol{v,
     name={\ensuremath{\vec{v}}},
     description={a vector}
    }

    @symbol{S,
     name={\ensuremath{\mathcal{S}}},
     description={a set}
    }

To ensure that bib2gls can find out which entries have been used in the document, you need the record package option:

    🖹\usepackage[record]{glossaries-extra}

If you are using hyperref, you may prefer to use record=nameref.

The glstex file created by bib2gls is loaded using:

📌
``\glsxtrresourcefile`[〈options〉]{〈basename〉}`
where 〈basename〉 is the basename (without the extension) of the glstex file. This command will redefine `\glsindexingsetting` to `bib2gls` (or `bib2gls-xindy` or `bib2gls-makeindex` if record=hybrid). There’s a shortcut version:
📌
``\GlsXtrLoadResources`[〈options〉]`
This internally uses `\glsxtrresourcefile` and sets the 〈basename〉 to `\jobname` in the first instance and to ``\jobname`-〈n〉` on subsequent instances (where 〈n〉 is incremented at the end of every `\GlsXtrLoadResources`). For example:

    🖹\usepackage[record]{glossaries-extra}
    \GlsXtrLoadResources[src={terms,moreterms}]
    \GlsXtrLoadResources[src={symbols,constants}]
    \GlsXtrLoadResources[src={abbreviations}]

is equivalent to:

    🖹\usepackage[record]{glossaries-extra}
    \glsxtrresourcefile[src={terms,moreterms}]{\jobname}
    \glsxtrresourcefile[src={symbols,constants}]{\jobname-1}
    \glsxtrresourcefile[src={abbreviations}]{\jobname-2}

If required, the value of 〈n〉 is stored in the count register:
📌
``\glsxtrresourcecount``
although there should be little need to use this.

🛈
Since `\GlsXtrLoadResources` is more convenient to use than `\glsxtrresourcefile`, all examples use `\GlsXtrLoadResources`.

The `\glsxtrresourcefile` command writes the following to the aux file:

📌
``\glsxtr@resource`{〈options〉}{〈basename〉}`
and will input 〈filename〉.glstex if it exists. (Version 1.08 assumed 〈filename〉.tex but that’s potentially dangerous if, for example, 〈filename〉 happens to be the same as `\jobname`. The glstex extension was enforced by version 1.11.)

If you are using or developing a build system that needs to know which applications to run as part of the document build, you can search the aux for for instances of `\glsxtr@resource`. For example, using arara:

    🖹% arara: bib2gls if found("aux", "glsxtr@resource")

Since the glstex file won’t exist on the first LaTeX run, the record package option additionally switches on undefaction=warn. Any use of commands like `\gls` or `\glstext` will produce `??` in the document, since the entries are undefined at this point. Once bib2gls has created the glstex file the references should be resolved. This may cause a shift in the locations if the actual text produced once the entry is defined is significantly larger than the placeholder `??` (as this can alter the page breaking).

Note that as from v1.12, `\glsxtrresourcefile` temporarily switches the category code of `@` to 11 (letter) while it reads the file to allow for any internal commands.

🛈
The package options record=only and record=nameref automatically load glossaries-extra-bib2gls, which provides additional commands that are useful with bib2gls. Since they cover sorting and location lists, they’re not relevant with the record=hybrid option.

These commands are provided by glossaries-extra for use with bib2gls.

The information provided with `\GlsXtrLoadResources` is written to the aux file using:

    \protected@write\@auxout{\glsxtrresourceinit}{〈information〉}

where 〈information〉 is the information to pass to bib2gls. The command in the second argument:
📌
``\glsxtrresourceinit``
may be used to temporarily redefine commands before the information is written to the file. This does nothing by default, but may be redefined to allow the use of short commands for convenience. For example, with:

    🖹\renewcommand{\glsxtrresourceinit}{\let\u\glshex}

you can just use, for example, ``\u` E6` instead of ``\string``\u`E6` in the custom rule. This redefinition of `\u` is scoped so its original definition is restored after the write operation.

If you have complex regular expressions or use assign-fields (bib2gls v3.3+), you may find it more convenient to redefine `\glsxtrresourceinit` to use `\GlsXtrResourceInitEscSequences`.

📌
``\glsxtrMFUsave``
If you have mfirstuc v2.08+, this command will be used on the first instance of `\glsxtrresourcefile`, and will add `\MFUsave` to the begin document hook and then disable itself. This is provided to help bib2gls v3.0+ pick up any of mfirstuc’s exclusions, blockers and mappings to assist with its sentence case function. The assumption is that all exclusions, blockers and mappings will be set up in the preamble. If there are any within the document environment that you want bib2gls to be aware of, redefine this command to do nothing before the first instance of `\glsxtrresourcefile` (or `\GlsXtrLoadResources`) and use `\MFUsaveatend` instead.

If you have multiple resource commands and you want a default set of options you can supply them in the definition of:

📌
``\GlsXtrDefaultResourceOptions``
For example:

    🖹\renewcommand{\GlsXtrDefaultResourceOptions}{selection=all}

This should be done before the resource commands to which the options should apply.

[top]

## 11.1. Indexing (Recording)
[link]

As with makeindex and xindy, the `\gls`-like and `\glstext`-like commands automatically index, but the underlying indexing mechanism is more like that used with `\makenoidxglossaries`. Each indexing instance creates a record in the aux file, which bib2gls can then pick up when it parses the aux file. Each record has an associated format (the location encap) which can be set with the format key and an associated location counter (as with the other indexing methods).

The formatted location list is stored in the location field (unless save-locations=false). Additionally, the individual locations are stored in the loclist field as an etoolbox internal list (as with `\makenoidxglossaries`). This may be used to pick out individual locations to avoid the complexity of parsing the formatted list.

See the bib2gls manual for information on how to separate the location list into groups associated with different counters.

[top]

## 11.2. Selection
[link]

The default behaviour is for bib2gls to select all entries that have a record in the aux file, and any dependent entries (including parent and cross-references). The `glsignore` format (for example, ``\gls`[format=glsignore]{duck}`) is recognised by bib2gls as a special ignored record. This means that it will match the selection criteria but the record won’t be added to the location list. This means that you won’t get spurious commas in the location list (as can happen with the other indexing methods), so you can do, for example,

    🖹\GlsXtrSetDefaultNumberFormat{glsignore}

at the start of the front matter and

    🖹\GlsXtrSetDefaultNumberFormat{glsnumberformat}

at the start of the main matter to prevent any records in the front matter from occurring in the location lists.

⚠
Commands like `\glsaddall` and `\glsaddallunused` don’t work with bib2gls as the command has to iterate over each glossary’s internal lists of defined entry labels, which will be empty on the first run and on subsequent runs will only contain those entries that have been selected by bib2gls. Use selection=all to select all entries instead.

The selection option indicates which entries should be selected from the bib files (listed in src). For example, selection=all indicates to select all entries, regardless of whether or not the entries have been referenced in the document. This will lead to empty location lists for some (or all) entries. The default setting is selection=recorded and deps, which indicates to select all entries that have records and any dependent entries. See the bib2gls user manual for more details of this option.

[top]

## 11.3. Sorting and Displaying the Glossary
[link]

With makeindex and xindy, the terms (read from the associated input file) are sorted and the code to typeset the glossary is written to an output file, which is then input by `\printglossary`. With bib2gls, the entries supplied in the bib files are sorted and the entry definition code (`\longnewglossaryentry` or `\newabbreviation`) is written to the glstex file in the order obtained by sorting. This means that the glossary’s internal list is in the required order, so the glossary can be displayed with `\printunsrtglossary` (see §8.4).

The indexing information, such as the location list or letter groups, is stored in fields such as location or group (where applicable), so the information can be included by `\printunsrtglossary`, but it means that the information is also available for use elsewhere in the document (so the savenumberlist package option provided by glossaries is redundant).

There are many sorting options provided by bib2gls. The default is to sort according to the system locale. If the document has a language setting, you can use sort=doc to instruct bib2gls to sort according to that. (The language tag obtained from tracklang’s interface is written to the aux file.) For a multilingual document you need to explicitly set the locale using a well-formed language tag. For example:

    🖹\GlsXtrLoadResources[
      src=terms, %  data in terms.bib
      sort=de-DE-1996 %  sort according to this locale
    ]

The locale-sensitive sort methods usually ignore most punctuation so for lists of symbols you may find it more appropriate to use one of the letter-base sort methods that sort according to the Unicode value of each character. Alternatively you can provide a custom rule. See the bib2gls manual for full details of all the available sort methods.

Suppose the bib examples shown earlier have been stored in the files terms.bib, abbrvs.bib and symbols.bib which may either be in the current directory or on TeX’s path. Then the document might look like:

    🖹\documentclass{article}

    \usepackage[record]{glossaries-extra}

    \setabbreviationstyle{long-short-sc-desc}

    \GlsXtrLoadResources[src=terms,abbrvs,symbols]

    \begin{document}
    \gls{bird}

    \gls{shtml}

    \gls{M}

    \gls{printunsrtglossaries}
    \end{document}

The document build process (assuming the document is called mydoc) is:

    〉_pdflatex mydoc
    bib2gls mydoc
    pdflatex mydoc

🖺
Example 151: Using bib2gls: one resource set 📥🖹 📥🖺

This creates a single glossary containing the entries: `bird`, `duck`, `goose`, `html`, `M`, `shtml` and `ssi` (in that order). The `bird`, `shtml` and `M` entries were added because bib2gls detected (from the aux file) that they had been used in the document. The other entries were added because bib2gls detected (from the bib files) that they are referenced by the used entries. In the case of `duck` and `goose`, they are in the see field for `bird`. In the case of `ssi` and `html`, they are referenced in the description field of `shtml`. These cross-referenced entries won’t have a location list when the glossary is first displayed, but depending on how they are referenced, they may pick up a location list on the next document build. The `xml` entry isn’t required at all, and so hasn’t been defined (from LaTeX’s point of view).

The entries can be separated into different glossaries with different sort methods:

    🖹\usepackage[record,abbreviations,symbols]{glossaries-extra}

    \setabbreviationstyle{long-short-sc-desc}

    \GlsXtrLoadResources[src=terms,sort=en-GB,type=main]

    \GlsXtrLoadResources
     [src=abbrvs,sort=letter-nocase,type=abbreviations]

    \GlsXtrLoadResources
     [src=symbols,sort=use,type=symbols]

    \begin{document}
    \gls{bird}

    \gls{shtml}

    \gls{M}

    \printunsrtglossaries
    \end{document}

🖺
Example 152: Using bib2gls: multiple resource sets 📥🖹 📥🖺

Or you can have multiple instance of `\GlsXtrLoadResources` with the same type, which will produce a glossary with ordered sub-blocks. For example:

    🖹\usepackage[record,style=indexgroup]{glossaries-extra}

    \setabbreviationstyle{long-short-sc-desc}

    \GlsXtrLoadResources
     [src=abbrvs,sort=letter-nocase,type=main,
      group=abbreviations]
    \glsxtrsetgrouptitle{abbreviations}{Abbreviations}

    \GlsXtrLoadResources
     [src=symbols,sort=use,type=main,
      group=symbols]
    \glsxtrsetgrouptitle{symbols}{Abbreviations}

    \GlsXtrLoadResources[src=terms,sort=en-GB,type=main]

    \begin{document}
    \gls{bird}

    \gls{shtml}

    \gls{M}

    \printunsrtglossaries
    \end{document}

This sets the group field for each resource set to the label given by the group resource option.

This will result in a glossary where the first group has the label `abbreviations` and title “Abbreviations”, the second group has the label `symbols` and title “Symbols” and then follow the usual letter groups. Note that for this example to work, you must run bib2gls with the --group (or -g) switch. For example, if the document is called myDoc.tex:

    〉_pdflatex myDoc
    bib2gls -g myDoc
    pdflatex myDoc

🖺
Example 153: Using bib2gls: sub-blocks 📥🖹 📥🖺

ℹ
The value of the group field must always be a label (so avoid special characters). You can set the corresponding title with `glsxtrsetgrouptitle` (see §8.6). If no title is set then the label is used as the group title.

You can provide your own custom sort rule. For example, if you are using XeLaTeX or LuaLaTeX:

    🖹\GlsXtrLoadResources[
      src={terms}, % entries in terms.bib
      sort=custom, % custom sort rule
      sort-rule={% required with sort=custom   < æ;Æ < a;á;å;ä,Ä;Á;Å;Ä < b,B   < c;ć,C;Ć < d,D < e;é,E;É < f,F < g,G   < h,H < i;í,I;Í < j,J < l;ł,L;Ł < m,M < n,N   < o;ö;ø,O;Ö;Ø < p,P < q,Q < r,R < s;ś,S;Ś   < t,T < u;ú,U;Ú < v,V < w,W < x,X < y,Y <   z;ż,Z;Ż   }
    ]

⚠
With old versions of the LaTeX kernel, UTF-8 characters, such as é or ø, will expand when written to the aux file.

Some of the options, including sort-rule, allow Unicode characters to be indicated in the format `\u`〈hex〉 (or `\u` 〈hex〉). bib2gls will recognise this as the character given by the hexadecimal value 〈hex〉.

ℹ
The 〈options〉 provided to `\GlsXtrLoadResources` will expand as they are written to the aux file (unless protected). This includes `\u`, so with a non-Unicode aware engine or where the document source is required to be ASCII, the character æ needs to be written as ``\string``\u` E6` and so on. Alternatively, use the shortcut ``\string``\u` E6`.

For example, the above can be rewritten as:

    🖹\GlsXtrLoadResources[
      src={terms}, % entries in terms.bib
      sort=custom, % custom sort rule
      sort-rule={% required with sort=custom   < \glshex E6;\glshex C6   < a;\glshex E1;\glshex E5,\glshex E4,A;\glshex C1;\glshex C5;\glshex C4   < b,B < c;\glshex 0107,C;\glshex 0106 < d,D   < e;\glshex E9,E;\glshex C9 < f,F < g,G   < h,H < i;\glshex ED,I;\glshex CD < j,J   < l;\glshex 0142,L;\glshex 0141 < m,M < n,N   < o;\glshex F6;\glshex F8,O;\glshex D6;\glshex D8   < p,P < q,Q < r,R < s;\glshex 013F,S;\glshex 015A   < t,T < u;\glshex FA,U;\glshex DA < v,V < w,W < x,X < y,Y   < z;\glshex 017C,Z;\glshex 017B   }
    ]

[top]

## 11.4. Record Counting
[link]

As from version 1.1 of bib2gls, you can save the total record count for each entry by invoking bib2gls with the --record-count or --record-count-unit switches. These options will ensure that when each entry is written to the glstex file bib2gls will additionally set the following internal fields for that entry:

- •recordcount: set to the total number of records found for the entry;
- •recordcount.〈counter〉: set to the total number of records found for the entry for the given counter.

If --record-count-unit is used then additionally:

- •recordcount.〈counter〉.〈location〉: set to the total number of records found for the entry for the given counter with the given location.

Only use the unit counting option if the locations don’t contain any special characters. With hyperref use `\the〈counter-name〉` rather than `\the〈counter-name〉`. Otherwise, if you really need unit counting with locations that may contain formatting commands, then you can try redefining:
📌
``\glsxtrdetoklocation`{〈location〉}`
so that it detokenizes 〈location〉 but take care when using `\GlsXtrLocationRecordCount` with commands like `\thepage` as they can end up becoming detokenized too early.

Note that the record count includes locations that bib2gls discards, such as ignored records, duplicates and partial duplicates (unless you filter them out with --record-count-rule). It doesn’t include cross-reference records. For example, suppose a document has an entry with the label `bird` that is recorded (indexed) as follows:

Page 1 two (2) instances of ``\gls`{bird}`; Page 2 one (1) instance of ``\gls`{bird}`; Page 3 four (4) instances of ``\gls`{bird}`; Section 3 one (1) instance of ``\gls`[counter=section]{bird}`.

Then the total record count (stored in the recordcount field) is 2+1+4+1=8, the total for the page counter (stored in the recordcount.page field) is 2+1+4=7, and the total for the section counter (stored in the recordcount.section field) is 1.

With the unit counting on as well, the following fields are assigned:

- •recordcount.page.1 is set to 2;
- •recordcount.page.2 is set to 1;
- •recordcount.page.3 is set to 4;
- •recordcount.section.3 is set to 1.

You can access these fields using the following commands which will expand to the field value if set or to 0 if unset:

📌
``\GlsXtrTotalRecordCount`{〈entry-label〉}`
This expands to the total record count for the entry given by 〈label〉. For example:

    🖹\GlsXtrTotalRecordCount{bird}

expands to 8.

📌
``\GlsXtrRecordCount`{〈entry-label〉}{〈counter〉}`
This expands to the counter total for the entry given by 〈entry-label〉 where 〈counter〉 is the counter name. For example:

    🖹\GlsXtrRecordCount{bird}{page}

expands to 7 and

    🖹\GlsXtrRecordCount{bird}{section}

expands to 1.

📌
``\GlsXtrLocationRecordCount`{〈entry-label〉}{〈counter〉}{〈location〉}`
This expands to the total for the given location. For example

    🖹\GlsXtrLocationRecordCount{bird}{page}{3}

expands to 4. Be careful about using `\thepage` in the 〈location〉 part. Remember that due to TeX’s asynchronous output routine, `\thepage` may not be correct.

There are commands analogous to the entry counting commands like `\cgls` and `\cglsformat` that are triggered by the record count. These are listed below. The test to determine if the entry’s record count exceeds the trigger value (which should be stored in the recordcount attribute) is obtained with:

📌
``\glsxtrifrecordtrigger`{〈entry-label〉}{〈true〉}{〈false〉}`
If the recordcount attribute is set and 〈total〉 exceeds the value given by the recordcount attribute, then this does 〈true〉 otherwise it does 〈false〉. The 〈total〉 is given by:
📌
``\glsxtrrecordtriggervalue`{〈entry-label〉}`
This should expand to the record count value that needs testing. The default definition is:

    \newcommand*{\glsxtrrecordtriggervalue}[1]{%
     \GlsXtrTotalRecordCount{#1}%
    }

This command may be redefined as appropriate. For example, it may be redefined to use `\GlsXtrRecordCount` for a particular location counter or to use `\GlsXtrLocationRecordCount` for a particular location.

The recordcount attribute may be set with `\glssetcategoryattribute` or can be set for each listed category with:

📌
``\GlsXtrSetRecordCountAttribute`{〈category-list〉}{〈value〉}`
The value must be an integer.

Commands like `\rgls` behave slightly differently to `\cgls`. It’s necessary for the command to add a record to the aux file in order for the entry to be selected and for the record count to be correct on the next bib2gls+LaTeX run (for the default selection={recorded and deps}). The trigger record is created with format=glstriggerrecordformat, which bib2gls v1.1+ recognises as a special type of ignored location format. This corresponds to the command:

📌
``\glstriggerrecordformat`{〈location〉}`
As with `\glsignore`, this command does nothing and is considered an ignored record (so it won’t appear in the location list), but it indicates to bib2gls that the entry must be selected and, if the trigger-type option has been set, the entry will be assigned to the trigger-type glossary.

For example, to assign the entry to an ignored glossary:

    🖹\newignoredglossary{ignored}
    \GlsXtrLoadResources[trigger-type=ignored]

This ensures that the entry is defined but it won’t show up the normal glossary.

🛈
The post-link hook won’t be implemented if the record trigger is tripped. (That is, if the `\rglsformat`-like command is used instead of the `\gls`-like command.)

📌
``\rgls`[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉
If the value has been supplied by the recordcount attribute and is exceeded, this behaves like `\gls` otherwise it creates a trigger record and uses:
📌
``\rglsformat`{〈entry-label〉}{〈insert〉}`
This has the same definition as `\cglsformat`.

📌
``\rglspl`[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉
If the value has been supplied by the recordcount attribute and is exceeded, this behaves like `\glspl` otherwise it creates a trigger record and uses:
📌
``\rglsplformat`{〈entry-label〉}{〈insert〉}`
which uses the appropriate plural fields.

📌
``\rGls`[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉
If the value has been supplied by the recordcount attribute and is exceeded, this behaves like `\Gls` otherwise it creates a trigger record and uses:
📌
``\rGlsformat`{〈entry-label〉}{〈insert〉}`
which performs the appropriate case-change.

📌
``\rGlspl`[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉
If the value has been supplied by the recordcount attribute and is exceeded, this behaves like `\Glspl` otherwise it creates a trigger record and uses:
📌
``\rGlsplformat`{〈entry-label〉}{〈insert〉}`
which uses the appropriate plural fields and case-change.

📌
``\rGLS`[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉
If the value has been supplied by the recordcount attribute and is exceeded, this behaves like `\GLS` otherwise it creates a trigger record and uses:
📌
``\rGLSformat`{〈entry-label〉}{〈insert〉}`
which performs the appropriate case-change.

📌
``\rGLSpl`[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉
If the value has been supplied by the recordcount attribute and is exceeded, this behaves like `\GLSpl` otherwise it creates a trigger record and uses:
📌
``\rGLSplformat`{〈entry-label〉}{〈insert〉}`
which uses the appropriate plural fields and case-change.

To make it easier to switch on record counting for an existing document, you can use:

📌
``\glsxtrenablerecordcount``
This redefines `\gls`, `\glspl`, `\Gls`, `\Glspl`, `\GLS`, `\GLSpl` to `\rgls`, `\rglspl`, `\rGls`, `\rGlspl`, `\rGLS`, `\rGLSpl`, respectively, for convenience. This command will also switch the shortcut commands such as `\ac` or `\ab`, if they have been enabled, from using the `\cgls`-like commands to the corresponding `\rgls` command.

For example, using the earlier terms.bib, abbrvs.bib and symbols.bib example files:

    🖹\documentclass{article}

    \usepackage[colorlinks]{hyperref}
    \usepackage[record]{glossaries-extra}

    \newignoredglossary{ignored}

    \setabbreviationstyle{long-short-sc-desc}
    \GlsXtrLoadResources[
     src={terms,abbrvs,symbols},
     trigger-type=ignored,
     category={same as entry}
    ]

    \glsxtrenablerecordcount
    \GlsXtrSetRecordCountAttribute{general,abbreviation}{1}

    \glsdefpostlink{entry}{\glsxtrpostlinkAddDescOnFirstUse}
    \glsdefpostlink{symbol}{\glsxtrpostlinkAddDescOnFirstUse}

    \begin{document}
    \gls{bird}, \gls{ssi}, \gls{bird}, \gls{html},
    \gls{M}, \gls{html}.

    \printunsrtglossaries
    \end{document}

If the document is called myDoc.tex, then the build process is:

    〉_pdflatex myDoc
    bib2gls --record-count myDoc
    pdflatex myDoc

The category={same as entry} resource option assigns the category field to the bib entry type (without the initial `@`). This means that the entries defined in terms.bib (with `@entry`) have their category set to `entry`, the entries defined in abbrvs.bib (with `@abbreviation`) have their category set to `abbreviation`, and the entries defined in symbols.bib (with `@symbol`) have their category set to `symbol`.

I’ve added post-link hooks to the entry and symbol categories to show the description on first use (but not for the abbreviation category).

🖺
Example 154: Using bib2gls: record counting 📥🖹 📥🖺

In the above, `ssi` and `bird` only have one record. However, they have been treated differently. The `ssi` entry is using `\rglsformat` whereas the `bird` entry is using the normal `\gls` behaviour. This is because the record counting hasn’t been applied to the custom entry category, whereas it has been applied to the abbreviation and symbol categories.

[top]

### 11.4.1. Unit Record Counting
[link]

If you want unit record counting you need to remember to invoke bib2gls with --record-count-unit and you will also need to redefine `\glsxtrrecordtriggervalue` appropriately. For example, suppose you want to reset all abbreviations at the start of each chapter, so that the full form is shown again, but only if the abbreviation isn’t used elsewhere in the chapter.

This would require records with the counter set to chapter. This can be done with the counter package option:

    🖹\usepackage[record,counter=chapter]{glossaries-extra}

However, this will have chapter numbers instead of page numbers in the location lists. If you don’t want location lists then this isn’t a problem. The list can simply be suppressed with nonumberlist.

If you want page numbers in the location lists then you will need to record each entry with both the page and chapter counters. This can be done with the hook that occurs before the `\gls` options are set:

    🖹\renewcommand{\glslinkpresetkeys}{%
     \glsadd[format=glsignore,counter=chapter]{\glslabel}}

Note that I’ve used the ignored location format to prevent the chapter number from being added to the location list. An alternative is to use the loc-counters=page resource option to only show the locations that use the page counter.

The definition of `\glsxtrrecordtriggervalue` needs to be changed so that it uses the total for the given location. If hyperref is used, you will need `\theHchapter`:

    🖹\renewcommand*{\glsxtrrecordtriggervalue}[1]{%
     \GlsXtrLocationRecordCount{#1}{chapter}{\theHchapter}%
    }

otherwise use `\thechapter`.

Consider the following (using the abbreviations defined in the earlier abbrvs.bib):

    🖹\begin{document}
    \chapter{First}
    \gls{html}. \gls{html}.  \gls{html}. \gls{ssi}.

    \chapter{Second}
    \gls{html}. \gls{ssi}.  \gls{ssi}.
    \gls{xml}.

    \printunsrtglossaries
    \end{document}

Note that the `xml` entry is only used once in the entire document, but it will still be added to the glossary.

The previous example used the trigger-type resource option to move entries with the glstriggerrecordformat encap (that is, they didn’t exceed the trigger value) to another glossary. Unfortunately, using that option in this case will move all three abbreviations to the trigger-type glossary. The `ssi` entry is only used once in the first chapter (but is used twice in the second chapter), and the `html` is only used once in the second chapter (but is used three times in the first chapter). So all three will have records in the aux file with the special glstriggerrecordformat format.

A simple solution is to omit any entries that don’t have the location field set when displaying the glossary:

    🖹\renewcommand*{\printunsrtglossaryentryprocesshook}[1]{%
     \glsxtrifhasfield*{location}{#1}
     {}{\printunsrtglossaryskipentry}%
    }
    \printunsrtglossaries

An alternative is to test the total record count, but remember that each entry is being recorded twice: once with the page counter and once with the chapter counter, so the total count for the `ssi` entry will be 2 not 1.

⚠
Take care not to strip entries from a hierarchical glossary as it will break the hierarchy and will cause formatting problems in the glossary.

The complete document is:

    🖹\documentclass{scrreport}
    \usepackage[T1]{fontenc}
    \usepackage[colorlinks]{hyperref}
    \usepackage[record,postdot]{glossaries-extra}

    \setabbreviationstyle{long-short-sc-desc}

    \GlsXtrLoadResources[src={abbrvs}]

    \preto{\chapter}{\glsresetall}
    \glsxtrenablerecordcount
    \GlsXtrSetRecordCountAttribute{abbreviation}{1}

    \renewcommand{\glslinkpresetkeys}{%
     \glsadd[format=glsignore,counter=chapter]{\glslabel}}

    \renewcommand*{\glsxtrrecordtriggervalue}[1]{%
     \GlsXtrLocationRecordCount{#1}{chapter}{\thechapter}%
    }
    \begin{document}
    \chapter{First}
    \gls{html}. \gls{html}. \gls{html}. \gls{ssi}.

    \chapter{Second}
    \gls{html}. \gls{ssi}. \gls{ssi}.  \gls{xml}.

    \renewcommand*{\printunsrtglossaryentryprocesshook}[1]{%
     \glsxtrifhasfield*{location}{#1}
     {}{\printunsrtglossaryskipentry}%
    }
    \printunsrtglossaries
    \end{document}

If the document is in a file called myDoc.tex then the document build is:

    〉_pdflatex myDoc
    bib2gls --record-count-unit myDoc
    pdflatex myDoc

🖺
Example 155: Using bib2gls: unit record counting 📥🖹 📥🖺

[top]

### 11.4.2. Mini-Glossaries
[link]

Record counting doesn’t have to be used with the `\rgls` set of commands. When bib2gls writes the code to the glstex file to save the record counting information, it does it with helper commands that it provides in the glstex file:

📌
``\bibglssettotalrecordcount`{〈entry-label〉}{〈value〉}`
This sets the total record count and is defined in the glstex file as:

    \providecommand*{\bibglssettotalrecordcount}[2]{%
     \GlsXtrSetField{#1}{recordcount}{#2}%
    }

📌
``\bibglssetrecordcount`{〈entry-label〉}{〈counter〉}{〈value〉}`
This sets the total for the given counter and is defined as:

    \providecommand*{\bibglssetrecordcount}[3]{%
     \GlsXtrSetField{#1}{recordcount.#2}{#3}%
    }

The following is only available with --record-count-unit:
📌
``\bibglssetlocationrecordcount`{〈entry-label〉}{〈counter〉}{〈location〉}{〈value〉}`
This sets the total for the given location and is defined as:

    \providecommand*{\bibglssetlocationrecordcount}[4]{%
     \GlsXtrSetField{#1}{recordcount.#2.\glsxtrdetoklocation{#3}}{#4}%
    }

By defining one of more of these commands before the glstex file is input, it’s possible to pick up the information, without the need to iterate over all entries later. For example, the following will create a mini-glossary for each particular location and populate it with entries that have a record for that location.

    🖹\newcommand*{\bibglssetlocationrecordcount}[4]{%
     \GlsXtrSetField{#1}{recordcount.#2.#3}{#4}%
     \provideignoredglossary{minigloss.#2.#3}%
     \glsxtrcopytoglossary{#1}minigloss.#2.#3%
    }

I’ve omitted `\glsxtrdetoklocation` for clarity and because I’m confident the locations won’t be problematic. The mini-glossary can then be displayed at the start of the chapter with:

    🖹\printunsrtglossary[type=minigloss.chapter.\theHchapter]

The previous example can be altered to strip the `\rgls` commands and instead add a mini-glossary at the start of each chapter (the redefinition of `\glslinkpresetkeys` remains to ensure there are locations with the chapter counter). I’ve also provided a command to make it easier to display the mini-glossaries:

    🖹\newcommand{\minigloss}{%
     \printunsrtglossary*[style=abbr-short-long,type=minigloss.chapter.\theHchapter,groups=false,target=false]%
     {\renewcommand{\glossarysection}[2][]{}%
      \renewcommand{\glslongextraShortLongTabularHeader}{\toprule}%
     }}

The document build is the same.

🖺
Example 156: Using bib2gls: unit record counting mini-glossary 📥🖹 📥🖺

[top]

## 11.5. The glossaries-extra-bib2gls package
[link]

📌
``\usepackage`{glossaries-extra-bib2gls}`

automatically loaded with ``\usepackage`[record]{glossaries-extra}` or ``\usepackage`[record=nameref]{glossaries-extra}`
The package options record=only (or simply record) and record=nameref automatically loads the supplementary package glossaries-extra-bib2gls, which provides some commands that are specific to bib2gls, in particular to sorting and location lists which aren’t relevant with record=hybrid.

If glossaries-extra-bib2gls is loaded via the record package option then the check for associated language files (see §15) will also search for the existence of glossariesxtr-〈script〉.ldf for each document dialect (where 〈script〉 is the four letter script identifier, such as `Latn`).

[top]

### 11.5.1. Displaying Glossaries
[link]

Glossaries are displayed with the “unsrt” family of commands (see §8.4). Some styles, such as bookindex, are customized for use with bib2gls.

The following commands are shortcuts that use `\printunsrtglossary`. However, they are only defined if a corresponding package option has been set before glossaries-extra-bib2gls is loaded. This means that the options must be passed as a package option, not using `\glossariesextrasetup`, if the shortcut commands are required.

📌
``\printunsrtabbreviations`[〈options〉]`

This shortcut is provided if the abbreviations package option has been used. This is a shortcut for:

    🖹\printunsrtglossary[type=abbreviations,〈options〉]

📌
``\printunsrtacronyms`[〈options〉]`

This shortcut is provided if the acronyms (or acronym) package option has been used. This is a shortcut for:

    🖹\printunsrtglossary[type=\acronymtype,〈options〉]

📌
``\printunsrtsymbols`[〈options〉]`

This shortcut is provided if the symbols package option has been used. This is a shortcut for:

    🖹\printunsrtglossary[type=symbols,〈options〉]

📌
``\printunsrtnumbers`[〈options〉]`

This shortcut is provided if the numbers package option has been used. This is a shortcut for:

    🖹\printunsrtglossary[type=numbers,〈options〉]

📌
``\printunsrtindex`[〈options〉]`

This shortcut is provided if the index package option has been used. This is a shortcut for:

    🖹\printunsrtglossary[type=index,〈options〉]

[top]

### 11.5.2. Helper Commands for Resource Options
[link]

📌
``\glshex`〈hex〉`
This simply expands to ``\string``\u`〈hex〉`, which is used to identify the Unicode character 〈hex〉 in the value of some resource options.

📌
``\glshashchar``
This expands to a literal `#` character (similar to `\glsbackslash`).

📌
``\glscapturedgroup`〈n〉`
This simply expands to ``\string``\$`〈n〉` which is used to indicate the 〈n〉th captured group in a regular expression replacement in the value of some resource options (requires bib2gls v1.5+), such as sort-replace. For example:

    🖹sort-replace={{([a-zA-Z])\string\.}{\glscapturedgroup1}}

This removes a full stop that follows any of the characters a,…,z or A,…,Z.

ℹ
Note that `\glscapturedgroup` isn’t the same as the match group identifier `\MGP`.

If you have complex regular expressions or use assign-fields, you may find it more convenient to redefine `\glsxtrresourceinit` to use the following command:

📌
``\GlsXtrResourceInitEscSequences``

ℹ
`\GlsXtrResourceInitEscSequences` should not be used outside of the definition of `\glsxtrresourceinit` as the definitions will likely cause interference and are only intended as resource option instructions for bib2gls.

This command locally redefines escape sequences used in regular expressions so that they detokenize when they expand. This means that you won’t need to use `\string` or `\protect` in front of them. The following commands are defined:

- •`\u`〈hex〉 (Unicode character);
- •General use: `\cs`{〈csname〉} (expands to detokenized `\csname` when writing to the aux file);
- •For literal characters in regular expressions: `\.` `\\` `\/` `\|` `\&` `\+` `\<` `\<` `\*` `\$` `\^` `\~` `\(` `\)` `\[` `\]` `\"` `\-` `\?` `\:` `\#`

- •Special markup for use as instructions or keywords in assign-fields: `\MGP` `\LEN` `\CAT` `\TRIM` `\CS` `\INTERPRET` `\LABELIFY` `\LABELIFYLIST` `\NULL` `\IN` `\NIN` `\PREFIXOF` `\NOTPREFIXOF` `\SUFFIXOF` `\NOTSUFFIXOF` `\LC` `\UC` `\FIRSTLC` `\FIRSTUC` `\TITLE`.

For example, with

    🖹\renewcommand{\glsxtrresourceinit}{%
      \GlsXtrResourceInitEscSequences
    }

then the earlier example can be written more compactly as:

    🖹sort-replace={{([a-zA-Z])\.}{\$1}}

A convenient shortcut for use in the entry-type-aliases setting:

📌
``\GlsXtrBibTeXEntryAliases``
This provides aliases for BibTeX’s standard entry types (such as `@article` and `@book`) to bib2gls’s `@bibtexentry` entry type (requires bib2gls v1.4+).

You may also want to provide storage keys for BibTeX’s standard fields rather than having to alias them all. This can be done with:

📌
``\GlsXtrProvideBibTeXFields``
This defines each BibTeX field, such as `author`, as a glossary entry key:

    \glsaddstoragekey{address}{}{\glsxtrbibaddress}%
     \glsaddstoragekey{author}{}{\glsxtrbibauthor}%
     \glsaddstoragekey{booktitle}{}{\glsxtrbibbooktitle}%
     \glsaddstoragekey{chapter}{}{\glsxtrbibchapter}%
     \glsaddstoragekey{edition}{}{\glsxtrbibedition}%
     \glsaddstoragekey{howpublished}{}{\glsxtrbibhowpublished}%
     \glsaddstoragekey{institution}{}{\glsxtrbibinstitution}%
     \glsaddstoragekey{journal}{}{\glsxtrbibjournal}%
     \glsaddstoragekey{month}{}{\glsxtrbibmonth}%
     \glsaddstoragekey{note}{}{\glsxtrbibnote}%
     \glsaddstoragekey{number}{}{\glsxtrbibnumber}%
     \glsaddstoragekey{organization}{}{\glsxtrbiborganization}%
     \glsaddstoragekey{pages}{}{\glsxtrbibpages}%
     \glsaddstoragekey{publisher}{}{\glsxtrbibpublisher}%
     \glsaddstoragekey{school}{}{\glsxtrbibschool}%
     \glsaddstoragekey{series}{}{\glsxtrbibseries}%
     \glsaddstoragekey{title}{}{\glsxtrbibtitle}%
     \glsaddstoragekey{bibtextype}{}{\glsxtrbibtype}%
     \glsaddstoragekey{volume}{}{\glsxtrbibvolume}%

This command should be placed before the first `\GlsXtrLoadResources`.

⚠
BibTeX’s `type` field clashes with the glossaries package’s type key, so this command provides the key `bibtextype` instead. You can alias it with field-aliases={type=`bibtextype`} in the resource options.

[top]

#### 11.5.2.1. Custom Sort
[link]

There are many locale alphabetical rules provided with bib2gls, such as sort=de-1996 for German new orthography. However, it may be that your particular locale isn’t supported, or you want a rule that covers multiple scripts or non-alphabetic symbols.

The sort=custom setting combined with sort-rule provides a way to define your own sort rule. For example, suppose I have a file called animals.bib that contains:

    🖹@index{bee}
    @index{lion}
    @index{ant}
    @index{cow}
    @index{goose}
    @index{zebu}
    @index{egret}
    @index{elk}
    @index{llama}
    @index{lynx}
    @index{bat}

Here’s a very limited rule that only recognises five letters:

    🖹\usepackage[record,nostyles,stylemods=bookindex,style=bookindex]
    {glossaries-extra}

    \newcommand{\bibglssetlastgrouptitle}[2]{%
     \glsxtrsetgrouptitle{#1#2}{Other}%
    }
    \GlsXtrLoadResources[src=animals,selection=all,
     sort=custom,sort-rule={ < a,A < b,B < e,E < l,L < ll,Ll,LL < z,Z}]

    \begin{document}
    \printunsrtglossaries
    \end{document}

Any characters that aren’t included in the rule (such as “c” and “g”) are placed at the end. I’ve defined `\bibglssetlastgrouptitle` to label that final group of characters “Other”. If the document is in a file called myDoc.tex, the build process is:

    〉_pdflatex myDoc
    bib2gls -g myDoc
    pdflatex myDoc

The result is:
🖺
Example 157: Using bib2gls: simple custom sort rule 📥🖹 📥🖺

Note that “egret” has been placed after “elk”. This is because “l” is included in the rule but “g” isn’t. Whereas “lynx” comes before “llama” because there’s a separate “ll” group after the “l” group.

The commands listed below provide common rule blocks for use in the sort-rule resource option. If you want a rule for a specific locale, you can provide similar commands in a file called glossariesxtr-〈tag〉.ldf, where 〈tag〉 identifies the dialect, locale, region or root language. See the description of `\IfTrackedLanguageFileExists` in the tracklang documentation for further details. If this file is on TeX’s path and the tracklang package (automatically loaded by glossaries) detects that the document has requested that language or locale, then the file will automatically be loaded. For example, if you want to provide a rule block for Welsh, then create a file called glossariesxtr-welsh.ldf that contains:

    🖹\ProvidesGlossariesExtraLang{welsh}[2018/02/23 v1.0]

    \@ifpackageloaded{glossaries-extra-bib2gls}
    {
      \newcommand{\glsxtrWelshRules}{%
       \glsxtrLatinA
       \string<b,B
       \string<c,C
       \string<ch,CH
       \string<d,D
       \string<dd,DD
       \string<\glsxtrLatinE
       \string<f,F
       \string<ff,FF
       \string<g,G
       \string<ng,NG
       \string<\glsxtrLatinH
       \string<\glsxtrLatinI
       \string<j,J
       \string<\glsxtrLatinL
       \string<ll,Ll,LL
       \string<\glsxtrLatinM
       \string<\glsxtrLatinN
       \string<\glsxtrLatinO
       \string<\glsxtrLatinP
       \string<ph,PH
       \string<r,R
       \string<rh,RH
       \string<\glsxtrLatinS
       \string<\glsxtrLatinT
       \string<th,TH
       \string<u,U
       \string<w,W
       \string<y,Y
      }
    }
    {}% glossaries-extra-bib2gls.sty not loaded

(The use of `\string` is in case the `<` character has been made active.) You can provide more than one rule-block per local, to allow for loanwords or foreign words. For example, you could provide `\glsxtrWelshIRules`, `\glsxtrWelshIIRules` etc.

If the rules are for a particular script (independent of language or region) then they can be provided in a file given by glossariesxtr-〈script〉.ldf instead. For example, the file glossariesxtr-Cyrl.ldf could contain:

    🖹\ProvidesGlossariesExtraLang{Cyrl}[2018/02/23 v1.0]
    \newcommand*{\glsxtrGeneralCyrillicIRules}{%
      % Cyrillic rules
    }
    \newcommand*{\glsxtrGeneralCyrillicIIRules}{%
      % an alternative set of Cyrillic rules
    }

Remember that the required document language scripts need to be tracked through the tracklang package, in order for these files to be automatically loaded. This essentially means ensuring you load the appropriate language package before tracklang is loaded by the base glossaries package or any other package that uses it. See the tracklang documentation for further details.

Alternatively, if the rules are specific to a subject rather than a region or language, then you can provide a supplementary package. For example, if you have a package called, say, mapsymbols that provides map symbols, then the file mapsymbols.sty might contain:

    🖹\ProvidesPackage{mapsymbols}
    % some package or font loading stuff here to provide
    % the appropriate symbols
    \newcommand{\Stadium}{...}
    \newcommand{\Battlefield}{...}
    \newcommand{\Harbour}{...}
    % etc

    % Provide a rule block:
    \newcommand{\MapSymbolOrder}{%
     \glshex 2694 % crossed-swords 0x2694
     \string< \glshex 2693 % anchor 0x2693
     \string< \glshex 26BD % football 0x26BD
    }

and the supplementary file mapsymbols.bib can provide the appropriate definitions for bib2gls:

    🖹@preamble{"\glsxtrprovidecommand{\Harbour}{\char"2693}
    \glsxtrprovidecommand{\Battlefield}{\char"2694}
    \glsxtrprovidecommand{\Stadium}{\char"26BD}"}

Now both the preamble and rule block can be used in the resource set:

    🖹\usepackage{mapsymbols}% my custom package
    \usepackage[record]{glossaries-extra}

    \GlsXtrLoadResources[
      src={mapsymbols,% <--- my custom mapsymbols.bib    entries% data in entries.bib   },
      sort=custom,
      sort-rule={\glsxtrcontrolrules % control codes  ;\glsxtrspacerules % space characters  ;\glsxtrnonprintablerules % non-printable characters  ;\glsxtrcombiningdiacriticrules % combining diacritics  ,\glsxtrhyphenrules % hyphens  <\glsxtrgeneralpuncrules % general punctuation  <\glsxtrdigitrules % 0, ..., 9  <\glsxtrfractionrules % fraction symbols  <\MapSymbolOrder % <--- custom map symbols  <\glsxtrMathItalicGreekIrules % math-greek symbols  <\glsxtrGeneralLatinIrules % Latin letters  }
    ]

(As before, you may need to use `\string` in front of characters like `<` if they have been made active.)

The following commands are provided by glossaries-extra-bib2gls. They should be separated by the rule separator characters `;` (semi-colon) or `,` (comma) or & (ampersand) or `<` (less than). See Java’s RuleBasedCollator documentation for details of the rule syntax.

For example, the following will place the mathematical Greek symbols (`\alpha`, `\Alpha`, `\beta`, `\Beta` etc) in a block before Latin characters:

    🖹sort-rule={\glsxtrcontrolrules  ;\glsxtrspacerules  ;\glsxtrnonprintablerules  ;\glsxtrcombiningdiacriticrules  ,\glsxtrhyphenrules  <\glsxtrgeneralpuncrules  <\glsxtrdigitrules  <\glsxtrfractionrules  <\glsxtrMathItalicGreekIrules  <\glsxtrGeneralLatinIVrules  <\glsxtrLatinAA  <\glsxtrLatinOslash }

[top]

##### 11.5.2.1.1. Non-Letters
[link]

📌
``\glsxtrcontrolrules``
These are control characters that are usually placed at the start of a rule in the ignored section. They typically won’t occur in any sort values, but if they do they should normally be ignored.

📌
``\glsxtrspacerules``
These are space characters. They typically come after the control characters with the two blocks separated by a `;` (semi-colon).

📌
``\glsxtrnonprintablerules``
These are non-printable characters (BOM, tabs, line feed and carriage return). They typically come after the spaces separated by a `;` (semi-colon). These characters aren’t checked for by bib2gls when it determines whether or not to use the interpreter, so a TAB or newline character may end up in the sort value if it wasn’t interpreted.

📌
``\glsxtrcombiningdiacriticrules``
These are combining diacritic marks which typically follow the space and non-printable blocks (separated by a semi-colon). This command is defined in terms of sub-block commands:

    \newcommand*{\glsxtrcombiningdiacriticrules}{%
     \glsxtrcombiningdiacriticIrules\string;
     \glsxtrcombiningdiacriticIIrules\string;
     \glsxtrcombiningdiacriticIIIrules\string;
     \glsxtrcombiningdiacriticIVrules
    }

If you prefer, you can use the sub-blocks directly in your required ordered.

📌
``\glsxtrcombiningdiacriticIrules``
This contains the combining diacritics: acute, grave, breve, circumflex, caron, ring, vertical line above, diaeresis (umlaut), double acute, tilde, dot above, combining macron.

📌
``\glsxtrcombiningdiacriticIIrules``
This contains the combining diacritics: short solidus overlay, cedilla, ogonek, dot below, low line, overline, hook above, double vertical line above, double grave accent, candrabindu, inverted breve, turned comma above, comma above, reversed comma above, comma above right, grave accent below, acute accent below.

📌
``\glsxtrcombiningdiacriticIIIrules``
This contains the combining diacritics: left tack below, right tack below, left angle above, horn, left half ring below, up tack below, down tack below, plus sign below, minus sign below, palatalized hook below, retroflex hook below, diaresis below, ring below, comma below, vertical line below, bridge below, inverted double arch below, caron below, circumflex accent below, breve below, inverted breve below, tilde below, macron below, double low line, tilde overlay, short stroke overlay, long stroke overlay, long solidus overlay, right half ring below, inverted bridge below, square below, seagull below, x above, vertical tilde, double overline, Greek perispomeni, Greek dialytika tonos, Greek ypogegrammeni, double tilde, double inverted breve, Cyrillic titlo, Cyrillic palatalization, Cyrillic dasia pneumata, Cyrillic psili pneumata.

📌
``\glsxtrcombiningdiacriticIVrules``
This contains the combining diacritics: left harpoon above, right harpoon above, long vertical line overlay, short vertical line overlay, anticlockwise arrow above, clockwise arrow above, left arrow above, right arrow above, ring overlay, clockwise ring overlay, anticlockwise ring overlay, three dots above, four dots above, enclosing circle, enclosing square, enclosing diamond, enclosing circle backslash, left right arrow above.

📌
``\glsxtrhyphenrules``
This contains hyphens (including the minus sign 0x2212). This rule block typically comes after the diacritic rules separated by a comma.

📌
``\glsxtrgeneralpuncrules``
This contains punctuation characters. This rule block typically comes after the hyphen rules separated by a less than (`<`). As with the combining diacritics, this command is defined in terms of sub-blocks which may be used directly instead if a different order is required:

    🖹\newcommand*{\glsxtrgeneralpuncrules}{%
      \glsxtrgeneralpuncIrules
      \string<\glsxtrcurrencyrules
      \string<\glsxtrgeneralpuncIIrules
    }

📌
``\glsxtrgeneralpuncIrules``
This is defined as:

    \newcommand*{\glsxtrgeneralpuncIrules}{%
     \glsxtrgeneralpuncmarksrules
     \string<\glsxtrgeneralpuncaccentsrules
     \string<\glsxtrgeneralpuncquoterules
     \string<\glsxtrgeneralpuncbracketrules
     \string<\glsxtrgeneralpuncsignrules
    }

📌
``\glsxtrgeneralpuncmarksrules``
This contains: underscore, macron, comma, semi-colon, colon, exclamation mark, inverted exclamation mark, question mark, inverted question mark, solidus, full stop.

📌
``\glsxtrgeneralpuncaccentsrules``
This contains: acute accent, grave accent, circumflex accent, diaeresis, tilde, middle dot, cedilla.

📌
``\glsxtrgeneralpuncquoterules``
This contains: straight apostrophe, straight double quote, left guillemet, right guillemet.

📌
``\glsxtrgeneralpuncbracketrules``
This contains: left parenthesis, right parenthesis, left square bracket, right square bracket, left curly bracket, right curly bracket.

📌
``\glsxtrgeneralpuncsignrules``
This contains: section sign, pilcrow sign, copyright sign, registered sign, at sign.

📌
``\glsxtrcurrencyrules``
This sub-block contains some currency symbols: currency sign, Thai currency symbol baht, cent sign, colon sign, cruzeiro sign, dollar sign, dong sign, euro sign, French franc sign, lira sign, mill sign, naira sign, peseta sign, pound sign, rupee sign, new sheqel sign, won sign, yen sign.

📌
``\glsxtrgeneralpuncIIrules``
This sub-block contains some other punctuation symbols: asterisk, backslash, ampersand, hash sign, percent sign, plus sign, plus-minus sign, division sign, multiplication sign, less-than sign, equals sign, greater-than sign, not sign, vertical bar (pipe), broken bar, degree sign, micron sign.

📌
``\glsxtrdigitrules``
This rule block contains the Basic Latin digits (0, …, 9) and the subscript and superscript digits (₀ ⁰ etc) made equivalent to the corresponding Basic Latin digit. The digit block typically comes after the punctuation rules separated by a less than (`<`).

📌
``\glsxtrBasicDigitrules``
This rule block contains just the Basic Latin digits (0, …, 9).

📌
``\glsxtrSubScriptDigitrules``
This rule block contains just the subscript digits (₀ … ₉).

📌
``\glsxtrSuperScriptDigitrules``
This rule block contains just the superscript digits (⁰ … ⁹).

📌
``\glsxtrfractionrules``
This rule block contains vulgar fraction characters from the Unicode Number Forms block. The digit block typically comes after the digit rules separated by a less than (`<`).

📌
``\glsxtrIgnorableRules``
A shortcut that expands to the ignorable rules:

    \glsxtrcontrolrules
     ;\glsxtrspacerules
     ;\glsxtrnonprintablerules

📌
``\glsxtrGeneralInitRules``
A shortcut that expands to common initial rules:

    \glsxtrIgnorableRules
     ;\glsxtrcombiningdiacriticrules
     ;\glsxtrhyphenrules
     <\glsxtrgeneralpuncrules
     <\glsxtrdigitrules
     <\glsxtrfractionrules

Note that this includes the combining diacritic rules, which won’t be appropriate for languages with accented characters.

There are a number of Latin rule blocks. Some of these included extended characters or ligatures (such as ß or œ) but they don’t include accented characters. If you require a Latin rule block that includes accented characters, digraphs, trigraphs or other extended characters, then it’s best to provide similar commands in a glossariesxtr-〈tag〉.ldf file for the particular language or region.

[top]

##### 11.5.2.1.2. Latin Letters
[link]

📌
``\glsxtrGeneralLatinIrules``
This is just the basic (non-extended) Latin alphabet with the superscript and subscript Latin letters (ª ₐ etc) treated as the equivalent basic Latin letter. (If you don’t want the subscripts and superscripts included you can redefine `\glsxtrLatinA` etc to omit them.)

📌
``\glsxtrGeneralLatinIIrules``
This is like `\glsxtrGeneralLatinIrules` but it includes eth (Ð) between “D” and “E” and eszett (ß) treated as “ss”.

📌
``\glsxtrGeneralLatinIIIrules``
This is like `\glsxtrGeneralLatinIrules` but it includes eth (Ð) between “D” and “E” and eszett (ß) treated as “sz”.

📌
``\glsxtrGeneralLatinIVrules``
This is like `\glsxtrGeneralLatinIrules` but it includes eth (Ð) between “D” and “E”, ae-ligature (æ) is treated as “ae”, oe-ligature (œ) is treated as “oe”, eszett (ß) treated as “ss” and thorn (þ) is treated as “th”.

📌
``\glsxtrGeneralLatinVrules``
This is like `\glsxtrGeneralLatinIrules` but it includes eth (Ð) between “D” and “E”, eszett (ß) treated as “ss” and thorn (þ) treated as “th”.

📌
``\glsxtrGeneralLatinVIrules``
This is like `\glsxtrGeneralLatinIrules` but it includes eth (Ð) between “D” and “E”, eszett (ß) treated as “sz” and thorn (þ) treated as “th”.

📌
``\glsxtrGeneralLatinVIIrules``
This is like `\glsxtrGeneralLatinIrules` but it includes ae-ligature (æ) between “A” and “B”, eth (Ð) between “D” and “E”, insular G (ᵹ) instead of “G”, oe-ligature (œ) between “O” and “P”, long s (ſ) equivalent to “s”, thorn (þ) between “T” and “U” and wynn (ƿ) instead of “W”.

📌
``\glsxtrGeneralLatinVIIIrules``
This is like `\glsxtrGeneralLatinIrules` but ae-ligature (æ) is treated as “ae”, oe-ligature (œ) is treated as “oe”, eszett (ß) treated as “ss”, thorn (þ) is treated as “th”, Ø is treated as “O” and “Ł” is treated as “L”.

📌
``\glsxtrGeneralLatinAtoMrules``
A mini-rule subset of General Latin I rules that just covers A–M.

📌
``\glsxtrGeneralLatinNtoZrules``
A mini-rule subset of General Latin I rules that just covers N–Z.

📌
``\glsxtrGeneralLatinAtoGrules``
A mini-rule subset of General Latin I rules that just covers A–G.

📌
``\glsxtrGeneralLatinHtoMrules``
A mini-rule subset of General Latin I rules that just covers H–M.

📌
``\glsxtrGeneralLatinNtoSrules``
A mini-rule subset of General Latin I rules that just covers N–S.

📌
``\glsxtrGeneralLatinTtoZrules``
A mini-rule subset of General Latin I rules that just covers T–Z.

📌
``\glsxtrLatinA``
A mini-rule that just covers “A” but includes the sub- and superscript A.

📌
``\glsxtrLatinE``
A mini-rule that just covers “E” but includes the subscript E.

📌
``\glsxtrLatinH``
A mini-rule that just covers “H” but includes the subscript H.

📌
``\glsxtrLatinK``
A mini-rule that just covers “K” but includes the subscript K.

📌
``\glsxtrLatinI``
A mini-rule that just covers “I” but includes the subscript I.

📌
``\glsxtrLatinM``
A mini-rule that just covers “M” but includes the subscript M.

📌
``\glsxtrLatinN``
A mini-rule that just covers “N” but includes the sub- and superscript N.

📌
``\glsxtrLatinO``
A mini-rule that just covers “O” but includes the sub- and superscript O.

📌
``\glsxtrLatinP``
A mini-rule that just covers “P” but includes the subscript P.

📌
``\glsxtrLatinS``
A mini-rule that just covers “S” but includes the subscript S.

📌
``\glsxtrLatinT``
A mini-rule that just covers “T” but includes the subscript T.

📌
``\glsxtrLatinX``
A mini-rule that just covers “X” but includes the subscript X.

📌
``\glsxtrLatinEszettSs``
A mini-rule that just covers eszett (ß) and makes “ſs” (long s followed by short s) equivalent to “ß”. (This is used in the above blocks that treat “ß” as “ss”.)

📌
``\glsxtrLatinEszettSz``
A mini-rule that just covers eszett (ß) and makes “ſz” (long s followed by z) equivalent to “ß”. (This is used in the above blocks that treat “ß” as “sz”.)

📌
``\glsxtrLatinEth``
A mini-rule for eth (Ð, ð) so you don’t need to remember the Unicode values.

📌
``\glsxtrLatinThorn``
A mini-rule for thorn (Þ, þ) so you don’t need to remember the Unicode values.

📌
``\glsxtrLatinAELigature``
A mini-rule for ae-ligature (Æ, æ) so you don’t need to remember the Unicode values.

📌
``\glsxtrLatinOELigature``
A mini-rule for oe-ligature (Œ, œ) so you don’t need to remember the Unicode values.

📌
``\glsxtrLatinOslash``
A mini-rule for o-slash (Ø, ø) so you don’t need to remember the Unicode values.

📌
``\glsxtrLatinLslash``
A mini-rule for l-slash (Ł, ł) so you don’t need to remember the Unicode values.

📌
``\glsxtrLatinWynn``
A mini-rule for wynn (Ƿ, ƿ) so you don’t need to remember the Unicode values.

📌
``\glsxtrLatinInsularG``
A mini-rule for insular-G (Ᵹ, ᵹ) so you don’t need to remember the Unicode values.

📌
``\glsxtrLatinSchwa``
A mini-rule for schwa (Ə, ə, ə) so you don’t need to remember the Unicode values. (Not used in any of the provided Latin rule blocks described above.)

📌
``\glsxtrLatinAA``
A mini-rule for “a with ring above” (Å, å) so you don’t need to remember the Unicode values. (Not used in any of the provided Latin rule blocks described above.)

[top]

##### 11.5.2.1.3. Math Greek
[link]

📌
``\glsxtrMathGreekIrules``
A rule block for mathematical Greek (`\alpha`, `\beta` etc) and upright Greek (`\upalpha`, etc, from the upgreek package) characters that includes digamma (`\digamma` and `\Digamma`) between epsilon and zeta. The upright and italic versions are gathered together into the same letter group.

📌
``\glsxtrMathGreekIIrules``
As `\glsxtrMathGreekIrules` but doesn’t include digamma.

📌
``\glsxtrMathUpGreekIrules``
A rule block for upright Greek (`\upalpha`, etc, from the upgreek package) characters that includes digamma (`\digamma` and `\Digamma`) between epsilon and zeta.

📌
``\glsxtrMathUpGreekIIrules``
A rule block for upright Greek (`\upalpha`, etc, from the upgreek package) that doesn’t include digamma.

📌
``\glsxtrMathItalicGreekIrules``
A rule block for mathematical Greek (`\alpha`, `\Alpha`, etc) characters that includes digamma (`\digamma` and `\Digamma`) between epsilon and zeta. Note that even though the uppercase `\Delta` etc are actually rendered upright by LaTeX, bib2gls’s interpreter treats them as italic to help keep them close to the lowercase versions.

📌
``\glsxtrMathItalicGreekIIrules``
A rule block for mathematical Greek (`\alpha`, `\Alpha`, etc) characters that doesn’t include digamma.

📌
``\glsxtrMathItalicUpperGreekIrules``
A rule block for uppercase mathematical Greek (`\Alpha`, `\Beta`, etc) characters that includes digamma (`\Digamma`) between epsilon and zeta.

📌
``\glsxtrMathItalicUpperGreekIIrules``
A rule block for uppercase mathematical Greek (`\Alpha`, `\Beta`, etc) characters that doesn’t include digamma.

📌
``\glsxtrMathItalicLowerGreekIrules``
A rule block for lowercase mathematical Greek (`\alpha`, `\beta`, etc) characters that includes digamma (`\digamma`) between epsilon and zeta.

📌
``\glsxtrMathItalicLowerGreekIIrules``
A rule block for lower case mathematical Greek (`\alpha`, `\beta`, etc) characters that doesn’t include digamma.

Additionally, there are commands that just cover the uppercase and lowercase forms of a special Greek character (`\Upalpha`, `\upalpha` etc and `\Alpha`, `\alpha` etc): `\glsxtrUpAlpha`, `\glsxtrMathItalicAlpha`, `\glsxtrUpBeta`, `\glsxtrMathItalicBeta`, `\glsxtrUpGamma`, `\glsxtrMathItalicGamma`, `\glsxtrUpDelta`, `\glsxtrMathItalicDelta`, `\glsxtrUpEpsilon`, `\glsxtrMathItalicEpsilon`, `\glsxtrUpDigamma`, `\glsxtrMathItalicDigamma`, `\glsxtrUpZeta`, `\glsxtrMathItalicZeta`, `\glsxtrUpEta`, `\glsxtrMathItalicEta`, `\glsxtrUpTheta`, `\glsxtrMathItalicTheta`, `\glsxtrUpIota`, `\glsxtrMathItalicIota`, `\glsxtrUpKappa`, `\glsxtrMathItalicKappa`, `\glsxtrUpLambda`, `\glsxtrMathItalicLambda`, `\glsxtrUpMu`, `\glsxtrMathItalicMu`, `\glsxtrUpNu`, `\glsxtrMathItalicNu`, `\glsxtrUpXi`, `\glsxtrMathItalicXi`, `\glsxtrUpOmicron`, `\glsxtrMathItalicOmicron`, `\glsxtrUpPi`, `\glsxtrMathItalicPi`, `\glsxtrUpRho`, `\glsxtrMathItalicRho`, `\glsxtrUpSigma`, `\glsxtrMathItalicSigma`, `\glsxtrUpTau`, `\glsxtrMathItalicTau`, `\glsxtrUpUpsilon`, `\glsxtrMathItalicUpsilon`, `\glsxtrUpPhi`, `\glsxtrMathItalicPhi`, `\glsxtrUpChi`, `\glsxtrMathItalicChi`, `\glsxtrUpPsi`, `\glsxtrMathItalicPsi`, `\glsxtrUpOmega`, and `\glsxtrMathItalicOmega`.

Additionally, there are commands for math italic partial differential ∂ (0x1D715) `\glsxtrMathItalicPartial` and nabla 𝛻 (0x1D6FB) `\glsxtrMathItalicNabla`.

[top]

### 11.5.3. Commands Used Within Resource Files
[link]

A glstex file will typically start with `\glsnoexpandfields`, since supporting field expansion is only necessary where entry definitions may be programmatically performed within a loop or some other command. (This may be suppressed.)

If you use the set-widest resource option, bib2gls v1.8+ will write the following command in the glstex file:

📌
``\glsxtrSetWidest`{〈type〉}{〈level〉}`
This sets the widest name for the given glossary type and hierarchical level. This supports both the alttree style and the styles provided by glossary-longextra, which need to know the widest name.

If bib2gls can’t determine the widest name (typically because the name field consists of commands that aren’t recognised by the interpreter) then bib2gls v1.8+ will write the following to the glstex file:

📌
``\glsxtrSetWidestFallback`{〈type〉}{〈level〉}`
{max depth}{list} Currently the maximum hierarchical depth 〈max depth〉 may only be 0 or 2. This command requires commands provided by the glossaries-extra-stylemods package with the alttree style enabled. In this case, it may be simpler to just use `\glssetwidest`.

The glstex files may also contain instances of `\glsxtrprovidestoragekey` to provide new glossary entry keys or `\provideignoredglossary` to provide glossaries to ensure they are defined.

The `\bibgls…` commands provided by bib2gls are defined in the glstex files with `\providecommand`. See the bib2gls manual for further details of those commands.

[top]

### 11.5.4. Hierarchy
[link]

The parent key identifies a parent entry (by its label), so determining if an entry has a parent can easily be achieved by testing if the parent field has been set (using `\ifglshasparent` or a command like `\glsxtrifhasfield`).

The other way around, testing if an entry has any children, is much harder. The base glossaries package provides `\ifglshaschildren`, which is very inefficient as it has to iterate over all entries in the entry’s glossary to determine which ones have a matching parent field.

It’s much easier with bib2gls, as there are resource options available to save this information. The save-child-count option saves the child count for each entry in the childcount internal field. This total only includes the child entries that have been selected by the resource set.

📌
``\GlsXtrIfHasNonZeroChildCount`{〈entry-label〉}{〈true〉}{〈false〉}`modifier: *
A shortcut that uses `\GlsXtrIfFieldNonZero` to test if the value supplied in the childcount field is non-zero. The starred form uses the starred form of `\GlsXtrIfFieldNonZero`.

[top]

### 11.5.5. Supplemental Locations
[link]

Locations in external documents can be manually added by explicitly setting thevalue when an entry is indexed. However, this is a bit inconvenient so bib2gls provides a way to do this automatically. Both the main document and the supplemental document need to use the record option, and the entries provided via src in the main document must have the same labels as those in the supplementary document. The supplemental document is identified by the supplemental-locations resource option. See the bib2gls manual for further details.

📌
``\glsxtrdisplaysupploc`{〈prefix〉}{〈counter〉}{〈format〉}{〈src〉}{〈location〉}`modifier: *
This is used by bib2gls version v1.7+ for supplemental locations, instead of using `\glsxtrsupphypernumber` with the externallocation attribute. This command sets up the location counter and prefix (used in the formation of hyperlinks) and then uses:
📌
``\glsxtrmultisupplocation`{〈src〉}{〈location〉}{〈format〉}`modifier: *
to format the actual location (with an external hyperlink, if supported). The 〈format〉 (the original location encap) is ignored by default.

[top]

### 11.5.6. Nameref Records
[link]

Nameref records include the current title and hypertarget. These records are enabled with record=nameref and provide a more reliable way of saving the location hypertarget, which can’t be obtained with makeindex or xindy.

This option is best used with counter=chapter or counter=section if you want the title included in the location list. If the indexing counter is the default page, only the location number is shown. Similarly for counter=equation (or equations=true).

Normally locations are recorded in the aux file in the form:

📌
``\glsxtr@record`{〈entry-label〉}{〈h-prefix〉}{〈counter〉}{〈encap〉}{〈location〉}`
This is similar to the command used with `\makenoidxglossaries` and provides the same information about the location and how to form the hypertarget as is passed to makeindex and xindy. The record=nameref option, which requires at least bib2gls v1.8, instead uses:
📌
``\glsxtr@record@nameref`{〈entry-label〉}{〈h-prefix〉}{〈counter〉}{〈encap〉}{〈location〉}{〈current title〉}{〈current anchor〉}{〈the-h-counter〉}`
where 〈title〉 is obtained from `\@currentlabelname` and 〈href〉 is obtained from `\@currentHref`. These commands require hyperref. If they are undefined, 〈title〉 and 〈href〉 will be left empty and bib2gls will treat it as a regular record.

ℹ
Be careful with this option as 〈href〉 will globally change on every instance of `\refstepcounter` but 〈title〉 won’t necessarily change. It can therefore cause unexpected behaviour.

The final argument 〈hcounter〉 is obtained from `\theH`〈counter〉 which provides the partial target name associated with the location counter. With the original makeindex/xindy approach, it’s not possible to include this information in the location, so the base glossaries package attempts to derive a prefix from which the 〈hcounter〉 value can be reconstituted by appending the prefix. Unfortunately, not all definitions of `\theH`〈counter〉 are in the form 〈prefix〉`\the〈counter〉` (most notably the equation counter with chapters) so this can fail.

Since bib2gls is customized specifically for use with glossaries-extra, it’s now possible to save 〈hcounter〉, so the recordnameref option does this. By providing both 〈href〉 and 〈hcounter〉, you can determine which target you would rather use. The default is to use 〈hcounter〉, which will take you to the place where the corresponding counter was incremented with `\refstepcounter`. However, you may choose to switch to using the 〈href〉 target, which will take you to the nearest target before the indexing took place.

With bib2gls v1.8+, normal locations are displayed using:

📌
``\glsnoidxdisplayloc`{〈prefix〉}{〈counter〉}{〈format〉}{〈location〉}`
This is provided by the base glossaries package and is simply defined to do:

    \setentrycounter[〈prefix〉]{〈counter〉}\csuse{〈format〉}{〈location〉}

Earlier versions of bib2gls only used this in the loclist field and explicitly used `\setentrycounter` in the location field followed by `\`〈format〉{location}, which follows the code that’s created with the default makeindex setting. The `\setentrycounter` command sets up the prefix needed for `\glshypernumber` to reform the target name from the given location.

The locations identified by `\glsxtr@record@nameref` are written by bib2gls to the location list using:

📌
``\glsxtrdisplaylocnameref`{〈prefix〉}{〈counter〉}{〈format〉}{〈location〉}{〈title〉}{〈href〉}{〈hcounter〉}{〈file〉}`
With normal internal locations, 〈file〉 will always be empty. With supplemental locations, 〈file〉 will be the external file reference. If hyperref hasn’t been loaded, this command behaves like `\glsnoidxdisplayloc`, so it will simply encapsulate the location with the given formatting command.

If hyperref has been loaded, then `\glsxtrdisplaylocnameref` will try to work out the appropriate hyperlink anchor and text. The 〈prefix〉 argument is redundant. It first defines the following commands:

📌
``\glsxtrrecentanchor``
This expands to the 〈href〉 argument, which corresponds to the `\@currentHref` value at the time the location was recorded. If this is used as the anchor, the link will go to the most recent anchor before the record was created. This is more likely to match the given title, but won’t necessarily match the corresponding counter.

For example, if the record was created with counter=section but occurred in a table caption, then `\glsxtrrecentanchor` and the title will correspond to the table caption. If you have defined `\glsxtrsectionlocfmt` to show the section number (see below), then this may cause some confusion if clicking on the section number leads to a table caption. However, it will lead to the closest location to where the record was created, which may be preferred.

📌
``\glsxtrlocationanchor``
This expands to the anchor that corresponds to the record’s location counter, which is constructed from the 〈counter〉 and 〈hcounter〉 arguments.

In the above example with the section counter, 〈hcounter〉 will be the value of `\theHsection` when the record was created, so the constructed anchor will be `section.〈hcounter〉` which corresponds to the anchor at the start of the section. However, if you haven’t defined `\glsxtrsectionlocfmt`, then the title will correspond to the table caption, which may be a little confusing.

The actual anchor used is obtained from the expansion of:

📌
``\glsxtractualanchor``
This is initialised to the value of `\glsxtrlocationanchor` but may be changed by:
📌
``\glsxtrsetactualanchor`{〈counter〉}`
The argument is the counter name, which may be used to set choose an alternative anchor depending on the counter. This command does nothing by default, which means that `\glsxtrlocationanchor` will be used.

For example, to switch to `\glsxtrrecentanchor` if the counter is page:

    🖹\renewcommand{\glsxtrsetactualanchor}[1]{%
      \ifstrequal{#1}{page}
      \let\glsxtractualanchor\glsxtrrecentanchor  }

🛈
If you are using indexcounter then the recent anchor will be the one created by the wrglossary increment just before the indexing occurs. This means that with counter=wrglossary, the location anchor and recent anchor will be the same. With other counters, the recent anchor will be the closest anchor to the place where indexing occurred.

To allow for different formatting according to the counter name, `\glsxtrdisplaylocnameref` first checks for the existence of:

📌
``\glsxtr〈counter〉locfmt`{〈location〉}{〈title〉}`

If this command is defined, the location will be displayed using:

    \glsxtrnamereflink{〈format〉}\glsxtr〈counter〉locfmt{〈location〉}{〈title〉}{〈href〉}{〈file〉}

Note the above warning about the possible mismatch of the title with the anchor. For example, if the following is defined for the section counter:

    \newcommand{\glsxtrsectionlocfmt}[2]{\S#1 (#2)}

then this could lead to the section number followed by the table caption. A more compact form that omits the title is better:

    🖹\newcommand{\glsxtrsectionlocfmt}[2]{\S#1}

The following location formats are predefined. The equation counter:

📌
``\glsxtrequationlocfmt`{〈location〉}{〈title〉}`
This simply expands to `(〈location〉)` since equations typically don’t have a title, but are usually enclosed in parentheses.

📌
``\glsxtrwrglossarylocfmt`{〈location〉}{〈title〉}`
This is used when the indexcounter option creates records with the wrglossary counter. This ensures that the page name is shown rather than the value of the wrglossary counter.

If the corresponding `\glsxtr〈counter〉locfmt` hasn’t been defined, `\glsxtrdisplaylocnameref` will do one of the following:

- •if 〈title〉 is empty or the counter is page, `\glsxtrnamereflink` with the title set to the location;

- •otherwise it will do:
  📌
  ``\glsxtrtitlednamereflink`{〈format〉}{〈location〉}{〈title〉}{〈file〉}`
  which uses `\glsxtrnamereflink` with the given 〈title〉 and `\glsxtrrecentanchor` as the anchor. This has a better chance of matching the title with the anchor, but it’s not guaranteed as some anchors are created without a title. This is defined as:

      \newcommand{\glsxtrtitlednamereflink}[4]{%
       \glsxtrnamereflink{#1}{#2}{\glsxtrrecentanchor}{#4}%
      }

  This shows the formatted title with the recent anchor. The location isn’t shown. If you would prefer to just show the location and use the anchor corresponding to the location counter:

      \renewcommand{\glsxtrtitlednamereflink}[4]{%
       \glsxtrnamereflink{#1}{#2}{\glsxtrlocationanchor}{#3}%
      }

If 〈file〉 is empty an internal link is created with:

📌
``\glsxtrfmtinternalnameref`{〈target〉}{〈format〉}{〈file〉}`
otherwise an external link is created with:
📌
``\glsxtrfmtexternalnameref`{〈target〉}{〈format〉}{〈title〉}{〈file〉}`
The 〈file〉 argument is set by bib2gls for supplemental locations (obtained from supplemental-locations).

The link is encapsulated with the text-block command whose name is given by 〈format〉, but `\glshypernumber` is first locally redefined to `\@firstofone` to prevent a conflict with the usual location hyperlink formation. This means that if the 〈format〉 is `\hyperbf` then it will simply behave like `\textbf`.

The following command is provided but not used by default:

📌
``\glsxtrnameloclink`{〈prefix〉}{〈counter〉}{〈format〉}{〈location〉}{〈text〉}{〈file〉}`
This creates a hyperlink to the target in the given external file obtained from the 〈prefix〉, 〈counter〉 and 〈location〉 but uses 〈text〉 as the hyperlink text. As with regular indexing, this will fail if the target name can’t be formed by prefixing the location value.

For compactness, bib2gls merges normal records if the 〈prefix〉, 〈counter〉 and 〈location〉 all match. (An order of precedence can be provided for format conflicts.) With nameref records, you can use the --merge-nameref-on switch provided by bib2gls v1.8+ to determine how to merge nameref records. This switch must be followed by one of the following keywords: `hcounter` (merge on 〈hcounter〉, default) `href` (merge on 〈href〉), `title` (merge on 〈title〉) and `location` (merge on 〈location〉, as regular records). In all cases, the 〈counter〉 must also match.

[top]

### 11.5.7. Dual Entry Commands
[link]

Dual entries can be defined with entry types like `@dualentry` or `@dualindexabbreviation`. A single entry definition within the bib file creates two dependent entries that may be referenced within the document and assigned to different glossaries. The default selection={recorded and deps} will ensure that dependent entries are selected, even if they don’t have any records. For example, the following bib entry:

    🖹@dualindexsymbol{L,
      name={Lagrangian function},
      symbol={\ensuremath{L}},
      description={a function of generalized co-ordinates}
    }

is essentially like:

    🖹@index{L,
      name={Lagrangian function},
      symbol={\ensuremath{L}},
      description={a function of generalized co-ordinates}
    }
    @symbol{dual.L,
      name={\ensuremath{L}},
      symbol={Lagrangian function},
      description={a function of generalized co-ordinates}
    }

but additionally the two entries (the primary `L` and the dual `dual.L`) are dependent. The following document only references the primary entry, but the dependency ensures that that the dual is also selected:

    🖹\usepackage[record,symbols,nostyles,
     stylemods={tree,bookindex}]{glossaries-extra}
    \GlsXtrLoadResources[src=entries,dual-type=symbols]
    \glsdefpostlink{index}{\glsxtrpostlinkAddDescOnFirstUse}
    \glsdefpostname{index}{%
     \ifglshassymbol{\glscurrententrylabel}
     { (\glsentrysymbol{\glscurrententrylabel})}{}}
    \begin{document}
    Primary: \gls{L}.
    \printunsrtglossary[type=symbols,style=tree]
    \printunsrtglossary[title=Index,style=bookindex]
    \end{document}

The dependency ensures that the dual entry `dual.L` is selected, and the dual-type setting adds the dual entry to the `symbols` glossary (which was defined with the symbols package option).

It may be useful to have a hyperlink from the entry in one glossary to its dependent in the other glossary. This can be achieved by instructing bib2gls to save the label of the entry’s opposite using dual-field. The value of this resource option indicates the field in which to save the label. If omitted, `dual` is assumed.

The glossary style can then be adapted to check if the field has been set and, if so, to create a hyperlink. The following command is provided to assist with this:

📌
``\GlsXtrDualBackLink`{〈text〉}{〈entry-label〉}`
This is defined as:

    \newcommand*{\GlsXtrDualBackLink}[2]{%
      \glsxtrifhasfield{\GlsXtrDualField}{#2}%
      {\glshyperlink[#1]{\glscurrentfieldvalue}}%
      {#1}%
    }

This obtains the field from:
📌
``\GlsXtrDualField``initial: dual
This expands to `dual`, which is the default for dual-field if no value is supplied.

The above example can be adapted as follows:

    🖹\usepackage[colorlinks]{hyperref}
    \usepackage[record,symbols,nostyles,stylemods={tree,bookindex}]{glossaries-extra}
    \GlsXtrLoadResources[src=entries, dual-type=symbols,dual-field]
    \glsdefpostlink{index}{\glsxtrpostlinkAddSymbolOnFirstUse}
    \glsdefpostname{index}{%
     \ifglshassymbol{\glscurrententrylabel}
     { (\GlsXtrDualBackLink{\glsentrysymbol{\glscurrententrylabel}}{\glscurrententrylabel})}{}}
    \begin{document}
    Primary: \gls{L}.
    \printunsrtglossary[type=symbols,style=tree]
    \printunsrtglossary[title=Index,style=bookindex]
    \end{document}

🖺
Example 158: Using bib2gls: dual backlinks 📥🖹 📥🖺

This checks if the symbol key has been set in both the category post-link hook and the category post-name hook to append the symbol in parentheses. In addition, the category post-name hook adds a link to the corresponding dual entry.

If you prefer instead to have the backlink on the name in both glossaries, then this can more easily be achieved with a resource option such as dual-backlink.

The commands described below were designed for use with bib2gls’s dual entries, but may also be used in other contexts where a label may potentially have a number of possible prefixes.

It’s possible to use commands like `\glsxtrnewgls` to create `\gls`-like commands that automatically insert a label prefix (such as `dual.` for dual entries). The commands described in this section provide a similar set of `\gls`-like commands that iterate over a set of possible prefixes until a match is found.

Each possible prefix (which may be empty) is identified by:

📌
``\glsxtraddlabelprefix`{〈label-prefix〉}`
{prefix} These should be listed in order of precedence.

You can prepend a prefix to the list using:

📌
``\glsxtrprependlabelprefix`{〈label-prefix〉}`
which gives it the highest order of precedence.

The list of known prefixes can be (locally) cleared with:

📌
``\glsxtrclearlabelprefixes``

You can test if a prefix is already in the list with:

📌
``\glsxtrifinlabelprefixlist`{〈label-prefix〉}{〈true〉}{〈false〉}`
This does 〈true〉 if the given prefix has been added to the list. No expansion is performed on 〈label-prefix〉.

In the event that there’s no match for any of the prefixes (which will occur on the first LaTeX run before the glstex file has been created), the fallback is determined by the conditional:

📌
``\ifGlsXtrPrefixLabelFallbackLast` 〈true〉`\else` 〈false〉`\fi``initial: `\iftrue`
If true, this will fallback on the last prefix, otherwise it will fallback on the first. This conditional can be set to true with:
📌
``\GlsXtrPrefixLabelFallbackLasttrue``
and to false with:
📌
``\GlsXtrPrefixLabelFallbackLastfalse``
The default is true.

🛈
As from v1.49, all possible matches will be recorded using a special syntax if none are found. This ensures there will be at least one match on the first run. However, note that this requires bib2gls v3.0+.

In general it’s best to avoid adding multiple instances of the same prefix, so you can check with this command before adding a prefix to the list. However, it can be useful to repeat a prefix at the start or end of the list so that it can be used as a fallback for entries that haven’t yet been defined.

With the list of possible prefixes set up (including an empty prefix if necessary), you can use:

📌
``\dgls`[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉
which behaves like

    \gls[〈options〉]{〈prefix〉{entry-label}}[〈insert〉]

where 〈prefix〉 is the first prefix in the list such that 〈prefix〉〈label〉 matches a defined entry. This requires bib2gls v3.0+ to work properly on the first LaTeX run (when no entries are defined).

There are also analogous commands for the plural and case-changing versions:

📌
``\dglspl`[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉
(uses `\glspl`),
📌
``\dGls`[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉
(uses `\Gls`),
📌
``\dGlspl`[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉
(uses `\Glspl`),
📌
``\dGLS`[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉
(uses `\GLS`),
📌
``\dGLSpl`[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉
(uses `\GLSpl`),
📌
``\dglslink`[〈options〉]{〈entry-label〉}{〈text〉}`modifiers: * + 〈alt-mod〉
(uses `\glslink`),
📌
``\dGlslink`[〈options〉]{〈entry-label〉}{〈text〉}`modifiers: * + 〈alt-mod〉
(uses `\Glslink`),
📌
``\dglsdisp`[〈options〉]{〈entry-label〉}{〈text〉}`modifiers: * + 〈alt-mod〉
(uses `\glsdisp`) and
📌
``\dGlsdisp`[〈options〉]{〈entry-label〉}{〈text〉}`modifiers: * + 〈alt-mod〉
(uses `\Glsdisp`).

If you want to use a specific field you can instead use:

📌
``\dglsfield`[〈options〉]{〈entry-label〉}{〈field-label〉}{〈text〉}`modifiers: * + 〈alt-mod〉
This will find the first match that has the given field set (that is, the field value has been defined and is not empty or `\relax`). The field should be identified by its internal field label. There are also case-changing versions:
📌
``\dGlsfield`[〈options〉]{〈entry-label〉}{〈field-label〉}{〈text〉}`modifiers: * + 〈alt-mod〉
which applies a sentence case change and
📌
``\dGLSfield`[〈options〉]{〈entry-label〉}{〈field-label〉}{〈text〉}`modifiers: * + 〈alt-mod〉
which applies all caps. Note that at least one of the potential labels must have the given field set in order for the reference to be correctly resolved. For example:

    🖹\dglsfield{pi}{symbol}

If you find this a bit long-winded to type and you want to provide a shorter command that recognises the modifiers, then you can use:
📌
``\newdglsfield`[〈default-options〉]{〈field〉}{〈cs〉}`
For example:

    🖹\newdglsfield{symbol}{\sym}
    \sym{pi}

If you also want sentence case and all caps versions use:
📌
``\newdglsfieldlike`[〈default-options〉]{〈field〉}{〈cs〉}{〈Cs〉}{〈CS〉}`
where 〈cs〉 is the command without a case-change (which will use `\dglsfield`), 〈Cs〉 is the sentence case command (which will use `\dGlsfield`) and 〈CS〉 is the all caps command (which will use `\dGLSfield`). This will also use `\glsmfuaddmap` and `\glsmfublocker` to establish the sentence case mapping from 〈cs〉 to 〈Cs〉 and block the case change for 〈CS〉.

🛈
No expansion is performed on 〈default-options〉 or 〈field〉 while the new commands are being defined.

Information is written to the transcript file with `\GlossariesExtraInfo` if a fallback is considered. Note that this shouldn’t be considered a warning as the fallback might be desired, but if the wrong output is produced this information may explain the selection.

This family of `\dglsfield` commands all define:

📌
``\dglsfieldcurrentfieldlabel``
This expands to the given field label.

If the requested field isn’t set (according to `\ifcsvoid`) then the fallback field will be tried instead.

📌
``\dglsfieldfallbackfieldlabel``initial: text
This expands to the fallback field, which defaults to the text field.

If you need to know whether the requested field or the fallback field was used, the following will be set to the actual field used.

📌
``\dglsfieldactualfieldlabel``

For example, suppose the file entries.bib contains:

    🖹@index{duck}
    @dualindexabbreviation{svm,
      short={SVM},
      long={support vector machine}
    }
    @dualindexsymbol{pi,
      symbol={\ensuremath{\pi}},
      description=ratio of a circle's circumference to its diameter
    }

and suppose the document code is:

    🖹\documentclass{article}
    \usepackage{hyperref}
    \usepackage[record,abbreviations,symbols]{glossaries-extra}

    \newcommand{\bibglsnewdualindexsymbolsecondary}[5]{%
     \longnewglossaryentry*{#1}{name={#3},category={symbol},
       type={symbols},symbol={#4},#2}{#5}%
    }

    \GlsXtrLoadResources[src=entries]

    \begin{document}
    First use: \gls{duck}, \gls{svm}, \gls{pi}.
    Next use: \gls{duck}, \gls{svm}, \gls{pi}.
    \printunsrtglossaries
    \end{document}

This uses the default empty primary prefix and `dual.` for the dual prefix, so ``\gls`{svm}` is referencing the primary entry, which is (essentially) an `@index` type not an abbreviation. It therefore doesn’t follow the abbreviation style, and it also hyperlinks to the index not to the list of abbreviations. Similarly for ``\gls`{pi}`, which references the primary `@index` entry rather than the symbol.

What’s really needed is:

    🖹\gls{duck}, \gls{dual.svm}, \gls{dual.pi}.

or use label-prefix and dual-prefix to set the label prefixes:

    🖹\GlsXtrLoadResources[src=entries,
     label-prefix={idx.},dual-prefix={}
    ]

then only the entries without a dual need a prefix:

    🖹\gls{idx.duck}, \gls{svm}, \gls{pi}.

Using `\glsxtrnewgls` or `\glsxtrnewglslike` (see §5.7) to define the custom `\idx`:

    🖹\glsxtrnewgls{idx.}{\idx}

the entry references can be simplified to:

    🖹\idx{duck}, \glssvm, \glspi.

but this requires remembering which terms have duals.

An alternative is to use `\dgls` instead:

    🖹\GlsXtrLoadResources[src=entries,
     combine-dual-locations=primary]

    \glsxtraddlabelprefix{dual.}
    \glsxtraddlabelprefix{}

    \begin{document}
    First use: \dgls{duck}, \dgls{svm}, \dgls{pi}.
    Next use: \dgls{duck}, \dgls{svm}, \dgls{pi}.
    \printunsrtglossaries
    \end{document}

🖺
Example 159: Using bib2gls: dual entry label prefixes 📥🖹 📥🖺

On the first LaTeX call (when the glstex file doesn’t exist), neither `dual.svm` nor `svm` exists, so `\dgls` uses the last prefix (which is empty in this case). This means that on the first LaTeX run, ``\dgls`{svm}` behaves like ``\gls`{svm}`, which adds a record for the primary `svm` entry. The default primary-dual dependency means that this will cause both the primary (`svm`) and dual (`dual.svm`) entry to be selected. The location will be added to the primary entry’s location list, unless overridden by resource options, such as combine-dual-locations.

Once bib2gls has been run and the glstex file exists, then `dual.svm` exists. So ``\dgls`{svm}` will again first try `dual.svm` (as `dual.` is the first in the list of label prefixes). That now exists, so ``\dgls`{svm}` now behaves like ``\gls`{dual.svm}`, which follows the abbreviation style and hyperlinks to the list of abbreviations. Similarly for the index-symbol combination `dual.pi` and `pi`.

In the case of ``\dgls`{duck}`, which doesn’t have a dual, the label `dual.duck` never exists, so that’s never selected. However, when there’s no match, such as when the glstex file doesn’t exist, the duck entry will be recorded with both the `dual.` prefix and the empty prefix. This allows bib2gls to test which prefix+label combination matches.

⚠
If you haven’t used combine-dual-locations an extra bib2gls+LaTeX run may be required to correct the location lists.

If you change the label prefixes, remember to update the corresponding ``\glsxtraddlabelprefix`{〈label-prefix〉}`. If no prefixes have been added to the list (or if the list is cleared), just an empty prefix is assumed.

Note that bib2gls v1.8+ provides hooks that identify the label prefixes in the glstex file:

    \bibglstertiaryprefixlabel{〈label-prefix〉}
    \bibglsdualprefixlabel{〈label-prefix〉}
    \bibglsprimaryprefixlabel{〈label-prefix〉}

These do nothing by default, but they can be defined before the resource file is loaded to set up the prefix list. For example:

    🖹\newcommand{\bibglsprimaryprefixlabel}[1]{%
     \glsxtraddlabelprefix{#1}}
    \newcommand{\bibglsdualprefixlabel}[1]{%
     \glsxtrprependlabelprefix{#1}}
    \GlsXtrLoadResources[src=entries]

Remember that this will only have an effect once the glstex file has been created. The prefix list will be empty on the first run (which is treated as a single empty prefix). If this isn’t a suitable fallback, it may be necessary to add one after all the resource commands:

    🖹\newcommand{\bibglsprimaryprefixlabel}[1]{%
     \glsxtraddlabelprefix{#1}}
    \newcommand{\bibglsdualprefixlabel}[1]{%
     \glsxtrprependlabelprefix{#1}}
    \GlsXtrLoadResources[src=entries,label-prefix={idx.}]
    \glsxtraddlabelprefix{idx.}

Although this rather defeats the purpose of using the hooks as you still have to keep track of the fallback prefix.

[top]

### 11.5.8. Supplementary Commands
[link]

📌
``\glsdisplaynumberlist`{〈entry-label〉}`
This command is provided by the base glossaries package, but it requires hooking into the location list formatting within the glossary to obtain the list. This information is more easily available with bib2gls, which stores the formatted location list in the location field, so glossaries-extra-bib2gls redefines this command to use that field value. Likewise for:
📌
``\glsentrynumberlist`{〈entry-label〉}`
which is redefined to simply do:

    \glsxtrusefield{#1}{location}

📌
``\IfTeXParserLib`{〈TeX parser lib code〉}{〈LaTeX code〉}`
This command is defined by glossaries-extra-bib2gls to expand to `LaTeX code`, but is defined by the TeX parser library used by bib2gls’s to expand to `TeX parser lib code`. May be used in the `@preamble` or in field values to provide bib2gls with alternative content.

📌
``\glsxtrprovidecommand`{〈cs〉}[〈n〉][〈default〉]{〈definition〉}`modifier: *
This command is intended for use in `@preamble`. It’s simply defined to `\providecommand` in glossaries-extra-bib2gls but bib2gls’s interpreter treats it as `\renewcommand`. This means that you can override bib2gls’s internal definition of a command without overriding the command definition in the document (if it’s already defined before the resource file is input). For example:

    🖹@preamble{"\glsxtrprovidecommand{\int}{integral}"}

This will force bib2gls to treat `\int` as the word “integral” to assist sorting but if this preamble code is written to the glstex file (as it is by default) then it won’t override the current definition (provided by the kernel or redefined by a package).

The helper commands in the resource files are defined using `\providecommand`. For many of them, if you want to provide an alternative definition then you need to define the command before the resource file is loaded. There are a few that may be redefined afterwards but if you use `\renewcommand` then you will get an error on the first LaTeX run when the glstex file doesn’t exist. In this case, you may prefer to use:

📌
``\glsrenewcommand`{〈cs〉}[〈n〉][〈default〉]{〈definition〉}`modifier: *
This behaves like `\renewcommand` but only generates a warning rather than an error if the command isn’t already defined so it won’t interrupt the document build.

📌
``\GlsXtrIndexCounterLink`{〈text〉}{〈entry-label〉}`
For use with the indexcounter package option and the save-index-counter resource option. This command creates a hyperlink (if supported) to the target obtained from the indexcounter field (which will be set in the glstex file, if applicable).

If then indexcounter field is set for the entry given by 〈entry-label〉, this command does ``\hyperref`[wrglossary.〈value〉]{〈text〉}`, where 〈value〉 is the value of the indexcounter field. If the field isn’t set or if `\hyperref` hasn’t been defined, this just does 〈text〉. See the bib2gls manual (v1.4+) for further details.

The glossaries-extra-bib2gls package also provides definitions of the missing mathematical Greek commands: `\Alpha`, `\Beta`, `\Epsilon`, `\Zeta`, `\Eta`, `\Iota`, `\Kappa`, `\Mu`, `\Nu`, `\Omicron`, `\Rho`, `\Tau`, `\Chi`, `\Digamma`, `\omicron`. These are all defined with `\providecommand`, so they won’t override any definitions provided by any package loaded before glossaries-extra. Since bib2gls’s interpreter recognises these commands, using them instead of explicitly using the Latin characters with the same shape helps to keep the Greek symbols together when sorting. Similarly, if upgreek has been loaded, the missing upright Greek commands are also provided: `\Upalpha`, `\Upbeta`, `\Upepsilon`, `\Upzeta`, `\Upeta`, `\Upiota`, `\Upkappa`, `\Upmu`, `\Upnu`, `\Upomicron`, `\Uprho`, `\Uptau`, `\Upchi`, `\upomicron`.

[top]

# 12. Auto-Indexing
[link]

It’s possible that you may also want a normal index as well as the glossary, and you may want entries to automatically be added to the index (as in this document). There are two attributes that govern this: indexname and dualindex.

ℹ
The auto-indexing is designed for makeindex syntax. If you’ve used the xindy package option, the automatic escaping of xindy special characters in the sort field may result in an incorrect sort value for the `\index` command used by the auto-indexing. Note also that texindy has a fixed set of special characters (corresponding to makeindex’s defaults) that can’t be customized. You may want to consider using bib2gls and its dual entries as an alternative approach.

The `\glsxtrpostnamehook` macro, used at the end of `\glossentryname` and `\Glossentryname`, checks the indexname attribute for the category associated with that entry. Since `\glossentryname` is used in the default glossary styles, this makes a convenient way of automatically indexing each entry name at its location in the glossary without fiddling around with the value of the name key.

The internal macro used by the glossaries package to write the information to the external glossary file is modified to check for the dualindex attribute.

In both cases, the indexing is done through:

📌
``\glsxtrdoautoindexname`{〈entry-label〉}{〈attribute〉}`
This uses the standard `\index` command with the sort value taken from the entry’s sort key and the actual value set to ``\glsentryname`{〈entry-label〉}`. There are user-level commands available to change the sort and actual value used by the automated index.

The actual value is given by:

📌
``\glsxtrautoindexentry`{〈entry-label〉}`
where 〈entry-label〉 is the entry’s label. The default definition is:

    \newcommand*{\glsxtrautoindexentry}[1]{\string\glsentryname{#1}}

Note the use of `\string` to prevent `\glsentryname` from being expanded as it’s written to the index file.

The sort value is assigned using:

📌
``\glsxtrautoindexassignsort`{〈entry-label〉}`
where 〈entry-label〉 is the entry label and 〈cs〉 is the command which needs to be set to the sort value. The default definition is:

    \newcommand*{\glsxtrautoindexassignsort}[2]{%
      \glsletentryfield{#1}{#2}{sort}%
    }

After this macro is called, 〈cs〉 is then processed to escape any of makeindex’s special characters. Note that this escaping is only performed on the sort not on the actual value. The escaping of the sort value is performed by
📌
``\glsxtrautoindexesc``
You can redefine this to do nothing if you want to omit the escaping. You may want to consider providing another field to obtain the appropriate sort value if the one provided in the sort field isn’t suitable (because it may already have had special characters escaped or it may be a numeric value in the case of sort by use or definition).

The command used to perform the actual indexing is:

📌
``\glsxtrautoindex``initial: `\index`
This just does ``\index`{〈text〉}` by default.

ℹ
The entry’s parent field isn’t referenced in this automated indexing.

For example, to index the value of the first key, instead of the name key:

    🖹\renewcommand*{\glsxtrautoindexentry}[1]{\string\glsentryfirst{#1}}

and if the sort value also needs to be set to the long field, if present, otherwise the sort field:

    🖹\renewcommand*{\glsxtrautoindexassignsort}[2]{%
      \ifglshaslong{#2}%
      {\glsletentryfield{#1}{#2}{long}}%
      {\glsletentryfield{#1}{#2}{sort}}%
    }

If the value of the attribute is “true”, no encap will be added, otherwise the encap will be the attribute value. For example:

    🖹\glssetcategoryattribute{general}{indexname}{textbf}

will set the encap to `textbf` which will display the relevant page number in bold whereas

    🖹\glssetcategoryattribute{general}{dualindex}{true}

won’t apply any formatting to the page number in the index.

ℹ
The location used in the index will always be the page number not the counter used in the glossary. (Unless some other loaded package has modified the definition of `\index` to use some thing else.)

By default the format key won’t be used with the dualindex attribute. You can allow the format key to override the attribute value by using the preamble-only command:

📌
``\GlsXtrEnableIndexFormatOverride``

If you use this command and hyperref has been loaded, then the theindex environment will be modified to redefine `\glshypernumber` to allow formats that use that command.

ℹ
The dualindex attribute will still be used on subsequent use even if the indexonlyfirst attribute (or indexonlyfirst package option) is set. However, the dualindex attribute will honour the noindex key.

The `\glsxtrdoautoindexname` command will attempt to escape any of makeindex’s special characters, but there may be special cases where it fails, so take care. This assumes the default makeindex actual, level, quote and encap values (unless any of the commands `\actualchar`, `\levelchar`, `\quotechar` or `\encapchar` have been defined before glossaries-extra is loaded).

If this isn’t the case, you can use the following preamble-only commands to set the correct characters.

ℹ
Be very careful of possible shifting category codes!

📌
``\GlsXtrSetActualChar`{〈character〉}`

Set the actual character to 〈char〉.

📌
``\GlsXtrSetLevelChar`{〈character〉}`

Set the level character to 〈char〉.

📌
``\GlsXtrSetEscChar`{〈character〉}`

Set the escape (quote) character to 〈char〉.

📌
``\GlsXtrSetEncapChar`{〈character〉}`

Set the encap character to 〈char〉.

[top]

# 13. On-the-Fly Document Definitions
[link]

ℹ
The commands described here may superficially look like `〈word〉`\index`{〈word〉}`, but they behave rather differently. If you want to use `\index` then just use `\index`.

The base glossaries package advises against defining entries in the document environment. As mentioned in §2.4, this ability is disabled by default with glossaries-extra but can be enabled using the docdef package options.

Although this can be problematic, the glossaries-extra package provides a way of defining and using entries within the document environment without the tricks used with the docdef option. There are limitations with this approach, so take care with it. This function is disabled by default, but can be enabled using the preamble-only command:

📌
``\GlsXtrEnableOnTheFly``modifier: *
When used, this defines the commands described below. The starred version was provided to help support UTF-8 with inputenc. Recent versions of the LaTeX kernel now provide better support. Both glossaries and glossaries-extra have been updated to help integrate the new kernel features, so the unstarred version may also work with UTF-8.

⚠
If you use the starred version of `\GlsXtrEnableOnTheFly` don’t use any commands in the 〈label〉, even if they expand to just text.

📌
``\glsxtr`[〈gls-options〉][〈dfn-options〉]{〈entry-label〉}`
If an entry with the label 〈entry-label〉 has already been defined, this just does ``\gls`[〈gls-options〉]{〈entry-label〉}`. If 〈entry-label〉 hasn’t been defined, this will define the entry using:

    \newglossaryentry{〈entry-label〉}{name={entry-label},
     category={\glsxtrcat},
     description={\nopostdesc},
     〈dfn-options〉}

ℹ
The 〈label〉 must contain any non-expandable commands, such as formatting commands or problematic characters. If the term requires any of these, they must be omitted from the 〈entry-label〉 and placed in the name key within the optional argument 〈dfn-options〉.

The second optional argument 〈dfn-options〉 should be empty if the entry has already been defined, since it’s too late for them. If it’s not empty, a warning will be generated with:

📌
``\GlsXtrWarning`{〈options〉}{〈entry〉}`
For example, this warning will be generated on the second instance of `\glsxtr` below:

    🖹\glsxtr[][pluralgeese]{goose}
    % ... later
    \glsxtr[][pluralgeese]{goose}

If you are considering doing something like:

    🖹\newcommand*{\goose}{\glsxtr[][plural={geese}]{goose}}
    \renewcommand*{\GlsXtrWarning}[2]{}
    % ... later
    \goose\ some more text here

then don’t bother. It’s simpler and less problematic to just define the entries in the preamble with `\newglossaryentry` and then use `\gls` in the document.

There are also plural and case-changing alternatives to `\glsxtr`.

📌
``\glsxtrpl`[〈gls-options〉][〈dfn-options〉]{〈entry-label〉}`
This is like `\glsxtr` but uses `\glspl` instead of `\gls`.
📌
``\Glsxtr`[〈gls-options〉][〈dfn-options〉]{〈entry-label〉}`
This is like `\glsxtr` but uses `\Gls` instead of `\gls`.
📌
``\Glsxtrpl`[〈gls-options〉][〈dfn-options〉]{〈entry-label〉}`
This is like `\glsxtr` but uses `\Glspl` instead of `\gls`.

The category is set to:

📌
``\glsxtrcat``initial: general
This should simply expand to the required category label. The default definition is `general`.

ℹ
The commands `\glsxtr`, `\glsxtrpl`, `\Glsxtr` and `\Glsxtrpl` can’t be used after the glossaries have been displayed (through `\printglossary` etc). It’s best not to mix these commands with the standard glossary commands, such as `\gls` or there may be unexpected results.

[top]

# 14. Supplementary Files
[link]

The glossaries-extra package comes with some additional files. Those listed in §14.1 provide dummy entries for testing various styles. They should be placed on TeX’s path.

There are also some sample files listed in §14.2. These should be located in the package documentation directory.

[top]

## 14.1. Dummy Files for Testing
[link]

The base glossaries package provides files with dummy entries for testing. The glossaries-extra package provides an additional file with entries.

🗋📥 example-glossaries-xr.tex
This file contains entries that have the see, seealso or alias keys set.

There are also bib files corresponding to all the available tex files for use with bib2gls.

🗋📥 example-glossaries-acronym.bib
Corresponds to example-glossaries-acronym.tex
🗋📥 example-glossaries-acronym-desc.bib
Corresponds to example-glossaries-acronym-desc.tex
🗋📥 example-glossaries-acronyms-lang.bib
Corresponds to example-glossaries-acronyms-lang.tex
🗋📥 example-glossaries-brief.bib
Corresponds to example-glossaries-brief.tex
🗋📥 example-glossaries-childmultipar.bib
Corresponds to example-glossaries-childmultipar.tex
🗋📥 example-glossaries-childnoname.bib
Corresponds to example-glossaries-childnoname.tex
🗋📥 example-glossaries-cite.bib
Corresponds to example-glossaries-cite.tex
🗋📥 example-glossaries-images.bib
Corresponds to example-glossaries-images.tex
🗋📥 example-glossaries-long.bib
Corresponds to example-glossaries-long.tex
🗋📥 example-glossaries-longchild.bib
Corresponds to example-glossaries-longchild.tex
🗋📥 example-glossaries-multipar.bib
Corresponds to example-glossaries-multipar.tex
🗋📥 example-glossaries-parent.bib
Corresponds to example-glossaries-parent.tex
🗋📥 example-glossaries-symbolnames.bib
Corresponds to example-glossaries-symbolnames.tex
🗋📥 example-glossaries-symbols.bib
Corresponds to example-glossaries-symbols.tex
🗋📥 example-glossaries-url.bib
Corresponds to example-glossaries-url.tex
🗋📥 example-glossaries-user.bib
Corresponds to example-glossaries-user.tex
🗋📥 example-glossaries-utf8.bib
Corresponds to example-glossaries-utf8.tex
🗋📥 example-glossaries-xr.bib
Corresponds to example-glossaries-xr.tex

[top]

## 14.2. Sample Files
[link]

The glossaries-extra package comes with some sample files that are listed below. There are also sample files provided with the glossaries package and with bib2gls. See also the Dickimaw Books Gallery.

🗋📥 sample.tex
Simple sample file that uses one of the dummy files provided by the glossaries package for testing.

    〉_pdflatex sample
    makeglossaries sample
    pdflatex sample
    pdflatex sample

🗋📥 sample-abbr-styles.tex

    〉_pdflatex sample-abbr-styles
    makeglossaries sample-abbr-styles
    pdflatex sample-abbr-styles
    pdflatex sample-abbr-styles

Demonstrates all predefined abbreviation styles.

🗋📥 sample-mixture.tex

    〉_pdflatex sample-mixture
    makeglossaries sample-mixture
    pdflatex sample-mixture
    makeglossaries sample-mixture
    pdflatex sample-mixture

General entries, acronyms and initialisms all treated differently.

🗋📥 sample-name-font.tex

    〉_pdflatex sample-name-font
    makeglossaries sample-name-font
    pdflatex sample-name-font
    pdflatex sample-name-font

Categories and attributes are used to customize the way different entries appear.

🗋📥 sample-abbrv.tex

    〉_pdflatex sample-abbrv
    makeglossaries sample-abbrv
    pdflatex sample-abbrv
    pdflatex sample-abbrv

General abbreviations.

🗋📥 sample-acronym.tex

    〉_pdflatex sample-acronym
    makeglossaries sample-acronym
    pdflatex sample-acronym

Acronyms aren’t initialisms and don’t expand on first use.

🗋📥 sample-acronym-desc.tex

    〉_pdflatex sample-acronym-desc
    makeglossaries sample-acronym-desc
    pdflatex sample-acronym-desc
    makeglossaries sample-acronym-desc
    pdflatex sample-acronym-desc

Acronyms that have a separate long form and description.

🗋📥 sample-crossref.tex

    〉_pdflatex sample-crossref
    makeglossaries sample-crossref
    pdflatex sample-crossref

Unused entries that have been cross-referenced automatically are added at the end of the document.

🗋📥 sample-indexhook.tex

    〉_pdflatex sample-indexhook
    makeglossaries sample-indexhook
    pdflatex sample-indexhook

Use the index hook to track which entries have been indexed (and therefore find out which ones haven’t been indexed).

🗋📥 sample-footnote.tex

    〉_pdflatex sample-footnote
    makeglossaries sample-footnote
    pdflatex sample-footnote

Footnote abbreviation style that moves the footnote marker outside of the hyperlink generated by `\gls` and moves it after certain punctuation characters for neatness.

🗋📥 sample-undef.tex

    〉_pdflatex sample-undef
    makeglossaries sample-undef
    pdflatex sample-undef
    pdflatex sample-undef

Warn on undefined entries instead of generating an error.

🗋📥 sample-mixed-abbrv-styles.tex

    〉_pdflatex sample-mixed-abbrv-styles
    makeglossaries sample-mixed-abbrv-styles
    pdflatex sample-mixed-abbrv-styles

Different abbreviation styles for different entries.

🗋📥 sample-initialisms.tex

    〉_pdflatex sample-initialisms
    makeglossaries sample-initialisms
    pdflatex sample-initialisms

Automatically insert dots into initialisms.

🗋📥 sample-postdot.tex

    〉_pdflatex sample-postdot
    makeglossaries sample-postdot
    pdflatex sample-postdot

Another initialisms example.

🗋📥 sample-postlink.tex

    〉_pdflatex sample-postlink
    makeglossaries sample-postlink
    pdflatex sample-postlink

Automatically inserting text after the link text produced by commands like `\gls` (outside of hyperlink, if present).

🗋📥 sample-header.tex

    〉_pdflatex sample-header
    makeglossaries sample-header
    pdflatex sample-header
    pdflatex sample-header

Using entries in section/chapter headings.

🗋📥 sample-autoindex.tex

    〉_pdflatex sample-autoindex
    makeglossaries sample-autoindex
    pdflatex sample-autoindex
    makeindex sample-autoindex
    pdflatex sample-autoindex

Using the dualindex and indexname attributes to automatically add glossary entries to the index (in addition to the glossary location list).

🗋📥 sample-autoindex-hyp.tex

    〉_pdflatex sample-autoindex-hyp
    makeglossaries sample-autoindex-hyp
    pdflatex sample-autoindex-hyp
    makeindex sample-autoindex-hyp
    pdflatex sample-autoindex-hyp

As previous but uses hyperref.

🗋📥 sample-nested.tex

    〉_pdflatex sample-nested
    makeglossaries sample-nested
    pdflatex sample-nested

Using `\gls` within the value of the name key.

🗋📥 sample-entrycount.tex

    〉_pdflatex sample-entrycount
    pdflatex sample-entrycount
    makeglossaries sample-entrycount
    pdflatex sample-entrycount

Enable entry-use counting (only index if used more than n times, see §6.1).

🗋📥 sample-unitentrycount.tex

    〉_pdflatex sample-unitentrycount
    pdflatex sample-unitentrycount
    makeglossaries sample-unitentrycount
    pdflatex sample-unitentrycount

Enable use of per-unit entry-use counting (§6.1).

🗋📥 sample-onelink.tex

    〉_pdflatex sample-onelink
    makeglossaries sample-onelink
    pdflatex sample-onelink

Using the per-unit entry counting (§6.1) to only have one hyperlink per entry per page.

🗋📥 sample-linkcount.tex

    〉_pdflatex sample-linkcount
    makeglossaries sample-linkcount
    pdflatex sample-linkcount

Using link counting (§6.2) to only have one hyperlink per entry.

🗋📥 sample-pages.tex

    〉_pdflatex sample-pages
    makeglossaries sample-pages
    pdflatex sample-pages
    pdflatex sample-pages

Insert “page” or “pages” before the location list.

🗋📥 sample-altmodifier.tex

    〉_pdflatex sample-altmodifier
    makeglossaries sample-altmodifier
    pdflatex sample-altmodifier
    pdflatex sample-altmodifier

Set the default options for commands like `\gls` and add an alternative modifier.

🗋📥 sample-mixedsort.tex

    〉_pdflatex sample-mixedsort
    pdflatex sample-mixedsort

Uses the optional argument of `\makeglossaries` to allow a mixture of `\printglossary` and `\printnoidxglossary`.

🗋📥 sample-external.tex

    〉_pdflatex sample-external
    makeglossaries sample-external
    pdflatex sample-external

Uses the targeturl attribute to allow for entries that should link to an external URL rather than to an internal glossary.

🗋📥 sample-fmt.tex

    〉_pdflatex sample-fmt
    makeglossaries sample-fmt
    pdflatex sample-fmt

Provides text-block commands associated with entries in order to use `\glsxtrfmt`.

🗋📥 sample-alias.tex

    〉_pdflatex sample-alias
    makeglossaries sample-alias
    pdflatex sample-alias

Uses the alias key (see §3.4).

🗋📥 sample-alttree.tex

    〉_pdflatex sample-alttree
    makeglossaries sample-alttree
    pdflatex sample-alttree

Uses the glossaries-extra-stylemods package with the alttree style (see §8.6.5).

🗋📥 sample-alttree-sym.tex

    〉_pdflatex sample-alttree-sym
    makeglossaries sample-alttree-sym
    pdflatex sample-alttree-sym

Another alttree example that measures the symbol widths.

🗋📥 sample-alttree-marginpar.tex

    〉_pdflatex sample-alttree-marginpar
    makeglossaries sample-alttree-marginpar
    pdflatex sample-alttree-marginpar

Another alttree example that puts the location list in the margin.

🗋📥 sample-onthefly.tex

    〉_pdflatex sample-onthefly
    makeglossaries sample-onthefly
    pdflatex sample-onthefly

Using on-the-fly commands. Terms with accents must have the name key explicitly set.

🗋📥 sample-onthefly-xetex.tex

    〉_xelatex sample-onthefly-xetex
    makeglossaries sample-onthefly-xetex
    xelatex sample-onthefly-xetex

Using on-the-fly commands with XeLaTeX. Terms with UTF-8 characters don’t need to have the name key explicitly set. Terms that contain commands must have the name key explicitly set with the commands removed from the label.

🗋📥 sample-onthefly-utf8.tex

    〉_pdflatex sample-onthefly-utf8
    makeglossaries sample-onthefly-utf8
    pdflatex sample-onthefly-utf8

Tries to emulate the previous sample file for use with LaTeX through the starred version of `\GlsXtrEnableOnTheFly`. This is a bit iffy and may not always work. Terms that contain commands must have the name key explicitly set with the commands removed from the label.

🗋📥 sample-accsupp.tex

    〉_pdflatex sample-accsupp
    makeglossaries sample-accsupp
    pdflatex sample-accsupp

Integrate glossaries-accsupp.

🗋📥 sample-prefix.tex

    〉_pdflatex sample-prefix
    makeglossaries sample-prefix
    pdflatex sample-prefix

Integrate glossaries-prefix.

🗋📥 sample-suppl-main.tex

    〉_pdflatex sample-suppl
    pdflatex sample-suppl-main
    makeglossaries sample-suppl-main
    pdflatex sample-suppl-main

Uses thevalue to reference a location in the supplementary file sample-suppl.tex.

🗋📥 sample-suppl-main-hyp.tex

    〉_pdflatex sample-suppl-hyp
    makeglossaries sample-suppl-hyp
    pdflatex sample-suppl-hyp
    pdflatex sample-suppl-main-hyp
    makeglossaries sample-suppl-main-hyp
    pdflatex sample-suppl-main-hyp

A more complicated version to the above that uses the hyperref package to reference a location in the supplementary file sample-suppl-hyp.tex.

[top]

# 15. Multi-Lingual Support
[link]

There’s only one command provided by glossaries-extra that you’re likely to want to change in your document and that’s `\abbreviationsname` if you use the abbreviations package option to automatically create the glossary labelled `abbreviations`. If this command doesn’t already exist, it will be defined to “Abbreviations” if babel hasn’t been loaded, otherwise it will be defined as `\acronymname` (provided by glossaries), which is language-sensitive.

You can redefine `\abbreviationsname` in the usual way. For example:

    🖹\renewcommand*{\abbreviationsname}{List of Abbreviations}

Or using babel or polyglossia captions hook:

    🖹\appto\captionsenglish{%
     \renewcommand*{\abbreviationsname}{List of Abbreviations}%
    }

Alternatively you can use the title key when you print the list of abbreviations. For example:

    🖹\printabbreviations[title={List of Abbreviations}]

or

    🖹\printabbreviations[typeabbreviations,title={List of Abbreviations}]

The other fixed text commands are the diagnostic messages, which shouldn’t appear in the final draft of your document.

The glossaries-extra package has the facility to load language modules (whose filename is in the form glossariesxtr-〈language〉.ldf) if they exist, but won’t warn if they don’t. If glossaries-extra-bib2gls is loaded via the record package option then the check for language resource files will additionally search for an associated language script file given by glossariesxtr-〈script〉.ldf where 〈script〉 is the four letter script identifier, such as `Latn`, associated with the given dialect. There’s no warning if the associated file isn’t found. The script file is loaded after the dialect file.

If you want to write your own language module, you just need to create a file called glossariesxtr-〈lang〉.ldf, where 〈lang〉 identifies the language or dialect (see the tracklang package). For example, glossariesxtr-french.ldf. The file should start with:

📌
``\ProvidesGlossariesExtraLang`{〈tag〉}`
The simplest code for this file is:

    🖹\ProvidesGlossariesExtraLang{french}[2015/12/09 v1.0]

    \newcommand*{\glossariesxtrcaptionsfrench}{%
     \def\abbreviationsname{Abr\'eviations}%
    }
    \glossariesxtrcaptionsfrench

    \ifcsdef{captions\CurrentTrackedDialect}
    {%
      \csappto{captions\CurrentTrackedDialect}%
      {%
        \glossariesxtrcaptionsfrench
      }%
    }%
    {%
      \ifcsdef{captions\CurrentTrackedLanguage}
      {%
        \csappto{captions\CurrentTrackedLanguage}%
        {%
          \glossariesxtrcaptionsfrench
        }%
      }%
      {}%
    }

You can adapt this for other languages by replacing all instances of the language identifier `french` and the translated text `Abr\'eviations` as appropriate. You can also use the ldf file to provide rule blocks for a particular language for use with bib2gls’s custom sort rule. See §11.5 for further details.

🛈
For further information on tracklang, see the tracklang documentation or Localisation with tracklang.tex.

This ldf file then needs to be put somewhere on TeX’s path so that it can be found by glossaries-extra. You might also want to consider uploading it to CTAN so that it can be useful to others. (Please don’t send it to me. I already have more packages than I am able to maintain.)

If you additionally want to provide translations for the diagnostic messages used when a glossary is missing, you need to redefine the following commands:

📌
``\GlsXtrNoGlsWarningHead`{〈glossary-label〉}{〈file〉}`
This produces the following text in English:

> This document is incomplete. The external file associated with the glossary ‘〈glossary-label〉’ (which should be called 〈file〉) hasn’t been created.

📌
``\GlsXtrNoGlsWarningEmptyStart``
This produces the following text in English:

> This has probably happened because there are no entries defined in this glossary.

📌
``\GlsXtrNoGlsWarningEmptyMain``
This produces the following text in English:

> If you don't want this glossary, add nomain to your package option list when you load glossaries-extra.sty. For example:

📌
``\GlsXtrNoGlsWarningEmptyNotMain`{〈glossary-label〉}`
This produces the following text in English:

> Did you forget to use type=〈glossary-label〉 when you defined your entries? If you tried to load entries into this glossary with \loadglsentries did you remember to use [〈glossary-label〉] as the optional argument? If you did, check that the definitions in the file you loaded all had the type set to \glsdefaulttype

📌
``\GlsXtrNoGlsWarningCheckFile`{〈file〉}`
This produces the following text in English:

> Check the contents of the file 〈file〉. If it’s empty, that means you haven’t indexed any of your entries in this glossary (using commands like \gls) or \glsadd) so this list can’t be generated. If the file isn’t empty, the document build process hasn’t been completed.

📌
``\GlsXtrNoGlsWarningMisMatch``
This produces the following text in English:

> You need to either replace \makenoidxglossaries with \makeglossaries or replace \printglossary (or \printglossaries) with \printnoidxglossary and then rebuild this document.

📌
``\GlsXtrNoGlsWarningNoOut`{〈file〉}`
This produces the following text in English:

> The file 〈file〉 doesn’t exist. This most likely means you haven’t used \makeglossaries or you have used \nofiles. If this is just a draft version of the document, you can suppress this message using the nomissingglstext ackage option.

📌
``\GlsXtrNoGlsWarningTail``
This produces the following text in English:

> This message will be removed once the problem has been fixed.

📌
``\GlsXtrNoGlsWarningBuildInfo``
This is advice on how to generate the glossary files.

📌
``\GlsXtrNoGlsWarningAutoMake`{〈glossary-label〉}`
This is the message produced when the automake option is used, but the document needs a rerun or the shell escape setting doesn’t permit the execution of the external application. This command also generates a warning in the transcript file.

See the documented code (glossaries-extra-code.pdf) for further details.

[top]
II. Summaries and Index
[link]

[top]

# Symbols
[link]

№
  A counter is being described.
📌
  The syntax and usage of a command, environment or option etc.
🗑
  A command, environment or option that is now deprecated.
🛇
  A command, environment or option that should not be used with glossaries-extra.
ℹ
  An important message.
🛈
  Prominent information.
🖹
  LaTeX code to insert into your document.
🔖
  The definition of an option value.
🖹🛇
  Problematic code which should be avoided.
🖺
  How the example code should appear in the PDF.
🎚
  An option that takes a value.
〉_
  A command-line application invocation that needs to be entered into a terminal or command prompt. See also “Incorporating makeglossaries or makeglossaries-lite or bib2gls into the document build”.
🔘︎
  A boolean option that is initially false.
🔘
  A boolean option that is initially true.
🔎
  Text in a transcript or log file or written to STDOUT or STDERR.
🗋U
  Code that requires a native Unicode engine (XeLaTeX or LuaLaTeX).
𝍢
  An option that doesn’t take a value.
⚠
  A warning.

[top]

# Terms
[link]

American Standard Code for Information Interchange (ASCII)
  A single-byte character encoding. Related blog article: Binary Files, Text Files and File Encodings.
Category post-description hook
  A post-description hook called `\glsxtrpostdesc〈category〉` that is associated with a particular category.
Category post-link hook
  A post-link hook called `\glsxtrpostlink〈category〉` that is associated with a particular category.
Category post-name hook
  A post-name hook called `\glsxtrpostname〈category〉` that is associated with a particular category.
Command-line interface (CLI)
  An application that doesn’t have a graphical user interface. That is, an application that doesn’t have any windows, buttons or menus and can be run in a command prompt or terminal.
Display full form
  The full form of an abbreviation obtained with the first use of `\gls` or `\glspl` (or case-changing variants). This may or may not produce the same result as the inline full form the corresponding `\glsxtrfull` command, depending on the abbreviation style.
Entry location
  The location of the entry in the document (obtained from the location counter or from the thevalue option). This defaults to the page number on which the entry has been referenced with any of the `\gls`-like, `\glstext`-like or `\glsadd` commands. An entry may have multiple locations that form a list.
Field
  Entry data is stored in fields. These may have a corresponding key used to set the value, such as name or description, but field values may also be set using commands like `\GlsXtrSetField`, in which case there doesn’t need to be a corresponding key. Some fields are considered internal fields. If you are using bib2gls, it will only recognise fields in the bib file that have had a key defined in the document or that are special to bib2gls.
First use
  The first time an entry is used by a command that unsets the first use flag (or the first time since the flag was reset). For multi-entry sets, see first use.
First use flag
  A conditional that keeps track of whether or not an entry has been referenced by any of the `\gls`-like commands (which can adjust their behaviour according to whether or not this flag is true). The conditional is true if the entry hasn’t been used by one of these commands (or if the flag has been reset) and false if it has been used (or if the flag has been unset). Note that multi-entries have their own flag that’s distinct from the first use flags of the individual elements.
First use text
  The link text that is displayed on first use of the `\gls`-like commands.
Group (letters, numbers, symbols)
  A logical division within a glossary that is typically a by-product of the indexing application’s sorting algorithm. See also Gallery: Logical Glossary Divisions (type vs group vs parent).
Graphical user interface (GUI)
  An application that has windows, buttons or menus.
Glossary
  Technically a glossary is an alphabetical list of words relating to a particular topic. For the purposes of describing the glossaries and glossaries-extra packages, a glossary is either the list produced by commands like `\printglossary` or `\printunsrtglossary` (which may or may not be ordered alphabetically) or a glossary is a set of entry labels where the set is identified by the glossary label or type.
`\Gls`-like
  Commands like `\gls` and `\glsdisp` that change the first use flag. These commands index the entry (if indexing is enabled), create a hyperlink to the entry’s glossary listing (if enabled) and unset the first use flag. These commands end with the post-link hook.
`\Glstext`-like
  Commands like `\glstext` and `\glslink` that don’t change the first use flag. These commands index the entry (if indexing is enabled) and create a hyperlink to the entry’s glossary listing (if enabled). These commands end with the post-link hook.
Hierarchical level
  A number that indicates how many ancestors an entry has. An entry with no parent has hierarchical level 0. If an entry has a parent then the hierarchical level for the entry is one more than the hierarchical level of the parent. Most styles will format an entry according to its hierarchical level, giving prominence to level 0 entries, although some may have a maximum supported limit. The “unsrt” family of commands allow the hierarchical level to be locally adjusted by adding an offset (leveloffset) or to have hierarchy ignored (flatten).
Ignored glossary
  A glossary that has been defined using a command like `\newignoredglossary`. These glossaries are omitted by iterative commands, such as `\printglossaries` and `\printunsrtglossaries`. An ignored glossary can only be displayed with `\printunsrtglossary` or `\printunsrtinnerglossary`.
Ignored location (or record)
  A location that uses glsignore as the encap. With bib2gls, this indicates that the entry needs to be selected but the location isn’t added to the location list. With other methods, this will simply create an invisible location, which can result in unwanted commas if the location list has other items.
Indexing application
  An application (piece of software) separate from TeX/LaTeX that collates and sorts information that has an associated page reference. Generally the information is an index entry but in this case the information is a glossary entry. There are two main indexing applications that are used with TeX: makeindex and xindy. (There is also a new application called xindex, but this isn’t supported by glossaries or glossaries-extra.) The glossaries-extra package additionally supports bib2gls. These are all CLI applications.
Indexing (or recording)
  The process of saving the entry location and any associated information that is required in the glossary. In the case of makeindex and xindy, the entry location, encap, entry item and sort value are written to a supplementary file associated with the glossary that is subsequently read by makeindex/xindy. In the case of bib2gls and the “noidx” method, the entry location, encap and label is written to the aux file. With record=nameref, the current title and hyperlink target are also included. With bib2gls, each line of data in the aux is referred to as a “record” and indexing is referred to as “recording”. The record=hybrid option indexes twice: a bib2gls record in the aux file and a makeindex/xindy line in the corresponding file, See §5.8.
Inline full form
  The full form of an abbreviation obtained with glsxtrfull or glsxtrfullpl (or case-changing variants). This may or may not produce the same result as the full form on first use of the corresponding gls-like command (the display full form), depending on the abbreviation style.
Inner formatting
  The formatting applied by the innertextformat option, which redefines glsxtrgenentrytextfmt. The inner formatting can only be applied if glsxtrgenentrytextfmt is embedded within the entry’s display style.
Internal field
  An internal field may refer to a key that shouldn’t be used in the bib file (internal field (bib2gls)), such as the group field, or it may refer to the label used to internally represent the field (which may or may not match the key used to set the field or may not have an associated key), such as `useri` which corresponds to the user1 key, or it may refer to a field that is only ever used internally that should not be explicitly modified, such as the field used to store the entry’s hierarchical level .
Internal field (bib2gls)
  A field that is used or assigned by bib2gls that should typically not be used in the bib file.
Internal field label
  The field label that forms part of the internal control sequence used to store the field value. This may or may not match the key used to assign the value when defining the entry. See the “Key to Field Mappings” table in the glossaries user manual.
Link text
  The text produced by gls-like and glstext-like commands that have the potential to be a hyperlink.
Location counter
  The counter used to obtain the entry location.
Location encap (format)
  A command used to encapsulate an entry location. The control sequence name (without the leading backslash) is identified by the format key. The default encap is glsnumberformat.
Location list
  A list of entry locations (also called a number list). May be suppressed for all glossaries with the package option nonumberlist or for individual glossaries with nonumberlist. With bib2gls, the list may also be suppressed with save-locations=false.
Multi-entry first use
  The first time a multi-entry is referenced (or the first time since the multi-entry first use flag was reset). This is not necessary the first use of any of the individual entries that form the set.
Multi-entry first use flag
  A conditional that keeps track of whether or not a multi-entry has been used. This is distinct from the first use flags of the individual elements.
Multi-entry subsequent use
  When a multi-entry that has already been marked as used is referenced. This is not necessary the subsequent use of any of the individual entries that form the set.
Post-description hook
  A hook (glspostdescription) included in some glossary styles that is used after the description is displayed. The glossaries-extra package modifies this command to provide additional hooks, including category post-description hooks. The glossaries-extra-stylemods package modifies the predefined styles provided with glossaries to ensure that they all use glspostdescription to allow the category post-description hooks to be implemented.
Post-link hook
  A hook (command) that is used after link text to allow code to be automatically added. The base glossaries package provides a general purpose hook glspostlinkhook. The glossaries-extra package modifies this command to provide additional hooks, including category post-link hooks.
Post-name hook
  A hook (command) that is used after the name is displayed in glossary styles. These hooks are implemented by glossentryname, which needs to be present in the glossary style. The main hook is glsxtrpostnamehook, which implements auto-indexing (see §12), performs a general purpose hook glsextrapostnamehook and a category-specific hook glsxtrpostname〈category〉.
Print “unsrt” glossary commands (and environment)
  The set of commands used for displaying a glossary or partial glossary that have “unsrt” in the name: printunsrtglossary, printunsrtglossaries (which internally uses printunsrtglossary), and printunsrtinnerglossary. These all simply iterate over the list of entries associated with the given glossary, in the order in which they were added to the glossary (hence “unsrt”, which is short for “unsorted”). The way that bib2gls works is that it sorts the entries according to the resource options and adds the entries to the glossary in the required order. These commands may be used with or without bib2gls. If you don’t use bib2gls, you will need to manually ensure that the entries are added in the desired order. The printunsrtglossarywrap environment may also be included in this category, although it only sets up the start and end of the glossary for use with printunsrtinnerglossary.
Resource file
  The glstex file created by bib2gls and loaded by GlsXtrLoadResources (or glsxtrresourcefile).
Resource set
  All the settings (resource options) and entries associated with a particular instance of GlsXtrLoadResources (or glsxtrresourcefile).
Standalone entry
  Normally the link text target is created in the glossary, where the entry’s name and description (and optionally other information, such as the symbol) are shown. It may be that you don’t want a list but need to have the name and description somewhere in the document text. These are standalone entries. Whilst it is possible to simply use glsentryname and glsentrydesc, the glossaries-extra package provides a way inserting the name that includes the hypertarget for the link text and obeys the post-name hook.
Subsequent use
  Using an entry that unsets the first use flag when it has already been unset.
Unicode Transformation Format (8-bit) (UTF-8)
  A variable-width encoding that uses 8-bit code units. This means that some characters are represented by more that one byte. XeLaTeX and LuaLaTeX treat the multi-byte sequence as a single token, but the older LaTeX formats have single-byte tokens, which can cause complications, although these have mostly been addressed with the newer kernels introduced over the past few years. Related blog article: Binary Files, Text Files and File Encodings.
Whatsit
  A command whose execution is delayed or an OS-specific special command. This includes writing to external files (which is what indexing does).

[top]

# Glossary Entry Keys Summary
[link]

These are options that can be passed to commands that define entries, such as `\newglossaryentry` or `\newabbreviation`.

access=`{〈text〉}`🎚

(requires accsupp)

Accessibility text corresponding to the name field. This field will be automatically set by `\newabbreviation`, if not provided and the nameshortaccess attribute is set. See §9.1.

alias=`{〈xr-label〉}`🎚glossaries-extra

Behaves in a similar manner to see={[`\seealsoname`]〈xr-label〉} but also sets up aliasing which makes the link text hyperlink to 〈xr-label〉 instead. §3.2; 33

category=`〈category-label〉`initial: general 🎚glossaries-extra

The entry’s category (must be a simple label). §3.2; 33

counter=`{〈counter-name〉}`🎚

If set, the value indicates the location counter to use by default when indexing this entry (overrides the counter associated with the glossary or the counter package option).

description=`{〈text〉}`🎚

The entry’s description, as displayed in the glossary. If required in the text, use `\glsdesc` (if indexing and hyperlinks are required) or `\glsentrydesc`. Glossary styles should use `\glossentrydesc` and `\glspostdescription` to incorporate the post-description hook.

descriptionaccess=`{〈text〉}`🎚

(requires accsupp)

Accessibility text corresponding to the description field.

descriptionplural=`{〈text〉}`🎚

The plural form of the entry’s description, if applicable. If omitted, this is set to the same value as the description, since descriptions tend not to be a singular entity.

descriptionpluralaccess=`{〈text〉}`🎚

(requires accsupp)

Accessibility text corresponding to the descriptionplural field.

first=`{〈first〉}`🎚

The entry’s text, as displayed on first use of `\gls`-like commands. Note that using an abbreviation style or post-link hooks is a more flexible approach. If omitted, this value is assumed to be the same as the text key.

firstaccess=`{〈text〉}`🎚

(requires accsupp)

Accessibility text corresponding to the first field. This field will be automatically set by `\newabbreviation`, if not provided and the firstshortaccess attribute is set. See §9.1.

firstplural=`{〈text〉}`🎚

The entry’s plural form, as displayed on first use of plural `\gls`-like commands, such as `\glspl`. If this key is omitted, then the value will either be the same as the plural field, if the first key wasn’t used, or the value will be taken from the first key with `\glspluralsuffix` appended.

firstpluralaccess=`{〈text〉}`🎚

(requires accsupp)

Accessibility text corresponding to the firstplural field. This field will be automatically set by `\newabbreviation`, if not provided and the firstshortaccess attribute is set. See §9.1.

group=`{〈group-label〉}`🎚glossaries-extra

The group label that identifies which group the entry belongs to. This key is only available with the record=only and record=nameref options, and is set by bib2gls, if invoked with --group or -g. This is an internal key assigned by bib2gls as a by-product of sorting. Explicit use without reference to the order of entries can result in fragmented groups. The corresponding title can be set with `\glsxtrsetgrouptitle`, although this is more commonly done implicitly within the glstex file. §3.2; 34

location=`{〈location-list〉}`🎚glossaries-extra

The formatted location list used by the “unsrt” family of commands. This key is only available with the record option and is set by bib2gls unless save-locationsfalse is set. §3.2; 35

long=`{〈long-form〉}`🎚

A field that is set by `\newabbreviation` to the entry’s long (unabbreviated) form. It typically shouldn’t be used explicitly with `\newglossaryentry` as `\newabbreviation` makes other modifications to ensure that when the entry is referenced with the `\gls`-like commands, it will obey the appropriate abbreviation style. If you are using bib2gls then this field should be used in the bib file when defining abbreviations.

longaccess=`{〈text〉}`🎚

(requires accsupp)

Accessibility text corresponding to the long field.

longplural=`{〈long-form〉}`🎚

As long but the plural form.

longpluralaccess=`{〈text〉}`🎚

(requires accsupp)

Accessibility text corresponding to the longplural field.

name=`{〈text〉}`🎚

The entry’s name, as displayed in the glossary. This typically isn’t used outside of the glossary (the text and plural keys are used instead). However, if there is a need to specifically display the entry name, use `\glsname` (if indexing and hyperlinks are required) or `\glsentryname`. Glossary styles should use `\glossentryname`, which uses `\glsentryname` and incorporates the post-name hooks and related attributes.

parent=`〈parent-label〉`🎚

The label of the entry’s parent (from which the entry’s hierarchical level is obtained).

plural=`{〈text〉}`🎚

The entry’s plural form, as displayed on subsequent use of plural `\gls`-like commands, such as `\glspl`. This should be the appropriate plural form of the value provided by the text key. If omitted, this value is assumed to be the value of the text key with `\glspluralsuffix` appended.

pluralaccess=`{〈text〉}`🎚

(requires accsupp)

Accessibility text corresponding to the plural field. This field will be automatically set by `\newabbreviation`, if not provided and the textshortaccess attribute is set. See §9.1.

prefix=`{〈text〉}`🎚glossaries-prefix v3.14a+

The subsequent use singular prefix.

prefixfirst=`{〈text〉}`🎚glossaries-prefix v3.14a+

The first use singular prefix.

prefixfirstplural=`{〈text〉}`🎚glossaries-prefix v3.14a+

The first use plural prefix.

prefixplural=`{〈text〉}`🎚glossaries-prefix v3.14a+

The subsequent use plural prefix.

see=`{[〈tag〉]〈xr-list〉}`🎚

With the base glossaries package this simply triggers an automatic cross-reference with `\glssee`. The glossaries-extra package additionally saves the value. Use autoseeindex=false to prevent the automatic cross-reference. The 〈tag〉 defaults to `\seename` and 〈xr-list〉 should be a comma-separated list of entries that have already been defined.

seealso=`{〈xr-list〉}`🎚glossaries-extra

Behaves in a similar manner to see={[`\seealsoname`]〈xr-list〉}. §3.2; 33

short=`{〈short-form〉}`🎚

A field that is set by `\newabbreviation` (and `\newacronym`) to the entry’s short (abbreviated) form. It typically shouldn’t be used explicitly with `\newglossaryentry` as `\newabbreviation` makes other modifications to ensure that when the entry is referenced with the `\gls`-like commands, it will obey the appropriate abbreviation style. If you are using bib2gls then this field should be used in the bib file when defining abbreviations.

shortaccess=`{〈text〉}`🎚

(requires accsupp)

Accessibility text corresponding to the short field. This field will be automatically set by `\newabbreviation`, if not provided. See §9.1.

shortplural=`{〈short-form〉}`🎚

As short but the plural form. The default is obtained by appending the abbreviation plural suffix, but this behaviour can be altered by category attributes. See §4 for further details.

shortpluralaccess=`{〈text〉}`🎚

(requires accsupp)

Accessibility text corresponding to the shortplural field. This field will be automatically set by `\newabbreviation`, if not provided. See §9.1.

sort=`〈value〉`initial: 〈entry name〉 🎚

Specifies the value to use for sorting (overrides the default). This key is usually required for xindy if the name key only contains commands (for example, the entry is a symbol), but explicitly using this key in other contexts can break certain sort methods. Don’t use the sort field with bib2gls .

symbol=`{〈symbol〉}`initial: `\relax` 🎚

The entry’s associated symbol (optional), which can be displayed with `\glssymbol` (if indexing and hyperlinks are required) or with `\glsentrysymbol`.

symbolaccess=`{〈text〉}`🎚

(requires accsupp)

Accessibility text corresponding to the symbol field.

symbolplural=`{〈symbol plural〉}`🎚

The plural form of the symbol, if applicable, which can be displayed with `\glssymbolplural` (if indexing and hyperlinks are required) or with `\glsentrysymbolplural`. If omitted, this value is set to the same as the symbol key (since symbols usually don’t have a plural form).

symbolpluralaccess=`{〈text〉}`🎚

(requires accsupp)

Accessibility text corresponding to the symbolplural field.

text=`{〈text〉}`🎚

The entry’s text, as displayed on subsequent use of `\gls`-like commands. If omitted, this value is assumed to be the same as the name key.

textaccess=`{〈text〉}`🎚

(requires accsupp)

Accessibility text corresponding to the text field. This field will be automatically set by `\newabbreviation`, if not provided and the textshortaccess attribute is set. See §9.1.

type=`〈glossary-label〉`initial: `\glsdefaulttype` 🎚

Assigns the entry to the glossary identified by 〈glossary-label〉.

user1=`{〈text〉}`🎚

A generic field, which can be displayed with `\glsuseri` (if indexing and hyperlinks are required) or with `\glsentryuseri`.

user1access=`{〈text〉}`🎚glossaries-accsupp v4.45+

Accessibility text corresponding to the user1 field.

user2=`{〈text〉}`🎚

A generic field, which can be displayed with `\glsuserii` (if indexing and hyperlinks are required) or with `\glsentryuserii`.

user2access=`{〈text〉}`🎚glossaries-accsupp v4.45+

Accessibility text corresponding to the user2 field.

user3=`{〈text〉}`🎚

A generic field, which can be displayed with `\glsuseriii` (if indexing and hyperlinks are required) or with `\glsentryuseriii`.

user3access=`{〈text〉}`🎚glossaries-accsupp v4.45+

Accessibility text corresponding to the user3 field.

user4=`{〈text〉}`🎚

A generic field, which can be displayed with `\glsuseriv` (if indexing and hyperlinks are required) or with `\glsentryuseriv`.

user4access=`{〈text〉}`🎚glossaries-accsupp v4.45+

Accessibility text corresponding to the user4 field.

user5=`{〈text〉}`🎚

A generic field, which can be displayed with `\glsuserv` (if indexing and hyperlinks are required) or with `\glsentryuserv`.

user5access=`{〈text〉}`🎚glossaries-accsupp v4.45+

Accessibility text corresponding to the user5 field.

user6=`{〈text〉}`🎚

A generic field, which can be displayed with `\glsuservi` (if indexing and hyperlinks are required) or with `\glsentryuservi`.

user6access=`{〈text〉}`🎚glossaries-accsupp v4.45+

Accessibility text corresponding to the user6 field.

[top]

# Glossary Entry Fields Summary
[link]

These are internal fields that don’t have a corresponding key.

childcount=`{〈number〉}`🎚

Used with the save-child-count resource option to store the entry’s child count.

childlist=`{〈entry-label-list〉}`🎚

Used with the save-child-count resource option to store the entry’s children as an etoolbox internal list.

indexcounter=`{〈target-name〉}`🎚

Used with the indexcounter package option and the save-index-counter resource option. The value is set to the hyperlink target of the first wrglossary location or the first instance for a specific location encap.

loclist=`{〈etoolbox list〉}`🎚glossaries v4.04+

Used by `\printnoidxglossary` to provide the locations. The value is an etoolbox list of individual locations which are obtained from the aux file. This field will also be used by the “unsrt” family of commands if location isn’t set.

recordcount=`{〈number〉}`🎚

Used with the --record-count switch to store the total number of records for the associated entry.

recordcount.〈counter〉=`{〈number〉}`🎚

Used with the --record-count switch to store the total number of records with the location counter 〈counter〉 for the associated entry.

recordcount.〈counter〉.〈location〉=`{〈number〉}`🎚

Used with the --record-count-unit switch to store the total number of records with the location counter 〈counter〉 set to 〈location〉 for the associated entry.

record.〈counter〉=`{〈location〉}`🎚

Used with `\GlsXtrRecordCounter` to store an etoolbox internal list of locations (without encap) corresponding to the given counter.

secondarygroup=`{〈group-label〉}`🎚

Used by bib2gls to store the group label obtained from the secondary sort.

useri 𝍢

Corresponds to user1 key.

userii 𝍢

Corresponds to user2 key.

useriii 𝍢

Corresponds to user3 key.

[top]

# `\Gls`-Like and `\Glstext`-Like Options Summary
[link]

Most (but not all) of these options can be used in the optional argument of all the `\gls`-like, `\glstext`-like and `\glsadd` commands.

counter=`〈counter-name〉`🎚glossaries

The location counter.

format=`〈cs-name〉`🎚glossaries

The control sequence name (without the leading backslash) that should be used to encapsulate the entry location.

hyper=`〈boolean〉`default: true; initial: true 🔘glossaries

Determines whether or not the link text should have a hyperlink (provided hyperlinks are supported).

hyperoutside=`〈boolean〉`default: true; initial: true 🔘glossaries-extra v1.21+

Determines whether the hyperlink should be inside or outside of `\glstextformat`. §5.1.2; 189

innertextformat=`〈csname〉`initial: glsxtrdefaultentrytextfmt 🎚glossaries-extra v1.49+

The name of the control sequence to use for the inner formatting. §5.1.2; 190

local=`〈boolean〉`default: true; initial: false 🔘︎glossaries v3.04+

If true use `\glslocalunset` to unset the first use flag, otherwise use `\glsunset` (only applies to `\gls`-like commands).

noindex=`〈boolean〉`default: true; initial: false 🔘︎glossaries-extra

If true this option will suppress indexing. If you are using bib2gls, you may want to consider using format=glsignore to prevent a location but ensure that the entry is selected. §5.1.2; 192

postunset=`〈value〉`default: global; initial: global 🎚glossaries-extra v1.49+

Determines whether or not to unset the first use flag after the link text. The value may be one of: `global`, `local` or `none` (only applies to `\gls`-like commands). §5.1.2; 190

prefix=`〈link-prefix〉`🎚glossaries-extra v1.31+

The prefix to use for the entry’s hyperlink target. §5.1.2; 195

prereset=`〈value〉`default: local; initial: none 🎚glossaries-extra v1.49+

Determines whether or not to reset the entry before the link text. Allowed values: none (no reset), local (localise the reset) and global. §5.1.2; 190

preunset=`〈value〉`default: local; initial: none 🎚glossaries-extra v1.49+

Determines whether or not to unset the entry before the link text. Allowed values: none (no unset), local (localise the unset) and global. §5.1.2; 191

textformat=`〈csname〉`🎚glossaries-extra v1.30+

The name of the control sequence to use instead of `\glstextformat` to encapsulate the link text. §5.1.2; 190

theHvalue=`〈the-H-value〉`🎚glossaries-extra v1.19+

Set the hyper location to this value instead of obtaining it from `\theH〈counter〉`. §5.1.2; 195

thevalue=`〈location〉`🎚glossaries-extra v1.19+

Set the location to this value instead of obtaining it from the location counter. §5.1.2; 194

types=`{〈glossary list〉}`🎚glossaries

Only available with `\glsaddall`, the value is the list of glossaries to iterate over.

wrgloss=`〈position〉`initial: before 🎚glossaries-extra v1.14+

Determines whether to do the indexing before or after the link text. Allowed values: before and after. §5.1.2; 193

[top]

# Multi-Entry Set Options Summary
[link]

all=`〈option list〉`🎚

Options to pass to the `\gls`-like command for each element. §7.10; 362

category=`〈category-label〉`🎚

The category to assign to the multi-entry set. §7.9.6; 361

encapmain=`〈value〉`initial: glsnumberformat 🎚

The value to pass to the format option for the main entry. §7.9.2; 357

encapothers=`〈value〉`initial: glsnumberformat 🎚

The value to pass to the format option for the “other” elements. §7.9.2; 357

firstprefix=`〈value〉`🎚

The prefix to use on first use of the multi-entry. §7.9.4; 359

firstskipmain=`〈boolean〉`default: true; initial: false 🔘︎

Determines whether or not to skip the main entry on first use. §7.9.5; 359

firstskipothers=`〈boolean〉`default: true; initial: false 🔘︎

Determines whether or not to skip the “other” elements on first use. §7.9.5; 359

firstsuffix=`〈value〉`🎚

The suffix to use on first use of the multi-entry. §7.9.4; 359

hyper=`〈boolean〉`default: true 🔘︎

Indicates whether or not to use hyperlinks, if supported, for all elements. This option is for use in the optional argument of `\mgls` and can be set implicitly with the default behaviour of the * and + modifiers. §7.10; 362

hyper=`〈value〉`initial: individual 🎚

Indicates which elements should have hyperlinks, if supported. This option is a multi-entry setting, see §7.9. §7.9.6; 360

indexmain=`〈value〉`default: true; initial: true 🎚

Indicates if the main element should be indexed, should only be indexed on first use or should not indexed. §7.9.1; 356

indexothers=`〈value〉`default: true; initial: true 🎚

Indicates if the “other” elements should be indexed, should only be indexed on first use or should not indexed. §7.9.1; 357

main=`〈option list〉`🎚

Options to pass to the `\gls`-like command for the main entry. §7.10; 362

mglsopts=`〈option list〉`🎚

The default options to pass to commands like `\mgls`. §7.9.6; 361

mpostlink=`〈value〉`default: true; initial: true 🎚

Indicates whether or not the multi-entry post-link hook should be enabled and, if so, whether it should only be enabled on first or subsequent use. §7.9.3; 358

mpostlinkelement=`〈value〉`initial: last 🎚

Indicates which post-link hook to use if the multi-entry post-link hook has been enabled. §7.9.3; 358

multiunset=`〈value〉`initial: global 🎚

Indicates whether or not the multi-entry first use flag should be unset. §7.10; 363

others=`〈option list〉`🎚

Options to pass to the `\gls`-like command for the “other” elements. §7.10; 362

postlinks=`〈value〉`initial: none 🎚

Indicates which post-link hooks should be enabled. §7.9.3; 357

presetlocal=`〈boolean〉`default: true; initial: false 🔘︎

Indicates whether or not the prereset options should have a local or global effect. §7.10; 363

resetall=`〈boolean〉`default: true; initial: false 🔘︎

Indicates whether or not to reset all elements’ first use flag before using `\gls`. §7.10; 363

resetmain=`〈boolean〉`default: true; initial: false 🔘︎

Indicates whether or not to reset the main entry’s first use flag before using `\gls`. §7.10; 363

resetothers=`〈boolean〉`default: true; initial: false 🔘︎

Indicates whether or not to reset all “other” elements’ first use flag before using `\gls`. §7.10; 363

setup=`〈option list〉`🎚

Multi-entry options that will override any conflicting options already assigned to the multi-entry. §7.10; 362

textformat=`〈value〉`initial: @firstofone 🎚

The control sequence name of the command that should encapsulate the entire content. §7.9.6; 361

unsetall=`〈boolean〉`default: true; initial: false 🔘︎

Indicates whether or not to unset all elements’ first use flag before using `\gls`. §7.10; 363

unsetmain=`〈boolean〉`default: true; initial: false 🔘︎

Indicates whether or not to unset the main entry’s first use flag before using `\gls`. §7.10; 364

unsetothers=`〈boolean〉`default: true; initial: false 🔘︎

Indicates whether or not to unset all “other” elements’ first use flag before using `\gls`. §7.10; 364

usedprefix=`〈value〉`🎚

The prefix to use on subsequent use of the multi-entry. §7.9.4; 359

usedskipmain=`〈boolean〉`default: true; initial: false 🔘︎

Determines whether or not to skip the main entry on subsequent use. §7.9.5; 360

usedskipothers=`〈boolean〉`default: true; initial: false 🔘︎

Determines whether or not to skip the “other” elements on subsequent use. §7.9.5; 360

usedsuffix=`〈value〉`🎚

The suffix to use on subsequent use of the multi-entry. §7.9.4; 359

[top]

# Print [Unsrt|noidx] Glossary Options Summary
[link]

Most (but not all) of these options can be used in the optional argument of all the print glossary commands: `\printglossary`, `\printnoidxglossary`, `\printunsrtglossary` and `\printunsrtinnerglossary`. Some may be used in the optional argument of the printunsrtglossarywrap environment.

entrycounter=`〈boolean〉`default: true; initial: false 🔘︎glossaries v4.08+

If true, enable the entry counter.

flatten=`〈boolean〉`default: true; initial: false 🔘︎glossaries-extra v1.49+

If true, treats all entries as though they have the same hierarchical level (the value of leveloffset). This option is only available for the “unsrt” family of commands and the printunsrtglossarywrap environment. §8.3; 381

groups=`〈boolean〉`default: true; initial: true 🔘glossaries-extra v1.44+

Enables group formation. This option is only available for the “unsrt” family of commands and the printunsrtglossarywrap environment. Note that no groups will be formed when invoking bib2gls with the default --no-group, regardless of this setting. §8.3; 382

label=`〈label〉`🎚glossaries-extra v1.39+

Adds ``\label`{〈label〉}` to the start of the glossary (after the title). Not available with `\printunsrtinnerglossary`. §8.3; 381

leveloffset=`〈offset〉`initial: 0 🎚glossaries-extra v1.44+

Set or increment the hierarchical level offset. If 〈offset〉 starts with `++` then the current offset is incremented by the given amount otherwise the current offset is set to 〈offset〉. For example, an entry with a normal hierarchical level of 1 will be treated as though it has hierarchical level 1+〈offset〉. This option is only available for the “unsrt” family of commands and the printunsrtglossarywrap environment. §8.3; 381

nogroupskip=`〈boolean〉`default: true; initial: false 🔘︎

Suppress the gap implemented by some glossary styles between groups.

nonumberlist=`〈boolean〉`default: true; initial: false 🔘︎

Suppress the location list. Note that nonumberlist=false will have no effect with the save-locations=false resource option as there won’t be any location lists to display.

nopostdot=`〈boolean〉`default: true; initial: false 🔘︎glossaries v4.08+

Suppress the post-description punctuation.

numberedsection=`〈value〉`default: nolabel; initial: false 🎚

Indicates whether or not glossary section headers will be numbered and also if they should automatically be labelled. The numberedsection package option will change the default setting to match. §8.3; 380

postamble=`〈text〉`🎚glossaries-extra v1.49+

Redefines `\glossarypostamble` to 〈text〉. §8.3; 385

preamble=`〈text〉`🎚glossaries-extra v1.49+

Redefines `\glossarypreamble` to 〈text〉. §8.3; 384

prefix=`〈prefix〉`🎚glossaries-extra v1.31+

Redefines `\glolinkprefix` to 〈prefix〉. §8.3; 382

sort=`〈method〉`🎚

Only available with `\printnoidxglossary`, this indicates how the glossary should be ordered. §8.3; 380

style=`〈style-name〉`🎚

Use the 〈style-name〉 glossary style. §8.3; 381

subentrycounter=`〈boolean〉`default: true; initial: false 🔘︎glossaries v4.08+

If true, enable the sub-entry counter.

target=`〈boolean〉`default: true; initial: true 🔘glossaries-extra v1.12+

If true, each entry in the glossary should have a hypertarget created, if supported by the glossary style and if hyperlinks are enabled. §8.3; 384

targetnameprefix=`〈prefix〉`🎚glossaries-extra v1.20+

Inserts 〈prefix〉 at the start of the hypertarget names. §8.3; 383

title=`〈text〉`🎚

Sets the glossary title (overriding the default). §8.3; 380

toctitle=`〈text〉`🎚

Sets the glossary toc title (overriding the default). §8.3; 380

type=`〈glossary-label〉`default: `\glsdefaulttype` 🎚

Identifies the glossary to display.

[top]

# Abbreviation Styles Summary
[link]

Abbreviations defined using `\newabbreviation` will follow the style associated with the entry’s category. If there is no style associated with the entry’s category, the style for the abbreviation category is used (the default is long-short). Note that glossaries-extra redefines `\newacronym` to use `\newabbreviation` with `category=acronym` so any entry defined with `\newacronym` will use the abbreviation style for the acronym category (the default is short-nolong).

footnote-desc alias: short-footnote-desc

116

🗑footnote-em alias: short-em-footnote

🗑footnote-sc alias: short-sc-footnote

🗑footnote-sm alias: short-sm-footnote

footnote alias: short-footnote

115

🗑long-desc-em alias: long-noshort-em-desc

🗑long-desc-sc alias: long-noshort-sc-desc

🗑long-desc-sm alias: long-noshort-sm-desc

long-desc alias: long-noshort-desc

74

long-em-noshort-em-desc-noreg

An abbreviation style like long-em-noshort-em-desc but sets the regular attribute to `false`. 131

long-em-noshort-em-desc

An abbreviation style like long-noshort-desc but formats both the long and short form in an emphasized font (`\emph`). 80

long-em-noshort-em-noreg

An abbreviation style like long-em-noshort-em but sets the regular attribute to `false`. 131

long-em-noshort-em

An abbreviation style like long-noshort but formats both the long and short form in an emphasized font (`\emph`). 79

long-em-short-em-desc

An abbreviation style like long-short-desc but formats both the long and short form in an emphasized font (`\emph`). 87

long-em-short-em

An abbreviation style like long-short but formats both the long and short form in an emphasized font (`\emph`). 86

🗑long-em alias: long-noshort-em

long-hyphen-noshort-desc-noreg

An abbreviation style like long-noshort-desc but checks if the inserted material starts with a hyphen (use with markwords attribute). 107

long-hyphen-noshort-noreg

An abbreviation style like long-hyphen-short-hyphen but doesn’t show the short form on first use. 107

long-hyphen-postshort-hyphen-desc

An abbreviation style like long-hyphen-short-hyphen-desc but places the insert and parenthetical material in the post-link hook. 106

long-hyphen-postshort-hyphen

An abbreviation style like long-hyphen-short-hyphen but places the insert and parenthetical material in the post-link hook. 104

long-hyphen-short-hyphen-desc

An abbreviation style like long-hyphen-short-hyphen but the description must be supplied. 105

long-hyphen-short-hyphen

An abbreviation style like long-short but checks if the inserted material starts with a hyphen (use with markwords or markshortwords attributes). 103

long-noshort-desc-noreg

As long-noshort-desc but it will set the regular attribute to `false`. 131

long-noshort-desc

An abbreviation style that only shows the long form on first use and subsequent use. The short form won’t be showed unless you use a command like `\glsxtrshort`. The description key must be supplied. The full form will only be shown with commands like `\glsxtrfull`. This style sets the regular attribute to `true`. 73, 74

long-noshort-em-desc

An abbreviation style like long-noshort-desc but formats the short form in an emphasized font (`\emph`). 78

long-noshort-em

An abbreviation style like long-noshort but formats the short form in an emphasized font (`\emph`). 78

long-noshort-noreg

As long-noshort but it will set the regular attribute to `false`. 131

long-noshort-sc-desc

An abbreviation style like long-noshort-desc but formats the short form in a small caps font (`\textsc`). The short form should therefore be in lowercase. 76

long-noshort-sc

An abbreviation style like long-noshort but formats the short form in a small caps font (`\textsc`). The short form should therefore be in lowercase. 75

long-noshort-sm-desc

An abbreviation style like long-noshort-desc but formats the short form in a smaller font (`\textsmaller`). The relsize package is must be loaded. 77

long-noshort-sm

An abbreviation style like long-noshort but formats the short form in a smaller font (`\textsmaller`). The relsize package is must be loaded. 76

long-noshort

An abbreviation style that only shows the long form on first use and subsequent use. The short form won’t be showed unless you use a command like `\glsxtrshort`. The full form will only be shown with commands like `\glsxtrfull`. This style sets the regular attribute to `true`. 74, 75

long-only-short-only-desc

An abbreviation style like long-only-short-only but the description must be supplied. 112

long-only-short-only

An abbreviation style that only shows the long form on first use and only shows the short form on subsequent use. 111

long-only-short-sc-only-desc

An abbreviation style like long-only-short-sc-only but the description must be supplied. 113

long-only-short-sc-only

An abbreviation style like long-only-short-only but uses small caps for the short form. 112

long-postshort-sc-user-desc

An abbreviation style like long-postshort-sc-user but the description must be supplied. 92

long-postshort-sc-user

An abbreviation style like long-postshort-user but formats the short form in a small caps font (`\textsc`). The short form should therefore be in lowercase. 91

long-postshort-user-desc

An abbreviation style like long-postshort-user but the description must be supplied. 90

long-postshort-user

An abbreviation style like long-short-user but the parenthetical content is placed in the post-link hook. 90

🗑long-sc alias: long-noshort-sc

long-short-desc

As long-short but the description must be supplied in 〈options〉. 82

long-short-em-desc

An abbreviation style like long-short-desc but formats the short form in an emphasized font (`\emph`). 86

long-short-em

An abbreviation style like long-short but formats the short form in an emphasized font (`\emph`). 85

long-short-sc-desc

An abbreviation style like long-short-desc but formats the short form in a small caps font (`\textsc`). The short form should therefore be in lowercase. 83

long-short-sc

An abbreviation style like long-short but formats the short form in a small caps font (`\textsc`). The short form should therefore be in lowercase. 82

long-short-sm-desc

An abbreviation style like long-short-desc but formats the short form in a smaller font (`\textsmaller`). The relsize package is must be loaded. 84

long-short-sm

An abbreviation style like long-short but formats the short form in a smaller font (`\textsmaller`). The relsize package is must be loaded. 84

long-short-user-desc

An abbreviation style like long-short-user but the description must be supplied. 89

long-short-user

An abbreviation style like long-short but includes the value of the field identified by `\glsxtruserfield` (if set) in the parenthetical content. 88

long-short

An abbreviation style that shows the long form followed by the short form on first use. If the 〈insert〉 argument is used with the `\gls`-like or `\glstext`-like commands, it will be placed after the long form on first use. On subsequent use, only the short form is shown (followed by 〈insert〉, if provided). This style sets the regular attribute to `false` (which means that the `\gls`-like commands won’t use the first/firstplural or text/plural values). 81

🗑long-sm alias: long-noshort-sm

long alias: long-noshort

75

nolong-short-em

An abbreviation style like nolong-short but formats the short form in an emphasized font (`\emph`). 73

nolong-short-noreg

As nolong-short but it will set the regular attribute to `false`. 130

nolong-short-sc

An abbreviation style like nolong-short but formats the short form in a small caps font (`\textsc`). The short form should therefore be in lowercase. 69

nolong-short-sm

An abbreviation style like nolong-short but formats the short form in a smaller font (`\textsmaller`). The relsize package is must be loaded. 71

nolong-short

As short-nolong but the inline full form shows the long form followed by the short form in parentheses. 66

postfootnote-desc alias: short-postfootnote-desc

118

🗑postfootnote-em alias: short-em-postfootnote

🗑postfootnote-sc alias: short-sc-postfootnote

🗑postfootnote-sm alias: short-sm-postfootnote

postfootnote alias: short-postfootnote

117

short-desc alias: short-nolong-desc

66

short-em-desc alias: short-em-nolong-desc

73

short-em-footnote-desc

An abbreviation style like short-footnote-desc but formats the short form in an emphasized font (`\emph`). 127

short-em-footnote

An abbreviation style like short-footnote but formats the short form in an emphasized font (`\emph`). 126

short-em-long-desc

An abbreviation style like short-long-desc but formats the short form in an emphasized font (`\emph`). 97

short-em-long-em-desc

An abbreviation style like short-long-desc but formats both the long and short form in an emphasized font (`\emph`). 99

short-em-long-em

An abbreviation style like short-long but formats both the long and short form in an emphasized font (`\emph`). 98

short-em-long

An abbreviation style like short-long but formats the short form in an emphasized font (`\emph`). 97

short-em-nolong-desc

An abbreviation style like short-nolong-desc but formats the short form in an emphasized font (`\emph`). 72, 73

short-em-nolong

An abbreviation style like short-nolong but formats the short form in an emphasized font (`\emph`). 71, 72

short-em-postfootnote-desc

An abbreviation style like short-postfootnote-desc but formats the short form in an emphasized font (`\emph`). 129

short-em-postfootnote

An abbreviation style like short-postfootnote but formats the short form in an emphasized font (`\emph`). 128

short-em alias: short-em-nolong

72

short-footnote-desc

As short-footnote but the description must be supplied in 〈options〉. 115, 116

short-footnote

An abbreviation style that shows the short form with the long form as a footnote on first use. If the 〈insert〉 argument is used with the `\gls`-like or `\glstext`-like commands, it will be placed after the short form, before the footnote marker, on first use. On subsequent use, only the short form is shown (followed by 〈insert〉, if provided). The inline full form shows the short form followed by the long form in parentheses. This style sets the regular attribute to `false` (which means that the `\gls`-like commands won’t use the first/firstplural or text/plural values). This style also sets the nohyperfirst attribute to `true` to avoid nesting the footnote marker link. If you want hyperlinks on first use, use the short-postfootnote style instead. 114, 115

short-hyphen-long-hyphen-desc

An abbreviation style like short-hyphen-long-hyphen but the description must be supplied. 110

short-hyphen-long-hyphen

An abbreviation style like short-long but checks if the inserted material starts with a hyphen (use with markwords or markshortwords attributes). 108

short-hyphen-postlong-hyphen-desc

An abbreviation style like short-hyphen-long-hyphen-desc but the insert and parenthetical material are placed in the post-link hook. 110

short-hyphen-postlong-hyphen

An abbreviation style like short-hyphen-long-hyphen but the insert and parenthetical material are placed in the post-link hook. 109

short-long-desc

As short-long but the description must be supplied in 〈options〉. 94

short-long-user-desc

An abbreviation style like short-long-user but the description must be supplied. 100

short-long-user

An abbreviation style like short-long but includes the value of the field identified by `\glsxtruserfield` (if set) in the parenthetical content. 100

short-long

An abbreviation style that shows the short form followed by the long form on first use. If the 〈insert〉 argument is used with the `\gls`-like or `\glstext`-like commands, it will be placed after the short form on first use. On subsequent use, only the short form is shown (followed by 〈insert〉, if provided). This style sets the regular attribute to `false` (which means that the `\gls`-like commands won’t use the first/firstplural or text/plural values). 93

short-nolong-desc-noreg

As short-nolong-desc but it will set the regular attribute to `false`. 130

short-nolong-desc

As short-nolong but the description must be supplied in 〈options〉. 66, 66

short-nolong-noreg

As short-nolong but it will set the regular attribute to `false`. 130

short-nolong

An abbreviation style that only shows the short form on first use and subsequent use. The long form won’t be showed unless you use a command like `\glsxtrlong`. The full form will only be shown with commands like `\glsxtrfull`. This style sets the regular attribute to `true`. 65, 65

short-postfootnote-desc

As short-postfootnote but the description must be supplied in 〈options〉. 117, 118

short-postfootnote

Similar to short-footnote but the footnote is placed in the post-link hook. 116, 117

short-postlong-user-desc

An abbreviation style like short-postlong-user but the description must be supplied. 102

short-postlong-user

An abbreviation style like short-long but includes the value of the field identified by `\glsxtruserfield` (if set) in the parenthetical content, which is placed in the post-link hook. 101

short-sc-desc alias: short-sc-nolong-desc

69

short-sc-footnote-desc

An abbreviation style like short-footnote-desc but formats the short form in a small caps font (`\textsc`). The short form should therefore be in lowercase. 119

short-sc-footnote

An abbreviation style like short-footnote but formats the short form in a small caps font (`\textsc`). The short form should therefore be in lowercase. 118

short-sc-long-desc

An abbreviation style like short-long-desc but formats the short form in a small caps font (`\textsc`). The short form should therefore be in lowercase. 95

short-sc-long

An abbreviation style like short-long but formats the short form in a small caps font (`\textsc`). The short form should therefore be in lowercase. 94

short-sc-nolong-desc

An abbreviation style like short-nolong-desc but formats the short form in a small caps font (`\textsc`). The short form should therefore be in lowercase. 68, 69

short-sc-nolong

An abbreviation style like short-nolong but formats the short form in a small caps font (`\textsc`). The short form should therefore be in lowercase. 67, 68

short-sc-postfootnote-desc

An abbreviation style like short-postfootnote-desc but formats the short form in a small caps font (`\textsc`). The short form should therefore be in lowercase. 121

short-sc-postfootnote

An abbreviation style like short-postfootnote but formats the short form in a small caps font (`\textsc`). The short form should therefore be in lowercase. 120

short-sc alias: short-sc-nolong

68

short-sm-desc alias: short-sm-nolong-desc

71

short-sm-footnote-desc

An abbreviation style like short-footnote-desc but formats the short form in a smaller font (`\textsmaller`). The relsize package is must be loaded. 123

short-sm-footnote

An abbreviation style like short-footnote but formats the short form in a smaller font (`\textsmaller`). The relsize package is must be loaded. 122

short-sm-long-desc

An abbreviation style like short-long-desc but formats the short form in a smaller font (`\textsmaller`). The relsize package is must be loaded. 96

short-sm-long

An abbreviation style like short-long but formats the short form in a smaller font (`\textsmaller`). The relsize package is must be loaded. 96

short-sm-nolong-desc

An abbreviation style like short-nolong-desc but formats the short form in a smaller font (`\textsmaller`). The relsize package is must be loaded. 70, 71

short-sm-nolong

An abbreviation style like short-nolong but formats the short form in a smaller font (`\textsmaller`). The relsize package is must be loaded. 69, 70

short-sm-postfootnote-desc

An abbreviation style like short-postfootnote-desc but formats the short form in a smaller font (`\textsmaller`). The relsize package is must be loaded. 125

short-sm-postfootnote

An abbreviation style like short-postfootnote but formats the short form in a smaller font (`\textsmaller`). The relsize package is must be loaded. 124

short-sm alias: short-sm-nolong

70

short alias: short-nolong

65

[top]

# Glossary Styles Summary
[link]

The default style may be set with `\setglossarystyle` or use:

    \usepackage[stylemods=〈name〉,style=〈style-name〉]{glossaries-extra}

where the style is provided by package glossary-〈name〉. The default style can be overridden for individual glossaries with the style option. For a summary of all available styles, see Gallery: Predefined Styles.

abbr-long-short glossary-longextra v1.49+

This style displays the glossary in a table for (either longtable or tabular) with two columns: the long form and the short form. §8.7.2.6; 465

abbr-short-long glossary-longextra v1.49+

This style displays the glossary in a table for (either longtable or tabular) with two columns: the short form and the long form. §8.7.2.6; 464

altlist glossary-list

As list but starts the description on a new line.

alttree glossary-tree

Like tree but the width of the widest name must be supplied (using a command like `\glssetwidest`).

alttreegroup glossary-tree

As alttree but has headers at the start of each group.

bookindex glossary-bookindex

This style is designed for indexes. Symbols and descriptions are not shown. Since descriptions aren’t shown, there’s no post-description hook. §8.7.1

index glossary-tree

A hierarchical style that supports up to level 2, similar to normal indexes, but symbols and descriptions are shown.

indexgroup glossary-tree

As index but has headers at the start of each group.

inline glossary-inline

A compact style with all entries listed in the same paragraph and no groups, locations or symbols.

list glossary-list

This style uses the description environment and places the entry name in the optional argument of `\item`. Symbols and sub-entry names are not shown.

listdotted glossary-list

A list-like style that has a dotted leader between the name and description. The location list isn’t shown.

listgroup glossary-list

As list but has headers at the start of each group.

listhypergroup glossary-list

As listgroup but has a row at the start with hyperlinks to each group.

long-booktabs glossary-longbooktabs v4.21+

This style displays the glossary using longtable and horizontal rules from the booktabs package.

long-custom1-name glossary-longextra v1.50+

This style displays the glossary in a table for (either longtable or tabular) with two columns: the custom 1 field and the name. §8.7.2.7; 470

long-custom2-name glossary-longextra v1.50+

This style displays the glossary in a table for (either longtable or tabular) with three columns: the custom 1 field, custom 2 field, and the name. §8.7.2.7; 470

long-custom3-name glossary-longextra v1.50+

This style displays the glossary in a table for (either longtable or tabular) with four columns: the custom 1 field, custom 2 field, custom 3 field, and the name. §8.7.2.7; 470

long-desc-custom1-name glossary-longextra v1.50+

This style displays the glossary in a table for (either longtable or tabular) with three columns: the description, the custom 1 field and the name. §8.7.2.7; 473

long-desc-custom2-name glossary-longextra v1.50+

This style displays the glossary in a table for (either longtable or tabular) with four columns: the description, the custom 1 field, the custom 2 field and the name. §8.7.2.7; 473

long-desc-custom3-name glossary-longextra v1.50+

This style displays the glossary in a table for (either longtable or tabular) with five columns: the description, the custom 1 field, the custom 2 field, the custom 3 field and the name. §8.7.2.7; 474

long-desc-name glossary-longextra v1.37+

This style displays the glossary in a table for (either longtable or tabular) with two columns: the description and the name. §8.7.2.1; 453

long-desc-sym-name glossary-longextra v1.37+

This style displays the glossary in a table for (either longtable or tabular) with three columns: the description, symbol and name. §8.7.2.2; 456

long-desc-sym glossary-longextra v1.49+

This style displays the glossary in a table for (either longtable or tabular) with two columns: the description and the symbol. §8.7.2.5; 462

long-loc-desc-name glossary-longextra v1.37+

This style displays the glossary in a table for (either longtable or tabular) with three columns: the location list, description and name. §8.7.2.3; 457

long-loc-desc-sym-name glossary-longextra v1.37+

This style displays the glossary in a table for (either longtable or tabular) with four columns: the location list, description, symbol and name. §8.7.2.4; 459

long-loc-sym-desc-name glossary-longextra v1.37+

This style displays the glossary in a table for (either longtable or tabular) with four columns: the location list, symbol, description and name. §8.7.2.4; 459

long-name-custom1 glossary-longextra v1.50+

This style displays the glossary in a table for (either longtable or tabular) with two columns: the name and the custom 1 field. §8.7.2.7; 470

long-name-custom1-desc glossary-longextra v1.50+

This style displays the glossary in a table for (either longtable or tabular) with three columns: the name, the custom 1 field and the description. §8.7.2.7; 473

long-name-custom2 glossary-longextra v1.50+

This style displays the glossary in a table for (either longtable or tabular) with three columns: the name, custom 1 field and custom 2 field. §8.7.2.7; 470

long-name-custom2-desc glossary-longextra v1.50+

This style displays the glossary in a table for (either longtable or tabular) with four columns: the name, the custom 1 field, the custom 2 field and the description. §8.7.2.7; 473

long-name-custom3 glossary-longextra v1.50+

This style displays the glossary in a table for (either longtable or tabular) with four columns: the name, custom 1 field, custom 2 field and custom 3 field. §8.7.2.7; 470

long-name-custom3-desc glossary-longextra v1.50+

This style displays the glossary in a table for (either longtable or tabular) with five columns: the name, the custom 1 field, the custom 2 field, the custom 3 field and the description. §8.7.2.7; 473

long-name-desc-loc glossary-longextra v1.37+

This style displays the glossary in a table for (either longtable or tabular) with three columns: the name, description and location list. §8.7.2.3; 456

long-name-desc-sym-loc glossary-longextra v1.37+

This style displays the glossary in a table for (either longtable or tabular) with four columns: the name, description, symbol and location list. §8.7.2.4; 458

long-name-desc-sym glossary-longextra v1.37+

This style displays the glossary in a table for (either longtable or tabular) with three columns: the name, description and symbol. §8.7.2.2; 454

long-name-desc glossary-longextra v1.37+

This style displays the glossary in a table for (either longtable or tabular) with two columns: the name and the description. §8.7.2.1; 453

long-name-sym-desc-loc glossary-longextra v1.37+

This style displays the glossary in a table for (either longtable or tabular) with four columns: the name, symbol, description and location list. §8.7.2.4; 458

long-name-sym-desc glossary-longextra v1.37+

This style displays the glossary in a table for (either longtable or tabular) with three columns: the name, symbol and description. §8.7.2.2; 455

long-sym-desc-name glossary-longextra v1.37+

This style displays the glossary in a table for (either longtable or tabular) with three columns: the symbol, description and name. §8.7.2.2; 455

long-sym-desc glossary-longextra v1.49+

This style displays the glossary in a table for (either longtable or tabular) with two columns: the symbol and the description. §8.7.2.5; 461

long glossary-long

This style uses the longtable environment (provided by the longtable package). Symbols and sub-entry names are not shown.

longheader glossary-long

This style uses the longtable environment (provided by the longtable package) with a header row. Symbols and sub-entry names are not shown.

longragged glossary-longragged

This style displays the glossary using longtable with ragged right paragraph formatting for the description column.

mcolindex glossary-mcols

As index but puts the content inside a multicols environment.

mcolindexgroup glossary-mcols

As mcolindex but has headers at the start of each group.

mcoltree glossary-mcols

As tree but puts the content inside a multicols environment.

super glossary-super

This style displays the glossary using supertabular.

superragged glossary-superragged

This style displays the glossary using supertabular with ragged right paragraph formatting for the description column.

table glossary-table

This style is specific to `\printunsrttable`. §8.7.4; 481

topic glossary-topic

This style is designed for hierarchical glossaries where the top-level entry represents a topic. §8.7.3; 474

topicmcols glossary-topic

Similar to topic but the sub-entries are placed in a multicols environment. §8.7.3; 474

tree glossary-tree

A hierarchical style that supports unlimited levels (although a deep hierarchy may not fit the available line width) with that shows symbols and descriptions.

treegroup glossary-tree

As tree but has headers at the start of each group.

treehypergroup glossary-tree

As treegroup but has a row at the start with hyperlinks to each group.

treenoname glossary-tree

Like tree but the child entries don’t have their name shown.

[top]

# Command Summary
[link]

[top]

## @
[link]

`\@glsxtr@doglossary` glossaries-extra v1.08+

Internal command used within the construction of the glossary code by the “unsrt” family of commands. Should not be used or modified but `\printunsrtglossarypredoglossary` can be defined to show the definition of this command for debugging purposes. §8.4.3; 402

`\@glsxtr@multientry``{〈options〉}{〈multi-label〉}{〈main-label〉}{〈list〉}`glossaries-extra v1.48+

Information in the aux about a multi-label defined in the previous LaTeX run. §7.13; 373

`\@glsxtr@org@@starttoc``{〈toc〉}`

Set to the definition of `\@starttoc` when glossaries-extra loads. §5.3.3; 226

`\@glsxtr@org@markboth``{〈left text〉}{〈right text〉}`

Set to the definition of `\markboth` when glossaries-extra loads. §5.3.3; 226

`\@glsxtr@org@markright``{〈text〉}`

Set to the definition of `\markright` when glossaries-extra loads. §5.3.3; 226

`\@glsxtrinmark` glossaries-extra v1.07+

Redefines `\glsxtrifinmark` to do its first argument (〈true〉). §5.3.3; 226

`\@glsxtrnotinmark` glossaries-extra v1.07+

Redefines `\glsxtrifinmark` to do its first argument (〈true〉). §5.3.3; 226

[top]

## A
[link]

`\AB``{〈options〉}{〈entry-label〉}{〈inset〉}`modifiers: * + 〈alt-mod〉

A synonym for `\cGLS` defined by the shortcuts=abbreviations package option. §4.3.2; Table 4.1

`\Ab``{〈options〉}{〈entry-label〉}{〈inset〉}`modifiers: * + 〈alt-mod〉

A synonym for `\cGls` defined by the shortcuts=abbreviations package option. §4.3.2; Table 4.1

`\ab``{〈options〉}{〈entry-label〉}{〈inset〉}`modifiers: * + 〈alt-mod〉

A synonym for `\cgls` defined by the shortcuts=abbreviations package option. §4.3.2; Table 4.1

`\abbreviationsname` initial: Abbreviations; glossaries-extra

(language-sensitive)

Expands to the title of the `abbreviations` glossary. The default is “Abbreviations” or `\acronymname` if babel has been detected. §2.1; 9

`\abbrvpluralsuffix` initial: `\glsxtrabbrvpluralsuffix`

Style-sensitive abbreviation suffix. This is the command that’s actually used in the value of the shortplural key when an entry is defined with `\newabbreviation` (unless suppressed with the noshortplural attribute). This command is redefined by the abbreviation styles to `\glsxtrabbrvpluralsuffix` or the style’s custom suffix command (such as `\glsxtrscsuffix`). 171

`\ABP``{〈options〉}{〈entry-label〉}{〈inset〉}`modifiers: * + 〈alt-mod〉

A synonym for `\cGLSpl` defined by the shortcuts=abbreviations package option. §4.3.2; Table 4.1

`\Abp``{〈options〉}{〈entry-label〉}{〈inset〉}`modifiers: * + 〈alt-mod〉

A synonym for `\cGlspl` defined by the shortcuts=abbreviations package option. §4.3.2; Table 4.1

`\abp``{〈options〉}{〈entry-label〉}{〈inset〉}`modifiers: * + 〈alt-mod〉

A synonym for `\cglspl` defined by the shortcuts=abbreviations package option. §4.3.2; Table 4.1

`\AC``{〈options〉}{〈entry-label〉}{〈inset〉}`modifiers: * + 〈alt-mod〉

A synonym for `\cGLS` defined by the shortcuts=ac package option. §4.3.2; Table 4.1

`\Ac``{〈options〉}{〈entry-label〉}{〈inset〉}`modifiers: * + 〈alt-mod〉

A synonym for `\cGls` or `\Gls` defined by the shortcuts=ac or shortcuts=acronyms package option, respectively. §4.3.2; Table 4.1

`\ac``{〈options〉}{〈entry-label〉}{〈inset〉}`modifiers: * + 〈alt-mod〉

A synonym for `\cgls` or `\gls` defined by the shortcuts=ac or shortcuts=acronyms package option, respectively. §4.3.2; Table 4.1

`\ACF``{〈options〉}{〈entry-label〉}{〈inset〉}`modifiers: * + 〈alt-mod〉

A synonym for `\GLSxtrfull` defined by the shortcuts=ac package option. §4.3.2; Table 4.1

`\Acf``{〈options〉}{〈entry-label〉}{〈inset〉}`modifiers: * + 〈alt-mod〉

A synonym for `\Glsxtrfull` or `\Acrfull` defined by the shortcuts=ac or shortcuts=acronyms package option, respectively. §4.3.2; Table 4.1

`\acf``{〈options〉}{〈entry-label〉}{〈inset〉}`modifiers: * + 〈alt-mod〉

A synonym for `\glsxtrfull` or `\acrfull` defined by the shortcuts=ac or shortcuts=acronyms package option, respectively. §4.3.2; Table 4.1

`\ACFP``{〈options〉}{〈entry-label〉}{〈inset〉}`modifiers: * + 〈alt-mod〉

A synonym for `\GLSxtrfullpl` defined by the shortcuts=ac package option. §4.3.2; Table 4.1

`\Acfp``{〈options〉}{〈entry-label〉}{〈inset〉}`modifiers: * + 〈alt-mod〉

A synonym for `\Glsxtrfullpl` or `\Acrfullpl` defined by the shortcuts=ac or shortcuts=acronyms package option, respectively. §4.3.2; Table 4.1

`\acfp``{〈options〉}{〈entry-label〉}{〈inset〉}`modifiers: * + 〈alt-mod〉

A synonym for `\glsxtrfullpl` or `\acrfullpl` defined by the shortcuts=ac or shortcuts=acronyms package option, respectively. §4.3.2; Table 4.1

`\ACL``{〈options〉}{〈entry-label〉}{〈inset〉}`modifiers: * + 〈alt-mod〉

A synonym for `\GLSxtrlong` defined by the shortcuts=ac package option. §4.3.2; Table 4.1

`\Acl``{〈options〉}{〈entry-label〉}{〈inset〉}`modifiers: * + 〈alt-mod〉

A synonym for `\Glsxtrlong` or `\Acrlong` defined by the shortcuts=ac or shortcuts=acronyms package option, respectively. §4.3.2; Table 4.1

`\acl``{〈options〉}{〈entry-label〉}{〈inset〉}`modifiers: * + 〈alt-mod〉

A synonym for `\glsxtrlong` or `\acrlong` defined by the shortcuts=ac or shortcuts=acronyms package option, respectively. §4.3.2; Table 4.1

`\ACLP``{〈options〉}{〈entry-label〉}{〈inset〉}`modifiers: * + 〈alt-mod〉

A synonym for `\GLSxtrlongpl` defined by the shortcuts=ac package option. §4.3.2; Table 4.1

`\Aclp``{〈options〉}{〈entry-label〉}{〈inset〉}`modifiers: * + 〈alt-mod〉

A synonym for `\Glsxtrlongpl` or `\Acrlongpl` defined by the shortcuts=ac or shortcuts=acronyms package option, respectively. §4.3.2; Table 4.1

`\aclp``{〈options〉}{〈entry-label〉}{〈inset〉}`modifiers: * + 〈alt-mod〉

A synonym for `\glsxtrlongpl` or `\acrlongpl` defined by the shortcuts=ac or shortcuts=acronyms package option, respectively. §4.3.2; Table 4.1

`\ACP``{〈options〉}{〈entry-label〉}{〈inset〉}`modifiers: * + 〈alt-mod〉

A synonym for `\cGLSpl` defined by the shortcuts=ac package option. §4.3.2; Table 4.1

`\Acp``{〈options〉}{〈entry-label〉}{〈inset〉}`modifiers: * + 〈alt-mod〉

A synonym for `\cGlspl` or `\glspl` defined by the shortcuts=ac or shortcuts=acronyms package option, respectively. §4.3.2; Table 4.1

`\acp``{〈options〉}{〈entry-label〉}{〈inset〉}`modifiers: * + 〈alt-mod〉

A synonym for `\cglspl` or `\glspl` defined by the shortcuts=ac or shortcuts=acronyms package option, respectively. §4.3.2; Table 4.1

🛇`\Acrfull``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉

As `\acrfull` but sentence case.

🛇`\acrfull``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉

Displays the full form of an acronym. Only for use with the base glossaries package’s acronym mechanism. This command is not compatible with `\newabbreviation`.

🛇`\Acrfullpl``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉

As `\acrfullpl` but sentence case.

🛇`\acrfullpl``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉

Displays the plural full form of an acronym. Only for use with the base glossaries package’s acronym mechanism. This command is not compatible with `\newabbreviation`.

🛇`\Acrlong``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉

As `\acrlong` but sentence case.

🛇`\acrlong``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉

Displays the long form of an acronym. Only for use with the base glossaries package’s acronym mechanism. This command is not compatible with `\newabbreviation`.

🛇`\Acrlongpl``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉

As `\acrlong` but sentence case.

🛇`\acrlongpl``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉

Displays the plural long form of an acronym. Only for use with the base glossaries package’s acronym mechanism. This command is not compatible with `\newabbreviation`.

`\acronymfont``{〈text〉}`glossaries v1.0+

Used to encapsulate the acronym short form on subsequent use by the base glossaries package. This is redefined by glossaries-extra to use `\glsabbrvfont`.

`\acronymname` initial: Acronyms; glossaries

(language-sensitive)

Expands to the title of the `acronym` glossary.

`\acronymtype` initial: `\glsdefaulttype`; glossaries

Expands to the label of the default acronym glossary. The acronym or acronyms package option will redefine this to `acronym`. The abbreviations package option will redefine this to `\glsxtrabbrvtype` if acronyms/acronym isn’t used. §4.1.4; 44

🛇`\acrpluralsuffix`

Used for the plural suffixes for the base package’s acronym mechanism. Not used with glossaries-extra’s abbreviations, which use `\glsxtrabbrvpluralsuffix`, `\abbrvpluralsuffix` and commands provided for use with particular abbreviation styles. This command should not be used with glossaries-extra.

🛇`\Acrshort``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉

As `\acrshort` but sentence case.

🛇`\acrshort``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉

Displays the short form of an acronym. Only for use with the base glossaries package’s acronym mechanism. This command is not compatible with `\newabbreviation`.

🛇`\Acrshortpl``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉

As `\acrshort` but sentence case.

🛇`\acrshortpl``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉

Displays the plural short form of an acronym. Only for use with the base glossaries package’s acronym mechanism. This command is not compatible with `\newabbreviation`.

`\ACS``{〈options〉}{〈entry-label〉}{〈inset〉}`modifiers: * + 〈alt-mod〉

A synonym for `\GLSxtrshort` defined by the shortcuts=ac package option. §4.3.2; Table 4.1

`\Acs``{〈options〉}{〈entry-label〉}{〈inset〉}`modifiers: * + 〈alt-mod〉

A synonym for `\Glsxtrshort` or `\Acrshort` defined by the shortcuts=ac or shortcuts=acronyms package option, respectively. §4.3.2; Table 4.1

`\acs``{〈options〉}{〈entry-label〉}{〈inset〉}`modifiers: * + 〈alt-mod〉

A synonym for `\glsxtrshort` or `\acrshort` defined by the shortcuts=ac or shortcuts=acronyms package option, respectively. §4.3.2; Table 4.1

`\ACSP``{〈options〉}{〈entry-label〉}{〈inset〉}`modifiers: * + 〈alt-mod〉

A synonym for `\GLSxtrshortpl` defined by the shortcuts=ac package option. §4.3.2; Table 4.1

`\Acsp``{〈options〉}{〈entry-label〉}{〈inset〉}`modifiers: * + 〈alt-mod〉

A synonym for `\Glsxtrshortpl` or `\Acrshortpl` defined by the shortcuts=ac or shortcuts=acronyms package option, respectively. §4.3.2; Table 4.1

`\acsp``{〈options〉}{〈entry-label〉}{〈inset〉}`modifiers: * + 〈alt-mod〉

A synonym for `\glsxtrshortpl` or `\acrshortpl` defined by the shortcuts=ac or shortcuts=acronyms package option, respectively. §4.3.2; Table 4.1

`\AF``{〈options〉}{〈entry-label〉}{〈inset〉}`modifiers: * + 〈alt-mod〉

A synonym for `\Glsxtrfull` defined by the shortcuts=abbreviations package option. §4.3.2; Table 4.1

`\Af``{〈options〉}{〈entry-label〉}{〈inset〉}`modifiers: * + 〈alt-mod〉

A synonym for `\Glsxtrfull` defined by the shortcuts=abbreviations package option. §4.3.2; Table 4.1

`\af``{〈options〉}{〈entry-label〉}{〈inset〉}`modifiers: * + 〈alt-mod〉

A synonym for `\glsxtrfull` defined by the shortcuts=abbreviations package option. §4.3.2; Table 4.1

`\AFP``{〈options〉}{〈entry-label〉}{〈inset〉}`modifiers: * + 〈alt-mod〉

A synonym for `\GLSxtrfullpl` defined by the shortcuts=abbreviations package option. §4.3.2; Table 4.1

`\Afp``{〈options〉}{〈entry-label〉}{〈inset〉}`modifiers: * + 〈alt-mod〉

A synonym for `\Glsxtrfullpl` defined by the shortcuts=abbreviations package option. §4.3.2; Table 4.1

`\afp``{〈options〉}{〈entry-label〉}{〈inset〉}`modifiers: * + 〈alt-mod〉

A synonym for `\glsxtrfullpl` defined by the shortcuts=abbreviations package option. §4.3.2; Table 4.1

`\AL``{〈options〉}{〈entry-label〉}{〈inset〉}`modifiers: * + 〈alt-mod〉

A synonym for `\GLSxtrlong` defined by the shortcuts=abbreviations package option. §4.3.2; Table 4.1

`\Al``{〈options〉}{〈entry-label〉}{〈inset〉}`modifiers: * + 〈alt-mod〉

A synonym for `\Glsxtrlong` defined by the shortcuts=abbreviations package option. §4.3.2; Table 4.1

`\al``{〈options〉}{〈entry-label〉}{〈inset〉}`modifiers: * + 〈alt-mod〉

A synonym for `\glsxtrlong` defined by the shortcuts=abbreviations package option. §4.3.2; Table 4.1

`\ALP``{〈options〉}{〈entry-label〉}{〈inset〉}`modifiers: * + 〈alt-mod〉

A synonym for `\GLSxtrlongpl` defined by the shortcuts=abbreviations package option. §4.3.2; Table 4.1

`\Alp``{〈options〉}{〈entry-label〉}{〈inset〉}`modifiers: * + 〈alt-mod〉

A synonym for `\Glsxtrlongpl` defined by the shortcuts=abbreviations package option. §4.3.2; Table 4.1

`\alp``{〈options〉}{〈entry-label〉}{〈inset〉}`modifiers: * + 〈alt-mod〉

A synonym for `\glsxtrlongpl` defined by the shortcuts=abbreviations package option. §4.3.2; Table 4.1

`\Alpha` glossaries-extra-bib2gls v1.27+

Defined with `\providecommand`, this just does `\mathrm{A}`. §11.5.8; 596

`\alsoname` initial: see also

(language-sensitive)

Used as a cross-reference tag (provided by language packages, such as babel).

`\andname` initial: `\&`

Used by `\glsseelastsep` (provided by glossaries if not already defined).

`\apptoglossarypreamble``[〈type〉]{〈text〉}`glossaries-extra v1.12+

Appends (locally) 〈text〉 to the preamble for the glossary identified by 〈type〉. If 〈type〉 is omitted, `\glsdefaulttype` is assumed. §8.2; 380

`\AS``{〈options〉}{〈entry-label〉}{〈inset〉}`modifiers: * + 〈alt-mod〉

A synonym for `\GLSxtrshort` defined by the shortcuts=abbreviations package option. §4.3.2; Table 4.1

`\As``{〈options〉}{〈entry-label〉}{〈inset〉}`modifiers: * + 〈alt-mod〉

A synonym for `\Glsxtrshort` defined by the shortcuts=abbreviations package option. §4.3.2; Table 4.1

`\as``{〈options〉}{〈entry-label〉}{〈inset〉}`modifiers: * + 〈alt-mod〉

A synonym for `\glsxtrshort` defined by the shortcuts=abbreviations package option. §4.3.2; Table 4.1

`\ASP``{〈options〉}{〈entry-label〉}{〈inset〉}`modifiers: * + 〈alt-mod〉

A synonym for `\GLSxtrshortpl` defined by the shortcuts=abbreviations package option. §4.3.2; Table 4.1

`\Asp``{〈options〉}{〈entry-label〉}{〈inset〉}`modifiers: * + 〈alt-mod〉

A synonym for `\Glsxtrshortpl` defined by the shortcuts=abbreviations package option. §4.3.2; Table 4.1

`\asp``{〈options〉}{〈entry-label〉}{〈inset〉}`modifiers: * + 〈alt-mod〉

A synonym for `\glsxtrshortpl` defined by the shortcuts=abbreviations package option. §4.3.2; Table 4.1

[top]

## B
[link]

`\Beta` glossaries-extra-bib2gls v1.27+

Defined with `\providecommand`, this just does `\mathrm{B}`. §11.5.8; 596

`\bibgls@input``{〈filename〉}`glossaries-extra v1.49+

Indicates that the bib2gls records are in the file identified in the argument 〈filename〉, which corresponds to the file 〈basename〉.aux identified in the option bibglsaux=〈basename〉.

`\bibglsdualprefixlabel``{〈label-prefix〉}`bib2gls v1.8+

Hook written to the glstex file identifying the dual label prefix. §11.5.7; 594

`\bibglsnewdualindexsymbolsecondary``{〈label〉}{〈options〉}{〈name〉}{〈description〉}`bib2gls

Defines secondary terms provided with `@dualindexsymbol`.

`\bibglsprimaryprefixlabel``{〈label-prefix〉}`bib2gls v1.8+

Hook written to the glstex file identifying the primary label prefix. §11.5.7; 594

`\bibglssetlastgrouptitle``{〈cs〉}{〈specs〉}`bib2gls

Sets the last group title.

`\bibglssetlocationrecordcount``{〈entry-label〉}{〈counter〉}{〈location〉}{〈value〉}`bib2gls v1.1+

Sets the location record count for the given entry. §11.4.2; 555

`\bibglssetrecordcount``{〈entry-label〉}{〈counter〉}{〈value〉}`bib2gls v1.1+

Sets the 〈counter〉 record count for the given entry. §11.4.2; 555

`\bibglssettotalrecordcount``{〈entry-label〉}{〈value〉}`bib2gls v1.1+

Sets the total record count for the given entry. §11.4.2; 554

`\bibglstertiaryprefixlabel``{〈label-prefix〉}`bib2gls v1.8+

Hook written to the glstex file identifying the tertiary label prefix. §11.5.7; 594

[top]

## C
[link]

`\capitalisefmtwords``{〈text〉}`mfirstuc v2.03+

Converts 〈text〉 to title case, where 〈text〉 may contain text-block commands. The starred form only permits a text-block command at the start of the argument. Limitations apply, see the mfirstuc documentation for further details, either:

    〉_texdoc mfirstuc

or visit ctan.org/pkg/mfirstuc.

`\capitalisewords``{〈text〉}`mfirstuc v1.06+

Converts 〈text〉 to title case. Limitations apply, see the mfirstuc documentation for further details, either:

    〉_texdoc mfirstuc

or visit ctan.org/pkg/mfirstuc.

`\CAT`

Defined by `\GlsXtrResourceInitEscSequences` to expand to detokenized `\CAT`. §11.5.2; 559

`\cGLS``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉

Like `\GLS` but hooks into the entry counting mechanism. §6.1; 313

`\cGls``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries v4.14+

Like `\Gls` but hooks into the entry counting mechanism. §6.1; 312

`\cgls``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries v4.14+

Like `\gls` but hooks into the entry counting mechanism. §6.1; 311

`\cGLSformat``{〈entry-label〉}{〈insert〉}`

Format used by `\cGLS` if the entry was not used more than the given trigger value on the previous run. §6.1; 313

`\cGlsformat``{〈entry-label〉}{〈insert〉}`glossaries v4.14+

Format used by `\cGls` if the entry was not used more than the given trigger value on the previous run. §6.1; 312

`\cglsformat``{〈entry-label〉}{〈insert〉}`glossaries v4.14+

Format used by `\cgls` if the entry was not used more than the given trigger value on the previous run. §6.1; 312

`\cGLSpl``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉

Like `\GLSpl` but hooks into the entry counting mechanism. §6.1; 313

`\cGlspl``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries v4.14+

Like `\Glspl` but hooks into the entry counting mechanism. §6.1; 312

`\cglspl``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries v4.14+

Like `\glspl` but hooks into the entry counting mechanism. §6.1; 312

`\cGLSplformat``{〈entry-label〉}{〈insert〉}`

Format used by `\cGLSpl` if the entry was not used more than the given trigger value on the previous run. §6.1; 313

`\cGlsplformat``{〈entry-label〉}{〈insert〉}`glossaries v4.14+

Format used by `\cGlspl` if the entry was not used more than the given trigger value on the previous run. §6.1; 313

`\cglsplformat``{〈entry-label〉}{〈insert〉}`glossaries v4.14+

Format used by `\cglspl` if the entry was not used more than the given trigger value on the previous run. §6.1; 312

`\Chi` glossaries-extra-bib2gls v1.27+

Defined with `\providecommand`, this just does `\mathrm{X}`. §11.5.8; 596

`\CS`

Defined by `\GlsXtrResourceInitEscSequences` to expand to detokenized `\CS`. §11.5.2; 559

`\cs``{〈csname〉}`

Defined by `\GlsXtrResourceInitEscSequences` to expand to detokenized `\csname`. §11.5.2; 559

`\csGlsXtrLetField``{〈entry-label〉}{〈field-label〉}{〈cs-name〉}`glossaries-extra v1.12+

Like `\GlsXtrLetField` but internally uses (etoolbox’s) `\csletcs` instead of `\cslet`. §3.5; 40

`\currentglossary` glossaries v3.0+

Defined by the `\print…glossary` commands to the current glossary label.

`\CustomAbbreviationFields`

Expands to the default field definitions for the entry. §4.5.3.1; 165

[top]

## D
[link]

`\defglsentryfmt``[〈type〉]{〈display〉}`glossaries

Overrides the default display format (`\glsentryfmt`) for the given glossary. If 〈type〉 is omitted, `\glsdefaulttype` is assumed. This will make the `\gls`-like commands do 〈display〉 for any entries that have the type field set to the given 〈type〉. If you want to support any abbreviation styles, you need to include `\glssetabbrvfmt` in 〈display〉. Non-regular abbreviation styles are designed to work with `\glsxtrgenabbrvfmt`.

`\delimN` glossaries

Used as a separator between locations.

`\delimR` glossaries

Used between the start and end of a location range.

`\descriptionname` initial: Description; glossaries

(language-sensitive)

Expands to the title of the description column for headed tabular-like styles.

`\dGLS``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries-extra-bib2gls v1.37+

As `\dgls` but uses `\GLS`. §11.5.7; 588

`\dGls``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries-extra-bib2gls v1.37+

As `\dgls` but uses `\Gls`. §11.5.7; 588

`\dgls``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries-extra-bib2gls v1.37+

Does ``\gls`[〈options〉]{〈prefix〉{entry-label}}[〈insert〉]` for the first prefix in the prefix list that matches a defined entry. §11.5.7; 588

`\dGlsdisp``[〈options〉]{〈entry-label〉}{〈text〉}`modifiers: * + 〈alt-mod〉 glossaries-extra-bib2gls v1.49+

As `\dglsdisp` but applies sentence case. §11.5.7; 589

`\dglsdisp``[〈options〉]{〈entry-label〉}{〈text〉}`modifiers: * + 〈alt-mod〉 glossaries-extra-bib2gls v1.37+

As `\dgls` but uses `\glsdisp`. §11.5.7; 589

`\dGLSfield``[〈options〉]{〈entry-label〉}{〈field-label〉}{〈text〉}`modifiers: * + 〈alt-mod〉 glossaries-extra-bib2gls v1.49+

As `\dglsfield` but all caps. §11.5.7; 590

`\dGlsfield``[〈options〉]{〈entry-label〉}{〈field-label〉}{〈text〉}`modifiers: * + 〈alt-mod〉 glossaries-extra-bib2gls v1.49+

As `\dglsfield` but applies sentence case. §11.5.7; 589

`\dglsfield``[〈options〉]{〈entry-label〉}{〈field-label〉}{〈text〉}`modifiers: * + 〈alt-mod〉 glossaries-extra-bib2gls v1.49+

As `\dgls` but selects the first matching label that has an entry with the field set. §11.5.7; 589

`\dglsfieldactualfieldlabel` glossaries-extra-bib2gls v1.49+

Set by the `\dglsfield` family of commands to the actual field used. This will either be the requested field or the fallback field. §11.5.7; 591

`\dglsfieldcurrentfieldlabel` glossaries-extra-bib2gls v1.49+

Set by the `\dglsfield` family of commands to the given 〈field-label〉. §11.5.7; 591

`\dglsfieldfallbackfieldlabel` initial: text; glossaries-extra-bib2gls v1.49+

Expands to the fallback field to use for the `\dglsfield` family of commands. §11.5.7; 591

`\dGlslink``[〈options〉]{〈entry-label〉}{〈text〉}`modifiers: * + 〈alt-mod〉 glossaries-extra-bib2gls v1.49+

As `\dglslink` but applies sentence case. §11.5.7; 589

`\dglslink``[〈options〉]{〈entry-label〉}{〈text〉}`modifiers: * + 〈alt-mod〉 glossaries-extra-bib2gls v1.37+

As `\dgls` but uses `\glslink`. §11.5.7; 589

`\dGLSpl``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries-extra-bib2gls v1.37+

As `\dgls` but uses `\GLSpl`. §11.5.7; 589

`\dGlspl``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries-extra-bib2gls v1.37+

As `\dgls` but uses `\Glspl`. §11.5.7; 588

`\dglspl``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries-extra-bib2gls v1.37+

As `\dgls` but uses `\glspl`. §11.5.7; 588

`\Digamma` glossaries-extra-bib2gls v1.27+

Defined with `\providecommand`, this just does `\mathrm{F}`. §11.5.8; 596

`\doifglossarynoexistsordo``{〈glossary-type〉}{〈true〉}{〈false〉}`glossaries v4.19+

If the glossary given by 〈glossary-type〉 doesn’t exist, this does 〈true〉, otherwise it generates an error and does 〈false〉. This uses the starred form of `\ifglossaryexists` to test for existence.

`\DTLformatlist``{〈csv-list〉}`datatool-base v2.28+

Formats the comma-separated list 〈csv-list〉. One-level expansion is performed on 〈csv-list〉. See the datatool documentation for further details, either:

    〉_texdoc datatool

or visit ctan.org/pkg/datatool.

`\DTLifinlist``{〈element〉}{〈csv-list〉}{〈true〉}{〈false〉}`datatool-base

Does 〈true〉 if 〈element〉 is contained in the comma-separated list 〈csv-list〉, otherwise does 〈false〉. One-level expansion is performed on 〈csv-list〉, but not on 〈element〉. See the datatool documentation for further details, either:

    〉_texdoc datatool

or visit ctan.org/pkg/datatool.

[top]

## E
[link]

`\eglssetwidest``[〈level〉]{〈name〉}`glossaries-extra-stylemods v1.05+

As `\glssetwidest` but expands 〈text〉. §8.6.5.4; 438

`\eglsupdatewidest``[〈level〉]{〈name〉}`glossaries-extra-stylemods v1.23+

As `\glsupdatewidest` but expands 〈name〉. §8.6.5.4; 438

`\eGlsXtrSetField``{〈entry-label〉}{〈field-label〉}{〈value〉}`glossaries-extra v1.12+

As `\GlsXtrSetField` but expands the value. §3.5; 40

`\entryname` initial: Notation; glossaries

(language-sensitive)

Expands to the title of the name column for headed tabular-like styles.

`\Epsilon` glossaries-extra-bib2gls v1.27+

Defined with `\providecommand`, this just does `\mathrm{E}`. §11.5.8; 596

`\Eta` glossaries-extra-bib2gls v1.27+

Defined with `\providecommand`, this just does `\mathrm{H}`. §11.5.8; 596

`\ExtraCustomAbbreviationFields` glossaries-extra v1.31+

Expands to additional fields that need to be set with `\newabbreviation`. §4.5.3.1; 164

[top]

## F
[link]

`\firstacronymfont``{〈text〉}`glossaries v1.14+

Used to encapsulate the acronym short form on first use by the base glossaries package. This is redefined by glossaries-extra to use `\glsfirstabbrvfont`.

`\FIRSTLC`

Defined by `\GlsXtrResourceInitEscSequences` to expand to detokenized `\FIRSTLC`. §11.5.2; 559

`\FIRSTUC`

Defined by `\GlsXtrResourceInitEscSequences` to expand to detokenized `\FIRSTUC`. §11.5.2; 559

`\forallabbreviationlists``{〈cs〉}{〈body〉}`glossaries-extra v1.42+

Iterates overall all lists of abbreviations, defines the command 〈cs〉 to the current label and does 〈body〉. §8; 379

🛇`\forallacronyms``{〈cs〉}{〈body〉}`glossaries v4.08+

Iterates overall all glossaries that have been declared lists of acronyms, defines the command 〈cs〉 to the current label and does 〈body〉. Use `\forallabbreviationlists` with glossaries-extra.

`\forallglossaries``[〈types〉]{〈cs〉}{〈body〉}`glossaries

Iterates overall all the glossary labels given in the 〈types〉 argument, defines the command 〈cs〉 to the current label and does 〈body〉. If the optional argument is omitted, the list of all non-ignored glossaries is assumed.

`\forallglsentries``[〈types〉]{〈cs〉}{〈body〉}`glossaries

Does `\forglsentries` for each glossary. The optional argument 〈types〉 is a comma-separated list of glossary labels. If omitted, all non-ignored glossaries is assumed.

`\forglsentries``[〈type〉]{〈cs〉}{〈body〉}`glossaries

Iterates over all entries in the given glossary and, at each iteration, defines the command 〈cs〉 to the current entry label and does 〈body〉. The optional argument 〈type〉 is the glossary label and defaults to `\glsdefaulttype` if omitted. This command can’t be used with bib2gls since there are no defined entries until bib2gls has selected them and added them to the glstex file.

[top]

## G
[link]

`\gglssetwidest``[〈level〉]{〈name〉}`glossaries-extra-stylemods v1.21+

As `\glssetwidest` but global. §8.6.5.4; 437

`\gglsupdatewidest``[〈level〉]{〈name〉}`glossaries-extra-stylemods v1.23+

As `\glsupdatewidest` but global. §8.6.5.4; 438

`\gGlsXtrSetField``{〈entry-label〉}{〈field-label〉}{〈value〉}`glossaries-extra v1.12+

As `\GlsXtrSetField` but globally assigns the value. §3.5; 40

[top]

## Glo
[link]

`\glolinkprefix` initial: glo:; glossaries

Expands to the default prefix for the entry’s hypertarget anchor in the glossary.

`\GlossariesAbbrStyleTooComplexWarning` glossaries-extra v1.49+

Issues a warning with `\GlossariesExtraWarning` when a command is used that isn’t supported by a complex abbreviation style.

`\GlossariesExtraInfo``{〈message〉}`glossaries-extra v1.51+

Writes an information message to the transcript.

`\glossariesextrasetup``{〈options〉}`

Change allowed options that are defined or modified by the glossaries-extra package. Note that some options can only be passed as package options. §2; 8

`\GlossariesExtraWarning``{〈message〉}`

Writes a warning in the transcript with the current line number. The nowarn option redefines this command to do nothing.

`\GlossariesExtraWarningNoLine``{〈message〉}`glossaries-extra

Writes a warning in the transcript without a corresponding line number. The nowarn option redefines this command to do nothing.

`\glossaryentrynumbers``{〈location list〉}`glossaries

Used within the glossary to encapsulate the location list (redefined by the nonumberlist option).

`\glossaryheader` glossaries

Inserted after ``\begin{theglossary}``. This command should be redefined by the glossary style.

`\glossaryname` initial: Glossary

(language-sensitive)

Expands to the default glossary title (provided by glossaries if not already defined).

`\glossarypostamble` glossaries

Used at the end of the glossary.

`\glossarypreamble` glossaries

Used at the start of the glossary. This will be locally redefined to the preamble associated with the current glossary, if one has been set.

`\glossarysection``[〈toc-title〉]{〈title〉}`glossaries

Occurs at the start of a glossary (except with `\printunsrtinnerglossary`). This will typically be defined to use a sectioning command, such as `\section` or `\chapter`. The default definition follows the section and numberedsection options.

`\glossarytitle` glossaries

Initialised by the `\print…glossary` set of commands (such as `\printglossary`) to the current glossary’s title.

`\glossarytoctitle` glossaries

Initialised by the `\print…glossary` set of commands (such as `\printglossary`) to the current glossary’s table of contents title.

`\glossentry``{〈entry label〉}{〈location list〉}`glossaries v3.08+

Used to format a top-level entry. This command should be redefined by the glossary style.

`\Glossentrydesc``{〈entry-label〉}`glossaries v3.08a+

As `\glossentrydesc` but sentence case.

`\glossentrydesc``{〈entry-label〉}`glossaries v3.08a+

Used by glossary styles to display the entry’s description.

`\Glossentryname``{〈entry-label〉}`glossaries v3.08a+

As `\glossentryname` but sentence case.

`\glossentryname``{〈entry-label〉}`glossaries v3.08a+

Used by glossary styles to display the entry’s name.

`\glossentrynameother``{〈entry-label〉}{〈field-label〉}`glossaries-extra v1.22+

Behaves like `\glossentryname` but uses the given field (identified by its internal label) instead of name. §8.6; 423

`\Glossentrysymbol``{〈entry-label〉}`glossaries v3.08a+

As `\glossentrysymbol` but sentence case.

`\glossentrysymbol``{〈entry-label〉}`glossaries v3.08a+

Used by glossary styles to display the entry’s symbol.

`\glossxtrsetpopts` glossaries-extra v1.07+

Used at the start of each glossary to set the current options for the `\glsxtrp` set of commands (with `\glsxtrsetpopts`). §5.4; 230

[top]

## Gls
[link]

`\GLS``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries

As `\gls` but converts the link text to all caps.

`\Gls``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries

As `\gls` but converts the first character of the link text to uppercase (for the start of a sentence) using `\makefirstuc`.

`\gls``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries

References the entry identified by 〈entry-label〉. The text produced depends on whether or not this is the first use and whether or not the regular attribute has been set. The 〈insert〉 argument may be inserted at the end of the link text or may be inserted at a different point (for example, after the long form on first use for some abbreviation styles. For the first optional argument, see `\glslink` options.

`\glsabbrvdefaultfont``{〈text〉}`

Formatting command for the short form used by the abbreviation styles that don’t apply a font change by default. 132

`\glsabbrvemfont``{〈text〉}`glossaries-extra v1.04+

Short form font used by the “em” abbreviation styles. 158

`\glsabbrvfont``{〈text〉}`

Font formatting command for the short form, initialised by the abbreviation style. 171

`\glsabbrvhyphenfont``{〈text〉}`glossaries-extra v1.17+

Short form font used by the “hyphen” abbreviation styles. 148

`\glsabbrvonlyfont``{〈text〉}`glossaries-extra v1.17+

Short form font used by the “only” abbreviation styles. 154

`\glsabbrvscfont``{〈text〉}`glossaries-extra v1.17+

Short form font used by the small caps “sc” abbreviation styles. 156

`\glsabbrvsconlyfont``{〈text〉}`glossaries-extra v1.48+

Short form font used by the “sc-only” styles, such as long-only-short-sc-only. 154

`\glsabbrvscuserfont``{〈text〉}`glossaries-extra v1.48+

Short form font used by the small caps “sc-user” abbreviation styles. 136

`\glsabbrvsmfont``{〈text〉}`glossaries-extra v1.17+

Short form font used by the “sm” abbreviation styles. 157

`\glsabbrvuserfont``{〈text〉}`glossaries-extra v1.04+

Short form font used by the “user” abbreviation styles. 135

`\glsabspace``{〈label〉}`glossaries-extra v1.49+

As `\glsacspace` but includes inner formatting. Unlike `\glsacspace`, this command is robust.

`\GLSaccessdesc``{〈entry-label〉}`

The all caps version of `\glsaccessdesc`. §9.2; 503

`\Glsaccessdesc``{〈entry-label〉}`

The sentence case version of `\glsaccessdesc`. §9.2; 503

`\glsaccessdesc``{〈entry-label〉}`

If accessibility support was enabled when glossaries-extra was loaded (accsupp) this will display the value of the description key with the accessibility support enabled for that key (descriptionaccess). If there is no accessibility support, this just uses `\glsentrydesc`. §9.2; 503

`\GLSaccessdescplural``{〈entry-label〉}`

The all caps version of `\glsaccessdescplural`. §9.2; 503

`\Glsaccessdescplural``{〈entry-label〉}`

The sentence case version of `\glsaccessdescplural`. §9.2; 503

`\glsaccessdescplural``{〈entry-label〉}`

If accessibility support was enabled when glossaries-extra was loaded (accsupp) this will display the value of the descriptionplural key with the accessibility support enabled for that key (descriptionpluralaccess). If there is no accessibility support, this just uses `\glsentrydescplural`. §9.2; 503

`\GLSaccessfirst``{〈entry-label〉}`

The all caps version of `\glsaccessfirst`. §9.2; 501

`\Glsaccessfirst``{〈entry-label〉}`

The sentence case version of `\glsaccessfirst`. §9.2; 501

`\glsaccessfirst``{〈entry-label〉}`

If accessibility support was enabled when glossaries-extra was loaded (accsupp) this will display the value of the first key with the accessibility support enabled for that key (firstaccess). If there is no accessibility support, this just uses `\glsentryfirst`. §9.2; 501

`\GLSaccessfirstplural``{〈entry-label〉}`

The all caps version of `\glsaccessfirstplural`. §9.2; 502

`\Glsaccessfirstplural``{〈entry-label〉}`

The sentence case version of `\glsaccessfirstplural`. §9.2; 502

`\glsaccessfirstplural``{〈entry-label〉}`

If accessibility support was enabled when glossaries-extra was loaded (accsupp) this will display the value of the firstplural key with the accessibility support enabled for that key (firstpluralaccess). If there is no accessibility support, this just uses `\glsentryfirstplural`. §9.2; 502

`\GLSaccessfmtdesc``{〈insert〉}{〈cs〉}{〈entry-label〉}`glossaries-extra v1.49+

Similar to `\GLSaccessdesc` but formats the displayed text with `\GLSfmtfield`. §9.3; 510

`\Glsaccessfmtdesc``{〈insert〉}{〈cs〉}{〈entry-label〉}`glossaries-extra v1.49+

Similar to `\Glsaccessdesc` but formats the displayed text with `\Glsfmtfield`. §9.3; 510

`\glsaccessfmtdesc``{〈insert〉}{〈cs〉}{〈entry-label〉}`glossaries-extra v1.49+

Similar to `\glsaccessdesc` but formats the displayed text with `\glsfmtfield`. §9.3; 510

`\GLSaccessfmtdescplural``{〈insert〉}{〈cs〉}{〈entry-label〉}`glossaries-extra v1.49+

Similar to `\GLSaccessdescplural` but formats the displayed text with `\GLSfmtfield`. §9.3; 511

`\Glsaccessfmtdescplural``{〈insert〉}{〈cs〉}{〈entry-label〉}`glossaries-extra v1.49+

Similar to `\Glsaccessdescplural` but formats the displayed text with `\Glsfmtfield`. §9.3; 511

`\glsaccessfmtdescplural``{〈insert〉}{〈cs〉}{〈entry-label〉}`glossaries-extra v1.49+

Similar to `\glsaccessdescplural` but formats the displayed text with `\glsfmtfield`. §9.3; 510

`\GLSaccessfmtfirst``{〈insert〉}{〈cs〉}{〈entry-label〉}`glossaries-extra v1.49+

Similar to `\GLSaccessfirst` but formats the displayed text with `\GLSfmtfield`. §9.3; 509

`\Glsaccessfmtfirst``{〈insert〉}{〈cs〉}{〈entry-label〉}`glossaries-extra v1.49+

Similar to `\Glsaccessfirst` but formats the displayed text with `\Glsfmtfield`. §9.3; 509

`\glsaccessfmtfirst``{〈insert〉}{〈cs〉}{〈entry-label〉}`glossaries-extra v1.49+

Similar to `\glsaccessfirst` but formats the displayed text with `\glsfmtfield`. §9.3; 509

`\GLSaccessfmtfirstplural``{〈insert〉}{〈cs〉}{〈entry-label〉}`glossaries-extra v1.49+

Similar to `\GLSaccessfirstplural` but formats the displayed text with `\GLSfmtfield`. §9.3; 509

`\Glsaccessfmtfirstplural``{〈insert〉}{〈cs〉}{〈entry-label〉}`glossaries-extra v1.49+

Similar to `\Glsaccessfirstplural` but formats the displayed text with `\Glsfmtfield`. §9.3; 509

`\glsaccessfmtfirstplural``{〈insert〉}{〈cs〉}{〈entry-label〉}`glossaries-extra v1.49+

Similar to `\glsaccessfirstplural` but formats the displayed text with `\glsfmtfield`. §9.3; 509

`\GLSaccessfmtlong``{〈insert〉}{〈cs〉}{〈entry-label〉}`glossaries-extra v1.49+

Similar to `\GLSaccesslong` but formats the displayed text with `\GLSfmtfield`. §9.3; 512

`\Glsaccessfmtlong``{〈insert〉}{〈cs〉}{〈entry-label〉}`glossaries-extra v1.49+

Similar to `\Glsaccesslong` but formats the displayed text with `\Glsfmtfield`. §9.3; 512

`\glsaccessfmtlong``{〈insert〉}{〈cs〉}{〈entry-label〉}`glossaries-extra v1.49+

Similar to `\glsaccesslong` but formats the displayed text with `\glsfmtfield`. §9.3; 512

`\GLSaccessfmtlongpl``{〈insert〉}{〈cs〉}{〈entry-label〉}`glossaries-extra v1.49+

Similar to `\GLSaccesslongpl` but formats the displayed text with `\GLSfmtfield`. §9.3; 512

`\Glsaccessfmtlongpl``{〈insert〉}{〈cs〉}{〈entry-label〉}`glossaries-extra v1.49+

Similar to `\Glsaccesslongpl` but formats the displayed text with `\Glsfmtfield`. §9.3; 512

`\glsaccessfmtlongpl``{〈insert〉}{〈cs〉}{〈entry-label〉}`glossaries-extra v1.49+

Similar to `\glsaccesslongpl` but formats the displayed text with `\glsfmtfield`. §9.3; 512

`\GLSaccessfmtname``{〈insert〉}{〈cs〉}{〈entry-label〉}`glossaries-extra v1.49+

Similar to `\GLSaccessname` but formats the displayed text with `\GLSfmtfield`. §9.3; 508

`\Glsaccessfmtname``{〈insert〉}{〈cs〉}{〈entry-label〉}`glossaries-extra v1.49+

Similar to `\Glsaccessname` but formats the displayed text with `\Glsfmtfield`. §9.3; 508

`\glsaccessfmtname``{〈insert〉}{〈cs〉}{〈entry-label〉}`glossaries-extra v1.49+

Similar to `\glsaccessname` but formats the displayed text with `\glsfmtfield`. §9.3; 507

`\GLSaccessfmtplural``{〈insert〉}{〈cs〉}{〈entry-label〉}`glossaries-extra v1.49+

Similar to `\GLSaccessplural` but formats the displayed text with `\GLSfmtfield`. §9.3; 508

`\Glsaccessfmtplural``{〈insert〉}{〈cs〉}{〈entry-label〉}`glossaries-extra v1.49+

Similar to `\Glsaccessplural` but formats the displayed text with `\Glsfmtfield`. §9.3; 508

`\glsaccessfmtplural``{〈insert〉}{〈cs〉}{〈entry-label〉}`glossaries-extra v1.49+

Similar to `\glsaccessplural` but formats the displayed text with `\glsfmtfield`. §9.3; 508

`\GLSaccessfmtshort``{〈insert〉}{〈cs〉}{〈entry-label〉}`glossaries-extra v1.49+

Similar to `\GLSaccessshort` but formats the displayed text with `\GLSfmtfield`. §9.3; 511

`\Glsaccessfmtshort``{〈insert〉}{〈cs〉}{〈entry-label〉}`glossaries-extra v1.49+

Similar to `\Glsaccessshort` but formats the displayed text with `\Glsfmtfield`. §9.3; 511

`\glsaccessfmtshort``{〈insert〉}{〈cs〉}{〈entry-label〉}`glossaries-extra v1.49+

Similar to `\glsaccessshort` but formats the displayed text with `\glsfmtfield`. §9.3; 511

`\GLSaccessfmtshortpl``{〈insert〉}{〈cs〉}{〈entry-label〉}`glossaries-extra v1.49+

Similar to `\GLSaccessshortpl` but formats the displayed text with `\GLSfmtfield`. §9.3; 511

`\Glsaccessfmtshortpl``{〈insert〉}{〈cs〉}{〈entry-label〉}`glossaries-extra v1.49+

Similar to `\Glsaccessshortpl` but formats the displayed text with `\Glsfmtfield`. §9.3; 511

`\glsaccessfmtshortpl``{〈insert〉}{〈cs〉}{〈entry-label〉}`glossaries-extra v1.49+

Similar to `\glsaccessshortpl` but formats the displayed text with `\glsfmtfield`. §9.3; 511

`\GLSaccessfmtsymbol``{〈insert〉}{〈cs〉}{〈entry-label〉}`glossaries-extra v1.49+

Similar to `\GLSaccesssymbol` but formats the displayed text with `\GLSfmtfield`. §9.3; 510

`\Glsaccessfmtsymbol``{〈insert〉}{〈cs〉}{〈entry-label〉}`glossaries-extra v1.49+

Similar to `\Glsaccesssymbol` but formats the displayed text with `\Glsfmtfield`. §9.3; 509

`\glsaccessfmtsymbol``{〈insert〉}{〈cs〉}{〈entry-label〉}`glossaries-extra v1.49+

Similar to `\glsaccesssymbol` but formats the displayed text with `\glsfmtfield`. §9.3; 509

`\GLSaccessfmtsymbolplural``{〈insert〉}{〈cs〉}{〈entry-label〉}`glossaries-extra v1.49+

Similar to `\GLSaccesssymbolplural` but formats the displayed text with `\GLSfmtfield`. §9.3; 510

`\Glsaccessfmtsymbolplural``{〈insert〉}{〈cs〉}{〈entry-label〉}`glossaries-extra v1.49+

Similar to `\Glsaccesssymbolplural` but formats the displayed text with `\Glsfmtfield`. §9.3; 510

`\glsaccessfmtsymbolplural``{〈insert〉}{〈cs〉}{〈entry-label〉}`glossaries-extra v1.49+

Similar to `\glsaccesssymbolplural` but formats the displayed text with `\glsfmtfield`. §9.3; 510

`\GLSaccessfmttext``{〈insert〉}{〈cs〉}{〈entry-label〉}`glossaries-extra v1.49+

Similar to `\GLSaccesstext` but formats the displayed text with `\GLSfmtfield`. §9.3; 508

`\Glsaccessfmttext``{〈insert〉}{〈cs〉}{〈entry-label〉}`glossaries-extra v1.49+

Similar to `\Glsaccesstext` but formats the displayed text with `\Glsfmtfield`. §9.3; 508

`\glsaccessfmttext``{〈insert〉}{〈cs〉}{〈entry-label〉}`glossaries-extra v1.49+

Similar to `\glsaccesstext` but formats the displayed text with `\glsfmtfield`. §9.3; 508

`\GLSaccessfmtuseri``{〈insert〉}{〈cs〉}{〈entry-label〉}`glossaries-extra v1.49+

Similar to `\GLSaccessuseri` but formats the displayed text with `\GLSfmtfield`. §9.3; 513

`\Glsaccessfmtuseri``{〈insert〉}{〈cs〉}{〈entry-label〉}`glossaries-extra v1.49+

Similar to `\Glsaccessuseri` but formats the displayed text with `\Glsfmtfield`. §9.3; 512

`\glsaccessfmtuseri``{〈insert〉}{〈cs〉}{〈entry-label〉}`glossaries-extra v1.49+

Similar to `\glsaccessuseri` but formats the displayed text with `\glsfmtfield`. §9.3; 512

`\GLSaccessfmtuserii``{〈insert〉}{〈cs〉}{〈entry-label〉}`glossaries-extra v1.49+

Similar to `\GLSaccessuserii` but formats the displayed text with `\GLSfmtfield`. §9.3; 513

`\Glsaccessfmtuserii``{〈insert〉}{〈cs〉}{〈entry-label〉}`glossaries-extra v1.49+

Similar to `\Glsaccessuserii` but formats the displayed text with `\Glsfmtfield`. §9.3; 513

`\glsaccessfmtuserii``{〈insert〉}{〈cs〉}{〈entry-label〉}`glossaries-extra v1.49+

Similar to `\glsaccessuserii` but formats the displayed text with `\glsfmtfield`. §9.3; 513

`\GLSaccessfmtuseriii``{〈insert〉}{〈cs〉}{〈entry-label〉}`glossaries-extra v1.49+

Similar to `\GLSaccessuseriii` but formats the displayed text with `\GLSfmtfield`. §9.3; 513

`\Glsaccessfmtuseriii``{〈insert〉}{〈cs〉}{〈entry-label〉}`glossaries-extra v1.49+

Similar to `\Glsaccessuseriii` but formats the displayed text with `\Glsfmtfield`. §9.3; 513

`\glsaccessfmtuseriii``{〈insert〉}{〈cs〉}{〈entry-label〉}`glossaries-extra v1.49+

Similar to `\glsaccessuseriii` but formats the displayed text with `\glsfmtfield`. §9.3; 513

`\GLSaccessfmtuseriv``{〈insert〉}{〈cs〉}{〈entry-label〉}`glossaries-extra v1.49+

Similar to `\GLSaccessuseriv` but formats the displayed text with `\GLSfmtfield`. §9.3; 514

`\Glsaccessfmtuseriv``{〈insert〉}{〈cs〉}{〈entry-label〉}`glossaries-extra v1.49+

Similar to `\Glsaccessuseriv` but formats the displayed text with `\Glsfmtfield`. §9.3; 514

`\glsaccessfmtuseriv``{〈insert〉}{〈cs〉}{〈entry-label〉}`glossaries-extra v1.49+

Similar to `\glsaccessuseriv` but formats the displayed text with `\glsfmtfield`. §9.3; 513

`\GLSaccessfmtuserv``{〈insert〉}{〈cs〉}{〈entry-label〉}`glossaries-extra v1.49+

Similar to `\GLSaccessuserv` but formats the displayed text with `\GLSfmtfield`. §9.3; 514

`\Glsaccessfmtuserv``{〈insert〉}{〈cs〉}{〈entry-label〉}`glossaries-extra v1.49+

Similar to `\Glsaccessuserv` but formats the displayed text with `\Glsfmtfield`. §9.3; 514

`\glsaccessfmtuserv``{〈insert〉}{〈cs〉}{〈entry-label〉}`glossaries-extra v1.49+

Similar to `\glsaccessuserv` but formats the displayed text with `\glsfmtfield`. §9.3; 514

`\GLSaccessfmtuservi``{〈insert〉}{〈cs〉}{〈entry-label〉}`glossaries-extra v1.49+

Similar to `\GLSaccessuservi` but formats the displayed text with `\GLSfmtfield`. §9.3; 514

`\Glsaccessfmtuservi``{〈insert〉}{〈cs〉}{〈entry-label〉}`glossaries-extra v1.49+

Similar to `\Glsaccessuservi` but formats the displayed text with `\Glsfmtfield`. §9.3; 514

`\glsaccessfmtuservi``{〈insert〉}{〈cs〉}{〈entry-label〉}`glossaries-extra v1.49+

Similar to `\glsaccessuservi` but formats the displayed text with `\glsfmtfield`. §9.3; 514

`\glsaccessibility``[〈options〉]{〈PDF element〉}{〈value〉}{〈content〉}`glossaries-accsupp v4.45+

Applies 〈value〉 as the accessibility attribute 〈PDF element〉 for the given 〈content〉. This internally uses the accessibility support provided by accsupp.

`\GLSaccesslong``{〈entry-label〉}`

The all caps version of `\glsaccesslong`. §9.2; 504

`\Glsaccesslong``{〈entry-label〉}`

The sentence case version of `\glsaccesslong`. §9.2; 504

`\glsaccesslong``{〈entry-label〉}`

If accessibility support was enabled when glossaries-extra was loaded (accsupp) this will display the value of the long key with the accessibility support enabled for that key (longaccess). If there is no accessibility support, this just uses `\glsentrylong`. §9.2; 504

`\GLSaccesslongpl``{〈entry-label〉}`

The all caps version of `\glsaccesslongpl`. §9.2; 505

`\Glsaccesslongpl``{〈entry-label〉}`

The sentence case version of `\glsaccesslongpl`. §9.2; 505

`\glsaccesslongpl``{〈entry-label〉}`

If accessibility support was enabled when glossaries-extra was loaded (accsupp) this will display the value of the longplural key with the accessibility support enabled for that key (longpluralaccess). If there is no accessibility support, this just uses `\glsentrylongpl`. §9.2; 505

`\GLSaccessname``{〈entry-label〉}`

The all caps version of `\glsaccessname`. §9.2; 500

`\Glsaccessname``{〈entry-label〉}`

The sentence case version of `\glsaccessname`. §9.2; 500

`\glsaccessname``{〈entry-label〉}`

If accessibility support was enabled when glossaries-extra was loaded (accsupp) this will display the value of the name key with the accessibility support enabled for that key (access). If there is no accessibility support, this just uses `\glsentryname`. §9.2; 500

`\GLSaccessplural``{〈entry-label〉}`

The all caps version of `\glsaccessplural`. §9.2; 501

`\Glsaccessplural``{〈entry-label〉}`

The sentence case version of `\glsaccessplural`. §9.2; 501

`\glsaccessplural``{〈entry-label〉}`

If accessibility support was enabled when glossaries-extra was loaded (accsupp) this will display the value of the plural key with the accessibility support enabled for that key (pluralaccess). If there is no accessibility support, this just uses `\glsentryplural`. §9.2; 501

`\GLSaccessshort``{〈entry-label〉}`

The all caps version of `\glsaccessshort`. §9.2; 504

`\Glsaccessshort``{〈entry-label〉}`

The sentence case version of `\glsaccessshort`. §9.2; 504

`\glsaccessshort``{〈entry-label〉}`

If accessibility support was enabled when glossaries-extra was loaded (accsupp) this will display the value of the short key with the accessibility support enabled for that key (shortaccess). If there is no accessibility support, this just uses `\glsentryshort`. §9.2; 503

`\GLSaccessshortpl``{〈entry-label〉}`

The all caps version of `\glsaccessshortpl`. §9.2; 504

`\Glsaccessshortpl``{〈entry-label〉}`

The sentence case version of `\glsaccessshortpl`. §9.2; 504

`\glsaccessshortpl``{〈entry-label〉}`

If accessibility support was enabled when glossaries-extra was loaded (accsupp) this will display the value of the shortplural key with the accessibility support enabled for that key (shortpluralaccess). If there is no accessibility support, this just uses `\glsentryshortpl`. §9.2; 504

`\GLSaccesssymbol``{〈entry-label〉}`

The all caps version of `\glsaccesssymbol`. §9.2; 502

`\Glsaccesssymbol``{〈entry-label〉}`

The sentence case version of `\glsaccesssymbol`. §9.2; 502

`\glsaccesssymbol``{〈entry-label〉}`

If accessibility support was enabled when glossaries-extra was loaded (accsupp) this will display the value of the symbol key with the accessibility support enabled for that key (symbolaccess). If there is no accessibility support, this just uses `\glsentrysymbol`. §9.2; 502

`\GLSaccesssymbolplural``{〈entry-label〉}`

The all caps version of `\glsaccesssymbolplural`. §9.2; 503

`\Glsaccesssymbolplural``{〈entry-label〉}`

The sentence case version of `\glsaccesssymbolplural`. §9.2; 502

`\glsaccesssymbolplural``{〈entry-label〉}`

If accessibility support was enabled when glossaries-extra was loaded (accsupp) this will display the value of the symbolplural key with the accessibility support enabled for that key (symbolpluralaccess). If there is no accessibility support, this just uses `\glsentrysymbolplural`. §9.2; 502

`\GLSaccesstext``{〈entry-label〉}`

The all caps version of `\glsaccesstext`. §9.2; 501

`\Glsaccesstext``{〈entry-label〉}`

The sentence case version of `\glsaccesstext`. §9.2; 501

`\glsaccesstext``{〈entry-label〉}`

If accessibility support was enabled when glossaries-extra was loaded (accsupp) this will display the value of the text key with the accessibility support enabled for that key (textaccess). If there is no accessibility support, this just uses `\glsentrytext`. §9.2; 500

`\GLSaccessuseri``{〈entry-label〉}`glossaries-extra v1.49+

The all caps version of `\glsaccessuseri`. §9.2; 505

`\Glsaccessuseri``{〈entry-label〉}`glossaries-extra v1.49+

The sentence case version of `\glsaccessuseri`. §9.2; 505

`\glsaccessuseri``{〈entry-label〉}`glossaries-extra v1.49+

If accessibility support was enabled when glossaries-extra was loaded (accsupp) this will display the value of the user1 key with the accessibility support enabled for that key (user1access). If there is no accessibility support, this just uses `\glsentryuseri`. §9.2; 505

`\GLSaccessuserii``{〈entry-label〉}`glossaries-extra v1.49+

The all caps version of `\glsaccessuserii`. §9.2; 506

`\Glsaccessuserii``{〈entry-label〉}`glossaries-extra v1.49+

The sentence case version of `\glsaccessuserii`. §9.2; 505

`\glsaccessuserii``{〈entry-label〉}`glossaries-extra v1.49+

If accessibility support was enabled when glossaries-extra was loaded (accsupp) this will display the value of the user2 key with the accessibility support enabled for that key (user2access). If there is no accessibility support, this just uses `\glsentryuserii`. §9.2; 505

`\GLSaccessuseriii``{〈entry-label〉}`glossaries-extra v1.49+

The all caps version of `\glsaccessuseriii`. §9.2; 506

`\Glsaccessuseriii``{〈entry-label〉}`glossaries-extra v1.49+

The sentence case version of `\glsaccessuseriii`. §9.2; 506

`\glsaccessuseriii``{〈entry-label〉}`glossaries-extra v1.49+

If accessibility support was enabled when glossaries-extra was loaded (accsupp) this will display the value of the user3 key with the accessibility support enabled for that key (user3access). If there is no accessibility support, this just uses `\glsentryuseriii`. §9.2; 506

`\GLSaccessuseriv``{〈entry-label〉}`glossaries-extra v1.49+

The all caps version of `\glsaccessuseriv`. §9.2; 506

`\Glsaccessuseriv``{〈entry-label〉}`glossaries-extra v1.49+

The sentence case version of `\glsaccessuseriv`. §9.2; 506

`\glsaccessuseriv``{〈entry-label〉}`glossaries-extra v1.49+

If accessibility support was enabled when glossaries-extra was loaded (accsupp) this will display the value of the user4 key with the accessibility support enabled for that key (user4access). If there is no accessibility support, this just uses `\glsentryuseriv`. §9.2; 506

`\GLSaccessuserv``{〈entry-label〉}`glossaries-extra v1.49+

The all caps version of `\glsaccessuserv`. §9.2; 507

`\Glsaccessuserv``{〈entry-label〉}`glossaries-extra v1.49+

The sentence case version of `\glsaccessuserv`. §9.2; 507

`\glsaccessuserv``{〈entry-label〉}`glossaries-extra v1.49+

If accessibility support was enabled when glossaries-extra was loaded (accsupp) this will display the value of the user5 key with the accessibility support enabled for that key (user5access). If there is no accessibility support, this just uses `\glsentryuserv`. §9.2; 506

`\GLSaccessuservi``{〈entry-label〉}`glossaries-extra v1.49+

The all caps version of `\glsaccessuservi`. §9.2; 507

`\Glsaccessuservi``{〈entry-label〉}`glossaries-extra v1.49+

The sentence case version of `\glsaccessuservi`. §9.2; 507

`\glsaccessuservi``{〈entry-label〉}`glossaries-extra v1.49+

If accessibility support was enabled when glossaries-extra was loaded (accsupp) this will display the value of the user6 key with the accessibility support enabled for that key (user6access). If there is no accessibility support, this just uses `\glsentryuservi`. §9.2; 507

`\glsaccsupp``{〈replacement〉}{〈content〉}`glossaries-accsupp

Applies 〈replacement〉 as the ActualText for 〈content〉 using `\glsaccessibility`.

`\glsacspace``{〈label〉}`glossaries v4.16+

Uses a non-breakable space if the short form is less than `\glsacspacemax` otherwise uses `\space`. This command is provided by glossaries but has a hard-coded maximum of 3em. This command is redefined by glossaries-extra to use `\glsacspacemax`.

`\glsacspacemax`

Expands to the maximum value used by `\glsacspace`. This is a macro not a register. The default is `3em`.

`\glsadd``[〈options〉]{〈entry-label〉}`glossaries

Indexes the entry identified by 〈entry-label〉.

`\glsaddall``[〈options〉]`glossaries

Iterates over all glossaries (or all those listed in the types option) and indexes each entry in the glossary. The optional argument 〈options〉 are passed to `\glsadd`. This command can’t be used with bib2gls. Use the selection=all resource option instead.

`\glsaddallunindexed``[〈glossary types〉]`glossaries-extra v1.49+

Iterates over all glossaries listed in 〈glossary types〉 and indexes each entry (with format=glsignore) that hasn’t already been indexed. This command can’t be used with bib2gls. Use the selection=all resource option instead. §5.8; 260

`\glsaddallunused``[〈glossary types〉]`glossaries v3.08a+

Iterates over all glossaries listed in 〈glossary types〉 and indexes each entry (with format=glsignore) that hasn’t been used. This command can’t be used with bib2gls. Use the selection=all resource option instead.

`\glsaddeach``[〈options〉]{〈entry label list〉}`glossaries-extra v1.31+

Does ``\glsadd`[〈options〉]{〈entry-label〉}` for each label in the supplied comma-separated list. §5.8; 260

`\glsaddkey``{〈key〉}{〈default value〉}{〈no link cs〉}{〈no link ucfirst cs〉}{〈link cs〉}{〈link ucfirst cs〉}{〈link allcaps cs〉}`glossaries v3.12a

Defines a new glossary entry key with the given default value and commands that are analogous to `\glsentrytext` (〈no link cs〉), `\Glsentrytext` (〈no link ucfirst cs〉), `\glstext` (〈link cs〉), `\Glstext` (〈link ucfirst cs〉), `\GLStext` (〈link allcaps cs〉). The starred version switches on field expansion for the given key.

`\glsaddpostsetkeys` glossaries-extra v1.30+

Hook implemented after setting the options passed to `\glsadd`. §5.1.1; 187

`\glsaddpresetkeys` glossaries-extra v1.30+

Hook implemented before setting the options passed to `\glsadd`. §5.1.1; 187

`\glsaddstoragekey``{〈key〉}{〈default value〉}{〈no link cs〉}`glossaries v4.16

Provides a new glossary entry key with a default value and a command for simply accessing the value (without indexing or hyperlinks). The starred version switches on field expansion for the given key.

`\glsaltlistitem``{〈entry-label〉}`glossaries-extra-stylemods v1.47+

Used to display the top-level entry item in the altlist styles. §8.6.5.3; 433

`\glsalttreechildpredesc` glossaries-extra-stylemods v1.46+

Inserted before the child descriptions for the alttree styles. §8.6.5.4; 435

`\glsalttreepredesc` glossaries-extra-stylemods v1.46+

Inserted before the top-level descriptions for the alttree styles. §8.6.5.4; 435

`\glsapptopostlink``{〈category〉}{〈code〉}`glossaries-extra v1.49+

Appends 〈code〉 to post-link hook associated with the category identified by the label 〈category〉 (or simply defines it, if it doesn’t already exist). §5.5.4; 250

`\glsautoprefix` glossaries v1.14+

Expands to the prefix for the label used by numberedsection=autolabel and numberedsection=nameref.

`\glsbackslash` glossaries v4.11+

Expands to a literal backslash.

`\glscapitalisewords``{〈content〉}`glossaries v4.48+

Just does `\capitalisewords` but may be redefined to use `\capitalisefmtwords`, if required. §5.2.4; 199

`\glscapscase``{〈no change〉}{〈sentence〉}{〈all caps〉}`glossaries

Initialised by the `\gls`-like and `\glstext`-like commands, this expands to 〈no change〉 if the calling command doesn’t apply a case-change (such as `\gls` or `\glstext`), to 〈sentence〉 if the calling command converts to sentence case (such as `\Gls` or `\Glstext`), or to 〈all caps〉 if the calling command converts to all caps (such as `\GLS` or `\GLStext`). This command may be used within associated hooks, entry display styles (`\defglsentryfmt`), and the post-link hook.

`\glscapturedgroup``〈n〉`glossaries-extra-bib2gls v1.31+

Expands to ``\string``\$`〈n〉`. Note that this isn’t the same as `\MGP`. §11.5.2; 558

`\glscategory``{〈entry-label〉}`

Expands to the entry’s category. §10; 515

`\glscategorylabel`

Expands to the category label of the abbreviation that is in the process of being defined by `\newabbreviation`. Maybe used in the style hooks (but take care to expand this command, if necessary). §4.5.3.1; 163

`\glscombinedfirstsep``{〈prev label〉}{〈next label〉}`glossaries-extra v1.48+

Separator used between elements of a multi-entry set where only the next element have been marked as used. §7.4; 345

`\glscombinedfirstsepfirst``{〈prev label〉}{〈next label〉}`glossaries-extra v1.48+

Separator used between elements of a multi-entry set where neither the previous nor the next element has been marked as used. §7.4; 346

`\glscombinedsep``{〈prev label〉}{〈next label〉}`glossaries-extra v1.48+

Separator used between elements of a multi-entry set where both elements have been marked as used. §7.4; 345

`\glscombinedsepfirst``{〈prev label〉}{〈next label〉}`glossaries-extra v1.48+

Separator used between elements of a multi-entry set where only the previous element have been marked as used. §7.4; 346

`\glscurrententrylabel` glossaries v3.02+

Assigned at the start of each entry item within the glossary. This command may be used by glossary hooks, such as the post-description hook, to reference the current entry.

`\glscurrententrylevel` glossaries-extra v1.44+

Defined within the “unsrt” family of commands to the current hierarchical level (taking leveloffset into account). §8.4.3; 404

`\glscurrentfieldvalue` glossaries v4.23+

Conditional commands such as `\ifglshasfield` set this to the field’s value for use within the 〈true〉 code.

`\glscurrentrootentry` glossaries-extra v1.49+

May be used within `\printunsrtglossaryentryprocesshook` to reference the most recent top level entry label (allowing for flatten but not leveloffset). §8.4.3; 404

`\glscurrenttoplevelentry` glossaries-extra v1.49+

May be used within `\printunsrtglossaryentryprocesshook` to reference the most recent top level entry label (allowing for flatten and leveloffset). §8.4.3; 404

`\glscustomtext` glossaries

The custom text provided by `\glsdisp` or the link text for the `\glstext`-like commands. This command may be used within associated hooks, entry display styles (`\defglsentryfmt`), and the post-link hook.

`\glsdefaultshortaccess``{〈long〉}{〈short〉}`glossaries-accsupp v4.45+

(requires accsupp)

Used when `\newabbreviation` automatically assigns shortaccess. This is defined by glossaries-accsupp to just do 〈long〉 but is redefined by glossaries-extra to do `〈long〉 (〈short〉)`.

`\glsdefaulttype` initial: main; glossaries

Expands to the label of the default glossary, which is normally `main` but if nomain is used, it will be the label of the first glossary to be defined.

`\glsdefpostdesc``{〈category〉}{〈definition〉}`glossaries-extra v1.31+

Defines post-description hook associated with the category identified by the label 〈category〉. This simply (re)defines `\glsxtrpostdesc〈category〉` for the given 〈category〉 to 〈definition〉. §8.6.2; 426

`\glsdefpostlink``{〈category〉}{〈definition〉}`glossaries-extra v1.31+

Defines post-link hook associated with the category identified by the label 〈category〉. This simply (re)defines `\glsxtrpostlink〈category〉` for the given 〈category〉 to 〈definition〉. §5.5.4; 250

`\glsdefpostname``{〈category〉}{〈definition〉}`glossaries-extra v1.31+

Defines post-name hook associated with the category identified by the label 〈category〉. This simply (re)defines `\glsxtrpostname〈category〉` for the given 〈category〉 to 〈definition〉. §8.6.1; 424

`\GLSdesc``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries

As `\glsdesc` but converts the link text to all caps.

`\Glsdesc``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries

As `\glsdesc` but converts the link text to sentence case. Use `\Glossentrydesc` within custom glossary styles instead of this command.

`\glsdesc``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries

References the entry identified by 〈entry-label〉. The text produced is obtained from the description value. The 〈insert〉 argument will be inserted at the end of the link text. This command does not alter or depend on the first use flag. For the first optional argument, see `\glslink` options. Use `\glossentrydesc` within custom glossary styles instead of this command.

`\glsdescplural``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries

As `\glsdesc` but for the descriptionplural field.

`\glsdescriptionaccessdisplay``{〈text〉}{〈entry-label〉}`glossaries-accsupp

Does 〈text〉 with the descriptionaccess replacement text (if set).

`\glsdescriptionpluralaccessdisplay``{〈text〉}{〈entry-label〉}`glossaries-accsupp

Does 〈text〉 with the descriptionpluralaccess replacement text (if set).

`\glsdescwidth` glossary-long & glossary-super

A length register used to set the width of the description column for tabular-like styles.

`\Glsdisp``[〈options〉]{〈entry-label〉}{〈text〉}`modifiers: * + 〈alt-mod〉 glossaries v4.50+

As `\glsdisp` but sets the link text to ``\glssentencecase`{〈text〉}`. This is provided to allow a sentence case mapping in the event that `\glsdisp` occurs at the start of content that has automated case-changing.

`\glsdisp``[〈options〉]{〈entry-label〉}{〈text〉}`modifiers: * + 〈alt-mod〉 glossaries v1.19+

References the entry identified by 〈entry-label〉 with the given 〈text〉 as the link text. This command unsets the first use flag (use `\glslink` instead, if the first use flag should not be altered). This command is considered a `\gls`-like command. For the first optional argument, see `\glslink` options.

`\glsdisplaynumberlist``{〈entry-label〉}`glossaries v3.02+

Formats the location list for the given entry. Redefined by glossaries-extra-bib2gls to obtain the location list from the location field. §11.5.8; 595

`\glsdoifexists``{〈entry-label〉}{〈code〉}`glossaries

Does 〈code〉 if the entry given by 〈entry-label〉 exists. If the entry doesn’t exist, this will either generate an error (undefaction=error) or a warning (undefaction=warn) and, within the document environment, it will insert the unknown marker `??`.

`\glsdoifexistsordo``{〈entry-label〉}{〈true〉}{〈false〉}`glossaries v4.19+

Similar to `\ifglsentryexists`, this does 〈true〉 if the entry given by 〈entry-label〉 exists. If the entry doesn’t it exist, this does 〈false〉 and generates an error (undefaction=error) or a warning (undefaction=warn). The unknown marker `??` will be placed before the 〈false〉 code.

`\glsdoifexistsorwarn``{〈entry-label〉}{〈code〉}`glossaries v4.03+

Like `\glsdoifexists`, but always warns (no error) if the entry doesn’t exist, regardless of the undefaction setting, and doesn’t show the unknown marker.

`\glsdoifnoexists``{〈entry-label〉}{〈code〉}`glossaries

Does 〈code〉 if the entry given by 〈entry-label〉 does not exist. If the entry does exist, this will either generate an error (undefaction=error) or a warning (undefaction=warn).

`\glsenableentrycount` glossaries v4.14+

Enables entry counting.

`\glsenableentryunitcount`

Enables entry unit counting. §6.1; 315

`\glsencapwrcontent``{〈code〉}`glossaries v4.50+ & glossaries-extra v1.49+

Encapsulates the indexing code (within `\glslinkwrcontent`). §5.8; 266

`\glsendrange``[〈options〉]{〈entry label list〉}`glossaries-extra v1.50+

As `\glsstartrange` but with the end range marker `)`. §5.8; 261

`\glsentrycounterlabel` glossaries v3.0+

Used by `\glsentryitem` to display the entry counter label.

`\glsentrycurrcount``{〈entry-label〉}`glossaries v4.14+

Expands to the current entry count running total or 0 if not available (needs to be enabled with `\glsenableentrycount` or `\glsenableentryunitcount`). With unit entry counting, this expands to the total for the current unit.

`\Glsentrydesc``{〈entry-label〉}`glossaries

Partially robust command that displays the value of the description field with sentence case applied. As from glossaries v4.50, this command can expand in PDF bookmarks. Outside of PDF bookmarks it will expand to a robust internal command.

`\glsentrydesc``{〈entry-label〉}`glossaries

Simply expands to the value of the description field. Does nothing if the entry hasn’t been defined. May be used in expandable contexts provided that the description field doesn’t contain any fragile commands.

`\glsentrydescplural``{〈entry-label〉}`glossaries

Simply expands to the value of the descriptionplural field. Does nothing if the entry hasn’t been defined. May be used in expandable contexts provided that the descriptionplural field doesn’t contain any fragile commands.

`\Glsentryfirst``{〈entry-label〉}`glossaries

Partially robust command that displays the value of the first field with the first letter converted to uppercase. As from glossaries v4.50, this command can expand in PDF bookmarks. Outside of PDF bookmarks it will expand to a robust internal command.

`\glsentryfirst``{〈entry-label〉}`glossaries

Simply expands to the value of the first field. Does nothing if the entry hasn’t been defined. May be used in expandable contexts provided that the first field doesn’t contain any fragile commands.

`\Glsentryfirstplural``{〈entry-label〉}`glossaries

Partially robust command that displays the value of the firstplural field with sentence case applied. As from glossaries v4.50, this command can expand in PDF bookmarks. Outside of PDF bookmarks it will expand to a robust internal command.

`\glsentryfirstplural``{〈entry-label〉}`glossaries

Simply expands to the value of the firstplural field. Does nothing if the entry hasn’t been defined. May be used in expandable contexts provided that the firstplural field doesn’t contain any fragile commands.

`\glsentryfmt` glossaries v3.11a+

The default display format used by the `\gls`-like commands. This checks if the short field has been set for the current entry and, if set, initialises the abbreviation formatting commands (with `\glssetabbrvfmt`). This command will do `\glsgenentryfmt` (encapsulated with `\glsxtrregularfont`) if the entry is considered a regular entry (`\glsifregular`) or if the entry doesn’t have the short field set. Otherwise it will do `\glsxtrgenabbrvfmt` encapsulated with `\glsxtrabbreviationfont`.

`\glsentryindexcount``{〈entry-label〉}`glossaries-extra v1.49+

Expands to the number of times the given entry has been indexed. This will expand to 0 if the entry hasn’t been indexed or hasn’t been defined. §5.8; 267

`\glsentryitem``{〈entry-label〉}`glossaries v3.0+

Does nothing if entrycounter=false, otherwise increments and displays the associated counter.

`\Glsentrylong``{〈entry-label〉}`glossaries v3.0+

Displays the value of the long field with sentence case applied. Does nothing if the entry hasn’t been defined. As from glossaries v4.50, this command can expand in PDF bookmarks. Outside of PDF bookmarks it will expand to a robust internal command.

`\glsentrylong``{〈entry-label〉}`glossaries v3.0+

Simply expands to the value of the long field. Does nothing if the entry hasn’t been defined. May be used in expandable contexts provided that the long field doesn’t contain any fragile commands.

`\Glsentrylongpl``{〈entry-label〉}`glossaries v3.0+

Displays the value of the longplural field with sentence case applied. Does nothing if the entry hasn’t been defined. As from glossaries v4.50, this command can expand in PDF bookmarks. Outside of PDF bookmarks it will expand to a robust internal command.

`\glsentrylongpl``{〈entry-label〉}`glossaries v3.0+

Simply expands to the value of the longplural field. Does nothing if the entry hasn’t been defined. May be used in expandable contexts provided that the longplural field doesn’t contain any fragile commands.

`\Glsentryname``{〈entry-label〉}`glossaries

Partially robust command that displays the value of the name field with sentence case applied. As from glossaries v4.50, this command can expand in PDF bookmarks. Outside of PDF bookmarks it will expand to a robust internal command.

`\glsentryname``{〈entry-label〉}`glossaries

Simply expands to the value of the name key. Does nothing if the entry hasn’t been defined. May be used in expandable contexts provided that the name key doesn’t contain any fragile commands.

`\glsentrynumberlist``{〈entry-label〉}`glossaries v3.02+

Displays the location list for the given entry. Redefined by glossaries-extra-bib2gls to obtain the location list from the location field. §11.5.8; 595

`\glsentryparent``{〈entry-label〉}`glossaries

Expands to the value of the parent field. Expands to nothing if the parent field hasn’t been set and expands to `\relax` if the entry hasn’t been defined.

`\glsentrypdfsymbol``{〈entry-label〉}`glossaries-extra v1.42+

Used when `\glossentrysymbol` occurs in a PDF bookmark. §8.6; 423

`\Glsentryplural``{〈entry-label〉}`glossaries

Partially robust command that displays the value of the plural field with sentence case applied. As from glossaries v4.50, this command can expand in PDF bookmarks. Outside of PDF bookmarks it will expand to a robust internal command.

`\glsentryplural``{〈entry-label〉}`glossaries

Simply expands to the value of the plural field. Does nothing if the entry hasn’t been defined. May be used in expandable contexts provided that the plural field doesn’t contain any fragile commands.

`\glsentryprevcount``{〈entry-label〉}`glossaries v4.14+

Expands to the final entry count total from the previous LaTeX run or if 0 if not available (needs to be enabled with `\glsenableentrycount` or `\glsenableentryunitcount`). With unit entry counting, this expands to the total for the current unit.

`\glsentryprevmaxcount``{〈entry-label〉}`glossaries v4.14+

Expands to the maximum entry unit count total from the previous LaTeX run or if 0 if not available (needs to be enabled with `\glsenableentryunitcount`). §6.1; 316

`\glsentryprevtotalcount``{〈entry-label〉}`glossaries v4.14+

Expands to the final entry count total from the previous LaTeX run or if 0 if not available (needs to be enabled with `\glsenableentryunitcount`). §6.1; 316

`\Glsentryshort``{〈entry-label〉}`glossaries v3.0+

Displays the value of the short field with sentence case applied. Does nothing if the entry hasn’t been defined. As from glossaries v4.50, this command can expand in PDF bookmarks. Outside of PDF bookmarks it will expand to a robust internal command.

`\glsentryshort``{〈entry-label〉}`glossaries v3.0+

Simply expands to the value of the short field. Does nothing if the entry hasn’t been defined. May be used in expandable contexts provided that the short field doesn’t contain any fragile commands.

`\Glsentryshortpl``{〈entry-label〉}`glossaries v3.0+

Displays the value of the shortplural field with sentence case applied. Does nothing if the entry hasn’t been defined. As from glossaries v4.50, this command can expand in PDF bookmarks. Outside of PDF bookmarks it will expand to a robust internal command.

`\glsentryshortpl``{〈entry-label〉}`glossaries v3.0+

Simply expands to the value of the shortplural field. Does nothing if the entry hasn’t been defined. May be used in expandable contexts provided that the shortplural field doesn’t contain any fragile commands.

`\Glsentrysymbol``{〈entry-label〉}`glossaries

Partially robust command that displays the value of the symbol field with sentence case applied. As from glossaries v4.50, this command can expand in PDF bookmarks. Outside of PDF bookmarks it will expand to a robust internal command.

`\glsentrysymbol``{〈entry-label〉}`glossaries

Simply expands to the value of the symbol field. Does nothing if the entry hasn’t been defined. May be used in expandable contexts provided that the symbol field doesn’t contain any fragile commands.

`\glsentrysymbolaccess``{〈entry-label〉}`glossaries-accsupp

As `\glsentrysymbol` but for the symbolaccess field.

`\glsentrysymbolplural``{〈entry-label〉}`glossaries

Simply expands to the value of the symbolplural field. Does nothing if the entry hasn’t been defined. May be used in expandable contexts provided that the symbolplural field doesn’t contain any fragile commands.

`\Glsentrytext``{〈entry-label〉}`glossaries

Partially robust command that displays the value of the text field with sentence case applied. As from glossaries v4.50, this command can expand in PDF bookmarks. Outside of PDF bookmarks it will expand to a robust internal command.

`\glsentrytext``{〈entry-label〉}`glossaries

Simply expands to the value of the text field. Does nothing if the entry hasn’t been defined. May be used in expandable contexts provided that the text field doesn’t contain any fragile commands.

`\glsentrytitlecase``{〈entry-label〉}{〈field-label〉}`glossaries v4.22+

Applies title case to the value supplied in the given field (which is obtained with `\glsfieldfetch`).

`\glsentrytype``{〈entry-label〉}`glossaries

Simply expands to the value of the type key. Does nothing if the entry hasn’t been defined.

`\Glsentryuseri``{〈entry-label〉}`glossaries v2.04+

Partially robust command that displays the value of the user1 field with sentence case applied. As from glossaries v4.50, this command can expand in PDF bookmarks. Outside of PDF bookmarks it will expand to a robust internal command.

`\glsentryuseri``{〈entry-label〉}`glossaries v2.04+

Simply expands to the value of the user1 field. Does nothing if the entry hasn’t been defined. May be used in expandable contexts provided that the user1 field doesn’t contain any fragile commands.

`\Glsentryuserii``{〈entry-label〉}`glossaries v2.04+

Partially robust command that displays the value of the user2 field with sentence case applied. As from glossaries v4.50, this command can expand in PDF bookmarks. Outside of PDF bookmarks it will expand to a robust internal command.

`\glsentryuserii``{〈entry-label〉}`glossaries v2.04+

Simply expands to the value of the user2 field. Does nothing if the entry hasn’t been defined. May be used in expandable contexts provided that the user2 field doesn’t contain any fragile commands.

`\Glsentryuseriii``{〈entry-label〉}`glossaries v2.04+

Partially robust command that displays the value of the user3 field with sentence case applied. As from glossaries v4.50, this command can expand in PDF bookmarks. Outside of PDF bookmarks it will expand to a robust internal command.

`\glsentryuseriii``{〈entry-label〉}`glossaries v2.04+

Simply expands to the value of the user3 field. Does nothing if the entry hasn’t been defined. May be used in expandable contexts provided that the user3 field doesn’t contain any fragile commands.

`\Glsentryuseriv``{〈entry-label〉}`glossaries v2.04+

Partially robust command that displays the value of the user4 field with sentence case applied. As from glossaries v4.50, this command can expand in PDF bookmarks. Outside of PDF bookmarks it will expand to a robust internal command.

`\glsentryuseriv``{〈entry-label〉}`glossaries v2.04+

Simply expands to the value of the user4 field. Does nothing if the entry hasn’t been defined. May be used in expandable contexts provided that the user4 field doesn’t contain any fragile commands.

`\Glsentryuserv``{〈entry-label〉}`glossaries v2.04+

Partially robust command that displays the value of the user5 field with sentence case applied. As from glossaries v4.50, this command can expand in PDF bookmarks. Outside of PDF bookmarks it will expand to a robust internal command.

`\glsentryuserv``{〈entry-label〉}`glossaries v2.04+

Simply expands to the value of the user5 field. Does nothing if the entry hasn’t been defined. May be used in expandable contexts provided that the user5 field doesn’t contain any fragile commands.

`\Glsentryuservi``{〈entry-label〉}`glossaries v2.04+

Partially robust command that displays the value of the user6 field with sentence case applied. As from glossaries v4.50, this command can expand in PDF bookmarks. Outside of PDF bookmarks it will expand to a robust internal command.

`\glsentryuservi``{〈entry-label〉}`glossaries v2.04+

Simply expands to the value of the user6 field. Does nothing if the entry hasn’t been defined. May be used in expandable contexts provided that the user6 field doesn’t contain any fragile commands.

`\glsexclapplyinnerfmtfield``{〈entry-label〉}{〈internal-field〉}`glossaries-extra v1.49+

Locally adds the field given by its internal field label 〈internal-field〉 to the inner formatting exclusion list for the entry identified by 〈entry-label〉. This typically means that the field value already contains the inner formatting. §5.5.3; 245

`\glsexpandfields` glossaries v3.08a+

Expand field values when defining entries, except for those that explicitly have expansion disabled with `\glssetnoexpandfield`.

`\glsextrapostnamehook``{〈entry-label〉}`glossaries-extra v1.25+

A general purpose hook that’s performed within `\glsxtrpostnamehook`. §8.6.1; 425

`\glsfieldaccsupp``{〈replacement〉}{〈content〉}{〈field〉}{〈entry-label〉}`glossaries-accsupp v4.45+

If glossaries-extra has been loaded, this command will first check for the existence of the command `\glsxtr〈category〉〈field〉accsupp`. If that command doesn’t exist or if glossaries-extra hasn’t been loaded, it then checks for the existence of `\gls〈field〉accsupp` (for example, `\glsshortaccsupp`). Failing that it will use `\glsaccsupp`. Whichever command is found first, `〈cs〉{〈replacement〉}{〈content〉}` is performed.

`\glsfielddef``{〈entry-label〉}{〈field〉}{〈value〉}`glossaries v4.16+

Locally assigns the 〈value〉 to the given field (identified by the internal field label 〈field〉) for the entry identified by 〈entry-label〉. Produces an error (or warning with undefaction=warn) if the entry or field doesn’t exist. Note that this doesn’t update any associated fields.

`\glsfieldedef``{〈entry-label〉}{〈field〉}{〈value〉}`glossaries v4.16+

Locally assigns the full expansion of 〈value〉 to the given field (identified by the internal field label 〈field〉) for the entry identified by 〈entry-label〉. Produces an error (or warning with undefaction=warn) if the entry or field doesn’t exist. Note that this doesn’t update any associated fields.

`\glsfieldfetch``{〈entry-label〉}{〈field-label〉}{〈cs〉}`glossaries v4.16+

Fetches the value of the given field for the given entry and stores it in the command 〈cs〉. Triggers an error if the given field (identified by its internal field label) hasn’t been defined. Uses `\glsdoifexists`.

`\glsfieldgdef``{〈entry-label〉}{〈field〉}{〈value〉}`glossaries v4.16+

As `\glsfielddef` but does a global assignment.

`\glsfieldxdef``{〈entry-label〉}{〈field〉}{〈value〉}`glossaries v4.16+

As `\glsfieldedef` but does a global assignment.

`\glsFindWidestAnyName``[〈glossary labels〉]`glossaries-extra-stylemods v1.05+

Finds and sets the widest name for all entries in the given glossaries. §8.6.5.4; 439

`\glsFindWidestAnyNameLocation``[〈glossary labels〉]{〈register〉}`glossaries-extra-stylemods v1.05+

Like `\glsFindWidestAnyName` but also also measures the location list. The length of the widest location is stored in 〈register〉, which should be a length register. §8.6.5.4; 440

`\glsFindWidestAnyNameSymbol``[〈glossary labels〉]{〈register〉}`glossaries-extra-stylemods v1.05+

Like `\glsFindWidestAnyName` but also also measures the symbol. The length of the widest symbol is stored in 〈register〉 which should be a length register. §8.6.5.4; 440

`\glsFindWidestAnyNameSymbolLocation``[〈glossary labels〉]{〈register1〉}{〈register2〉}`glossaries-extra-stylemods v1.05+

Like `\glsFindWidestAnyNameSymbol` but also also measures the location list. The length of the widest symbol is stored in 〈register1〉 and the length of the widest location is stored in 〈register2〉, which should both be length registers. §8.6.5.4; 440

`\glsFindWidestLevelTwo``[〈glossary labels〉]`glossaries-extra-stylemods v1.05+

Finds and sets the widest name for all entries with hierarchical level less than or equal to 2 in the given glossaries. §8.6.5.4; 439

`\glsFindWidestTopLevelName` glossaries-extra-stylemods

A synonym for `\glsfindwidesttoplevelname`. §8.6.5.4; 439

`\glsfindwidesttoplevelname``[〈glossary labels〉]`glossary-tree v4.22+

Finds and sets the widest name for all top-level entries in the given glossaries. If the optional argument is omitted, the list of all non-ignored glossaries is assumed.

`\glsFindWidestUsedAnyName``[〈glossary labels〉]`glossaries-extra-stylemods v1.05+

Finds and sets the widest name for all entries that have been marked as used in the given glossaries. §8.6.5.4; 439

`\glsFindWidestUsedAnyNameLocation``[〈glossary labels〉]{〈register〉}`glossaries-extra-stylemods v1.05+

Like `\glsFindWidestUsedAnyName` but also also measures the location list. The length of the widest location is stored in 〈register〉, which should be a length register. §8.6.5.4; 440

`\glsFindWidestUsedAnyNameSymbol``[〈glossary labels〉]{〈register〉}`glossaries-extra-stylemods v1.05+

Like `\glsFindWidestUsedAnyName` but also also measures the symbol. The length of the widest symbol is stored in 〈register〉 which should be a length register. §8.6.5.4; 440

`\glsFindWidestUsedAnyNameSymbolLocation``[〈glossary labels〉]{〈register1〉}{〈register2〉}`glossaries-extra-stylemods v1.05+

Like `\glsFindWidestUsedAnyNameSymbol` but also also measures the location list. The length of the widest symbol is stored in 〈register1〉 and the length of the widest location is stored in 〈register2〉, which should both be length registers. §8.6.5.4; 440

`\glsFindWidestUsedLevelTwo``[〈glossary labels〉]`glossaries-extra-stylemods v1.05+

Finds and sets the widest name for all entries that have been marked as used with hierarchical level less than or equal to 2 in the given glossaries. §8.6.5.4; 439

`\glsFindWidestUsedTopLevelName``[〈glossary labels〉]`glossaries-extra-stylemods v1.05+

Finds and sets the widest name for all top-level entries that have been marked as used in the given glossaries. §8.6.5.4; 439

`\GLSfirst``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries

As `\glsfirst` but converts the link text to all caps. If you have defined the entry with `\newabbreviation` use `\GLSxtrfull` or ``\GLS`[prereset]` instead.

`\Glsfirst``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries

As `\glsfirst` but converts the first character of the link text to uppercase (for the start of a sentence) using `\makefirstuc`. If you have defined the entry with `\newabbreviation` use `\Glsxtrfull` or ``\Gls`[prereset]` instead.

`\glsfirst``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries

References the entry identified by 〈entry-label〉. The text produced is obtained from the first value. The 〈insert〉 argument will be inserted at the end of the link text. This command does not alter or depend on the first use flag. If you have defined the entry with `\newabbreviation` use `\glsxtrfull` for the full form or `\glsxtrlong` for the long form or use ``\gls`[prereset]`, as some abbreviation styles are too complicated to work with `\glsfirst`. For the first optional argument, see `\glslink` options.

`\glsfirstabbrvdefaultfont``{〈text〉}`

Formatting command for the short form on first use used by the abbreviation styles that don’t apply a font change by default. 132

`\glsfirstabbrvemfont``{〈text〉}`glossaries-extra v1.04+

Short form font used by the “em” abbreviation styles on first use. 158

`\glsfirstabbrvfont``{〈text〉}`

Font formatting command for the short form on first use, initialised by the abbreviation style. 171

`\glsfirstabbrvhyphenfont``{〈text〉}`glossaries-extra v1.17+

Short form font used by the “hyphen” abbreviation styles on first use. 148

`\glsfirstabbrvonlyfont``{〈text〉}`glossaries-extra v1.17+

Short form font used by the “only” abbreviation styles on first use. 154

`\glsfirstabbrvscfont``{〈text〉}`glossaries-extra v1.17+

Short form font used by the small caps “sc” abbreviation styles on first use. 157

`\glsfirstabbrvsconlyfont``{〈text〉}`glossaries-extra v1.48+

Short form font used by the “sc-only” abbreviation styles on first use. 154

`\glsfirstabbrvscuserfont``{〈text〉}`glossaries-extra v1.48+

Short form font used by the small caps “sc-user” abbreviation styles on first use. 136

`\glsfirstabbrvsmfont``{〈text〉}`glossaries-extra v1.17+

Short form font used by the “sm” abbreviation styles on first use. 157

`\glsfirstabbrvuserfont``{〈text〉}`glossaries-extra v1.04+

Short form font used by the “user” abbreviation styles on first use. 136

`\glsfirstaccessdisplay``{〈text〉}{〈entry-label〉}`glossaries-accsupp

Does 〈text〉 with the firstaccess replacement text (if set).

`\glsfirstinnerfmtabbrvfont``{〈text〉}`glossaries-extra v1.49+

Applies both `\glsfirstabbrvfont` and `\glsxtrgenentrytextfmt` to 〈text〉. §4.5.3.1; 166

`\glsfirstinnerfmtlongfont``{〈text〉}`glossaries-extra v1.49+

Applies both `\glsfirstlongfont` and `\glsxtrgenentrytextfmt` to 〈text〉. §4.5.3.1; 167

`\glsfirstlongdefaultfont``{〈text〉}`

Formatting command for the long form on first use used by the abbreviation styles that don’t apply a font change by default. 133

`\glsfirstlongemfont``{〈text〉}`glossaries-extra v1.04+

Long form font used by the “em” abbreviation styles on first use. 158

`\glsfirstlongfont``{〈text〉}`

Font formatting command for the long form on first use, initialised by the abbreviation style. 171

`\glsfirstlongfootnotefont``{〈text〉}`glossaries-extra v1.05+

Formatting command for the first use long form used by the footnote abbreviation styles. 145

`\glsfirstlonghyphenfont``{〈text〉}`glossaries-extra v1.17+

Long form font used by the “hyphen” abbreviation styles on first use. 148

`\glsfirstlongonlyfont``{〈text〉}`glossaries-extra v1.17+

Long form font used by the “only” abbreviation styles on first use. 154

`\glsfirstlonguserfont``{〈text〉}`glossaries-extra v1.04+

Long form font used by the “user” abbreviation styles on first use. 136

`\GLSfirstplural``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries

As `\glsfirstplural` but converts the link text to all caps. If you have defined the entry with `\newabbreviation` use `\GLSxtrfullpl` or ``\GLSpl`[prereset]` instead.

`\Glsfirstplural``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries

As `\glsfirstplural` but converts the first character of the link text to uppercase (for the start of a sentence) using `\makefirstuc`. If you have defined the entry with `\newabbreviation` use `\Glsxtrfullpl` or ``\Glspl`[prereset]` instead.

`\glsfirstplural``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries

References the entry identified by 〈entry-label〉. The text produced is obtained from the firstplural value. The 〈insert〉 argument will be inserted at the end of the link text. This command does not alter or depend on the first use flag. If you have defined the entry with `\newabbreviation` use `\glsxtrfullpl` for the full form or `\glsxtrlongpl` for the long form or use ``\glspl`[prereset]`, as some abbreviation styles are too complicated to work with `\glsfirstplural`. For the first optional argument, see `\glslink` options.

`\glsfirstpluralaccessdisplay``{〈text〉}{〈entry-label〉}`glossaries-accsupp

Does 〈text〉 with the firstpluralaccess replacement text (if set).

`\glsfirstxpabbrvfont``{〈text〉}{〈category〉}`glossaries-extra v1.49+

If the markshortwords attribute is set for the given category, this encapsulates 〈text〉 with `\glsfirstabbrvfont` otherwise with `\glsfirstinnerfmtabbrvfont`. This command has to expand, so protect any content that shouldn’t expand. §4.5.3.1; 166

`\glsfirstxplongfont``{〈category〉}{〈text〉}`glossaries-extra v1.49+

If the markwords attribute is set for the given category, this encapsulates 〈text〉 with `\glsfirstlongfont` otherwise with `\glsinnerfmtlongfont`. This command has to expand, so protect any content that shouldn’t expand. §4.5.3.1; 168

`\GLSfmtfield``{〈insert〉}{〈cs〉}{〈entry-label〉}{〈internal-field〉}`glossaries-extra v1.49+

As `\glsfmtfield` but changes the field value to all caps. §5.5.3; 245

`\Glsfmtfield``{〈insert〉}{〈cs〉}{〈entry-label〉}{〈internal-field〉}`glossaries-extra v1.49+

As `\glsfmtfield` but uses `\makefirstuc` to change the field value to sentence case. §5.5.3; 245

`\glsfmtfield``{〈insert〉}{〈cs〉}{〈entry-label〉}{〈internal-field〉}`glossaries-extra v1.49+

Applies the formatting command 〈cs〉 (which takes one argument) to the entry’s field value identified by the given internal field label, including 〈insert〉 appended. Used by the inner formatting commands. Note that `\glsfmtfield` should not be robust as it needs to expand if it’s inside a case-changing command. §5.5.3; 245

`\GLSfmtfirst``{〈entry-label〉}`glossaries-extra v1.42+

For use within captions or section titles to display the formatted all caps first. §5.3.2; 212

`\Glsfmtfirst``{〈entry-label〉}`

For use within captions or section titles to display the formatted sentence case first. §5.3.2; 212

`\glsfmtfirst``{〈entry-label〉}`

For use within captions or section titles to display the formatted first. §5.3.2; 212

`\GLSfmtfirstpl``{〈entry-label〉}`glossaries-extra v1.42+

For use within captions or section titles to display the formatted all caps firstplural. §5.3.2; 213

`\Glsfmtfirstpl``{〈entry-label〉}`

For use within captions or section titles to display the formatted sentence case firstplural. §5.3.2; 213

`\glsfmtfirstpl``{〈entry-label〉}`

For use within captions or section titles to display the formatted firstplural. §5.3.2; 212

`\GLSfmtfull``{〈entry-label〉}`glossaries-extra v1.42+

Designed for use in section headings or captions, this expands to just ``\glspdffmtfull`{〈entry-label〉}` in PDF bookmarks (no case-change), otherwise it expands to ``\GLSxtrtitlefull`{〈entry-label〉}`. §5.3.2; 210

`\Glsfmtfull``{〈entry-label〉}`glossaries-extra v1.02+

Designed for use in section headings or captions, this expands to just ``\glspdffmtfull`{〈entry-label〉}` in PDF bookmarks (no case-change), otherwise it expands to ``\Glsxtrtitlefull`{〈entry-label〉}`. §5.3.2; 210

`\glsfmtfull``{〈entry-label〉}`glossaries-extra v1.02+

Designed for use in section headings or captions, this expands to just ``\glspdffmtfull`{〈entry-label〉}` in PDF bookmarks, otherwise it expands to ``\glsxtrtitlefull`{〈entry-label〉}`. §5.3.2; 209

`\GLSfmtfullpl``{〈entry-label〉}`glossaries-extra v1.42+

Designed for use in section headings or captions, this expands to just ``\glspdffmtfullpl`{〈entry-label〉}` in PDF bookmarks (no case-change), otherwise it expands to ``\GLSxtrtitlefullpl`{〈entry-label〉}`. §5.3.2; 210

`\Glsfmtfullpl``{〈entry-label〉}`glossaries-extra v1.02+

Designed for use in section headings or captions, this expands to just ``\glspdffmtfullpl`{〈entry-label〉}` in PDF bookmarks (no case-change), otherwise it expands to ``\Glsxtrtitlefullpl`{〈entry-label〉}`. §5.3.2; 210

`\glsfmtfullpl``{〈entry-label〉}`glossaries-extra v1.02+

Designed for use in section headings or captions, this expands to just ``\glspdffmtfullpl`{〈entry-label〉}` in PDF bookmarks, otherwise it expands to ``\glsxtrtitlefullpl`{〈entry-label〉}`. §5.3.2; 210

`\GLSfmtinsert` glossaries-extra v1.49+

As `\glsfmtinsert` but converts to all caps.

`\glsfmtinsert` glossaries-extra v1.49+

A shortcut that applies `\glsxtrgenentrytextfmt` to `\glsinsert` if `\glsinsert` isn’t empty.

`\GLSfmtlong``{〈entry-label〉}`

For use within captions or section titles to display the formatted all caps long form. §5.3.2; 208

`\Glsfmtlong``{〈entry-label〉}`

For use within captions or section titles to display the formatted sentence case long form. §5.3.2; 207

`\glsfmtlong``{〈entry-label〉}`

For use within captions or section titles to display the formatted long form. §5.3.2; 207

`\GLSfmtlongpl``{〈entry-label〉}`

For use within captions or section titles to display the formatted all caps long plural form. §5.3.2; 208

`\Glsfmtlongpl``{〈entry-label〉}`

For use within captions or section titles to display the formatted sentence case long plural form. §5.3.2; 208

`\glsfmtlongpl``{〈entry-label〉}`

For use within captions or section titles to display the formatted long plural form. §5.3.2; 208

`\GLSfmtname``{〈entry-label〉}`glossaries-extra v1.21+

For use within captions or section titles to display the formatted all caps name. §5.3.2; 211

`\Glsfmtname``{〈entry-label〉}`glossaries-extra v1.21+

For use within captions or section titles to display the formatted sentence case name. §5.3.2; 211

`\glsfmtname``{〈entry-label〉}`glossaries-extra v1.21+

For use within captions or section titles to display the formatted name. §5.3.2; 210

`\GLSfmtplural``{〈entry-label〉}`glossaries-extra v1.42+

For use within captions or section titles to display the formatted all caps plural. §5.3.2; 212

`\Glsfmtplural``{〈entry-label〉}`

For use within captions or section titles to display the formatted sentence case plural. §5.3.2; 212

`\glsfmtplural``{〈entry-label〉}`

For use within captions or section titles to display the formatted plural. §5.3.2; 211

`\GLSfmtshort``{〈entry-label〉}`

For use within captions or section titles to display the formatted all caps short form. §5.3.2; 206

`\Glsfmtshort``{〈entry-label〉}`

For use within captions or section titles to display the formatted sentence case short form. §5.3.2; 206

`\glsfmtshort``{〈entry-label〉}`

For use within captions or section titles to display the formatted short form. §5.3.2; 206

`\GLSfmtshortpl``{〈entry-label〉}`

For use within captions or section titles to display the formatted all caps short plural form. §5.3.2; 207

`\Glsfmtshortpl``{〈entry-label〉}`

For use within captions or section titles to display the formatted sentence case short plural form. §5.3.2; 207

`\glsfmtshortpl``{〈entry-label〉}`

For use within captions or section titles to display the formatted short plural form. §5.3.2; 206

`\GLSfmttext``{〈entry-label〉}`glossaries-extra v1.42+

For use within captions or section titles to display the formatted all caps text. §5.3.2; 211

`\Glsfmttext``{〈entry-label〉}`

For use within captions or section titles to display the formatted sentence case text. §5.3.2; 211

`\glsfmttext``{〈entry-label〉}`

For use within captions or section titles to display the formatted text. §5.3.2; 211

`\glsforeachincategory``[〈glossary-types〉]{〈category〉}{〈glossary-cs〉}{〈label-cs〉}{〈body〉}`

Iterates over all entry in the given list of glossaries (or all non-ignored glossaries, if the optional argument is omitted) and performs 〈body〉 for those entries that have the category set to 〈category〉. Within 〈body〉, the current entry can be referenced with 〈label-cs〉 and the glossary can be referenced with 〈glossary-cs〉. §10; 516

`\glsforeachwithattribute``[〈glossary-types〉]{〈attribute-label〉}{〈attribute-value〉}{〈glossary-cs〉}{〈label-cs〉}{〈body〉}`

Iterates over all entry in the given list of glossaries (or all non-ignored glossaries, if the optional argument is omitted) and performs 〈body〉 for those entries that have the attribute given by 〈attribute-label〉 set to 〈attribute-value〉. Within 〈body〉, the current entry can be referenced with 〈label-cs〉 and the glossary can be referenced with 〈glossary-cs〉. §10; 516

`\glsgenentryfmt` glossaries v3.11a+

The display format used by `\glsentryfmt` for regular entries. §5.5.5; 255

`\glsgetattribute``{〈entry-label〉}{〈attribute〉}`

Expands to the value of the given attribute for the category associated with the entry identified by 〈entry-label〉. Expands to nothing if the attribute hasn’t been set. §10.2.2; 528

`\glsgetcategoryattribute``{〈category〉}{〈attribute〉}`

Expands to the value of the given attribute for the given category. Expands to nothing if the attribute hasn’t been set. §10.2.2; 528

`\glsgetwidestname` glossaries-extra-stylemods v1.05+

Expands to the widest top-level name. §8.6.5.4; 438

`\glsgetwidestsubname``{〈level〉}`glossaries-extra-stylemods v1.05+

Expands to the widest name for the given hierarchical level or to the widest top-level name, if no widest name set for 〈level〉. §8.6.5.4; 438

`\glsgroupheading``{〈group-label〉}`glossaries

Inserted at the start of each group in a glossary (unless groups=false) to display the group’s heading, if applicable, using the title associated with 〈group-label〉 or, if no title provided, just 〈group-label〉. This command is defined by glossary styles as appropriate.

`\glsgroupskip` glossaries

Inserted before each group heading (except the first) in a glossary (unless groups=false). This command is defined by glossary styles as appropriate. Most of the predefined styles define this command to check the nogroupskip option.

`\glshasattribute``{〈entry-label〉}{〈attribute〉}{〈true〉}{〈false〉}`

Tests if the given attribute has been set for the category associated with the entry identified by 〈entry-label〉 (using etoolbox’s `\ifcsvoid`). Does 〈false〉 if the entry hasn’t been defined. §10.2.2; 528

`\glshascategoryattribute``{〈category〉}{〈attribute〉}{〈true〉}{〈false〉}`

Tests if the given attribute has been set for the given category (using etoolbox’s `\ifcsvoid`). §10.2.2; 528

`\glshashchar` glossaries-extra-bib2gls v1.49+

Expands to a literal hash `#`. §11.5.2; 558

`\glshex``〈hex〉`glossaries-extra-bib2gls v1.21+

Expands to ``\string``\u`〈hex〉`. §11.5.2; 558

`\glshyperlink``[〈text〉]{〈entry-label〉}`glossaries v1.17+

Creates a hyperlink to the given entry with the hyperlink text provided in the optional argument. If omitted, the default is ``\glsentrytext`{〈entry-label〉}`.

`\glshypernumber``{〈location(s)〉}`glossaries

This will encapsulate each location with a hyperlink, if supported. This may be used as a location encap. The argument may be a single location or locations delimited by `\delimR` or `\delimN`. This command should not be used outside of location lists as it requires additional information in order to correctly form the hyperlinks.

`\glsifapplyinnerfmtfield``{〈entry-label〉}{〈internal-field〉}{〈true〉}{〈false〉}`glossaries-extra v1.49+

Tests if the field given by its internal field label 〈internal-field〉 has been added to the inner formatting exclusion list for the entry identified by 〈entry-label〉. §5.5.3; 244

`\glsifattribute``{〈entry-label〉}{〈attribute〉}{〈value〉}{〈true〉}{〈false〉}`

Tests if the category associated with the entry identified by 〈entry-label〉 has the given attribute set to 〈value〉. Does 〈true〉 if the attribute is 〈value〉 and 〈false〉 otherwise. Does 〈false〉 if there’s no such attribute for the given category or if the entry hasn’t been defined. §10.2.2; 529

`\glsifattributetrue``{〈entry-label〉}{〈attribute〉}{〈true〉}{〈false〉}`glossaries-extra v1.49+

Tests if the category associated with the entry given by 〈entry-label〉 has the given attribute set to `true`. Does 〈true〉 if the attribute is `true` and 〈false〉 otherwise. Does 〈false〉 if there’s no such attribute for the given category or if the entry hasn’t been defined. §10.2.2; 529

`\glsifcategory``{〈entry-label〉}{〈category〉}{〈true〉}{〈false〉}`

Tests if the entry identified by 〈entry-label〉 has the category set to 〈category〉 (uses `\ifglsfieldeq` for the test). §10; 515

`\glsifcategoryattribute``{〈category〉}{〈attribute〉}{〈value〉}{〈true〉}{〈false〉}`

Tests if the given category has the given attribute set to 〈value〉. Does 〈true〉 if the attribute is 〈value〉 and 〈false〉 otherwise. Does 〈false〉 if there’s no such attribute for the given category. §10.2.2; 528

`\glsifcategoryattributehasitem``{〈category〉}{〈attribute〉}{〈item〉}{〈true〉}{〈false〉}`glossaries-extra v1.49+

Does 〈true〉 if the category has the attribute (whose value is a comma-separated list) contains the given item and 〈false〉 otherwise. Does 〈false〉 if there’s no such attribute for the given category. The item and list are expanded and passed to datatool’s `\DTLifinlist` to perform the test. §10.2.2; 530

`\glsifcategoryattributetrue``{〈category〉}{〈attribute〉}{〈true〉}{〈false〉}`glossaries-extra v1.49+

Tests if the given category has the given attribute set to `true`. Does 〈true〉 if the attribute is `true` and 〈false〉 otherwise. Does 〈false〉 if there’s no such attribute for the given category. §10.2.2; 529

`\glsifindexed``{〈entry-label〉}{〈true〉}{〈false〉}`glossaries-extra v1.49+

Tests if the value obtained from `\glsentryindexcount` is greater than 0. §5.8; 267

`\glsifnotregular``{〈entry-label〉}{〈true〉}{〈false〉}`glossaries-extra v1.04+

Does 〈true〉 if the category for the given entry has the regular attribute explicitly set to `false`, otherwise does 〈false〉. §10.2.2; 529

`\glsifnotregularcategory``{〈category〉}{〈true〉}{〈false〉}`glossaries-extra v1.04+

Does 〈true〉 if the given category has the regular attribute explicitly set to `false`, otherwise does 〈false〉. §10.2.2; 529

`\glsifplural``{〈true〉}{〈false〉}`glossaries

Initialised by the `\gls`-like and `\glstext`-like commands, this expands to 〈true〉 if the calling command accesses a plural field (such as `\glspl` or `\glsplural`) otherwise it expands to 〈false〉. This command may be used within associated hooks, entry display styles (`\defglsentryfmt`), and the post-link hook.

`\glsifregular``{〈entry-label〉}{〈true〉}{〈false〉}`

Does 〈true〉 if the category for the given entry has the regular attribute explicitly set to `true`, otherwise does 〈false〉. §10.2.2; 529

`\glsifregularcategory``{〈category〉}{〈true〉}{〈false〉}`

Does 〈true〉 if the given category has the regular attribute explicitly set to `true`, otherwise does 〈false〉. §10.2.2; 529

`\glsignore``{〈text〉}`glossaries v4.12+

Does nothing. When used as a location encap, this signifies to bib2gls that the entry is required but the location shouldn’t be added to the location list. With other indexing methods, this simply creates an invisible location.

`\glsindexingsetting` glossaries v4.50+ & glossaries-extra v1.49+

Indicates what indexing option has been chosen.

`\glsindexsubgroupitem``{〈previous group level〉}{〈level〉}{〈parent label〉}{〈group label〉}{〈group title〉}`glossaries-extra-stylemods v1.49+

Used to format sub-group headers for the indexgroup styles.

`\glsinitreunsets` glossaries-extra v1.49+

Hook that initialises the prereset, preunset and postunset settings. §5.1.1; 188

`\glsinlinedescformat``{〈description〉}{〈symbol〉}{〈location list〉}`glossary-inline v3.03+

Formats the description, symbol and location list for top-level entries.

`\glsinlinesubdescformat``{〈description〉}{〈symbol〉}{〈location list〉}`glossary-inline v3.03+

Formats the description, symbol and location list for child entries.

`\glsinnerfmtabbrvfont``{〈text〉}`glossaries-extra v1.49+

Robust command that applies both `\glsabbrvfont` and `\glsxtrgenentrytextfmt` to 〈text〉. §4.5.3.1; 167

`\glsinnerfmtlongfont``{〈text〉}`glossaries-extra v1.49+

Applies both `\glslongfont` and `\glsxtrgenentrytextfmt` to 〈text〉. §4.5.3.1; 168

`\glsinsert` glossaries

The final 〈insert〉 argument passed to the `\gls`-like commands (but not to the `\glstext`-like commands, where the 〈insert〉 is added to `\glscustomtext`). This command may be used within associated hooks, entry display styles (`\defglsentryfmt`), and the post-link hook.

`\glskeylisttok` glossaries

A token register that stores the options passed to `\newabbreviation`. §4.5.3.1; 163

`\glslabel` glossaries

The current entry label, initialised by the `\gls`-like and `\glstext`-like commands. This command may be used within associated hooks, entry display styles (`\defglsentryfmt`), and the post-link hook.

`\glslabeltok` glossaries

A token register that stores the entry’s label. §4.5.3.1; 163

`\glsletentryfield``{〈cs〉}{〈entry-label〉}{〈field-label〉}`glossaries v4.07+

Fetches the value of the given field (identified by its internal label 〈field-label〉) for the entry given by 〈entry-label〉 and stores it in the command 〈cs〉.

`\Glslink``[〈options〉]{〈entry-label〉}{〈text〉}`modifiers: * + 〈alt-mod〉 glossaries v4.50+

As `\glslink` but sets the link text to ``\glssentencecase`{〈text〉}`. This is provided to allow a sentence case mapping in the event that `\glslink` occurs at the start of content that has automated case-changing.

`\glslink``[〈options〉]{〈entry-label〉}{〈text〉}`modifiers: * + 〈alt-mod〉 glossaries

References the entry identified by 〈entry-label〉 with the given 〈text〉 as the link text. This command does not alter or depend on the first use flag (use `\glsdisp` instead, if the first use flag needs to be unset). This command is considered a `\glstext`-like command. For the first optional argument, see `\glslink` options.

`\glslinkcheckfirsthyperhook` glossaries v4.08+

Hook used at the end of the code in the `\gls`-like commands that tests if the hyperlink should be switched off on first use.

`\glslinkpostsetkeys` glossaries v4.16+

Hook implemented after setting the options passed to the `\gls`-like and `\glstext`-like commands.

`\glslinkpresetkeys` glossaries-extra v1.26+

Hook implemented before setting the options passed to the `\gls`-like and `\glstext`-like commands. §5.1.1; 187

`\glslinkwrcontent``{〈code〉}`glossaries-extra v1.48+

Encapsulates the link text and indexing. Just does 〈code〉 by default. §5; 183

`\glslistchildpostlocation` initial: .; glossaries-extra-stylemods v1.21+

Used after the child entry location list for the list styles. §8.6.5.3; 433

`\glslistchildprelocation` initial: `\glslistprelocation`; glossaries-extra-stylemods v1.21+

Used before the child entry location list for the list styles. §8.6.5.3; 432

`\glslistdesc``{〈entry-label〉}`glossaries-extra-stylemods v1.31+

Used to display the description for the list styles. §8.6.5.3; 433

`\glslistdottedwidth` glossary-list

A length register used by listdotted.

`\glslistexpandedname``{〈entry-label〉}`glossary-list v4.48+

Used by `\glslistinit` to provide better integration with gettitlestring.

`\glslistgroupafterheader` glossaries-extra-stylemods v1.47+

Used after group headings in the listgroup styles. §8.6.5.3; 433

`\glslistgroupheaderitem``{〈group-label〉}{〈header code〉}`glossaries-extra-stylemods v1.47+

Used to display the group headings in the listgroup styles. §8.6.5.3; 433

`\glslistgroupskip` glossaries-extra-stylemods v1.31+

Used for the group skip in the list styles. §8.6.5.3; 433

`\glslistinit` glossary-list v4.48+

Used to disable problematic commands at the start the list styles to provide better integration with gettitlestring.

`\glslistitem``{〈entry-label〉}`glossaries-extra-stylemods v1.47+

Used to display the top-level entry item in the list styles. §8.6.5.3; 433

`\glslistprelocation` initial: `\glsxtrprelocation`; glossaries-extra-stylemods v1.21+

Used before the top-level entry location list for the list styles. §8.6.5.3; 432

`\glslocalreset``{〈entry-label〉}`glossaries

Locally resets the entry’s first use flag. That is, this marks the entry as “not used”.

`\glslocalresetall``[〈glossary labels list〉]`glossaries

Locally resets the first use flag for all entries in whose labels are listed in the 〈glossary labels list〉 comma-separated list. If the optional argument is omitted, the list of all non-ignored glossaries is assumed.

`\glslocalreseteach``{〈entry-labels〉}`glossaries-extra v1.31+

Locally resets each listed entry’s first use flag. §5.10; 283

`\glslocalunset``{〈entry-label〉}`glossaries

Locally unsets the entry’s first use flag. That is, this marks the entry as “used”.

`\glslocalunsetall``[〈glossary labels list〉]`glossaries

Locally unsets the first use flag for all entries in whose labels are listed in the 〈glossary labels list〉 comma-separated list. If the optional argument is omitted, the list of all non-ignored glossaries is assumed.

`\glslocalunseteach``{〈entry-labels〉}`glossaries-extra v1.31+

Locally unsets each listed entry’s first use flag. §5.10; 283

`\glslongaccessdisplay``{〈text〉}{〈entry-label〉}`glossaries-accsupp

Does 〈text〉 with the longaccess replacement text (if set).

`\glslongdefaultfont``{〈text〉}`glossaries-extra v1.04+

Formatting command for the long form used by the abbreviation styles that don’t apply a font change by default. 133

`\glslongemfont``{〈text〉}`glossaries-extra v1.04+

Long form font used by the “em” abbreviation styles. 158

`\glslongextraCustomIAlign` initial: l; glossary-longextra v1.50+

Expands to the column alignment for the first custom field. §8.7.2.7; 468

`\glslongextraCustomIField` initial: useri; glossary-longextra v1.50+

Expands to the internal field name of the first custom field. §8.7.2.7; 465

`\glslongextraCustomIFmt``{〈entry-label〉}`glossary-longextra v1.50+

The format of the first custom entry. §8.7.2.7; 466

`\glslongextraCustomIHeader` glossary-longextra v1.50+

Expands to the header name of the first custom column. §8.7.2.7; 466

`\glslongextraCustomIIAlign` initial: l; glossary-longextra v1.50+

Expands to the column alignment for the second custom field. §8.7.2.7; 468

`\glslongextraCustomIIField` initial: userii; glossary-longextra v1.50+

Expands to the internal field name of the second custom field. §8.7.2.7; 466

`\glslongextraCustomIIFmt``{〈entry-label〉}`glossary-longextra v1.50+

The format of the second custom entry. §8.7.2.7; 467

`\glslongextraCustomIIHeader` glossary-longextra v1.50+

Expands to the header name of the second custom column. §8.7.2.7; 466

`\glslongextraCustomIIIAlign` initial: l; glossary-longextra v1.50+

Expands to the column alignment for the third custom field. §8.7.2.7; 468

`\glslongextraCustomIIIField` initial: useriii; glossary-longextra v1.50+

Expands to the internal field name of the third custom field. §8.7.2.7; 466

`\glslongextraCustomIIIFmt``{〈entry-label〉}`glossary-longextra v1.50+

The format of the third custom entry. §8.7.2.7; 467

`\glslongextraCustomIIIHeader` glossary-longextra v1.50+

Expands to the header name of the third custom column. §8.7.2.7; 466

`\glslongextraCustomIIINameHeader` glossary-longextra v1.50+

The header for the longtable long-custom3-name style. §8.7.2.7; 469

`\glslongextraCustomIIINameTabularHeader` glossary-longextra v1.50+

The header for the long-custom3-name style. §8.7.2.7; 469

`\glslongextraCustomIIISetDescWidth` glossary-longextra v1.50+

Used to set the length `\glsdescwidth` for long-name-custom3-desc style. §8.7.2.7; 471

`\glslongextraCustomIINameHeader` glossary-longextra v1.50+

The header for the longtable long-custom2-name style. §8.7.2.7; 469

`\glslongextraCustomIINameTabularHeader` glossary-longextra v1.50+

The header for the long-custom2-name style. §8.7.2.7; 469

`\glslongextraCustomIISetDescWidth` glossary-longextra v1.50+

Used to set the length `\glsdescwidth` for long-name-custom2-desc style. §8.7.2.7; 471

`\glslongextraCustomINameHeader` glossary-longextra v1.50+

The header for the longtable long-custom1-name style. §8.7.2.7; 468

`\glslongextraCustomINameTabularHeader` glossary-longextra v1.50+

The header for the long-custom1-name style. §8.7.2.7; 468

`\glslongextraCustomISetDescWidth` glossary-longextra v1.50+

Used to set the length `\glsdescwidth` for long-name-custom1-desc style. §8.7.2.7; 471

`\glslongextraCustomTabularFooter` glossary-longextra v1.50+

The footer for the custom styles. §8.7.2.7; 468

`\glslongextraDescAlign` glossary-longextra v1.37+

The horizontal alignment for the description column. §8.7.2; 450

`\glslongextraDescCustomIIINameHeader` glossary-longextra v1.50+

The header for the longtable long-desc-custom3-name style. §8.7.2.7; 473

`\glslongextraDescCustomIIINameTabularHeader` glossary-longextra v1.50+

The header for the long-desc-custom3-name style. §8.7.2.7; 473

`\glslongextraDescCustomIINameHeader` glossary-longextra v1.50+

The header for the longtable long-desc-custom2-name style. §8.7.2.7; 472

`\glslongextraDescCustomIINameTabularHeader` glossary-longextra v1.50+

The header for the long-desc-custom2-name style. §8.7.2.7; 472

`\glslongextraDescCustomINameHeader` glossary-longextra v1.50+

The header for the longtable long-desc-custom1-name style. §8.7.2.7; 472

`\glslongextraDescCustomINameTabularHeader` glossary-longextra v1.50+

The header for the long-desc-custom1-name style. §8.7.2.7; 472

`\glslongextraDescFmt``{〈entry-label〉}`glossary-longextra v1.37+

Used by the glossary-longextra styles to display a top-level entry’s description and post-description hook. §8.7.2; 450

`\glslongextraDescNameHeader` glossary-longextra v1.37+

Sets the header and footer for the long-desc-name style with longtable. §8.7.2.1; 454

`\glslongextraDescNameTabularFooter` glossary-longextra v1.37+

Displays the footer for the long-desc-name style. §8.7.2.1; 454

`\glslongextraDescNameTabularHeader` glossary-longextra v1.37+

Displays the header for the long-desc-name style. §8.7.2.1; 453

`\glslongextraDescSymHeader` glossary-longextra v1.49+

Sets the header and footer for the long-desc-sym style with longtable. §8.7.2.5; 462

`\glslongextraDescSymNameHeader` glossary-longextra v1.37+

Sets the header and footer for the long-desc-sym-name style with longtable. §8.7.2.2; 456

`\glslongextraDescSymNameTabularFooter` glossary-longextra v1.37+

Displays the footer for the long-desc-sym-name style. §8.7.2.2; 456

`\glslongextraDescSymNameTabularHeader` glossary-longextra v1.37+

Displays the header for the long-desc-sym-name style. §8.7.2.2; 456

`\glslongextraDescSymTabularFooter` glossary-longextra v1.49+

Displays the footer for the long-desc-sym style. §8.7.2.5; 462

`\glslongextraDescSymTabularHeader` glossary-longextra v1.49+

Displays the header for the long-desc-sym style. §8.7.2.5; 462

`\glslongextraGroupHeading``{〈number columns〉}{〈group-label〉}`glossary-longextra v1.37+

Formats the top-level group heading. §8.7.2; 452

`\glslongextraHeaderFmt``{〈text〉}`glossary-longextra v1.37+

Used to format the column headers. §8.7.2; 449

`\glslongextraLocationAlign` glossary-longextra v1.37+

The horizontal alignment for the location list column. §8.7.2; 451

`\glslongextraLocationDescNameHeader` glossary-longextra v1.37+

Sets the header and footer for the long-loc-desc-name style with longtable. §8.7.2.3; 457

`\glslongextraLocationDescNameTabularFooter` glossary-longextra v1.37+

Displays the footer for the long-loc-desc-name style. §8.7.2.3; 457

`\glslongextraLocationDescNameTabularHeader` glossary-longextra v1.37+

Displays the header for the long-loc-desc-name style. §8.7.2.3; 457

`\glslongextraLocationDescSymNameHeader` glossary-longextra v1.37+

Sets the header and footer for the long-loc-desc-sym-name style with longtable. §8.7.2.4; 460

`\glslongextraLocationDescSymNameTabularFooter` glossary-longextra v1.37+

Displays the footer for the long-loc-desc-sym-name style. §8.7.2.4; 459

`\glslongextraLocationDescSymNameTabularHeader` glossary-longextra v1.37+

Displays the header for the long-loc-desc-sym-name style. §8.7.2.4; 459

`\glslongextraLocationFmt``{〈entry-label〉}{〈location list〉}`glossary-longextra v1.37+

Used by the glossary-longextra styles to display a top-level entry’s location list. §8.7.2; 451

`\glslongextraLocationSymDescNameHeader` glossary-longextra v1.37+

Sets the header and footer for the long-loc-sym-desc-name style with longtable. §8.7.2.4; 459

`\glslongextraLocationSymDescNameTabularFooter` glossary-longextra v1.37+

Displays the footer for the long-loc-sym-desc-name style. §8.7.2.4; 459

`\glslongextraLocationSymDescNameTabularHeader` glossary-longextra v1.37+

Displays the header for the long-loc-sym-desc-name style. §8.7.2.4; 459

`\glslongextraLocSetDescWidth` glossary-longextra v1.37+

Computes the value of `\glsdescwidth` according to the widest name for styles that only show the name, location list and description. §8.7.2.3; 456

`\glslongextraLongFmt``{〈entry-label〉}`glossary-longextra v1.49+

The formatting for the long form in the abbr-long-short and abbr-short-long styles. §8.7.2.6; 463

`\glslongextraLongHeader` initial: `\descriptionname`; glossary-longextra v1.49+

The long column header for the abbr-long-short and abbr-short-long styles. §8.7.2.6; 463

`\glslongextraLongShortHeader` glossary-longextra v1.49+

Sets the header and footer for the abbr-short-long style with longtable. §8.7.2.6; 465

`\glslongextraLongShortTabularFooter` glossary-longextra v1.49+

Displays the footer for the abbr-short-long style. §8.7.2.6; 465

`\glslongextraLongShortTabularHeader` glossary-longextra v1.49+

Displays the header for the abbr-short-long style. §8.7.2.6; 465

`\glslongextraNameAlign` initial: l; glossary-longextra v1.37+

The horizontal alignment for the name column. §8.7.2; 450

`\glslongextraNameCustomIDescHeader` glossary-longextra v1.50+

The header for the longtable long-name-custom1-desc style. §8.7.2.7; 471

`\glslongextraNameCustomIDescTabularHeader` glossary-longextra v1.50+

The header for the long-name-custom1-desc style. §8.7.2.7; 471

`\glslongextraNameCustomIHeader` glossary-longextra v1.50+

The header for the longtable long-name-custom1 style. §8.7.2.7; 468

`\glslongextraNameCustomIIDescHeader` glossary-longextra v1.50+

The header for the longtable long-name-custom2-desc style. §8.7.2.7; 472

`\glslongextraNameCustomIIDescTabularHeader` glossary-longextra v1.50+

The header for the long-name-custom2-desc style. §8.7.2.7; 472

`\glslongextraNameCustomIIHeader` glossary-longextra v1.50+

The header for the longtable long-name-custom2 style. §8.7.2.7; 469

`\glslongextraNameCustomIIIDescHeader` glossary-longextra v1.50+

The header for the longtable long-name-custom3-desc style. §8.7.2.7; 472

`\glslongextraNameCustomIIIDescTabularHeader` glossary-longextra v1.50+

The header for the long-name-custom3-desc style. §8.7.2.7; 472

`\glslongextraNameCustomIIIHeader` glossary-longextra v1.50+

The header for the longtable long-name-custom3 style. §8.7.2.7; 469

`\glslongextraNameCustomIIITabularHeader` glossary-longextra v1.50+

The header for the long-name-custom3 style. §8.7.2.7; 469

`\glslongextraNameCustomIITabularHeader` glossary-longextra v1.50+

The header for the long-name-custom2 style. §8.7.2.7; 469

`\glslongextraNameCustomITabularHeader` glossary-longextra v1.50+

The header for the long-name-custom1 style. §8.7.2.7; 468

`\glslongextraNameDescHeader` glossary-longextra v1.37+

Sets the header and footer for the long-name-desc style with longtable. §8.7.2.1; 453

`\glslongextraNameDescLocationHeader` glossary-longextra v1.37+

Sets the header and footer for the long-name-desc-loc style with longtable. §8.7.2.3; 457

`\glslongextraNameDescLocationTabularFooter` glossary-longextra v1.37+

Displays the footer for the long-name-desc-loc style. §8.7.2.3; 457

`\glslongextraNameDescLocationTabularHeader` glossary-longextra v1.37+

Displays the header for the long-name-desc-loc style. §8.7.2.3; 457

`\glslongextraNameDescSymHeader` glossary-longextra v1.37+

Sets the header and footer for the long-name-desc-sym style with longtable. §8.7.2.2; 454

`\glslongextraNameDescSymLocationHeader` glossary-longextra v1.37+

Sets the header and footer for the long-name-desc-sym-loc style with longtable. §8.7.2.4; 458

`\glslongextraNameDescSymLocationTabularFooter` glossary-longextra v1.37+

Displays the footer for the long-name-desc-sym-loc style. §8.7.2.4; 458

`\glslongextraNameDescSymLocationTabularHeader` glossary-longextra v1.37+

Displays the header for the long-name-desc-sym-loc style. §8.7.2.4; 458

`\glslongextraNameDescSymTabularFooter` glossary-longextra v1.37+

Displays the footer for the long-name-desc-sym style. §8.7.2.2; 454

`\glslongextraNameDescSymTabularHeader` glossary-longextra v1.37+

Displays the header for the long-name-desc-sym style. §8.7.2.2; 454

`\glslongextraNameDescTabularFooter` glossary-longextra v1.37+

Displays the footer for the long-name-desc style. §8.7.2.1; 453

`\glslongextraNameDescTabularHeader` glossary-longextra v1.37+

Displays the header for the long-name-desc style. §8.7.2.1; 453

`\glslongextraNameFmt``{〈entry-label〉}`glossary-longextra v1.37+

Used by the glossary-longextra styles to add the hypertarget (if supported) and display a top-level entry’s name. §8.7.2; 450

`\glslongextraNameSymDescHeader` glossary-longextra v1.37+

Sets the header and footer for the long-name-sym-desc style with longtable. §8.7.2.2; 455

`\glslongextraNameSymDescLocationHeader` glossary-longextra v1.37+

Sets the header and footer for the long-name-sym-desc-loc style with longtable. §8.7.2.4; 459

`\glslongextraNameSymDescLocationTabularFooter` glossary-longextra v1.37+

Displays the footer for the long-name-sym-desc-loc style. §8.7.2.4; 458

`\glslongextraNameSymDescLocationTabularHeader` glossary-longextra v1.37+

Displays the header for the long-name-sym-desc-loc style. §8.7.2.4; 458

`\glslongextraNameSymDescTabularFooter` glossary-longextra v1.37+

Displays the footer for the long-name-sym-desc style. §8.7.2.2; 455

`\glslongextraNameSymDescTabularHeader` glossary-longextra v1.37+

Displays the header for the long-name-sym-desc style. §8.7.2.2; 455

`\glslongextraSetDescWidth` glossary-longextra v1.37+

Computes the value of `\glsdescwidth` according to the widest name for styles that only show the name and description. §8.7.2.1; 453

`\glslongextraSetWidest``{〈widest-name〉}`glossary-longextra v1.37+

Identifies 〈widest-name〉 as the widest top-level name. §8.7.2; 451

`\glslongextraShortHeader` initial: `\entryname`; glossary-longextra v1.49+

The short column header for the abbr-long-short and abbr-short-long styles. §8.7.2.6; 462

`\glslongextraShortLongHeader` glossary-longextra v1.49+

Sets the header and footer for the abbr-short-long style with longtable. §8.7.2.6; 464

`\glslongextraShortLongTabularFooter` glossary-longextra v1.49+

Displays the footer for the abbr-short-long style. §8.7.2.6; 464

`\glslongextraShortLongTabularHeader` glossary-longextra v1.49+

Displays the header for the abbr-short-long style. §8.7.2.6; 464

`\glslongextraShortNoNameSetDescWidth` glossary-longextra v1.49+

Sets the value of `\glsdescwidth` for the abbr-long-short and abbr-short-long styles. §8.7.2.6; 464

`\glslongextraShortTargetFmt``{〈entry-label〉}`glossary-longextra v1.49+

The formatting, including the target, for the short form in the abbr-long-short and abbr-short-long styles. §8.7.2.6; 463

`\glslongextraSubCustomIFmt``{〈level〉}{〈entry-label〉}`glossary-longextra v1.50+

The format of the first custom sub-entry. §8.7.2.7; 467

`\glslongextraSubCustomIIFmt``{〈level〉}{〈entry-label〉}`glossary-longextra v1.50+

The format of the second custom sub-entry. §8.7.2.7; 467

`\glslongextraSubCustomIIIFmt``{〈level〉}{〈entry-label〉}`glossary-longextra v1.50+

The format of the third custom sub-entry. §8.7.2.7; 467

`\glslongextraSubDescFmt``{〈level〉}{〈entry-label〉}`glossary-longextra v1.37+

Used by the glossary-longextra styles to display a child entry’s description and post-description hook. §8.7.2; 450

`\glslongextraSubGroupHeading``{〈number columns〉}{〈prev group level〉}{〈group level〉}{〈parent-entry-label〉}{〈group-label〉}`glossary-longextra v1.49+

Formats the sub-group heading, if supported. §8.7.2; 452

`\glslongextraSubLocationFmt``{〈level〉}{〈entry-label〉}{〈location list〉}`glossary-longextra v1.37+

Used by the glossary-longextra styles to display a child entry’s location list. §8.7.2; 451

`\glslongextraSubLongFmt``{〈level〉}{〈entry-label〉}`glossary-longextra v1.49+

The formatting for child entry long forms in the abbr-long-short and abbr-short-long styles. §8.7.2.6; 464

`\glslongextraSubNameFmt``{〈level〉}{〈entry-label〉}`glossary-longextra v1.37+

Used by the glossary-longextra styles to add the hypertarget (if supported) for child-entries. The name isn’t shown by default. §8.7.2; 450

`\glslongextraSubShortTargetFmt``{〈level〉}{〈entry-label〉}`glossary-longextra v1.49+

The formatting, including the target, for child entry short forms in the abbr-long-short and abbr-short-long styles. §8.7.2.6; 463

`\glslongextraSubSymbolFmt``{〈level〉}{〈entry-label〉}`glossary-longextra v1.37+

Used by the glossary-longextra styles to display a child entry’s symbol. §8.7.2; 452

`\glslongextraSubSymbolOrName``{〈level〉}{〈entry-label〉}`glossary-longextra v1.49+

Adds the hypertarget (if supported) and displays the symbol if set or the name otherwise for child entries. §8.7.2.5; 460

`\glslongextraSubSymbolTargetFmt``{〈level〉}{〈entry-label〉}`glossary-longextra v1.49+

Adds the hypertarget (if supported) and displays the symbol for child entries. §8.7.2.5; 460

`\glslongextraSymbolAlign` initial: c; glossary-longextra v1.37+

The horizontal alignment for the symbol column. §8.7.2; 452

`\glslongextraSymbolFmt``{〈entry-label〉}`glossary-longextra v1.37+

Used by the glossary-longextra styles to display a top-level entry’s symbol. §8.7.2; 452

`\glslongextraSymbolNameAlign` initial: l; glossary-longextra v1.49+

The horizontal alignment for the symbol column when it’s being used instead of the name. §8.7.2.5; 460

`\glslongextraSymbolOrName``{〈entry-label〉}`glossary-longextra v1.49+

Adds the hypertarget (if supported) and displays the symbol if set or the name otherwise for top-level entries. §8.7.2.5; 460

`\glslongextraSymbolTargetFmt``{〈entry-label〉}`glossary-longextra v1.49+

Adds the hypertarget (if supported) and displays the symbol for top-level entries. §8.7.2.5; 460

`\glslongextraSymDescHeader` glossary-longextra v1.49+

Sets the header and footer for the long-sym-desc style with longtable. §8.7.2.5; 461

`\glslongextraSymDescNameHeader` glossary-longextra v1.37+

Sets the header and footer for the long-sym-desc-name style with longtable. §8.7.2.2; 455

`\glslongextraSymDescNameTabularFooter` glossary-longextra v1.37+

Displays the footer for the long-sym-desc-name style. §8.7.2.2; 455

`\glslongextraSymDescNameTabularHeader` glossary-longextra v1.37+

Displays the header for the long-sym-desc-name style. §8.7.2.2; 455

`\glslongextraSymDescTabularFooter` glossary-longextra v1.49+

Displays the footer for the long-sym-desc style. §8.7.2.5; 461

`\glslongextraSymDescTabularHeader` glossary-longextra v1.49+

Displays the header for the long-sym-desc style. §8.7.2.5; 461

`\glslongextraSymLocSetDescWidth` glossary-longextra v1.37+

Computes the value of `\glsdescwidth` according to the widest name for styles that show the name, symbol, location list and description. §8.7.2.4; 457

`\glslongextraSymNoNameSetDescWidth` glossary-longextra v1.49+

Computes the value of `\glsdescwidth` according to the widest name for styles that only show the symbol and description. §8.7.2.5; 461

`\glslongextraSymSetDescWidth` glossary-longextra v1.37+

Computes the value of `\glsdescwidth` according to the widest name for styles that only show the name, symbol and description. §8.7.2.2; 454

`\glslongextraTabularVAlign` initial: c; glossary-longextra v1.37+

Only for use with the tabular setting, this should expand to the tabular environment’s vertical alignment specifier. §8.7.2; 449

`\glslongextraUpdateWidest``{〈name〉}`glossary-longextra v1.37+

If 〈name〉 is wider than the current widest name, it will be set as the new widest name. §8.7.2; 451

`\glslongextraUpdateWidestChild``{〈level〉}{〈name〉}`glossary-longextra v1.37+

As `\glslongextraUpdateWidest` but for child entries. Does nothing by default. §8.7.2; 451

`\GlsLongExtraUseTabularfalse` glossary-longextra v1.37+

Sets `\ifGlsLongExtraUseTabular` to false (if this setting is required, the style must be set after this command). §8.7.2; 449

`\GlsLongExtraUseTabulartrue` glossary-longextra v1.37+

Sets `\ifGlsLongExtraUseTabular` to true (if this setting is required, the style must be set after this command). §8.7.2; 449

`\glslongfont``{〈text〉}`

Font formatting command for the long form, initialised by the abbreviation style. 172

`\glslongfootnotefont``{〈text〉}`glossaries-extra v1.05+

Formatting command for the long form used by the footnote abbreviation styles. 145

`\glslonghyphenfont``{〈text〉}`glossaries-extra v1.17+

Long form font used by the “hyphen” abbreviation styles. 148

`\glslongonlyfont``{〈text〉}`glossaries-extra v1.17+

Long form font used by the “only” abbreviation styles. 154

`\glslongpltok`

A token register that stores the long plural form (which may have been modified after being passed to `\newabbreviation`). §4.5.3.1; 164

`\glslongpluralaccessdisplay``{〈text〉}{〈entry-label〉}`glossaries-accsupp

Does 〈text〉 with the longpluralaccess replacement text (if set).

`\glslongtok` glossaries

A token register that stores the long form (which may have been modified after being passed to `\newabbreviation`). §4.5.3.1; 164

`\glslonguserfont``{〈text〉}`glossaries-extra v1.04+

Long form font used by the “user” abbreviation styles. 136

`\glslowercase``{〈text〉}`glossaries v4.50+

Converts 〈text〉 to lowercase. §5.2.2; 199

`\glsmakefirstuc``{〈text〉}`mfirstuc v1.05+

Used by `\makefirstuc` to perform the actual case-change. As from mfirstuc v2.08+ this just uses `\MFUsentencecase`.

`\glsmfuaddmap``{〈cs1〉}{〈cs2〉}`glossaries v4.50+ & glossaries-extra v1.49+

If mfirstuc v2.08+ is installed, this will use `\MFUaddmap`, otherwise it will use `\glsmfuexcl` instead. See §5.2.1 for further details. §5.2.1; 199

`\glsmfublocker``{〈cs〉}`glossaries v4.50+ & glossaries-extra v1.49+

If mfirstuc v2.08+ is installed, this will use `\MFUblocker`, otherwise it will use `\glsmfuexcl` instead. See §5.2.1 for further details. §5.2.1; 198

`\glsmfuexcl``{〈cs〉}`glossaries v4.50+ & glossaries-extra v1.49+

If mfirstuc v2.08+ is installed, this will use `\MFUexcl`, otherwise it will implement something similar. See §5.2.1 for further details. §5.2.1; 197

`\GLSname``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries

As `\glsname` but converts the link text to all caps. This command is incompatible with some abbreviation styles.

`\Glsname``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries

As `\glsname` but converts the link text to sentence case. Use `\Glossentryname` within custom glossary styles instead of this command.

`\glsname``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries

References the entry identified by 〈entry-label〉. The text produced is obtained from the name value. The 〈insert〉 argument will be inserted at the end of the link text. This command does not alter or depend on the first use flag. For the first optional argument, see `\glslink` options. Use `\glossentryname` within custom glossary styles instead of this command.

`\glsnameaccessdisplay``{〈text〉}{〈entry-label〉}`glossaries-accsupp

Does 〈text〉 with the access replacement text (if set).

`\glsnamefont``{〈text〉}`glossaries

Used by `\glossentryname` to apply a font change to the name, unless (with glossaries-extra) the glossnamefont attribute has been set.

`\glsnextpages` glossaries v3.0+

Designed for use with makeindex and xindy, this may be placed in an entry’s description to override nonumberlist.

`\glsnoexpandfields` glossaries v3.08a+

Don’t expand field values when defining entries, except for those that explicitly have expansion enabled with `\glssetexpandfield`.

`\glsnoidxdisplayloc``{〈prefix〉}{〈counter〉}{〈format〉}{〈location〉}`glossaries v4.04+

Used to display a location in the location list. §11.5.6; 580

`\glsnonextpages` glossaries v1.17+

Designed for use with makeindex and xindy, this may be placed in an entry’s description to suppress the entry’s location list.

`\glsnumberformat``{〈location(s)〉}`glossaries

The default format for entry locations. If hyperlinks are defined, this will use `\glshypernumber` otherwise it will simply display its argument, which may be a single location, or locations delimited by `\delimR` or `\delimN`.

`\glsnumbersgroupname` initial: Numbers; glossaries

(language-sensitive)

Expands to the title of the `numbers` group and (if the numbers package option is used) the `numbers` glossary.

`\glspagelistwidth` glossary-long & glossary-super

A length register used to set the width of the location list column for tabular-like styles.

`\glspar` glossaries

Paragraph break (for instances where `\par` can’t be used directly).

`\glspatchLToutput` glossary-longbooktabs v4.21+

Applies a patch to longtable to check for instances of the group skip occurring at a page break.

`\glspdffmtfull``{〈entry-label〉}`glossaries-extra v1.42+

Shortcut for ``\glsentrylong`{〈entry-label〉} (`\glsentryshort`{〈entry-label〉})` for use in PDF bookmarks or other text-only contexts. §5.3.2; 209

`\glspdffmtfullpl``{〈entry-label〉}`glossaries-extra v1.42+

Shortcut for ``\glsentrylongpl`{〈entry-label〉} (`\glsentryshortpl`{〈entry-label〉})` for use in PDF bookmarks or other text-only contexts. §5.3.2; 209

`\glspenaltygroupskip` glossary-longbooktabs v4.21+

The definition of `\glsgroupskip` with nogroupskip=false for the glossary-longbooktabs styles.

`\glspercentchar` glossaries v4.10+

Expands to a literal percent sign.

`\GLSpl``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries

As `\glspl` but converts the link text to all caps.

`\Glspl``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries

As `\glspl` but converts the first character of the link text to uppercase (for the start of a sentence) using `\makefirstuc`.

`\glspl``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries

As `\gls` but uses the relevant plural form.

`\GLSplural``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries

As `\glsplural` but converts the link text to all caps. If you have defined the entry with `\newabbreviation` use `\GLSxtrshortpl` or ``\GLSpl`[preunset]` instead.

`\Glsplural``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries

As `\glsplural` but converts the first character of the link text to uppercase (for the start of a sentence) using `\makefirstuc`. If you have defined the entry with `\newabbreviation` use `\Glsxtrshortpl` or ``\Glspl`[preunset]` instead.

`\glsplural``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries

References the entry identified by 〈entry-label〉. The text produced is obtained from the plural value. The 〈insert〉 argument will be inserted at the end of the link text. This command does not alter or depend on the first use flag. If you have defined the entry with `\newabbreviation` use `\glsxtrshortpl` for the short form or ``\gls`[preunset]`, as some abbreviation styles are too complicated to work with `\glsplural`. For the first optional argument, see `\glslink` options.

`\glspluralaccessdisplay``{〈text〉}{〈entry-label〉}`glossaries-accsupp

Does 〈text〉 with the pluralaccess replacement text (if set).

`\glspluralsuffix`

Expands to the letter “s” and is used to form default plurals. This command isn’t language-sensitive as there’s guarantee when it will be expanded. (It may be expanded when the entry is defined or it may be expanded when the entry is used). If you need to suppress this suffix for abbreviations, use the noshortplural attribute. If you need an apostrophe before the “s” for single-letter abbreviations to avoid ambiguity, use the aposplural attribute.

`\glspostdescription` glossaries

A hook that is usually placed after the description in glossary styles. Some of the styles provided with the glossaries package don’t use this hook. The glossaries-extra-stylemods redefines those styles to include the hook. The default definition of this command tests for the nopostdot option, but the postpunc option redefines the command to implement the chosen punctuation.

`\glspostinline` glossary-inline v3.03+

Used at the end of the theglossary environment.

`\glspostinlinedescformat``{〈description〉}{〈symbol〉}{〈location list〉}`glossary-inline v3.03+

Formats the top-level entry’s description, symbol and location list.

`\glspostinlinesubdescformat``{〈description〉}{〈symbol〉}{〈location list〉}`glossary-inline v3.03+

Formats the child entry’s description, symbol and location list.

`\glspostlinkhook` glossaries v4.16+

A post-link hook used after all the `\gls`-like and `\glstext`-like commands. This is redefined by glossaries-extra to use `\glsxtrpostlinkhook`.

`\glsprefixsep` initial: empty; glossaries-prefix v4.45+

Separator between the prefix and the term.

`\glsprestandardsort``{〈sort cs〉}{〈type〉}{〈entry-label〉}`glossaries v3.13a+

Hook used with sort=standard to adjust the default sort value (with `\makeglossaries` or `\makenoidxglossaries` only).

`\glspretopostlink``{〈category〉}{〈code〉}`glossaries-extra v1.49+

Prepends 〈code〉 to post-link hook associated with the category identified by the label 〈category〉 (or simply defines it, if it doesn’t already exist). §5.5.4; 250

`\GLSps``{〈entry-label〉}`glossaries-extra v1.51+

Shortcut for ``\GLSxtrp`{short}{〈entry-label〉}`. §5.4; 231

`\Glsps``{〈entry-label〉}`glossaries-extra v1.51+

Shortcut for ``\Glsxtrp`{short}{〈entry-label〉}`. §5.4; 231

`\glsps``{〈entry-label〉}`glossaries-extra v1.07+

Shortcut for ``\glsxtrp`{short}{〈entry-label〉}`. §5.4; 231

`\GLSpt``{〈entry-label〉}`glossaries-extra v1.51+

Shortcut for ``\GLSxtrp`{text}{〈entry-label〉}`. §5.4; 231

`\Glspt``{〈entry-label〉}`glossaries-extra v1.51+

Shortcut for ``\Glsxtrp`{text}{〈entry-label〉}`. §5.4; 231

`\glspt``{〈entry-label〉}`glossaries-extra v1.07+

Shortcut for ``\glsxtrp`{text}{〈entry-label〉}`. §5.4; 231

`\glsrefentry``{〈entry-label〉}`glossaries v3.0+

References (using `\ref`) the entry counter or sub-counter (if entrycounter or subentrycounter options are set) otherwise just does `\gls`{〈entry-label〉}.

`\glsrenewcommand``{〈cs〉}[〈n〉][〈default〉]{〈definition〉}`modifier: * glossaries-extra-bib2gls v1.37+

Like `\renewcommand` but only issues a warning instead of an error if the command hasn’t been defined. §11.5.8; 596

`\glsreset``{〈entry-label〉}`glossaries

Globally resets the entry’s first use flag. That is, this marks the entry as “not used”.

`\glsresetall``[〈types〉]`glossaries

Globally resets all entries associated with the listed glossaries or all glossaries if 〈types〉 is omitted.

`\glsresetcurrcountfalse` glossaries-extra v1.49+

Sets `\ifglsresetcurrcount` to false. §6.1; 310

`\glsresetcurrcounttrue` glossaries-extra v1.49+

Sets `\ifglsresetcurrcount` to true. §6.1; 310

`\glsresetentrylist` glossaries

Inserted into the glossary code to counteract the effect of `\glsnonextpages`.

`\glssee``[〈tag〉]{〈entry-label〉}{〈xr-list〉}`glossaries v1.17+

Indexes the entry identified by 〈entry-label〉 as a general cross-reference to the entries identified in the comma-separated list 〈xr-list〉. The optional argument is the textual tag that’s inserted before the cross-reference list and defaults to `\seename`.

`\glsseefirstitem``{〈entry-label〉}`glossaries-extra v1.47+

Used by `\glsseelist` to format the first entry. §5.13; 302

`\glsseeformat``[〈tag〉]{〈xr-list〉}{〈location〉}`glossaries v1.17+

Used to format the see cross-reference in the location list. This requires a location argument for makeindex even though it isn’t required. The default definition is ``\emph`{〈tag〉} `\glsseelist`{〈xr-list〉}`.

`\glsseeitem``{〈entry-label〉}`glossaries v1.17+

Used by `\glsseelist` to format each entry.

`\glsseeitemformat``{〈entry-label〉}`glossaries v3.0+

Used by `\glsseeitem` to produce the hyperlink text. §5.13; 302

`\glsseelastoxfordsep` glossaries-extra v1.47+

Used by `\glsseelist` as a separator between penultimate and final entry in the list if there are at least three entries in the list. §5.13; 303

`\glsseelastsep` glossaries v1.17+

Used by `\glsseelist` as a separator between penultimate and final entry in the list. §5.13; 303

`\glsseelist``{〈csv-list〉}`glossaries v1.17+

Iterates over a comma-separated list of entry labels 〈csv-list〉 and formats them. Each label in the list is encapsulated with `\glsseeitem` (or `\mglsseeitem`, the label corresponds to a multi-entry). The separators are `\glsseelastsep` (between the penultimate and last items) and `\glsseesep` (between all the other items). With glossaries-extra, the first label is encapsulated with `\glsseefirstitem` (or `\mglsseefirstitem`) and the final separator for a list consisting of at least three items is given by `\glsseelastoxfordsep`. §5.13; 301

`\glsseesep` initial: ,␣; glossaries v1.17+

Used by `\glsseelist` as a separator between each entry except the last pair. §5.13; 303

`\glssentencecase``{〈text〉}`glossaries v4.50+ & glossaries-extra v1.49+

Used by sentence case commands, such as `\Gls`, to perform the case change. This is simply defined to use `\makefirstuc`. §5.2.1; 196

`\glssetabbrvfmt``{〈category〉}`

Implements the 〈display definitions〉 code for the abbreviation style associated with the given category. §4.5.2; 158

`\glssetattribute``{〈entry-label〉}{〈attribute〉}{〈value〉}`

Locally sets the given attribute to 〈value〉 for the category associated with the entry identified by 〈entry-label〉. §10.2.2; 527

`\glssetcategoriesattribute``{〈category list〉}{〈attribute〉}{〈value〉}`glossaries-extra v1.48+

Globally sets the given attribute to 〈value〉 for all the categories in the comma-separated list 〈category list〉. §10.2.2; 527

`\glssetcategoriesattributes``{〈category list〉}{〈attribute list〉}{〈value〉}`glossaries-extra v1.48+

Globally sets each attribute in the comma separated 〈attribute list〉 to 〈value〉 for each category in the comma-separated list 〈category list〉. §10.2.2; 527

`\glssetcategoryattribute``{〈category〉}{〈attribute〉}{〈value〉}`

Locally sets the given attribute to 〈value〉 for the given category. §10.2.2; 527

`\glssetcategoryattributes``{〈category〉}{〈attribute list〉}{〈value〉}`glossaries-extra v1.49+

Globally sets each attribute in the comma separated 〈attribute list〉 to 〈value〉 for the given 〈category〉. §10.2.2; 527

`\glssetcombinedsepabbrvnbsp` glossaries-extra v1.48+

Defines the multi-entry separators to use a non-breaking space (`~`) for abbreviations. §7.4; 347

`\glssetcombinedsepabbrvnone` glossaries-extra v1.48+

Defines the multi-entry separators to use no separator for abbreviations. §7.4; 348

`\glssetcombinedsepnarrow``{〈width〉}{〈narrow-sep〉}`glossaries-extra v1.48+

Defines the multi-entry separators to use 〈narrow-sep〉 if the width of associated field values is less than 〈width〉. §7.4; 348

`\glssetexpandfield``{〈field〉}`glossaries v3.13a+

Expand the value of the field identified by its internal field label when defining entries (overrides `\glsnoexpandfields`).

`\glssetnoexpandfield``{〈field〉}`glossaries v3.13a+

Don’t expand the value of the field identified by its internal field label when defining entries (overrides `\glsexpandfields`).

`\glssetregularcategory``{〈category〉}`

Locally sets the regular attribute to `true` for the given category. §10.2.2; 527

`\glssetwidest``[〈level〉]{〈name〉}`glossary-tree

Indicates that 〈name〉 is the widest name for the given hierarchical level.

`\glsshortaccessdisplay``{〈text〉}{〈entry-label〉}`glossaries-accsupp

Does 〈text〉 with the shortaccess replacement text (if set).

`\glsshortaccsupp``{〈replacement〉}{〈content〉}`glossaries-accsupp v4.45+

Applies 〈replacement〉 as the expansion (E) attribute for 〈content〉 using `\glsaccessibility`.

`\glsshortpltok`

A token register that stores the short plural form (which may have been modified after being passed to `\newabbreviation`). §4.5.3.1; 164

`\glsshortpluralaccessdisplay``{〈text〉}{〈entry-label〉}`glossaries-accsupp

Does 〈text〉 with the shortpluralaccess replacement text (if set).

`\glsshorttok` glossaries

A token register that stores the short form (which may have been modified after being passed to `\newabbreviation`). §4.5.3.1; 163

`\glsshowtarget``{〈target-name〉}`glossaries v4.32+

Formats the target name when debug=showtargets is enabled using either `\glsshowtargetinner` or `\glsshowtargetouter`, depending on the current mode.

`\glsshowtargetfont` glossaries v4.45+

Font declaration used by debugging annotations.

`\glsshowtargetfonttext``{〈text〉}`glossaries v4.50+

Text-block command that checks for math mode and switches to the font given by the `\glsshowtargetfont` declaration.

`\glsshowtargetinner``{〈target-name〉}`glossaries v4.50+

Formats the target name for inner and maths mode when debug=showtargets is enabled.

`\glsshowtargetinnersymleft``{name}`glossaries-extra v1.48+

Shows the left inner annotation followed by the left marker symbol `\glsxtrshowtargetsymbolleft`. §2.5; 30

`\glsshowtargetinnersymright``{name}`glossaries-extra v1.48+

Shows the right marker symbol `\glsxtrshowtargetsymbolright` followed by the right inner annotation. §2.5; 30

`\glsshowtargetouter``{〈target-name〉}`glossaries v4.50+

Formats the target name for outer mode when debug=showtargets is enabled. This places a marker (`\glsshowtargetsymbol`) in the text and 〈target-name〉 in the margin.

`\glsshowtargetsymbol` glossaries v4.45+

Marker (◁) used in debugging annotations.

`\glsstartrange``[〈options〉]{〈entry label list〉}`glossaries-extra v1.50+

Essentially does ``\glsaddeach`[〈options〉,format=`(`〈encap〉]{〈entry label list〉}` where 〈encap〉 can either be provided by the format key in 〈options〉 or will default to the format given in `\GlsXtrSetDefaultRangeFormat`. §5.8; 261

`\glssubentryitem``{〈entry-label〉}`glossaries v3.0+

Does nothing if subentrycounter=false, otherwise increments and displays the associated counter.

`\glssubgroupheading``{〈previous level〉}{〈level〉}{〈parent-label〉}{〈group-label〉}`glossaries-extra v1.49+

Used to format sub-group headings. Only applicable with the “unsrt” family of commands. This command won’t occur in glossaries that use `\printglossary` or `\printnoidxglossary`. §8.4.1; 395

`\GLSsymbol``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries

As `\glssymbol` but converts the link text to all caps.

`\Glssymbol``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries

As `\glssymbol` but converts the link text to sentence case. Use `\Glossentrysymbol` within custom glossary styles instead of this command.

`\glssymbol``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries

References the entry identified by 〈entry-label〉. The text produced is obtained from the symbol value. The 〈insert〉 argument will be inserted at the end of the link text. This command does not alter or depend on the first use flag. For the first optional argument, see `\glslink` options. Use `\glossentrysymbol` within custom glossary styles instead of this command.

`\glssymbolaccessdisplay``{〈text〉}{〈entry-label〉}`glossaries-accsupp

Does 〈text〉 with the symbolaccess replacement text (if set).

`\glssymbolplural``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries

As `\glssymbol` but for the symbolplural field.

`\glssymbolpluralaccessdisplay``{〈text〉}{〈entry-label〉}`glossaries-accsupp

Does 〈text〉 with the symbolpluralaccess replacement text (if set).

`\glssymbolsgroupname` initial: Symbols; glossaries

(language-sensitive)

Expands to the title of the `symbols` group and (if the symbols package option is used) the `symbols` glossary.

`\glstableblocksubentry``{〈entry-label〉}`glossary-table v1.49+

Displays the child entry identified by 〈entry-label〉. This command is redefined by block styles.

`\glstableblocksubentrysep` glossary-table v1.49+

Separator used by `\glstableChildEntries` between child entries. §8.7.4.1; 486

`\glstableblockwidth` glossary-table v1.49+

Length register used for the width of each block with par=justified or par=ragged. Set by the block style. §8.7.4.4; 494

`\glstablecaption``{〈lot title〉}{〈title〉}{〈label code〉}`glossary-table v1.49+

Produces the caption for the first page of the table. §8.7.4.2; 487

`\glstablecenteralign``{〈width〉}`glossary-table v1.49+

Expands to `c` or `p{〈width〉}` or `>\protect\centeringp{〈width〉}`, depending on the par setting. §8.7.4.4; 493

`\glstableChildEntries``{〈entry-label〉}`glossary-table v1.49+

Iterates over the childlist field and formats each child entry in the list for use in the block styles. Does nothing if the list is empty. §8.7.4.1; 485

`\glstabledesccolalign` glossary-table v1.49+

Expands to the alignment of the description column. §8.7.4.4; 493

`\glstableDescFmt``{〈text〉}`glossary-table v1.50+

Formatting applied to the description. §8.7.4.4; 495

`\glstabledescheader` glossary-table v1.49+

Header for the description column. §8.7.4.2, §8.7.4.4; 488, 497

`\glstabledescwidth` glossary-table v1.49+

Length register used for the width of the description column with par=justified or par=ragged. Set by the block style. §8.7.4.4; 494

`\glstableHeaderFmt``{〈text〉}`glossary-table v1.49+

Formats the header. §8.7.4.4; 497

`\glstableiffilter``{〈entry-label〉}{〈true〉}{〈false〉}`glossary-table v1.49+

Internally used by the custom handler in `\printunsrttable` to perform additional filtering. This command should do 〈true〉 if the entry identified by 〈entry-label〉 should be filtered and 〈false〉 otherwise. §8.7.4; 482

`\glstableiffilterchild``{〈entry-label〉}{〈true〉}{〈false〉}`glossary-table v1.50+

Internally used by `\glstableChildEntries` to filter child entries. This command should do 〈true〉 if the child entry identified by 〈entry-label〉 should be filtered and 〈false〉 otherwise. §8.7.4.1; 485

`\glstableifhasotherfield``{〈entry-label〉}{〈true〉}{〈false〉}`glossary-table v1.50+

Expands to 〈true〉 if the other field is non-void for the given entry otherwise expands to 〈false〉. §8.7.4.4; 496

`\glstableleftalign``{〈width〉}`glossary-table v1.49+

Expands to `l` or `p{〈width〉}` or `>\protect\raggedrightp{〈width〉}`, depending on the par setting. §8.7.4.4; 493

`\glstablenamecolalign` glossary-table v1.49+

Expands to the alignment of the name column. §8.7.4.4; 493

`\glstableNameFmt``{〈text〉}`glossary-table v1.50+

Formatting applied to the name. §8.7.4.4; 495

`\glstablenameheader` glossary-table v1.49+

Header for the name column. §8.7.4.2, §8.7.4.4; 488, 497

`\glstablenamewidth` glossary-table v1.49+

Length register used for the width of the name column with par=justified or par=ragged. Set by the block style. §8.7.4.4; 494

`\glstablenewline` glossary-table v1.50+

Used to start a new row. §8.7.4.4; 492

`\glstablenextcaption``{〈lot title〉}{〈title〉}`glossary-table v1.49+

Produces the caption for following pages of the table. §8.7.4.2; 487

`\glstableOther``{〈entry-label〉}`glossary-table v1.50+

Used to display the other field. §8.7.4.4; 496

`\glstableothercolalign` glossary-table v1.49+

Expands to the alignment of the other column. §8.7.4.4; 494

`\glstableotherfield` initial: empty; glossary-table v1.49+

Expands to the internal field label of the other field. §8.7.4.4; 496

`\glstableOtherFmt``{〈text〉}`glossary-table v1.50+

Formatting applied to the other field. §8.7.4.4; 496

`\glstableotherheader` glossary-table v1.49+

Header for the other column. §8.7.4.2, §8.7.4.4; 488, 497

`\glstableotherwidth` glossary-table v1.50+

Length register used for the width of the other column with par=justified or par=ragged. Set by the block style. §8.7.4.4; 494

`\glstablepostnextcaption` initial: ␣Cont./; glossary-table v1.49+

Appended to the caption in `\glstablenextcaption`. §8.7.4.2; 487

`\glstablepostpreambleskip` initial: 5pt; glossary-table v1.50+

Length register that specifies the vertical skip after the preamble. §8.7.4.4; 495

`\glstablePreChildren` glossary-table v1.49+

Code performed by `\glstableChildEntries` before the child list. §8.7.4.1; 485

`\glstableprepostambleskip` initial: 5pt; glossary-table v1.50+

Length register that specifies the vertical skip before the postamble. §8.7.4.4; 495

`\glstablerightalign``{〈width〉}`glossary-table v1.49+

Expands to `r` or `p{〈width〉}` or `>\protect\raggedleftp{〈width〉}`, depending on the par setting. §8.7.4.4; 493

`\glstablesetstyle``{〈style-name〉}`glossary-table v1.49+

Sets the default block style. §8.7.4.3; 489

`\glstableSubDescFmt``{〈text〉}`glossary-table v1.50+

Formatting applied to the child description. §8.7.4.4; 496

`\glstablesubentryalign` glossary-table v1.50+

Expands to the column alignment used by glstablesubentries. §8.7.4.1; 486

`\glstableSubNameFmt``{〈text〉}`glossary-table v1.50+

Formatting applied to the child name. §8.7.4.4; 495

`\glstableSubOther``{〈entry-label〉}`glossary-table v1.50+

Used to display the sub-entry other field. §8.7.4.4; 496

`\glstableSubOtherFmt``{〈text〉}`glossary-table v1.50+

Formatting applied to the other field.

`\glstableSubSymbolFmt``{〈text〉}`glossary-table v1.50+

Formatting applied to the child symbol. §8.7.4.4; 495

`\glstablesymbolcolalign` glossary-table v1.49+

Expands to the alignment of the symbol column. §8.7.4.4; 493

`\glstableSymbolFmt``{〈text〉}`glossary-table v1.50+

Formatting applied to the symbol. §8.7.4.4; 495

`\glstablesymbolheader` glossary-table v1.49+

Header for the symbol column. §8.7.4.2, §8.7.4.4; 488, 497

`\glstablesymbolwidth` glossary-table v1.49+

Length register used for the width of the symbol column with par=justified or par=ragged. Set by the block style. §8.7.4.4; 494

`\glstarget``{〈entry-label〉}{〈text〉}`glossaries v1.18+

Used by glossary styles to create a hypertarget (if enabled) for the entry (identified by 〈entry-label〉). The 〈text〉 is usually `\glossentryname`{〈entry-label〉}, but it can be something else.

`\GLStext``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries

As `\glstext` but converts the link text to all caps. If you have defined the entry with `\newabbreviation` use `\GLSxtrshort` or ``\GLS`[preunset]` instead.

`\Glstext``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries

As `\glstext` but converts the first character of the link text to uppercase (for the start of a sentence) using `\makefirstuc`. If you have defined the entry with `\newabbreviation` use `\Glsxtrshort` or ``\Gls`[preunset]` instead.

`\glstext``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries

References the entry identified by 〈entry-label〉. The text produced is obtained from the text value. The 〈insert〉 argument will be inserted at the end of the link text. This command does not alter or depend on the first use flag. If you have defined the entry with `\newabbreviation` use `\glsxtrshort` for the short form or ``\gls`[preunset]`, as some abbreviation styles are too complicated to work with `\glstext`. For the first optional argument, see `\glslink` options.

`\glstextaccessdisplay``{〈text〉}{〈entry-label〉}`glossaries-accsupp

Does 〈text〉 with the textaccess replacement text (if set).

`\glstextformat``{〈text〉}`glossaries v1.04+

The default outer text formatting command used by the `\gls`-like and `\glstext`-like commands.

`\glstextup``{〈text〉}`glossaries v3.09a+

Counteracts the effect of `\textsc`.

`\glstildechar` glossaries v4.10+

Expands to a literal tilde character.

`\glstopicAssignSubIndent``{〈level〉}`glossary-topic v1.40+

Used to set the indentation for sub-levels. §8.7.3; 479

`\glstopicAssignWidest``{〈level〉}`glossary-topic v1.40+

Used by `\glstopicAssignSubIndent` to calculate the width of the widest name for the given level. §8.7.3; 480

`\glstopicCols` glossary-topic v1.40+

Expands to the number of columns for topicmcols. §8.7.3; 475

`\glstopicColsEnv` glossary-topic v1.40+

Expands to the multicols environment name to use for topicmcols. §8.7.3; 474

`\glstopicDesc``{〈entry-label〉}`glossary-topic v1.40+

Used to format the top-level description. §8.7.3; 479

`\glstopicGroupHeading``{〈group-label〉}`glossary-topic v1.40+

Used to format the top-level group headings, if required. §8.7.3; 478

`\glstopicInit` glossary-topic v1.40+

Initialisation hook. §8.7.3; 477

`\glstopicItem``{〈entry-label〉}{〈location list〉}`glossary-topic v1.40+

Used to format top-level entries. §8.7.3; 478

`\glstopicLoc``{〈entry-label〉}{〈location list〉}`glossary-topic v1.40+

Used to format the top-level location list. §8.7.3; 479

`\glstopicMarker``{〈entry-label〉}`glossary-topic v1.40+

Hook inserted before a top-level entry. §8.7.3; 478

`\glstopicMidSkip` glossary-topic v1.40+

Vertical space inserted before the description for a top-level entry. §8.7.3; 479

`\glstopicParIndent` glossary-topic v1.40+

Length register used for the top-level paragraph indent. §8.7.3; 476

`\glstopicPostSkip` glossary-topic v1.40+

Vertical space inserted after the description for a top-level entry. §8.7.3; 479

`\glstopicPreSkip` glossary-topic v1.40+

Vertical space inserted before a top-level entry. §8.7.3; 478

`\glstopicSubGroupHeading``{〈prev group level〉}{〈group level〉}{〈parent entry〉}{〈group-label〉}`glossary-topic v1.49+

Used to format the sub-group headings, if supported. §8.7.3; 478

`\glstopicSubIndent` glossary-topic v1.40+

Length register used for the child indent. §8.7.3; 476

`\glstopicSubItem``{〈level〉}{〈entry-label〉}{〈location list〉}`glossary-topic v1.40+

Used to format child entries. §8.7.3; 480

`\glstopicSubItemBox``{〈level〉}{〈text〉}`glossary-topic v1.40+

Horizontal box used for child name if a widest name has been provided. §8.7.3; 480

`\glstopicSubItemParIndent` glossary-topic v1.46+

Length register used for the child paragraph indent. §8.7.3; 477

`\glstopicSubItemSep` glossary-topic v1.40+

Horizontal separator used after child names. §8.7.3; 480

`\glstopicSubLoc``{〈entry-label〉}{〈location list〉}`glossary-topic v1.41+

Formats the child location lists. §8.7.3; 480

`\glstopicSubNameFont``{〈text〉}`glossary-topic v1.40+

Font command to apply to the child entry name. §8.7.3; 480

`\glstopicSubPreLocSep` glossary-topic v1.41+

Separator before the child location lists. §8.7.3; 480

`\glstopicTitle``{〈entry-label〉}`glossary-topic v1.40+

Used to format the name and (if provided) symbol for the top-level entry title. §8.7.3; 479

`\glstopicTitleFont``{〈text〉}`glossary-topic v1.40+

Font command to apply to the top-level entry title. §8.7.3; 479

`\glstreechilddesc``{〈entry-label〉}`glossaries-extra-stylemods v1.31+

Displays the given child entry’s description with pre and post hooks for the tree styles. §8.6.5.4; 436

`\glstreeChildDescLoc``{〈entry-label〉}{〈location list〉}`glossaries-extra-stylemods v1.41+

Formats the child description (if set) and location list for the tree styles. §8.6.5.4; 437

`\glstreechildpredesc` glossary-tree v4.26+

Space inserted before child descriptions. §8.6.5.4; 435

`\glstreechildprelocation` initial: `\glstreeprelocation`; glossaries-extra-stylemods v1.21+

Used before the child entry location list for the tree and index styles. §8.6.5.4; 436

`\glstreechildsymbol``{〈entry-label〉}`glossaries-extra-stylemods v1.31+

Displays the top-level symbol in parentheses, if set, for the tree styles. §8.6.5.4; 437

`\glstreedefaultnamefmt``{〈text〉}`glossaries-extra-stylemods v1.31+

Used as the default name format for the tree and index styles. §8.6.5.4; 434

`\glstreedesc``{〈entry-label〉}`glossaries-extra-stylemods v1.31+

Displays the given top-level entry’s description with pre and post hooks for the tree styles. §8.6.5.4; 436

`\glstreeDescLoc``{〈entry-label〉}{〈location list〉}`glossaries-extra-stylemods v1.41+

Formats the top-level description (if set) and location list for the tree styles. §8.6.5.4; 437

`\glstreegroupheaderfmt``{〈text〉}`glossary-tree v4.22+

Used to format the group title for the treegroup and indexgroup styles. §8.6.5.4; 434

`\glstreegroupheaderskip` glossaries-extra-stylemods v1.42+

After group header skip for the treegroup and indexgroup styles. §8.6.5.4; 434

`\glstreegroupskip` glossaries-extra-stylemods v1.41+

Group skip for the tree and index styles. §8.6.5.4; 434

`\glstreeitem` glossary-tree v4.26+

Used to indent the top-level entries for the index styles.

`\glstreenamefmt``{〈text〉}`glossary-tree v4.08+

Used to format the name for the tree and index styles.

`\glstreenavigationfmt``{〈text〉}`glossary-tree v4.22+

Used to format the navigation element for styles like treehypergroup. §8.6.5.4; 434

`\glstreeNoDescSymbolPreLocation` glossaries-extra-stylemods v1.42+

Inserted before the location list when there’s no description or symbol for the tree styles. §8.6.5.4; 437

`\glstreenonamechilddesc``{〈entry-label〉}`glossaries-extra-stylemods v1.31+

Displays the given child entry’s description and post hook for the treenoname styles. §8.6.5.4; 436

`\glstreenonameChildDescLoc``{〈entry-label〉}`glossaries-extra-stylemods v1.45+

Displays the given child entry’s description and location list for the treenoname styles.

`\glstreenonamedesc``{〈entry-label〉}`glossaries-extra-stylemods v1.31+

Displays the given top-level entry’s description with pre and post hooks for the treenoname styles. §8.6.5.4; 436

`\glstreenonameDescLoc``{〈entry-label〉}`glossaries-extra-stylemods v1.45+

Displays the given top-level entry’s description and location list for the treenoname styles.

`\glstreenonamesymbol``{〈entry-label〉}`glossaries-extra-stylemods v1.31+

Displays the given top-level entry’s symbol in parentheses for the treenoname styles. §8.6.5.4; 436

`\glstreepredesc` glossary-tree v4.26+

Space inserted before top-level descriptions. §8.6.5.4; 435

`\glstreePreHeader``{〈group-label〉}{〈group-title〉}`glossaries-extra-stylemods v1.41+

Pre group header hook the treegroup and indexgroup styles. §8.6.5.4; 435

`\glstreeprelocation` initial: `\glsxtrprelocation`; glossaries-extra-stylemods v1.21+

Used before the top-level entry location list for the tree and index styles. §8.6.5.4; 435

`\glstreesubgroupitem``{previous group level}{level}{parent label}{group label}{group title}`glossaries-extra-stylemods v1.49+

Used to display the sub-group header in the treegroup styles.

`\glstreesubitem` glossary-tree v4.26+

Used to indent the level 1 entries for the index styles.

`\glstreeSubPreHeader``{〈previous group level〉}{〈level〉}{〈parent label〉}{〈group label〉}{〈group title〉}`glossaries-extra-stylemods v1.49+

Pre sub-group header hook the treegroup and indexgroup styles.

`\glstreesubsubitem` glossary-tree v4.26+

Used to indent the level 2 entries for the index styles.

`\glstreesymbol``{〈entry-label〉}`glossaries-extra-stylemods v1.31+

Displays the top-level symbol in parentheses, if set, for the tree styles. §8.6.5.4; 436

`\glstriggerrecordformat``{〈location〉}`glossaries-extra v1.21+

Used as a special location format that indicates that the record is a trigger record. §11.4; 548

`\glsunexpandedfieldvalue``{〈entry-label〉}{〈field-label〉}`glossaries v4.48+

For use in expandable contexts where the field value is required but the contents should not be expanded. The field should be identified by its internal field label. Expands to nothing with no error or warning if the entry or field aren’t defined.

`\glsunset``{〈entry-label〉}`glossaries

Globally unsets the entry’s first use flag. That is, this marks the entry as “used”.

`\glsunsetall``[〈types〉]`glossaries

Globally unsets all entries associated with the listed glossaries or all glossaries if 〈types〉 is omitted.

`\glsunsetcategoryattribute``{〈category〉}{〈attribute〉}`glossaries-extra v1.47+

Locally unsets the given attribute for the given category. §10.2.2; 528

`\glsupdatewidest``[〈level〉]{〈name〉}`glossaries-extra-stylemods v1.23+

Similar to `\glssetwidest` but only if 〈name〉 is wider than the current widest value for the given hierarchical level. §8.6.5.4; 438

`\glsuppercase``{〈text〉}`glossaries v4.50+

Converts 〈text〉 to uppercase. §5.2.3; 199

`\glsuseabbrvfont``{〈style-name〉}{〈text〉}`glossaries-extra v1.21+

Formats 〈text〉 according to the short format for the given abbreviation style. §4.5.2; 159

`\glsuselongfont``{〈style-name〉}{〈text〉}`glossaries-extra v1.21+

Formats 〈text〉 according to the long format for the given abbreviation style. §4.5.2; 159

`\glsuserdescription``{〈text〉}{〈entry-label〉}`glossaries-extra v1.30+

Description encapsulator for styles like long-short-user. 137

`\GLSuseri``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries v2.04+

As `\glsuseri` but converts the link text to all caps.

`\Glsuseri``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries v2.04+

As `\glsuseri` but converts the link text to sentence case.

`\glsuseri``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries v2.04+

References the entry identified by 〈entry-label〉. The text produced is obtained from the user1 value. The 〈insert〉 argument will be inserted at the end of the link text. This command does not alter or depend on the first use flag. For the first optional argument, see `\glslink` options.

`\glsuseriaccessdisplay``{〈text〉}{〈entry-label〉}`glossaries-accsupp v4.45+

Does 〈text〉 with the user1access replacement text (if set).

`\GLSuserii``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries v2.04+

As `\glsuserii` but converts the link text to all caps.

`\Glsuserii``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries v2.04+

As `\glsuserii` but converts the link text to sentence case.

`\glsuserii``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries v2.04+

References the entry identified by 〈entry-label〉. The text produced is obtained from the user2 value. The 〈insert〉 argument will be inserted at the end of the link text. This command does not alter or depend on the first use flag. For the first optional argument, see `\glslink` options.

`\glsuseriiaccessdisplay``{〈text〉}{〈entry-label〉}`glossaries-accsupp v4.45+

Does 〈text〉 with the user2access replacement text (if set).

`\GLSuseriii``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries v2.04+

As `\glsuseriii` but converts the link text to all caps.

`\Glsuseriii``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries v2.04+

As `\glsuseriii` but converts the link text to sentence case.

`\glsuseriii``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries v2.04+

References the entry identified by 〈entry-label〉. The text produced is obtained from the user3 value. The 〈insert〉 argument will be inserted at the end of the link text. This command does not alter or depend on the first use flag. For the first optional argument, see `\glslink` options.

`\glsuseriiiaccessdisplay``{〈text〉}{〈entry-label〉}`glossaries-accsupp v4.45+

Does 〈text〉 with the user3access replacement text (if set).

`\GLSuseriv``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries v2.04+

As `\glsuseriv` but converts the link text to all caps.

`\Glsuseriv``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries v2.04+

As `\glsuseriv` but converts the link text to sentence case.

`\glsuseriv``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries v2.04+

References the entry identified by 〈entry-label〉. The text produced is obtained from the user4 value. The 〈insert〉 argument will be inserted at the end of the link text. This command does not alter or depend on the first use flag. For the first optional argument, see `\glslink` options.

`\glsuserivaccessdisplay``{〈text〉}{〈entry-label〉}`glossaries-accsupp v4.45+

Does 〈text〉 with the user4access replacement text (if set).

`\GLSuserv``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries v2.04+

As `\glsuserv` but converts the link text to all caps.

`\Glsuserv``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries v2.04+

As `\glsuserv` but converts the link text to sentence case.

`\glsuserv``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries v2.04+

References the entry identified by 〈entry-label〉. The text produced is obtained from the user5 value. The 〈insert〉 argument will be inserted at the end of the link text. This command does not alter or depend on the first use flag. For the first optional argument, see `\glslink` options.

`\glsuservaccessdisplay``{〈text〉}{〈entry-label〉}`glossaries-accsupp v4.45+

Does 〈text〉 with the user5access replacement text (if set).

`\GLSuservi``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries v2.04+

As `\glsuservi` but converts the link text to all caps.

`\Glsuservi``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries v2.04+

As `\glsuservi` but converts the link text to sentence case.

`\glsuservi``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries v2.04+

References the entry identified by 〈entry-label〉. The text produced is obtained from the user6 value. The 〈insert〉 argument will be inserted at the end of the link text. This command does not alter or depend on the first use flag. For the first optional argument, see `\glslink` options.

`\glsuserviaccessdisplay``{〈text〉}{〈entry-label〉}`glossaries-accsupp v4.45+

Does 〈text〉 with the user6access replacement text (if set).

`\glswriteentry``{〈entry-label〉}{〈code〉}`

Performs the indexing code unless indexing should be suppressed. §5.8; 267

`\glsxpabbrvfont``{〈text〉}{〈category〉}`glossaries-extra v1.49+

If the markshortwords attribute is set for the given category, this encapsulates 〈text〉 with `\glsabbrvfont` otherwise with `\glsinnerfmtabbrvfont`. This command has to expand, so protect any content that shouldn’t expand. §4.5.3.1; 167

`\glsxplongfont``{〈category〉}{〈text〉}`glossaries-extra v1.49+

If the markwords attribute is set for the given category, this encapsulates 〈text〉 with `\glslongfont` otherwise with `\glsinnerfmtlongfont`. This command has to expand, so protect any content that shouldn’t expand. §4.5.3.1; 168

[top]

## Glsxtr
[link]

`\Glsxtr``[〈gls-options〉][〈dfn-options〉]{〈entry-label〉}`

As `\glsxtr` but applies sentence case. §13; 602

`\glsxtr``[〈gls-options〉][〈dfn-options〉]{〈entry-label〉}`

If 〈entry-label〉 has already been defined, this just references it, otherwise the entry is defined. This command must be enabled with `\GlsXtrEnableOnTheFly`. §13; 601

`\glsxtr@counterrecord``{〈entry-label〉}{〈counter〉}{〈value〉}`glossaries-extra v1.12+

An aux file command used with `\GlsXtrRecordCounter` to append 〈value〉 to the record.〈counter〉 field. Also implements `\glsxtrAddCounterRecordHook`. §8.4.3.2; 411

`\glsxtr@record``{〈entry-label〉}{〈h-prefix〉}{〈counter〉}{〈encap〉}{〈location〉}`glossaries-extra v1.08+

Used in the aux file to provide the record for bib2gls (record=only). Ignored by LaTeX. §11.5.6; 579

`\glsxtr@record@nameref``{〈entry-label〉}{〈h-prefix〉}{〈counter〉}{〈encap〉}{〈location〉}{〈current title〉}{〈current anchor〉}{〈the-h-counter〉}`glossaries-extra v1.37+

Used in the aux file to provide the nameref record for bib2gls. Ignored by LaTeX. §11.5.6; 579

`\glsxtr@resource``{〈options〉}{〈basename〉}`glossaries-extra v1.08+

Used in the aux file to provide the resource options for bib2gls for each resource set. Ignored by LaTeX. §11; 534

`\glsxtrabbreviationfont``{〈text〉}`glossaries-extra v1.30+

Used by `\glsentryfmt` to encapsulate non-regular entries the have the short field set. §5.5.2; 240

`\glsxtrabbrvfootnote``{〈entry-label〉}{〈text〉}`glossaries-extra v1.07+

Command that produces the footnote for the footnote abbreviation styles, such as short-footnote and short-postfootnote. 145

`\glsxtrabbrvpluralsuffix` initial: `\glspluralsuffix`; glossaries-extra v1.12+

The default plural suffix used for abbreviations. §4.1.2; 44

`\glsxtrabbrvtype` initial: `\glsdefaulttype`; glossaries-extra

Expands to the label of the default abbreviation glossary. The abbreviations package option will redefine this to `abbreviations`. §4.1.4; 44

`\glsxtrAccSuppAbbrSetFirstLongAttrs``{〈category〉}`glossaries-extra v1.42+

Initialised accessibility support for the name, text and plural fields (if enabled with accsupp). This command is provided for abbreviation styles where the name and text are just the formatted abbreviation. §4.5.3.1; 169

`\glsxtrAccSuppAbbrSetNameLongAttrs``{〈category〉}`glossaries-extra v1.42+

Initialised accessibility support for the first, firstplural, text and plural fields (if enabled with accsupp). This command is provided for abbreviation styles where the first and text are just the formatted abbreviation. §4.5.3.1; 168

`\glsxtrAccSuppAbbrSetNameShortAttrs``{〈category〉}`glossaries-extra v1.42+

Initialised accessibility support for the name field (if enabled with accsupp). This command is provided for abbreviation styles where only the name is just the formatted abbreviation. §4.5.3.1; 169

`\glsxtrAccSuppAbbrSetNoLongAttrs``{〈category〉}`glossaries-extra v1.42+

Initialised accessibility support for the name, first, firstplural, text and plural fields (if enabled with accsupp). This command is provided for abbreviation styles where the name, first and text are just the formatted abbreviation. §4.5.3.1; 168

`\glsxtrAccSuppAbbrSetTextShortAttrs``{〈category〉}`glossaries-extra v1.42+

Initialised accessibility support for the text and plural fields (if enabled with accsupp). This command is provided for abbreviation styles where the text is just the formatted abbreviation. §4.5.3.1; 169

`\glsxtractivatenopost` glossaries-extra v1.22+

Activates `\nopostdesc` and `\glsxtrnopostpunc`. §8.5; 419

`\glsxtractualanchor` glossaries-extra-bib2gls v1.49+

Expands to the anchor required by `\glsxtrdisplaylocnameref`. §11.5.6; 581

`\glsxtraddallcrossrefs`

Iterates over all defined entries and indexes any cross-references (identified by the see or seealso keys) that haven’t been used. §5.9.3; 281

`\glsxtrAddCounterRecordHook``{〈entry-label〉}{〈counter〉}{〈value〉}`glossaries-extra v1.49+

User-level hook used by `\glsxtr@counterrecord`. If this command is redefined, it must be done so in the preamble before the aux file is input. §8.4.3.2; 411

`\glsxtraddgroup``{〈entry-label〉}{〈code〉}`glossaries-extra v1.49+

Used by the “unsrt” family of commands to perform 〈code〉 if the entry identified by 〈entry-label〉 should have support for groups. §8.4.1; 394

`\glsxtraddlabelprefix``{〈label-prefix〉}`glossaries-extra-bib2gls v1.37+

Appends 〈label-prefix〉 to the list of known labels. §11.5.7; 587

`\glsxtraddpunctuationmark``{〈token(s)〉}`

Adds 〈token(s)〉 to the list of punctuation characters used by `\glsxtrifnextpunc`. You may list multiple characters at the same time to add a batch, but don’t add any separators (including spaces). Note that each character must be a single token, which means a single-byte character for pdfLaTeX. Multi-byte characters (UTF-8) will required a native Unicode engine (XeLaTeX or LuaLaTeX). §5.5.4; 249

`\glsxtraddunusedxrefs` glossaries-extra v1.49+

Indexes any cross-references (identified by the see or seealso keys) that haven’t been used. §5.9.3; 281

`\glsxtralias``{〈entry-label〉}`glossaries-extra v1.12+

Expands to the value of the alias field for the entry identified by 〈entry-label〉. If the field isn’t set, this will expand to nothing. If the entry isn’t defined, this will expand to `\relax`. §5.9.2; 279

`\glsxtraliashook``{〈entry-label〉}`glossaries-extra v1.49+

Hook implemented when the alias key is provided when an entry is defined. §3.4; 36

`\glsxtrAltTreeIndent` glossaries-extra-stylemods v1.05+

Length register for the subsequent paragraph indentation for the alttree-like styles. §8.6.5.4; 441

`\glsxtralttreeInit` glossaries-extra-stylemods v1.05+

Initialisation code performed by the alttree-like styles. §8.6.5.4; 441

`\glsxtralttreeSubSymbolDescLocation``{〈entry-label〉}{〈location list〉}`glossaries-extra-stylemods v1.05+

Formats the symbol, description and location for child entries for the alttree-like styles. §8.6.5.4; 441

`\glsxtralttreeSymbolDescLocation``{〈entry-label〉}{〈location list〉}`glossaries-extra-stylemods v1.05+

Formats the symbol, description and location for top-level entries for the alttree-like styles. §8.6.5.4; 440

`\glsxtrapptocsvfield``{〈entry-label〉}{〈field-label〉}{〈element〉}`glossaries-extra v1.47+

For use with fields that should contain comma-separated lists, this will append a command followed by 〈element〉 to the field value. If the field isn’t defined, this command will behave like `\glsxtrdeffield`. No existence check is performed. §3.5; 38

`\GlsXtrAppToDefaultGlsOpts``{〈options〉}`glossaries-extra v1.49+

Locally append 〈options〉 to the default options for the `\gls`-like and `\glstext`-like commands. §5.1.1; 186

`\glsxtrassignactualsetup` glossaries-extra v1.42+

(requires accsupp)

Used to strip common formatting commands from a field value to supply the text-only accessibility content when initialising the default shortaccess and shortpluralaccess values. §9.1; 498

`\glsxtrassignfieldfont``{〈entry-label〉}`glossaries-extra v1.04+

Used by the `\glstext`-like commands to initialise the formatting commands required for the given entry. §5.5.2; 240

`\glsxtrassignlinktextfmt` glossaries-extra v1.49+

Initialised by the `\gls`-like and `\glstext`-like commands, this contains the definitions of `\glslabel`, `\glstextformat`, `\glsxtrgenentrytextfmt`. §5.5.4; 254

`\glsxtrattrentrytextfmt``{〈text〉}`glossaries-extra v1.49+

Applies the command obtained from the control sequence name supplied in the innertextformat attribute for the category assigned to the entry given by `\glslabel`. This command isn’t used by default as it should rarely be needed an increases complexity. §5.5.3; 243

`\GlsXtrAutoAddOnFormat``[〈entry-label〉]{〈format list〉}{〈glsadd options〉}`glossaries-extra v1.37+

Identifies formats that should trigger an automatic `\glsadd` by the `\gls`-like and `\glstext`-like commands. §5.8; 262

`\glsxtrautoindex` initial: `\index`; glossaries-extra v1.16+

The indexing command used by by the auto-indexing feature. §12; 598

`\glsxtrautoindexassignsort``{〈entry-label〉}`glossaries-extra v1.16+

Used to assign the sort value for the auto-indexing feature. §12; 598

`\glsxtrautoindexentry``{〈entry-label〉}`glossaries-extra v1.16+

Expands to the “actual” part for the auto-indexing feature. §12; 597

`\glsxtrautoindexesc` glossaries-extra v1.36+

Escapes the sort value used by the auto-indexing feature. §12; 598

`\glsxtrBasicDigitrules` glossaries-extra-bib2gls v1.27+

Expands to the Basic Latin digit character sort rules. 569

`\glsxtrbibaddress``{〈entry-label〉}`

(defined by `\GlsXtrProvideBibTeXFields`)

Accesses the `address` field. §11.5.2; 560

`\glsxtrbibauthor``{〈entry-label〉}`

(defined by `\GlsXtrProvideBibTeXFields`)

Accesses the `author` field. §11.5.2; 560

`\glsxtrbibbooktitle``{〈entry-label〉}`

(defined by `\GlsXtrProvideBibTeXFields`)

Accesses the `booktitle` field. §11.5.2; 560

`\glsxtrbibchapter``{〈entry-label〉}`

(defined by `\GlsXtrProvideBibTeXFields`)

Accesses the `chapter` field. §11.5.2; 560

`\glsxtrbibedition``{〈entry-label〉}`

(defined by `\GlsXtrProvideBibTeXFields`)

Accesses the `edition` field. §11.5.2; 560

`\glsxtrbibhowpublished``{〈entry-label〉}`

(defined by `\GlsXtrProvideBibTeXFields`)

Accesses the `howpublished` field. §11.5.2; 560

`\glsxtrbibinstitution``{〈entry-label〉}`

(defined by `\GlsXtrProvideBibTeXFields`)

Accesses the `institution` field. §11.5.2; 560

`\glsxtrbibjournal``{〈entry-label〉}`

(defined by `\GlsXtrProvideBibTeXFields`)

Accesses the `journal` field. §11.5.2; 560

`\glsxtrbibmonth``{〈entry-label〉}`

(defined by `\GlsXtrProvideBibTeXFields`)

Accesses the `month` field. §11.5.2; 560

`\glsxtrbibnote``{〈entry-label〉}`

(defined by `\GlsXtrProvideBibTeXFields`)

Accesses the `note` field. §11.5.2; 560

`\glsxtrbibnumber``{〈entry-label〉}`

(defined by `\GlsXtrProvideBibTeXFields`)

Accesses the `number` field. §11.5.2; 560

`\glsxtrbiborganization``{〈entry-label〉}`

(defined by `\GlsXtrProvideBibTeXFields`)

Accesses the `organization` field. §11.5.2; 560

`\glsxtrbibpages``{〈entry-label〉}`

(defined by `\GlsXtrProvideBibTeXFields`)

Accesses the `pages` field. §11.5.2; 560

`\glsxtrbibpublisher``{〈entry-label〉}`

(defined by `\GlsXtrProvideBibTeXFields`)

Accesses the `publisher` field. §11.5.2; 560

`\glsxtrbibschool``{〈entry-label〉}`

(defined by `\GlsXtrProvideBibTeXFields`)

Accesses the `school` field. §11.5.2; 560

`\glsxtrbibseries``{〈entry-label〉}`

(defined by `\GlsXtrProvideBibTeXFields`)

Accesses the `series` field. §11.5.2; 560

`\GlsXtrBibTeXEntryAliases` glossaries-extra-bib2gls v1.29+

Expands to the BibTeX to bib2gls entry aliases for use in entry-type-aliases. §11.5.2; 559

`\glsxtrbibtitle``{〈entry-label〉}`

(defined by `\GlsXtrProvideBibTeXFields`)

Accesses the `title` field. §11.5.2; 560

`\glsxtrbibtype``{〈entry-label〉}`

(defined by `\GlsXtrProvideBibTeXFields`)

Accesses the `bibtextype` field. §11.5.2; 560

`\glsxtrbibvolume``{〈entry-label〉}`

(defined by `\GlsXtrProvideBibTeXFields`)

Accesses the `volume` field. §11.5.2; 560

`\glsxtrbookindexatendgroup``{〈entry-label〉}`glossary-bookindex v1.21+

Used by the bookindex style at the end of a letter group (where the last top-level entry is given by 〈entry-label〉). §8.7.1; 445

`\glsxtrbookindexbetween``{〈entry1-label〉}{〈entry2-label〉}`glossary-bookindex v1.21+

Used by the bookindex style between two entries where 〈entry1-label〉 is the last top-level entry and 〈entry2-label〉 is the next entry, which is a top-level entry. §8.7.1; 445

`\glsxtrbookindexbookmark``{〈group-title〉}{〈bookmark-name〉}`glossary-bookindex v1.21+

Adds a bookmark with `\pdfbookmark`, if supported. §8.7.1; 446

`\glsxtrbookindexcols` initial: 2; glossary-bookindex v1.21+

Expands to the number of columns for the bookindex style. §8.7.1; 442

`\glsxtrbookindexcolspread` glossary-bookindex v1.12+

If not empty this should expand to the option argument for multicols. §8.7.1; 443

`\glsxtrbookindexfirstmark``{〈entry-label〉}`glossary-bookindex v1.21+

Used by the bookindex style to obtain the first mark and, if found, format it with `\glsxtrbookindexfirstmarkfmt`. §8.7.1; 447

`\glsxtrbookindexfirstmarkfmt``{〈entry-label〉}`glossary-bookindex v1.21+

Used by the bookindex style to format the first mark. §8.7.1; 448

`\glsxtrbookindexformatheader``{〈group-title〉}`glossary-bookindex v1.21+

Used by the bookindex style to format a group header. §8.7.1; 447

`\glsxtrbookindexformatsubheader``{〈previous level〉}{〈level〉}{〈parent-label〉}{〈group-label〉}{〈title〉}`glossary-bookindex v1.49+

Formats the sub-group header.

`\glsxtrbookindexlastmark``{〈entry-label〉}`glossary-bookindex v1.21+

Used by the bookindex style to obtain the last mark and, if found, format it with `\glsxtrbookindexlastmarkfmt`. §8.7.1; 447

`\glsxtrbookindexlastmarkfmt``{〈entry-label〉}`glossary-bookindex v1.21+

Used by the bookindex style to format the last mark. §8.7.1; 448

`\glsxtrbookindexlocation``{〈entry-label〉}{〈location list〉}`glossary-bookindex v1.39+

Used by the bookindex style to display top-level location lists. §8.7.1; 444

`\glsxtrbookindexmarkentry``{〈entry-label〉}`glossary-bookindex v1.21+

Used by the bookindex style to mark an entry in the aux file. §8.7.1; 447

`\glsxtrbookindexmulticolsenv` glossary-bookindex v1.25+

Expands to the name of the multicols environment to use. §8.7.1; 443

`\glsxtrbookindexname``{〈entry-label〉}`glossary-bookindex v1.21+

Used by the bookindex style to display a top-level entry’s name. §8.7.1; 443

`\glsxtrbookindexparentchildsep` glossary-bookindex v1.21+

Used by the bookindex style to separate a top-level parent and child entry. §8.7.1; 444

`\glsxtrbookindexparentsubchildsep` glossary-bookindex v1.21+

Used by the bookindex style to separate a sub-level parent and child entry. §8.7.1; 444

`\glsxtrbookindexpregroupskip``{〈skip〉}`glossary-bookindex v1.49+

Used by the bookindex style insert 〈skip〉 after a group header. §8.7.1; 447

`\glsxtrbookindexprelocation``{〈entry-label〉}`glossary-bookindex v1.21+

Used by the bookindex style to display a separator before top-level location lists. §8.7.1; 444

`\glsxtrbookindexsubatendgroup``{〈entry-label〉}`glossary-bookindex v1.21+

Used by the bookindex style at the end of a letter group (where the last level 1 entry is given by 〈entry-label〉). §8.7.1; 445

`\glsxtrbookindexsubbetween``{〈entry1-label〉}{〈entry2-label〉}`glossary-bookindex v1.21+

As `\glsxtrbookindexbetween` but for level 1 entries. §8.7.1; 445

`\glsxtrbookindexsublocation``{〈entry-label〉}{〈location list〉}`glossary-bookindex v1.39+

Used by the bookindex style to display child location lists. §8.7.1; 444

`\glsxtrbookindexsubname``{〈entry-label〉}`glossary-bookindex v1.21+

Used by the bookindex style to display a child entry’s name. §8.7.1; 443

`\glsxtrbookindexsubprelocation``{〈entry-label〉}`glossary-bookindex v1.21+

Used by the bookindex style to display a separator before child location lists. §8.7.1; 444

`\glsxtrbookindexsubsubatendgroup``{〈entry-label〉}`glossary-bookindex v1.21+

Used by the bookindex style at the end of a letter group (where the last level 2 entry is given by 〈entry-label〉). §8.7.1; 445

`\glsxtrbookindexsubsubbetween``{〈entry1-label〉}{〈entry2-label〉}`glossary-bookindex v1.21+

As `\glsxtrbookindexbetween` but for level 2 entries. §8.7.1; 445

`\glsxtrcat` initial: general

Expands to the default category set by commands like `\glsxtr`. §13; 603

`\glsxtr〈category〉〈field〉accsupp`

(user defined)

Expands to the accessibility support command for the given internal field label and category, which is used by `\glsfieldaccsupp`.

`\glsxtrchecknohyperfirst``{〈entry-label〉}`glossaries-extra v1.07+

Sets hyper=false if the nohyperfirst attribute is set. §5.1.1; 188

`\glsxtrclearlabelprefixes` glossaries-extra-bib2gls v1.37+

Clears the list of known prefixes. §11.5.7; 587

`\GlsXtrClearUnsetBuffer` glossaries-extra v1.49+

Locally clears the buffer, but doesn’t stop buffering. §5.10.1; 287

`\glsxtrcombiningdiacriticIIIrules` glossaries-extra-bib2gls v1.27+

Expands to the third set of combining diacritic sort rules. 567

`\glsxtrcombiningdiacriticIIrules` glossaries-extra-bib2gls v1.27+

Expands to the second set of combining diacritic sort rules. 567

`\glsxtrcombiningdiacriticIrules` glossaries-extra-bib2gls v1.27+

Expands to the first set of combining diacritic sort rules. 566

`\glsxtrcombiningdiacriticIVrules` glossaries-extra-bib2gls v1.27+

Expands to the fourth set of combining diacritic sort rules. 567

`\glsxtrcombiningdiacriticrules` glossaries-extra-bib2gls v1.27+

Expands to all the combining diacritic sort rules. 566

`\glsxtrcontrolrules` glossaries-extra-bib2gls v1.27+

Expands to control character sort rules. 566

`\glsxtrcopytoglossary``{〈entry-label〉}{〈glossary-type〉}`modifier: * glossaries-extra v1.12+

Copies the entry to the internal glossary list for the given glossary. The starred version performs a global change. The unstarred version can be localised. Only for use with the “unsrt” family of commands. §8; 378

`\glsxtr〈counter〉locfmt``{〈location〉}{〈title〉}`

(user defined)

Used by `\glsxtrdisplaylocnameref` for format a location where the counter matches 〈counter〉. §11.5.6; 582

`\glsxtrcurrencyrules` glossaries-extra-bib2gls v1.27+

Expands to currency character sort rules. 569

`\glsxtrcurrentfield` glossaries-extra v1.49+

Placeholder command for use in post-link hooks. This expands to empty if the calling command was one of the `\gls`-like commands or it was one of the inline full form commands, otherwise it will expand to the name of the key associated with the singular form of the command. §5.5.4; 252

`\glsxtrcurrentmglscsname` glossaries-extra v1.48+

Placeholder command for use in multi-entry hooks, this expands to the control sequence name of the calling command. §7.5; 350

`\glsxtrdefaultentrytextfmt``{〈text〉}`glossaries-extra v1.49+

Default inner formatting. Initialised to just do 〈text〉. §5.5.3; 243

`\GlsXtrDefaultResourceOptions` glossaries-extra v1.40+

Expands to default resource options. §11; 536

`\glsxtrdefaultrevert``{〈text〉}`glossaries-extra v1.49+

The default definition of `\glsxtrrevert`. Simply does 〈text〉. 132

`\GLSxtrdefaultsubsequentfmt``{〈entry-label〉}{〈insert〉}`glossaries-extra v1.49+

The default all caps subsequent format style that only shows the short form and insert (with support for innertextformat). 174

`\Glsxtrdefaultsubsequentfmt``{〈entry-label〉}{〈insert〉}`glossaries-extra v1.17+

The default sentence case subsequent format style that only shows the short form and insert (with support for innertextformat). 174

`\glsxtrdefaultsubsequentfmt``{〈entry-label〉}{〈insert〉}`glossaries-extra v1.17+

The default subsequent format style that only shows the short form and insert (with support for innertextformat). 174

`\GLSxtrdefaultsubsequentplfmt``{〈entry-label〉}{〈insert〉}`glossaries-extra v1.49+

The default all caps subsequent plural format style that only shows the short form and insert (with support for innertextformat). 174

`\Glsxtrdefaultsubsequentplfmt``{〈entry-label〉}{〈insert〉}`glossaries-extra v1.17+

The default sentence case subsequent plural format style that only shows the short form and insert (with support for innertextformat). 174

`\glsxtrdefaultsubsequentplfmt``{〈entry-label〉}{〈insert〉}`glossaries-extra v1.17+

The default subsequent plural format style that only shows the short form and insert (with support for innertextformat). 174

`\glsxtrdeffield``{〈entry-label〉}{〈field-label〉}{〈value〉}`glossaries-extra v1.12+

Like `\GlsXtrSetField` but doesn’t perform any existence checks. §3.5; 38

`\GlsXtrDefineAbbreviationShortcuts`

Used by shortcuts=abbreviations and shortcuts=all. This command redefines itself to do nothing because it can only be used once.

`\GlsXtrDefineAcronymShortcuts` glossaries-extra v1.17+

Used by shortcuts=ac and shortcuts=acother. This command redefines itself to do nothing because it can only be used once.

`\GlsXtrDefineOtherShortcuts`

Used by shortcuts=other and shortcuts=all. This command redefines itself to do nothing because it can only be used once.

`\glsxtrdetoklocation``{〈location〉}`glossaries-extra v1.21+

Just expands to 〈location〉 by default but may be redefined to help protect awkward characters. §11.4; 545

`\glsxtrdigitrules` glossaries-extra-bib2gls v1.27+

Expands to 0–9 digit character sort rules (includes superscript and subscript digits). 569

`\glsxtrdiscardperiod``{〈entry-label〉}{〈discarded〉}{〈no discard〉}〈token〉`glossaries-extra

If 〈token〉 is a full stop and the entry’s category attributes indicate that a full stop should be discarded (such as discardperiod), then 〈discarded〉 is performed, otherwise 〈no discard〉 is done and the 〈token〉 is processed. The actual test to determine if 〈token〉 is a full stop is performed by `\glsxtrifperiod`. This command is used in post-link hooks. §5.5.4; 247

`\glsxtrdiscardperiodretainfirstuse``{〈entry-label〉}{〈discarded〉}{〈no discard〉}〈token〉`glossaries-extra v1.49+

Used to discard a following full stop when the retainfirstuseperiod attribute is set. §5.5.4; 247

`\GlsXtrDiscardUnsetBuffering` glossaries-extra v1.42+

Discards the pending buffer and restores `\glsunset`. §5.10.1; 287

`\glsxtrdisplayendloc``{〈format〉}{〈location〉}`glossaries-extra v1.12+

Used to display an end location from an explicit range. §8.6.3; 428

`\glsxtrdisplayendlochook` glossaries-extra v1.12+

Hook used by `\glsxtrdisplayendloc`. §8.6.3; 429

`\glsxtrdisplaylocnameref``{〈prefix〉}{〈counter〉}{〈format〉}{〈location〉}{〈title〉}{〈href〉}{〈hcounter〉}{〈file〉}`glossaries-extra-bib2gls v1.37+

Used to display records created with record=nameref. §11.5.6; 580

`\glsxtrdisplaysingleloc``{〈format〉}{〈location〉}`glossaries-extra v1.12+

Used to display a single location. §8.6.3; 428

`\glsxtrdisplaystartloc``{〈format〉}{〈location〉}`glossaries-extra v1.12+

Used to display a start location from an explicit range. §8.6.3; 428

`\glsxtrdisplaysupploc``{〈prefix〉}{〈counter〉}{〈format〉}{〈src〉}{〈location〉}`modifier: * glossaries-extra-bib2gls v1.36+

Like `\glsnoidxdisplayloc` but used for supplementary locations. §11.5.5; 579

`\glsxtrdoautoindexname``{〈entry-label〉}{〈attribute〉}`

Used to automatically index (using `\glsxtrautoindex`) the entry’s name, if the given attribute is set for the entry’s category. §12; 597

`\glsxtrdopostpunc``{〈code〉}〈token〉`glossaries-extra v1.49+

If 〈token〉 is a recognised punctuation character (see `\glsxtrifnextpunc`) this does the punctuation character and then 〈code〉, otherwise if does 〈code〉 followed by 〈token〉. §5.5.4; 248

`\glsxtrdowrglossaryhook``{〈entry-label〉}`glossaries-extra v1.49+

Hook used whenever an entry is indexed. Does nothing by default. §5.8; 266

`\GlsXtrDualBackLink``{〈text〉}{〈entry-label〉}`glossaries-extra-bib2gls v1.30+

Adds a hyperlink to the given entry’s dual (whose label is stored in the field given by `\GlsXtrDualField`) with the given hyperlink text. §11.5.7; 585

`\GlsXtrDualField` initial: dual; glossaries-extra-bib2gls v1.30+

Expands to the internal field label used by `\GlsXtrDualBackLink`. §11.5.7; 585

`\glsxtredeffield``{〈entry-label〉}{〈field-label〉}{〈value〉}`glossaries-extra v1.12+

Like `\glsxtrdeffield` but (protected) expands 〈value〉. §3.5; 38

`\glsxtremrevert``{〈text〉}`glossaries-extra v1.49+

The definition of `\glsxtrrevert` used by the emphasized (“em”) abbreviation styles. Uses `\textup`. 158

`\glsxtremsuffix` initial: `\glsxtrabbrvpluralsuffix`

The plural suffix used by the emphasized (“em”) abbreviation styles. 158

`\GlsXtrEnableEntryCounting``{〈category-list〉}{〈trigger-value〉}`

Enables entry counting for the given list of categories with the given trigger value (which must be an integer). §6.1; 310

`\GlsXtrEnableEntryUnitCounting``{〈category-list〉}{〈trigger-value〉}{〈counter〉}`

Enables unit entry counting for the given list of categories with the given trigger value (which must be an integer) and the associated counter. §6.1; 315

`\GlsXtrEnableIndexFormatOverride`

(preamble only)

Allows the format key to override the attribute value. §12; 599

`\GlsXtrEnableInitialTagging``{〈categories〉}{〈cs〉}`modifier: *

Robustly defines the command 〈cs〉 to accept a single argument, which is a letter (or letters) that needs to be tagged. The unstarred version triggers an error if 〈cs〉 is already defined. The unstarred version will redefine 〈cs〉 if it already exists. §4.4; 56

`\GlsXtrEnableLinkCounting``[〈parent counter〉]{〈categories〉}`glossaries-extra v1.26+

(preamble only)

Enables link counting for the given categories. §6.2; 319

`\GlsXtrEnableOnTheFly` modifier: *

Enables on the fly commands, such as `\glsxtr`. §13; 601

`\GlsXtrEnablePreLocationTag``{〈page tag〉}{〈pages tag〉}`glossaries-extra v1.04+

Enables the location list tag. §8.6.3; 427

`\glsxtrenablerecordcount` glossaries-extra v1.21+

Redefines the `\gls`-like commands (except `\glsdisp`) to use the analogous record count commands (`\rgls` etc). §11.4; 550

`\glsxtrendfor` glossaries-extra v1.24+

When used within `\glsxtrforcsvfield` signifies that the loop should break at the end of the current iteration. §5.13; 303

`\Glsxtrentryfmt``{〈entry-label〉}{〈text〉}`glossaries-extra v1.49+

As `\glsxtrentryfmt` but converts 〈text〉 to sentence case. §5.12.2; 300

`\glsxtrentryfmt``{〈entry-label〉}{〈text〉}`glossaries-extra v1.12+

Does `\〈csname〉{〈text〉}` where the control sequence name 〈csname〉 is obtained from the field given by `\GlsXtrFmtField`. If hyperref has been loaded and this command will expand to `\glsxtrpdfentryfmt`{〈entry-label〉}{〈text〉} in a PDF bookmark. §5.12.2; 298

`\glsxtrentryparentname``{〈entry-name〉}`glossaries-extra v1.39+

Expands to the name field of the given entry’s parent or does nothing if the entry doesn’t have the parent field set or isn’t defined. §5.11; 293

`\glsxtrequationlocfmt``{〈location〉}{〈title〉}`glossaries-extra-bib2gls v1.42+

Used by `\glsxtrdisplaylocnameref` to format a location where the counter is equation. §11.5.6; 582

`\GlsXtrExpandedFmt``{〈cs〉}{〈content〉}`glossaries-extra v1.30+

Fully-expands 〈content〉 and passes it to 〈cs〉, which must be a command that takes a single argument. §5.5; 236

`\glsxtrfielddolistloop``{〈entry-label〉}{〈field〉}`glossaries-extra v1.12+

Iterates over the given field’s value using etoolbox’s `\dolistcsloop`. §5.14; 306

`\glsxtrfieldforlistloop``{〈entry-label〉}{〈field〉}{〈handler-cs〉}`glossaries-extra v1.12+

Iterates over the given field’s value using etoolbox’s `\forlistcsloop`. §5.14; 306

`\glsxtrfieldformatcsvlist``{〈entry-label〉}{〈field-label〉}`glossaries-extra v1.42+

Formats the comma-separated list stored in the given field (identified by its internal label) for the entry identified by 〈entry-label〉 using datatool-base’s `\DTLformatlist`. This command uses `\glsxtrifhasfield` so the complete list can be obtained with `\glscurrentfieldvalue`. This adds implicit grouping. There is no starred version. §5.13; 304

`\glsxtrfieldformatlist``{〈entry-label〉}{〈field-label〉}`glossaries-extra v1.42+

Formats the value of the given field, which should be an etoolbox internal list, using the same list handler macro as datatool’s `\DTLformatlist`. §5.14; 306

`\glsxtrfieldifinlist``{〈entry-label〉}{〈field〉}{〈item〉}{〈true〉}{〈false〉}`glossaries-extra v1.12+

Uses etoolbox’s `\ifinlistcs` to determine if 〈item〉 is in the list stored in the given field. §5.14; 306

`\glsxtrfieldlistadd``{〈entry-label〉}{〈field〉}{〈value〉}`glossaries-extra v1.12+

Appends 〈value〉 to the given field using etoolbox’s `\listcsadd`. §3.5; 39

`\glsxtrfieldlisteadd``{〈entry-label〉}{〈field〉}{〈value〉}`glossaries-extra v1.12+

Appends 〈value〉 to the given field using etoolbox’s `\listcseadd`. §3.5; 39

`\glsxtrfieldlistgadd``{〈entry-label〉}{〈field〉}{〈value〉}`glossaries-extra v1.12+

Appends 〈value〉 to the given field using etoolbox’s `\listcsgadd`. §3.5; 39

`\glsxtrfieldlistxadd``{〈entry-label〉}{〈field〉}{〈value〉}`glossaries-extra v1.12+

Appends 〈value〉 to the given field using etoolbox’s `\listcsxadd`. §3.5; 39

`\glsxtrfieldtitlecase``{〈entry-label〉}{〈field-label〉}`

As `\glsxtrusefield` but converts the field value to title case. §5.11; 293

`\glsxtrfieldtitlecasecs``{〈content〉}`glossaries-extra v1.07+

Converts 〈content〉 to title case (expanding the first token once). Uses `\glscapitalisewords`, if defined, otherwise uses `\capitalisewords`. §5.11; 293

`\glsxtrfieldxifinlist``{〈entry-label〉}{〈field〉}{〈item〉}{〈true〉}{〈false〉}`glossaries-extra v1.12+

Uses etoolbox’s `\xifinlistcs` to determine if 〈item〉 is in the list stored in the given field. §5.14; 307

`\glsxtrfirstscfont``{〈text〉}`glossaries-extra v1.04+

Maintained for backwards-compatibility used to typeset 〈text〉 in small capitals (`\textsc`) for the “sc” abbreviation styles on first use.

`\glsxtrfirstsmfont``{〈text〉}`glossaries-extra v1.04+

Maintained for backwards-compatibility used to typeset 〈text〉 in a smaller font (`\textsmaller`) for the “sm” abbreviation styles on first use.

`\Glsxtrfmt``[〈options〉]{〈entry-label〉}{〈text〉}`glossaries-extra v1.49+

As `\glsxtrfmt` but applies a sentence case change to 〈text〉. §5.12.2; 300

`\glsxtrfmt``[〈options〉]{〈entry-label〉}{〈text〉}`glossaries-extra v1.12+

Behaves like ``\glslink`[〈options〉]{〈entry-label〉}{\〈csname〉{〈text〉}〈insert〉}` where the control sequence name 〈csname〉 is obtained from the field given by `\GlsXtrFmtField`. The actual format of the link text is governed by `\glsxtrfmtdisplay`. §5.12.2; 297

`\Glsxtrfmt*``[〈options〉]{〈entry-label〉}{〈text〉}[〈insert〉]`glossaries-extra v1.49+

As `\glsxtrfmt*` but applies a sentence case change to 〈text〉. §5.12.2; 300

`\glsxtrfmt*``[〈options〉]{〈entry-label〉}{〈text〉}[〈insert〉]`glossaries-extra v1.23+

As the unstarred version `\glsxtrfmt` but accepts the final 〈insert〉 option.

`\GlsXtrFmtDefaultOptions` initial: noindex; glossaries-extra v1.12+

Expands to the default options for `\glsxtrfmt`. §5.1.1; 187

`\glsxtrfmtdisplay``{〈csname〉}{〈text〉}{〈insert〉}`glossaries-extra v1.23+

Formats the link text used in `\glsxtrfmt`. §5.12.2; 297

`\glsxtrfmtexternalnameref``{〈target〉}{〈format〉}{〈title〉}{〈file〉}`glossaries-extra-bib2gls v1.37+

Used by `\glsxtrnamereflink` to create an external location hyperlink. §11.5.6; 583

`\GlsXtrFmtField` initial: useri; glossaries-extra v1.12+

Expands to the name of the used by `\glsxtrfmt`. §5.12.2; 297

`\glsxtrfmtinternalnameref``{〈target〉}{〈format〉}{〈file〉}`glossaries-extra-bib2gls v1.37+

Used by `\glsxtrnamereflink` to create an internal location hyperlink. §11.5.6; 583

`\glsxtrfootnotedescname` glossaries-extra v1.42+

Expands to the name value for styles like short-footnote-desc. 144

`\glsxtrfootnotedescsort` glossaries-extra v1.42+

Expands to the sort value for styles like short-footnote-desc. 145

`\glsxtrfootnotelongformat``{〈entry-label〉}{〈fmt-cs〉}`glossaries-extra v1.49+

Used in the footnote text to format the singular long form. 145

`\glsxtrfootnotelongplformat``{〈entry-label〉}{〈fmt-cs〉}`glossaries-extra v1.49+

Used in the footnote text to format the plural long form. 146

`\glsxtrfootnotename` glossaries-extra v1.25+

Expands to the name value for styles like short-footnote. 144

`\glsxtrforcsvfield``{〈entry-label〉}{〈field-label〉}{〈handler cs〉}`modifier: * glossaries-extra v1.24+

Iterates over the comma-separated list stored in the given field (identified by its internal label) for the entry identified by 〈entry-label〉 and performs `〈handler cs〉{〈element〉}` for each element of the list. This command uses `\glsxtrifhasfield` so the complete list can be obtained with `\glscurrentfieldvalue`. The unstarred version adds implicit grouping. The starred version doesn’t. §5.13; 303

`\GlsXtrForeignText``{〈entry-label〉}{〈text〉}`glossaries-extra v1.32+

If the entry given by 〈entry-label〉 has the field identified by `\GlsXtrForeignTextField` then 〈text〉 will be encapsulated according to the language tag stored in that field (using tracklang’s interface). §5.12.1; 295

`\GlsXtrForeignTextField` glossaries-extra v1.32+

Expands to the internal field label used by `\GlsXtrForeignText`. §5.12.1; 295

`\GlsXtrFormatLocationList``{〈location list〉}`

Used by `\glossaryentrynumbers` to encapsulate the entire location list in the glossary. §8.6.3; 427

`\GlsXtrForUnsetBufferedList``{〈handler-cs〉}`glossaries-extra v1.31+

Iterates over the labels stored in the current buffer. §5.10.1; 287

`\glsxtrfractionrules` glossaries-extra-bib2gls v1.27+

Expands to the number forms fraction character sort rules. 570

`\GLSxtrfull``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉

As `\glsxtrfull` but converts the link text to all caps. §4.3; 53

`\Glsxtrfull``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉

As `\glsxtrfull` but converts the first character of the link text to uppercase (for the start of a sentence) using `\makefirstuc`. §4.3; 53

`\glsxtrfull``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉

References the entry identified by 〈entry-label〉. The text produced is obtained from the short and long values, formatted according to the abbreviation style associated with the entry’s category. The 〈insert〉 argument will be inserted at the end of the link text. This command does not alter or depend on the first use flag. The format produced by this command may not match the format produced by the first use of ``\gls`{〈entry-label〉}`, depending on the abbreviation style. For the first optional argument, see `\glslink` options. §4.3; 53

`\GLSxtrfullformat``{〈entry-label〉}{〈insert〉}`glossaries-extra v1.49+

The all caps singular display full form (defined by the abbreviation style). 172

`\Glsxtrfullformat``{〈entry-label〉}{〈insert〉}`glossaries-extra v1.49+

The sentence case singular display full form (defined by the abbreviation style). 172

`\glsxtrfullformat``{〈entry-label〉}{〈insert〉}`glossaries-extra v1.49+

The singular display full form (defined by the abbreviation style). 172

`\GLSxtrfullpl``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉

As `\glsxtrfullpl` but converts the link text to all caps. §4.3; 53

`\Glsxtrfullpl``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉

As `\glsxtrfullpl` but converts the first character of the link text to uppercase (for the start of a sentence) using `\makefirstuc`. §4.3; 53

`\glsxtrfullpl``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉

References the entry identified by 〈entry-label〉. The text produced is obtained from the shortplural and longplural values, formatted according to the abbreviation style associated with the entry’s category. The 〈insert〉 argument will be inserted at the end of the link text. This command does not alter or depend on the first use flag. The format produced by this command may not match the format produced by the first use of ``\glspl`{〈entry-label〉}`, depending on the abbreviation style. For the first optional argument, see `\glslink` options. §4.3; 53

`\GLSxtrfullplformat``{〈entry-label〉}{〈insert〉}`glossaries-extra v1.49+

The all caps plural display full form (defined by the abbreviation style). 172

`\Glsxtrfullplformat``{〈entry-label〉}{〈insert〉}`glossaries-extra v1.49+

The sentence case plural display full form (defined by the abbreviation style). 172

`\glsxtrfullplformat``{〈entry-label〉}{〈insert〉}`glossaries-extra v1.49+

The plural display full form (defined by the abbreviation style). 172

`\glsxtrfullsaveinsert``{〈entry-label〉}{〈insert〉}`glossaries-extra v1.49+

Implemented at the start of all the inline full form commands like `\glsxtrfull` to save the `\glsinsert` placeholder. By default, this just does `\glsxtrsaveinsert`. §4.3; 54

`\glsxtrfullsep``{〈entry-label〉}`

Separator used by the parenthetical inline full form and also for some display full forms. 132

`\glsxtrgenabbrvfmt`

The display format used by `\glsentryfmt` for entries that have the short field set and have the regular attribute set to `false`. §5.5.5; 255

`\glsxtrgenentrytextfmt` glossaries-extra v1.49+

Redefined by the `\gls`-like and `\glstext`-like hooks to set up the inner formatting. Initialised to `\glsxtrdefaultentrytextfmt`. §5.5.3; 243

`\glsxtrGeneralInitRules` glossaries-extra-bib2gls v1.49+

A shortcut that expands to the ignorable rules, combining diacritic rules, hyphen rules, general punctuation rules, digit rules, and fraction rules. 570

`\glsxtrGeneralLatinAtoGrules` glossaries-extra-bib2gls v1.49+

Expands to the A–G subset of General Latin I sort rules. 572

`\glsxtrGeneralLatinAtoMrules` glossaries-extra-bib2gls v1.49+

Expands to the A–M subset of General Latin I sort rules. 572

`\glsxtrGeneralLatinHtoMrules` glossaries-extra-bib2gls v1.49+

Expands to the H–M subset of General Latin I sort rules. 572

`\glsxtrGeneralLatinIIIrules` glossaries-extra-bib2gls v1.27+

Expands to the third set of General Latin sort rules. 571

`\glsxtrGeneralLatinIIrules` glossaries-extra-bib2gls v1.27+

Expands to the second set of General Latin sort rules. 571

`\glsxtrGeneralLatinIrules` glossaries-extra-bib2gls v1.27+

Expands to the first set of General Latin sort rules. 570

`\glsxtrGeneralLatinIVrules` glossaries-extra-bib2gls v1.27+

Expands to the fourth set of General Latin sort rules. 571

`\glsxtrGeneralLatinNtoSrules` glossaries-extra-bib2gls v1.49+

Expands to the N–S subset of General Latin I sort rules. 572

`\glsxtrGeneralLatinNtoZrules` glossaries-extra-bib2gls v1.49+

Expands to the N–Z subset of General Latin I sort rules. 572

`\glsxtrGeneralLatinTtoZrules` glossaries-extra-bib2gls v1.49+

Expands to the T–Z subset of General Latin I sort rules. 572

`\glsxtrGeneralLatinVIIIrules` glossaries-extra-bib2gls v1.27+

Expands to the eighth set of General Latin sort rules. 572

`\glsxtrGeneralLatinVIIrules` glossaries-extra-bib2gls v1.27+

Expands to the seventh set of General Latin sort rules. 571

`\glsxtrGeneralLatinVIrules` glossaries-extra-bib2gls v1.27+

Expands to the sixth set of General Latin sort rules. 571

`\glsxtrGeneralLatinVrules` glossaries-extra-bib2gls v1.27+

Expands to the fifth set of General Latin sort rules. 571

`\glsxtrgeneralpuncaccentsrules` glossaries-extra-bib2gls v1.49+

Punctuation accent subset of `\glsxtrgeneralpuncIrules`. 568

`\glsxtrgeneralpuncbracketrules` glossaries-extra-bib2gls v1.49+

Punctuation bracket subset of `\glsxtrgeneralpuncIrules`. 568

`\glsxtrgeneralpuncIIrules` glossaries-extra-bib2gls v1.27+

Expands to the second set of general punctuation (including currency) sort rules. 569

`\glsxtrgeneralpuncIrules` glossaries-extra-bib2gls v1.27+

Expands to the first set of general punctuation (including currency) sort rules. 568

`\glsxtrgeneralpuncmarksrules` glossaries-extra-bib2gls v1.49+

Punctuation mark subset of `\glsxtrgeneralpuncIrules`. 568

`\glsxtrgeneralpuncquoterules` glossaries-extra-bib2gls v1.49+

Punctuation quote subset of `\glsxtrgeneralpuncIrules`. 568

`\glsxtrgeneralpuncrules` glossaries-extra-bib2gls v1.27+

Expands to all sets of general punctuation sort rules. 567

`\glsxtrgeneralpuncsignrules` glossaries-extra-bib2gls v1.49+

Punctuation sign subset of `\glsxtrgeneralpuncIrules`. 569

`\glsxtrgetgrouptitle``{〈group-label〉}{〈cs〉}`glossaries-extra v1.14+

Obtains the title corresponding to the group identified by 〈group-label〉 and stores the result in the control sequence 〈cs〉. §8.6.4; 430

`\glsxtrgroupfield` initial: group; glossaries-extra v1.21+

Expands to the internal field label used to store the group label (requires record). §8.4.1; 392

`\glsxtrglossentry``{〈entry-label〉}`glossaries-extra v1.21+

Used for standalone entries to display the name with `\glossentryname`, with appropriate hooks. §8.5; 418

`\glsxtrglossentryother``{〈header〉}{〈entry-label〉}{〈field-label〉}`glossaries-extra v1.22+

Like `\glsxtrglossentry` but uses the given field instead of name. §8.5; 419

`\GLSxtrheadfirst``{〈entry-label〉}`glossaries-extra v1.49+

Used to display the all caps entry’s first field in the page header. §5.3.3; 225

`\Glsxtrheadfirst``{〈entry-label〉}`

Used to display the sentence case entry’s first field in the page header (converts to all caps if headuc attribute is `true`). §5.3.3; 224

`\glsxtrheadfirst``{〈entry-label〉}`

Used to display the entry’s first field in the page header (converts to all caps if headuc attribute is `true`). §5.3.3; 224

`\GLSxtrheadfirstplural``{〈entry-label〉}`glossaries-extra v1.49+

Used to display the all caps entry’s firstplural field in the page header. §5.3.3; 225

`\Glsxtrheadfirstplural``{〈entry-label〉}`

Used to display the sentence case entry’s firstplural field in the page header (converts to all caps if headuc attribute is `true`). §5.3.3; 225

`\glsxtrheadfirstplural``{〈entry-label〉}`

Used to display the entry’s firstplural field in the page header (converts to all caps if headuc attribute is `true`). §5.3.3; 225

`\GLSxtrheadfull``{〈entry-label〉}`glossaries-extra v1.49+

Used to display the entry’s all caps full form in the page header. §5.3.3; 221

`\Glsxtrheadfull``{〈entry-label〉}`glossaries-extra v1.02+

Used to display the entry’s sentence case full form in the page header (converts to all caps if headuc attribute is `true`). §5.3.3; 221

`\glsxtrheadfull``{〈entry-label〉}`glossaries-extra v1.02+

Used to display the entry’s full form in the page header (converts to all caps if headuc attribute is `true`). §5.3.3; 220

`\GLSxtrheadfullpl``{〈entry-label〉}`glossaries-extra v1.49+

Used to display the entry’s all caps full plural form in the page header. §5.3.3; 222

`\Glsxtrheadfullpl``{〈entry-label〉}`glossaries-extra v1.02+

Used to display the entry’s sentence case full plural form in the page header (converts to all caps if headuc attribute is `true`). §5.3.3; 221

`\glsxtrheadfullpl``{〈entry-label〉}`glossaries-extra v1.02+

Used to display the entry’s full plural form in the page header (converts to all caps if headuc attribute is `true`). §5.3.3; 221

`\GLSxtrheadlong``{〈entry-label〉}`glossaries-extra v1.49+

The behaviour of `\GLSfmtlong` when it occurs in a page header. §5.3.3; 219

`\Glsxtrheadlong``{〈entry-label〉}`glossaries-extra v1.02+

The behaviour of `\Glsfmtlong` when it occurs in a page header. §5.3.3; 219

`\glsxtrheadlong``{〈entry-label〉}`glossaries-extra v1.02+

The behaviour of `\glsfmtlong` when it occurs in a page header. §5.3.3; 219

`\GLSxtrheadlongpl``{〈entry-label〉}`glossaries-extra v1.49+

The behaviour of `\GLSfmtlongpl` when it occurs in a page header. §5.3.3; 220

`\Glsxtrheadlongpl``{〈entry-label〉}`glossaries-extra v1.02+

The behaviour of `\Glsfmtlongpl` when it occurs in a page header. §5.3.3; 220

`\glsxtrheadlongpl``{〈entry-label〉}`glossaries-extra v1.02+

The behaviour of `\glsfmtlongpl` when it occurs in a page header. §5.3.3; 220

`\GLSxtrheadname``{〈entry-label〉}`glossaries-extra v1.49+

Used to display the all caps entry’s name field in the page header. §5.3.3; 222

`\Glsxtrheadname``{〈entry-label〉}`glossaries-extra v1.21+

Used to display the sentence case entry’s name in the page header (converts to all caps if headuc attribute is `true`). §5.3.3; 222

`\glsxtrheadname``{〈entry-label〉}`glossaries-extra v1.21+

Used to display the entry’s name in the page header (converts to all caps if headuc attribute is `true`). §5.3.3; 222

`\GLSxtrheadplural``{〈entry-label〉}`glossaries-extra v1.49+

Used to display the all caps entry’s plural field in the page header. §5.3.3; 224

`\Glsxtrheadplural``{〈entry-label〉}`

Used to display the sentence case entry’s plural field in the page header (converts to all caps if headuc attribute is `true`). §5.3.3; 224

`\glsxtrheadplural``{〈entry-label〉}`

Used to display the entry’s plural field in the page header (converts to all caps if headuc attribute is `true`). §5.3.3; 223

`\GLSxtrheadshort``{〈entry-label〉}`glossaries-extra v1.49+

The behaviour of `\GLSfmtshort` when it occurs in a page header. §5.3.3; 217

`\Glsxtrheadshort``{〈entry-label〉}`

The behaviour of `\Glsfmtshort` when it occurs in a page header. §5.3.3; 217

`\glsxtrheadshort``{〈entry-label〉}`

The behaviour of `\glsfmtshort` when it occurs in a page header. §5.3.3; 216

`\GLSxtrheadshortpl``{〈entry-label〉}`glossaries-extra v1.49+

The behaviour of `\GLSfmtshortpl` when it occurs in a page header. §5.3.3; 219

`\Glsxtrheadshortpl``{〈entry-label〉}`

The behaviour of `\Glsfmtshortpl` when it occurs in a page header. §5.3.3; 218

`\glsxtrheadshortpl``{〈entry-label〉}`glossaries-extra v1.49+

The behaviour of `\glsfmtshortpl` when it occurs in a page header. §5.3.3; 218

`\GLSxtrheadtext``{〈entry-label〉}`glossaries-extra v1.49+

Used to display the all caps entry’s text field in the page header. §5.3.3; 223

`\Glsxtrheadtext``{〈entry-label〉}`

Used to display the sentence case entry’s text field in the page header (converts to all caps if headuc attribute is `true`). §5.3.3; 223

`\glsxtrheadtext``{〈entry-label〉}`

Used to display the entry’s text field in the page header (converts to all caps if headuc attribute is `true`). §5.3.3; 223

`\GLSXTRhiername``{〈entry-label〉}`glossaries-extra v1.37+

Displays the entry’s hierarchical name where each name is converted to uppercase. §5.11; 295

`\GLSxtrhiername``{〈entry-label〉}`glossaries-extra v1.37+

Displays the entry’s hierarchical name where the first name is converted to uppercase. §5.11; 295

`\GlsXtrhiername``{〈entry-label〉}`glossaries-extra v1.37+

Displays the entry’s hierarchical name where each element name has its first character converted to uppercase. §5.11; 294

`\Glsxtrhiername``{〈entry-label〉}`glossaries-extra v1.37+

Displays the entry’s hierarchical name using sentence case. §5.11; 294

`\glsxtrhiername``{〈entry-label〉}`glossaries-extra v1.37+

Displays the entry’s hierarchical name. §5.11; 294

`\glsxtrhiernamesep` glossaries-extra v1.37+

Separator used by commands like `\glsxtrhiername`. §5.11; 294

`\glsxtrhyphenrules` glossaries-extra-bib2gls v1.27+

Expands to hyphen character sort rules. 567

`\glsxtrhyphensuffix` initial: `\glsxtrabbrvpluralsuffix`; glossaries-extra v1.17+

The plural suffix used by the “hyphen” abbreviation styles (such as short-hyphen-long-hyphen). 148

`\glsxtridentifyglslike``{〈label-prefix〉}{〈cs〉}`glossaries-extra v1.37+

Used to inform bib2gls to include the given command when it searches for dependencies. §5.7; 259

`\glsxtrifallcaps``{〈all caps〉}{〈not all caps〉}`glossaries-extra v1.49+

Shortcut for ``\glscapscase`{〈not all caps〉}{〈not all caps〉}{〈all caps〉}`. §5.5.4; 253

`\glsxtrifcounttrigger``{〈entry-label〉}{〈true〉}{〈false〉}`

Does 〈true〉 if the entry’s total use count at the end of the previous run exceeds the trigger value assigned to the entry’s category, otherwise does 〈false〉. §6.1; 313

`\glsxtrifcustomdiscardperiod``{〈true〉}{〈false〉}`initial: 〈false〉; glossaries-extra v1.23+

User hook to trigger a check for a following full stop. This should do 〈true〉 if there should be a check for a following full stop otherwise should do 〈false〉. §5.5.4; 248

`\glsxtrifemptyglossary``{〈glossary-type〉}{〈true〉}{〈false〉}`

Does 〈true〉 if the glossary identified by 〈glossary-type〉 is empty, otherwise does 〈false〉. If the glossary doesn’t exist, this does 〈true〉 and will either generate an error (undefaction=error) or a warning (undefaction=warn). This command considers ignored glossaries as existing. §8; 379

`\GlsXtrIfFieldCmpNum``{〈field-label〉}{〈entry-label〉}{〈op〉}{〈number〉}{〈true〉}{〈false〉}`modifier: * glossaries-extra v1.31+

Compares the (numeric) value of the field identified by its internal label 〈field-label〉 for the entry identified by 〈entry-label〉 with 〈number〉 where 〈op〉 is the comparison operator (`=`, `<` or `>`). The unstarred version adds implicit grouping. The starred version doesn’t. §5.15; 307

`\GlsXtrIfFieldEqNum``{〈field-label〉}{〈entry-label〉}{〈number〉}{〈true〉}{〈false〉}`modifier: * glossaries-extra v1.31+

A shortcut that uses `\GlsXtrIfFieldCmpNum` with 〈op〉 set to `=`. The unstarred version adds implicit grouping. The starred version doesn’t. §5.15; 308

`\GlsXtrIfFieldEqStr``{〈field-label〉}{〈entry-label〉}{〈value〉}{〈true〉}{〈false〉}`modifier: * glossaries-extra v1.21+

Tests if the entry given by 〈entry-label〉 has the field identified by its internal label 〈field-label〉 set to 〈value〉. This internally uses `\glsxtrifhasfield` and compares `\glscurrentfieldvalue` to 〈value〉 using etoolbox’s `\ifdefstring`. The unstarred version adds implicit grouping. The starred version doesn’t. §5.15; 308

`\GlsXtrIfFieldEqXpStr``{〈field-label〉}{〈entry-label〉}{〈value〉}{〈true〉}{〈false〉}`modifier: * glossaries-extra v1.31+

Like `\GlsXtrIfFieldEqStr` but first (protected) expands 〈value〉. §5.15; 308

`\GlsXtrIfFieldNonZero``{〈field-label〉}{〈entry-label〉}{〈true〉}{〈false〉}`modifier: * glossaries-extra v1.31+

A shortcut that uses `\GlsXtrIfFieldCmpNum` to test if the (numeric) value of the field identified by its internal label 〈field-label〉 for the entry identified by 〈entry-label〉 is non-zero. An empty or undefined field is treated as 0. The unstarred version adds implicit grouping. The starred version doesn’t. The value can be referenced within 〈true〉 (where it will be 0) or within 〈false〉 using `\glscurrentfieldvalue`. §5.15; 308

`\GlsXtrIfFieldUndef``{〈field-label〉}{〈entry-label〉}{〈true〉}{〈false〉}`glossaries-extra v1.23+

Expandable command that tests if the given field (identified by its internal label) is undefined for the entry given by 〈entry-label〉. Internally uses etoolbox’s `\ifcsundef` command. Unlike `\glsxtrifhasfield` there is no grouping or starred version. §5.15; 307

`\GlsXtrIfFieldValueInCsvList``{〈entry-label〉}{〈field-label〉}{〈csv-list〉}{〈true〉}{〈false〉}`modifier: * glossaries-extra v1.42+

Tests if the value stored in the given field (identified by its internal label) for the entry identified by 〈entry-label〉 is contained in the comma-separated list 〈csv-list〉 using `\DTLifinlist` (provided by datatool-base, which is automatically loaded by the glossaries package). One level expansion is performed on 〈csv-list〉. This command uses `\glsxtrifhasfield` so the field value can be obtained with `\glscurrentfieldvalue`. The unstarred version adds implicit grouping. The starred version doesn’t. §5.13; 305

`\glsxtrifhasfield``{〈field-label〉}{〈entry-label〉}{〈true〉}{〈false〉}`modifier: * glossaries-extra v1.19+

Tests if the field identified by its internal label 〈field-label〉 for the entry given by 〈entry-label〉 is defined and is not empty. This is like `\ifglshasfield` but doesn’t produce a warning if the entry or field doesn’t exist. This sets `\glscurrentfieldvalue` to the field value and does 〈true〉 if its defined and not empty, otherwise it does 〈false〉. The unstarred version adds implicit grouping to make nesting easier. The starred version doesn’t (to make assignments easier). §5.15; 307

`\GlsXtrIfHasNonZeroChildCount``{〈entry-label〉}{〈true〉}{〈false〉}`modifier: * glossaries-extra-bib2gls v1.47+

Tests if the value in the childcount field is non-zero (using `\GlsXtrIfFieldNonZero`). This requires the save-child-count resource option. §11.5.4; 578

`\glsxtrifheaduc``{〈entry-label〉}{〈true〉}{〈false〉}`glossaries-extra v1.49+

If the category associated with the entry given by 〈entry-label〉 has the headuc attribute set to `true` this does 〈true〉 otherwise it does 〈false〉. §5.3.3; 215

`\glsxtrifhyphenstart``{〈text〉}{〈true〉}{〈false〉}`glossaries-extra v1.17+

If 〈text〉 starts with a hyphen this does 〈true〉 otherwise it does 〈false〉. §4.5.2; 160

`\glsxtrifindexing``{〈true〉}{〈false〉}`

Tests whether or not the noindex has been set. Does 〈false〉 if noindex=true otherwise does 〈true〉. §5.8; 267

`\GlsXtrIfInGlossary``{〈entry-label〉}{〈glossary-type〉}{〈true〉}{〈false〉}`glossaries-extra v1.49+

Does 〈true〉 if the entry given by 〈entry-label〉 is in the internal list of the glossary identified by 〈glossary-type〉, otherwise it does 〈false〉. If the glossary doesn’t exist, this does 〈false〉 and will either generate an error (undefaction=error) or a warning (undefaction=warn). This command considers ignored glossaries as existing. §8; 378

`\glsxtrifinlabelprefixlist``{〈label-prefix〉}{〈true〉}{〈false〉}`glossaries-extra-bib2gls v1.37+

Does 〈true〉 if 〈label-prefix〉 has been identified as a label prefix. §11.5.7; 587

`\glsxtrifinmark``{〈true〉}{〈false〉}`glossaries-extra v1.07+

Does 〈true〉 if within `\markright`, `\markboth` or `\@starttoc` otherwise does 〈false〉. §5.3.3; 213

`\glsxtrifintoc``{〈true〉}{〈false〉}`glossaries-extra v1.49+

Normally just expands to 〈false〉 but `\@starttoc` is redefined to temporarily set this macro to expand to 〈true〉 instead. Will always expand to 〈false〉 if `\glsxtrRevertTocMarks` or `\glsxtrRevertMarks` are used to revert `\@starttoc` to its former definition. §5.3.3; 213

`\glsxtrifkeydefined``{〈key〉}{〈true〉}{〈false〉}`glossaries-extra v1.12+

Tests if the given 〈key〉 has been defined as a glossary entry key. Does 〈true〉 if the key has been defined, otherwise does false. §3.2; 35

`\glsxtriflabelinlist``{〈label〉}{〈label-list〉}{〈true〉}{〈false〉}`glossaries-extra v1.21+

Does 〈true〉 if the given label is in the given comma-separated list of labels, otherwise does 〈false〉. The label and list are fully expanded. §8.4.3; 406

`\GlsXtrIfLinkCounterDef``{〈entry-label〉}{〈true〉}{〈false〉}`glossaries-extra v1.26+

Expands to 〈true〉 if the link counter associated with the given entry has been defined, otherwise expands to 〈false〉. §6.2; 320

`\glsxtrifmulti``{〈multi-label〉}{〈true〉}{〈false〉}`glossaries-extra v1.48+

Does 〈true〉 if a multi-entry has been defined with the label 〈multi-label〉 otherwise does 〈false〉. §7.13; 372

`\glsxtrifnextpunc``{〈true〉}{〈false〉}`glossaries-extra

Performs 〈true〉 if this command is followed by a recognised punctuation character otherwise does 〈false〉. The list of recognised punctuation marks is initialised to `.,:;?!` (full stop, comma, colon, semicolon, question mark, and exclamation mark). Additional punctuation characters can be added with `\glsxtraddpunctuationmark`. §5.5.4; 248

`\glsxtrifperiod``{〈true〉}{〈false〉}〈token〉`glossaries-extra

Does 〈true〉 if 〈token〉 is a full stop, otherwise does 〈false〉. §5.5.4; 248

`\glsxtrifrecordtrigger``{〈entry-label〉}{〈true〉}{〈false〉}`glossaries-extra v1.21+

Does 〈true〉 if the entry’s total record count (obtained with `\glsxtrrecordtriggervalue`) exceeds the value supplied by the recordcount attribute, otherwise does 〈false〉. §11.4; 547

`\GlsXtrIfUnusedOrUndefined``{〈entry-label〉}{〈true〉}{〈false〉}`glossaries-extra v1.34+

Does 〈true〉 if the entry hasn’t been defined or hasn’t been marked as used, otherwise does 〈true〉. Note that this command will generate an error or warning (according to undefaction) if the entry hasn’t been defined, but will still do 〈true〉. §5.10; 285

`\GlsXtrIfValueInFieldCsvList``{〈entry-label〉}{〈field-label〉}{〈value〉}{〈true〉}{〈false〉}`modifier: * glossaries-extra v1.47+

Tests if the given value (〈value〉) is contained in the comma-separated list stored in the given field (identified by its internal label) for the entry identified by 〈entry-label〉 using `\DTLifinlist` (provided by datatool-base, which is automatically loaded by the glossaries package). No expansion is performed on 〈value〉. This command uses `\glsxtrifhasfield` so the complete list can be obtained with `\glscurrentfieldvalue`. The unstarred version adds implicit grouping. The starred version doesn’t. §5.13; 305

`\glsxtrifwasfirstuse``{〈true〉}{〈false〉}`

Initialised by the `\gls`-like and `\glstext`-like commands, this expands to 〈true〉 if the calling command was considered the first use, otherwise it expands to 〈false〉. This command may be used within the post-link hook (where it’s too late to test the first use flag with `\ifglsused`). §5.10; 284

`\glsxtrifwasglslike``{〈true〉}{〈false〉}`glossaries-extra v1.49+

Initialised by the `\gls`-like and `\glstext`-like commands, this expands to 〈true〉 if the calling command was a `\gls`-like command, otherwise it expands to 〈false〉. This command may be used within the post-link hook. §5.5.4; 252

`\glsxtrifwasglslikeandfirstuse``{〈true〉}{〈false〉}`glossaries-extra v1.49+

A shortcut that nests `\glsxtrifwasglslike` and `\glsxtrifwasfirstuse`. This does 〈true〉 if the calling command was both a `\gls`-like command and was considered the first use. §5.5.4; 252

`\glsxtrifwassubsequentorshort``{〈true〉}{〈false〉}`glossaries-extra v1.49+

Expands to 〈true〉 if the calling command was a `\gls`-like command and was the subsequent use or if `\glsxtrcurrentfield` was set to `short`. §5.5.4; 253

`\glsxtrifwassubsequentuse``{〈true〉}{〈false〉}`glossaries-extra v1.49+

A shortcut that nests `\glsxtrifwasglslike` and `\glsxtrifwasfirstuse`. This does 〈true〉 if the calling command was a `\gls`-like command but was not considered the first use. §5.5.4; 253

`\GlsXtrIfXpFieldEqXpStr``{〈field-label〉}{〈entry-label〉}{〈value〉}{〈true〉}{〈false〉}`modifier: * glossaries-extra v1.31+

Like `\GlsXtrIfFieldEqStr` but first (protected) expands both the field value and the supplied 〈value〉. §5.15; 308

`\glsxtrIgnorableRules` glossaries-extra-bib2gls v1.49+

A shortcut that expands to the control rules, space rules and non-printable rules. 570

`\glsxtrinclinkcounter``{〈counter〉}`glossaries-extra v1.26+

Increments the link counter with `\stepcounter`. §6.2; 319

`\glsxtrindexaliased` glossaries-extra v1.12+

Index the current entry’s alias. May only be used within the definition of `\glsxtrsetaliasnoindex`. §5.9.3; 280

`\GlsXtrIndexCounterLink``{〈text〉}{〈entry-label〉}`glossaries-extra-bib2gls v1.29+

Creates a hyperlink (if supported) to the target obtained from indexcounter, if the field has been defined with the given hyperlink text (otherwise just does 〈text〉). §11.5.8; 596

`\glsxtrindexseealso``{〈entry-label〉}{〈xr-list〉}`glossaries-extra v1.16+

Indexes the entry identified by 〈entry-label〉 as a “see also” cross-reference to the entries identified in the comma-separated list 〈xr-list〉. The cross-reference list is prefixed with `\seealsoname`. §5.9.3; 280

`\glsxtrinithyperoutside` glossaries-extra v1.21+

Hook that initialises the hyperoutside setting. §5.1.1; 188

`\glsxtrinitwrgloss` glossaries-extra v1.14+

Hook that initialises the wrgloss setting. §5.1.1; 188

`\glsxtrinitwrglossbeforefalse` glossaries-extra v1.14+

Corresponds to wrgloss=after.

`\glsxtrinitwrglossbeforetrue` glossaries-extra v1.14+

Corresponds to wrgloss=before.

`\GLSxtrinlinefullformat``{〈entry-label〉}{〈insert〉}`glossaries-extra v1.49+

Used by `\GLSxtrfull` to display the all caps inline full form form (defined by the abbreviation style). 175

`\Glsxtrinlinefullformat``{〈entry-label〉}{〈insert〉}`

Used by `\Glsxtrfull` to display the sentence case inline full form form (defined by the abbreviation style). 175

`\glsxtrinlinefullformat``{〈entry-label〉}{〈insert〉}`

Used by `\glsxtrfull` to display the inline full form form (defined by the abbreviation style). 174

`\GLSxtrinlinefullplformat``{〈entry-label〉}{〈insert〉}`glossaries-extra v1.49+

Used by `\GLSxtrfullpl` to display the plural all caps inline full form form (defined by the abbreviation style). 175

`\Glsxtrinlinefullplformat``{〈entry-label〉}{〈insert〉}`

Used by `\Glsxtrfullpl` to display the plural sentence case inline full form form (defined by the abbreviation style). 175

`\glsxtrinlinefullplformat``{〈entry-label〉}{〈insert〉}`

Used by `\glsxtrfullpl` to display the plural inline full form form (defined by the abbreviation style). 174

`\glsxtrinsertinsidefalse` glossaries-extra v1.02

Sets the `\ifglsxtrinsertinside` conditional to false. 131

`\glsxtrinsertinsidetrue` glossaries-extra v1.02

Sets the `\ifglsxtrinsertinside` to true. 131

`\GlsXtrInternalLocationHyperlink``{〈counter〉}{〈prefix〉}{〈location〉}`glossaries-extra v1.29+

Used by `\glsxtrlocationhyperlink` to create an internal hyperlink to the given location (advanced command, see documented code for use).

`\glsxtrLatinA` glossaries-extra-bib2gls v1.27+

(Sort rule) expands to the variations of Latin A (includes 0x00AA and 0x2090). 572

`\glsxtrLatinAA` glossaries-extra-bib2gls v1.27+

(Sort rule) expands to the variations of Latin å. 575

`\glsxtrLatinAELigature` glossaries-extra-bib2gls v1.27+

(Sort rule) expands to the variations of Latin ae-ligature. 574

`\glsxtrLatinE` glossaries-extra-bib2gls v1.27+

(Sort rule) expands to the variations of Latin E (includes 0x2091). 573

`\glsxtrLatinEszettSs` glossaries-extra-bib2gls v1.27+

(Sort rule) expands to rule for ßand ſs. 574

`\glsxtrLatinEszettSz` glossaries-extra-bib2gls v1.27+

(Sort rule) expands to rule for ßand ſz. 574

`\glsxtrLatinEth` glossaries-extra-bib2gls v1.27+

(Sort rule) expands to the variations of Latin eth. 574

`\glsxtrLatinH` glossaries-extra-bib2gls v1.27+

(Sort rule) expands to the variations of Latin H (includes 0x2095). 573

`\glsxtrLatinI` glossaries-extra-bib2gls v1.27+

(Sort rule) expands to the variations of Latin I (includes 0x2071). 573

`\glsxtrLatinInsularG` glossaries-extra-bib2gls v1.27+

(Sort rule) expands to the variations of Latin insular G and g, G. 575

`\glsxtrLatinK` glossaries-extra-bib2gls v1.27+

(Sort rule) expands to the variations of Latin K (includes 0x2096). 573

`\glsxtrLatinL` glossaries-extra-bib2gls v1.27+

(Sort rule) expands to the variations of Latin L (includes 0x2097).

`\glsxtrLatinLslash` glossaries-extra-bib2gls v1.27+

(Sort rule) expands to the variations of Latin ł. 575

`\glsxtrLatinM` glossaries-extra-bib2gls v1.27+

(Sort rule) expands to the variations of Latin M (includes 0x2098). 573

`\glsxtrLatinN` glossaries-extra-bib2gls v1.27+

(Sort rule) expands to the variations of Latin N (includes 0x2099). 573

`\glsxtrLatinO` glossaries-extra-bib2gls v1.27+

(Sort rule) expands to the variations of Latin O (includes 0x00BA and 0x2092). 573

`\glsxtrLatinOELigature` glossaries-extra-bib2gls v1.27+

(Sort rule) expands to the variations of Latin oe-ligature. 574

`\glsxtrLatinOslash` glossaries-extra-bib2gls v1.27+

(Sort rule) expands to the variations of Latin ø. 575

`\glsxtrLatinP` glossaries-extra-bib2gls v1.27+

(Sort rule) expands to the variations of Latin P (includes 0x209A). 573

`\glsxtrLatinS` glossaries-extra-bib2gls v1.27+

(Sort rule) expands to the variations of Latin S (includes 0x209B). 573

`\glsxtrLatinSchwa` glossaries-extra-bib2gls v1.27+

(Sort rule) expands to the variations of Latin schwa. 575

`\glsxtrLatinT` glossaries-extra-bib2gls v1.27+

(Sort rule) expands to the variations of Latin T (includes 0x209C). 574

`\glsxtrLatinThorn` glossaries-extra-bib2gls v1.27+

(Sort rule) expands to the variations of Latin thorn. 574

`\glsxtrLatinWynn` glossaries-extra-bib2gls v1.27+

(Sort rule) expands to the variations of Latin wynn. 575

`\glsxtrLatinX` glossaries-extra-bib2gls v1.27+

(Sort rule) expands to the variations of Latin X (includes 0x2093). 574

`\GlsXtrLetField``{〈entry-label〉}{〈field-label〉}{〈cs〉}`glossaries-extra v1.12+

Like `\GlsXtrSetField` but internally uses (etoolbox’s) `\cslet` instead of `\csdef`. §3.5; 40

`\GlsXtrLetFieldToField``{〈entry1-label〉}{〈field1-label〉}{〈entry2-label〉}{〈field2-label〉}`glossaries-extra v1.12+

Assigns the field identified by its internal label 〈field1-label〉 for the entry identified by 〈entry1-label〉 to the value of the field identified by 〈field2-label〉 for the entry identified by 〈entry2-label〉. §3.5; 40

`\GlsXtrLinkCounterName``{〈entry-label〉}`glossaries-extra v1.26+

Expands to the name of the link counter associated with the given entry (no check for existence). §6.2; 320

`\GlsXtrLinkCounterValue``{〈entry-label〉}`glossaries-extra v1.26+

Expands to the internal link count register associated with the given register or 0 if it hasn’t been defined. §6.2; 320

`\GlsXtrLoadResources``[〈options〉]`glossaries-extra v1.11+

A shortcut that uses `\glsxtrresourcefile`[〈options〉]{〈basename〉}, where the 〈basename〉 is obtained from `\jobname` and `\glsxtrresourcecount`. §11; 533

`\glsxtrlocalsetgrouptitle``{〈group-label〉}{〈group-title〉}`glossaries-extra v1.24+

Locally assigns the given title 〈group-title〉 to the group identified by 〈group-label〉. §8.6.4; 430

`\glsxtrlocationanchor` glossaries-extra-bib2gls v1.49+

Defined by `\glsxtrdisplaylocnameref` to expand to the anchor constructed from 〈counter〉 and 〈hcounter〉, which corresponds to the record counter. §11.5.6; 581

`\GlsXtrLocationField` initial: location; glossaries-extra v1.37+

Expands to the internal field label used to obtain the formatted location list for the “unsrt” family of commands. §8.4.2; 400

`\glsxtrlocationhyperlink``{〈counter〉}{〈prefix〉}{〈location〉}`glossaries-extra v1.14+

Used to create a hyperlink to either an external or an internal location, depending on whether or not `\glsxtrsupplocationurl` is defined and not empty (advanced command, see documented code for use).

`\GlsXtrLocationRecordCount``{〈entry-label〉}{〈counter〉}{〈location〉}`glossaries-extra v1.21+

Expands to the entry’s record count for the given counter and location (stored in the recordcount.〈counter〉.〈location〉 field) or to 0 if not set. §11.4; 546

`\glsxtrlocrangefmt` glossaries-extra v1.12+

Expands to the range format (set by `\glsxtrdisplaystartloc`). §8.6.3; 428

`\GLSxtrlong``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉

As `\glsxtrlong` but converts the link text to all caps. §4.3; 52

`\Glsxtrlong``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉

As `\glsxtrlong` but converts the first character of the link text to uppercase (for the start of a sentence) using `\makefirstuc`. §4.3; 52

`\glsxtrlong``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉

References the entry identified by 〈entry-label〉. The text produced is obtained from the long value, formatted according to the abbreviation style associated with the entry’s category. The 〈insert〉 argument will be inserted at the end of the link text. This command does not alter or depend on the first use flag. For the first optional argument, see `\glslink` options. §4.3; 52

`\GLSxtrlongformat``{〈entry-label〉}{〈insert〉}{〈fmt-cs〉}`glossaries-extra v1.49+

As `\glsxtrlongformat` but sentence case. 176

`\Glsxtrlongformat``{〈entry-label〉}{〈insert〉}{〈fmt-cs〉}`glossaries-extra v1.49+

As `\glsxtrlongformat` but sentence case. 175

`\glsxtrlongformat``{〈entry-label〉}{〈insert〉}{〈fmt-cs〉}`glossaries-extra v1.49+

Encapsulates the long field for the given entry with 〈fmt-cs〉. The 〈insert〉 argument is the insertion material supplied in the final optional argument of the `\gls`-like or `\glstext`-like commands. The `\ifglsxtrinsertinside`, inner formatting, and accessibility settings are supported. 175

`\GLSxtrlongformatgrp``{〈entry-label〉}{〈insert〉}{〈fmt-cs〉}`glossaries-extra v1.49+

As `\glsxtrlongformatgrp` but all caps. 176

`\Glsxtrlongformatgrp``{〈entry-label〉}{〈insert〉}{〈fmt-cs〉}`glossaries-extra v1.49+

As `\glsxtrlongformatgrp` but sentence case. 176

`\glsxtrlongformatgrp``{〈entry-label〉}{〈insert〉}{〈fmt-cs〉}`glossaries-extra v1.49+

As `\glsxtrlongformat` but adds grouping around 〈insert〉 (with the inner formatting inside the group). 176

`\glsxtrlonghyphen``{〈entry-label〉}{〈long〉}{〈insert〉}`glossaries-extra v1.17+

Formats the long form according to the long-hyphen-postshort-hyphen style. 150

`\GLSxtrlonghyphennoshort``{〈entry-label〉}{〈long〉}{〈insert〉}`glossaries-extra v1.49+

As `\glsxtrlonghyphennoshort` but converts 〈insert〉 to all caps The 〈long〉 argument should be supplied as all caps. 149

`\glsxtrlonghyphennoshort``{〈entry-label〉}{〈long〉}{〈insert〉}`glossaries-extra v1.17+

Formats the long form according to the long-hyphen-noshort-desc-noreg style. 149

`\glsxtrlonghyphennoshortdescsort` glossaries-extra v1.49+

Expands to the sort value for the long-hyphen-noshort-desc-noreg styles. 149

`\glsxtrlonghyphennoshortsort` glossaries-extra v1.49+

Expands to the sort value for the long-hyphen-noshort-noreg styles. 149

`\GLSxtrlonghyphenshort``{〈entry-label〉}{〈long〉}{〈short〉}{〈insert〉}`glossaries-extra v1.49+

As `\glsxtrlonghyphenshort` but converts 〈insert〉 to all caps. The 〈long〉 and 〈short〉 arguments should be supplied as all caps. 149

`\glsxtrlonghyphenshort``{〈entry-label〉}{〈long〉}{〈short〉}{〈insert〉}`glossaries-extra v1.17+

Formats the long and short form according to the long-hyphen-short-hyphen style. 149

`\glsxtrlonghyphenshortsort` glossaries-extra v1.49+

Expands to the sort value for the long-hyphen-short-hyphen styles. 148

`\glsxtrlongnoshortdescname` glossaries-extra v1.25+

Expands to the name value for styles like long-noshort-desc. 147

`\glsxtrlongnoshortname` glossaries-extra v1.25+

Expands to the name value for styles like long-noshort. 147

`\GLSxtrlongpl``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉

As `\glsxtrlongpl` but converts the link text to all caps. §4.3; 53

`\Glsxtrlongpl``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉

As `\glsxtrlongpl` but converts the first character of the link text to uppercase (for the start of a sentence) using `\makefirstuc`. §4.3; 53

`\glsxtrlongpl``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉

References the entry identified by 〈entry-label〉. The text produced is obtained from the longplural value, formatted according to the abbreviation style associated with the entry’s category. The 〈insert〉 argument will be inserted at the end of the link text. This command does not alter or depend on the first use flag. For the first optional argument, see `\glslink` options. §4.3; 52

`\GLSxtrlongplformat``{〈entry-label〉}{〈insert〉}{〈fmt-cs〉}`glossaries-extra v1.49+

As `\glsxtrlongplformat` but all caps. 176

`\Glsxtrlongplformat``{〈entry-label〉}{〈insert〉}{〈fmt-cs〉}`glossaries-extra v1.49+

As `\glsxtrlongplformat` but sentence case. 176

`\glsxtrlongplformat``{〈entry-label〉}{〈insert〉}{〈fmt-cs〉}`glossaries-extra v1.49+

As `\glsxtrlongformat` but for the longplural field. 176

`\GLSxtrlongplformatgrp``{〈entry-label〉}{〈insert〉}{〈fmt-cs〉}`glossaries-extra v1.49+

As `\glsxtrlongplformatgrp` but all caps. 177

`\Glsxtrlongplformatgrp``{〈entry-label〉}{〈insert〉}{〈fmt-cs〉}`glossaries-extra v1.49+

As `\glsxtrlongplformatgrp` but sentence case. 177

`\glsxtrlongplformatgrp``{〈entry-label〉}{〈insert〉}{〈fmt-cs〉}`glossaries-extra v1.49+

As `\glsxtrlongplformat` but adds grouping around 〈insert〉 (with the inner formatting inside the group). 176

`\glsxtrlongshortdescname` glossaries-extra v1.17+

Expands to the name value for long-short-desc styles. 134

`\glsxtrlongshortdescsort` glossaries-extra v1.04+

Expands to the sort value for long-short-desc styles. 133

`\GLSxtrlongshortformat``{〈entry-label〉}{〈insert〉}{〈long-fmt-cs〉}{〈short-fmt-cs〉}`glossaries-extra v1.49+

As `\glsxtrlongshortformat` but all caps. 179

`\Glsxtrlongshortformat``{〈entry-label〉}{〈insert〉}{〈long-fmt-cs〉}{〈short-fmt-cs〉}`glossaries-extra v1.49+

As `\glsxtrlongshortformat` but sentence case. 179

`\glsxtrlongshortformat``{〈entry-label〉}{〈insert〉}{〈long-fmt-cs〉}{〈short-fmt-cs〉}`glossaries-extra v1.49+

Formats the long form with `\glsxtrlongformat` and the short form in parentheses with `\glsxtrshortformat`. 178

`\glsxtrlongshortname` glossaries-extra v1.25+

Expands to the name value for long-short styles. 133

`\GLSxtrlongshortplformat``{〈entry-label〉}{〈insert〉}{〈long-fmt-cs〉}{〈short-fmt-cs〉}`glossaries-extra v1.49+

As `\glsxtrlongshortplformat` but all caps. 179

`\Glsxtrlongshortplformat``{〈entry-label〉}{〈insert〉}{〈long-fmt-cs〉}{〈short-fmt-cs〉}`glossaries-extra v1.49+

As `\glsxtrlongshortplformat` but sentence case. 179

`\glsxtrlongshortplformat``{〈entry-label〉}{〈insert〉}{〈long-fmt-cs〉}{〈short-fmt-cs〉}`glossaries-extra v1.49+

As `\glsxtrlongshortformat` but for the plurals. 179

`\glsxtrlongshortscuserdescname` glossaries-extra v1.48+

Expands to the value for the name key for styles like long-postshort-sc-user-desc. 138

`\glsxtrlongshortscusername` glossaries-extra v1.48+

Expands to the value for the name key for styles like long-postshort-sc-user. 138

`\glsxtrlongshortuserdescname` glossaries-extra v1.25+

Expands to the value for the name key for styles like long-short-user-desc. 138

`\glsxtrmarkhook`

Hook that’s performed at the start of `\markright`, `\markboth` and `\@starttoc` to redefine commands that need to change when they occur within page headers or contents. This must be counteracted with `\glsxtrrestoremarkhook` afterwards. §5.3.3; 226

`\glsxtrMathGreekIIrules` glossaries-extra-bib2gls v1.27+

Expands to the second set of math Greek sort rules. 576

`\glsxtrMathGreekIrules` glossaries-extra-bib2gls v1.27+

Expands to the first set of math Greek sort rules. 575

`\glsxtrMathItalicAlpha` glossaries-extra-bib2gls v1.27+

(Sort rule) expands to the variations of math italic Greek alpha. 577

`\glsxtrMathItalicBeta` glossaries-extra-bib2gls v1.27+

(Sort rule) expands to the variations of math italic Greek beta. 577

`\glsxtrMathItalicChi` glossaries-extra-bib2gls v1.27+

(Sort rule) expands to the variations of math italic Greek chi. 577

`\glsxtrMathItalicDelta` glossaries-extra-bib2gls v1.27+

(Sort rule) expands to the variations of math italic Greek delta. 577

`\glsxtrMathItalicDigamma` glossaries-extra-bib2gls v1.27+

(Sort rule) expands to the variations of math italic Greek digamma. 577

`\glsxtrMathItalicEpsilon` glossaries-extra-bib2gls v1.27+

(Sort rule) expands to the variations of math italic Greek epsilon. 577

`\glsxtrMathItalicEta` glossaries-extra-bib2gls v1.27+

(Sort rule) expands to the variations of math italic Greek eta. 577

`\glsxtrMathItalicGamma` glossaries-extra-bib2gls v1.27+

(Sort rule) expands to the variations of math italic Greek gamma. 577

`\glsxtrMathItalicGreekIIrules` glossaries-extra-bib2gls v1.27+

Expands to the second set of math italic Greek sort rules. 576

`\glsxtrMathItalicGreekIrules` glossaries-extra-bib2gls v1.27+

Expands to the first set of math italic Greek sort rules. 576

`\glsxtrMathItalicIota` glossaries-extra-bib2gls v1.27+

(Sort rule) expands to the variations of math italic Greek iota. 577

`\glsxtrMathItalicKappa` glossaries-extra-bib2gls v1.27+

(Sort rule) expands to the variations of math italic Greek kappa. 577

`\glsxtrMathItalicLambda` glossaries-extra-bib2gls v1.27+

(Sort rule) expands to the variations of math italic Greek lambda. 577

`\glsxtrMathItalicLowerGreekIIrules` glossaries-extra-bib2gls v1.27+

Expands to the second set of math italic lowercase Greek sort rules. 577

`\glsxtrMathItalicLowerGreekIrules` glossaries-extra-bib2gls v1.27+

Expands to the first set of math italic lowercase Greek sort rules. 577

`\glsxtrMathItalicMu` glossaries-extra-bib2gls v1.27+

(Sort rule) expands to the variations of math italic Greek mu. 577

`\glsxtrMathItalicNabla` glossaries-extra-bib2gls v1.27+

(Sort rule) expands to the Unicode codepoint for nabla. 577

`\glsxtrMathItalicNu` glossaries-extra-bib2gls v1.27+

(Sort rule) expands to the variations of math italic Greek nu. 577

`\glsxtrMathItalicOmega` glossaries-extra-bib2gls v1.27+

(Sort rule) expands to the variations of math italic Greek omega. 577

`\glsxtrMathItalicOmicron` glossaries-extra-bib2gls v1.27+

(Sort rule) expands to the variations of math italic Greek omicron. 577

`\glsxtrMathItalicPartial` glossaries-extra-bib2gls v1.27+

(Sort rule) expands to the Unicode codepoint for math italic partial differential. 577

`\glsxtrMathItalicPhi` glossaries-extra-bib2gls v1.27+

(Sort rule) expands to the variations of math italic Greek phi. 577

`\glsxtrMathItalicPi` glossaries-extra-bib2gls v1.27+

(Sort rule) expands to the variations of math italic Greek pi. 577

`\glsxtrMathItalicPsi` glossaries-extra-bib2gls v1.27+

(Sort rule) expands to the variations of math italic Greek psi. 577

`\glsxtrMathItalicRho` glossaries-extra-bib2gls v1.27+

(Sort rule) expands to the variations of math italic Greek rho. 577

`\glsxtrMathItalicSigma` glossaries-extra-bib2gls v1.27+

(Sort rule) expands to the variations of math italic Greek sigma. 577

`\glsxtrMathItalicTau` glossaries-extra-bib2gls v1.27+

(Sort rule) expands to the variations of math italic Greek tau. 577

`\glsxtrMathItalicTheta` glossaries-extra-bib2gls v1.27+

(Sort rule) expands to the variations of math italic Greek theta. 577

`\glsxtrMathItalicUpperGreekIIrules` glossaries-extra-bib2gls v1.27+

Expands to the second set of math italic uppercase Greek sort rules. 576

`\glsxtrMathItalicUpperGreekIrules` glossaries-extra-bib2gls v1.27+

Expands to the first set of math italic uppercase Greek sort rules. 576

`\glsxtrMathItalicUpsilon` glossaries-extra-bib2gls v1.27+

(Sort rule) expands to the variations of math italic Greek upsilon. 577

`\glsxtrMathItalicXi` glossaries-extra-bib2gls v1.27+

(Sort rule) expands to the variations of math italic Greek xi. 577

`\glsxtrMathItalicZeta` glossaries-extra-bib2gls v1.27+

(Sort rule) expands to the variations of math italic Greek zeta. 577

`\glsxtrMathUpGreekIIrules` glossaries-extra-bib2gls v1.27+

Expands to the second set of math upright Greek sort rules. 576

`\glsxtrMathUpGreekIrules` glossaries-extra-bib2gls v1.27+

Expands to the first set of math upright Greek sort rules. 576

`\glsxtrMFUsave` glossaries-extra v1.49+

Used on the first instance of `\glsxtrresourcefile`, this will add `\MFUsave` to the begin document hook and then disable itself. This is provided to help bib2gls pick up any of mfirstuc’s exclusions, blockers and mappings to assist with its sentence case function. §11; 535

`\GlsXtrMglsOrGls``{〈mgls cs〉}{〈gls cs〉}〈modifier〉[〈options〉]{〈label〉}[〈insert〉]`glossaries-extra v1.48+

If 〈label〉 matches a defined multi-entry, this will do 〈mgls cls〉 otherwise it will do 〈gls cs〉. The 〈modifier〉 (`*` or `+` or the token identified with `\GlsXtrSetAltModifier`) may be omitted. §7; 328

`\glsxtrmglsWarnAllSkipped``{〈message〉}{〈insert〉}{〈fmt-cs〉}`glossaries-extra v1.48+

Issues the given warning message with `\GlossariesExtraWarning` and does `〈fmt-cs〉{〈insert〉}` (this warning is used if all elements of a multi-entry set are skipped). §7.9.5; 360

`\GLSxtrmultientryadjustedname``{〈sublist1〉}{〈name〉}{〈sublist2〉}{〈multi-label〉}`glossaries-extra-bib2gls v1.48+

As `\glsxtrmultientryadjustedname` but all caps. §7.14; 374

`\GlsXtrmultientryadjustedname``{〈sublist1〉}{〈name〉}{〈sublist2〉}{〈multi-label〉}`glossaries-extra-bib2gls v1.48+

As `\glsxtrmultientryadjustedname` but title case. §7.14; 374

`\Glsxtrmultientryadjustedname``{〈sublist1〉}{〈name〉}{〈sublist2〉}{〈multi-label〉}`glossaries-extra-bib2gls v1.48+

As `\glsxtrmultientryadjustedname` but sentence case. §7.14; 374

`\glsxtrmultientryadjustedname``{〈sublist1〉}{〈name〉}{〈sublist2〉}{〈multi-label〉}`glossaries-extra-bib2gls v1.48+

Used by compound-adjust-name. §7.14; 374

`\GLSxtrmultientryadjustednamefmt``{〈text〉}`glossaries-extra-bib2gls v1.48+

Used by `\GLSxtrmultientryadjustedname` to encapsulate the main entry name. §7.14; 375

`\GlsXtrmultientryadjustednamefmt``{〈text〉}`glossaries-extra-bib2gls v1.48+

Used by `\GlsXtrmultientryadjustedname` to encapsulate the main entry name. §7.14; 375

`\Glsxtrmultientryadjustednamefmt``{〈text〉}`glossaries-extra-bib2gls v1.48+

Used by `\Glsxtrmultientryadjustedname` to encapsulate the main entry name if the first sublist is empty. §7.14; 375

`\glsxtrmultientryadjustednamefmt``{〈text〉}`glossaries-extra-bib2gls v1.48+

Used by `\glsxtrmultientryadjustedname` to encapsulate the main entry name. §7.14; 375

`\GLSxtrmultientryadjustednameother``{〈text〉}`glossaries-extra-bib2gls v1.48+

Used by `\GLSxtrmultientryadjustedname` to encapsulate the other (not main) entries. §7.14; 376

`\GlsXtrmultientryadjustednameother``{〈text〉}`glossaries-extra-bib2gls v1.48+

Used by `\GlsXtrmultientryadjustedname` to encapsulate the other (not main) entries. §7.14; 376

`\Glsxtrmultientryadjustednameother``{〈text〉}`glossaries-extra-bib2gls v1.48+

Used by `\Glsxtrmultientryadjustedname` to encapsulate the other (not main) entries. §7.14; 376

`\glsxtrmultientryadjustednameother``{〈text〉}`glossaries-extra-bib2gls v1.48+

Used by `\glsxtrmultientryadjustedname` to encapsulate the other (not main) entries. §7.14; 376

`\glsxtrmultientryadjustednamepostsep``{〈pre-label〉}{〈post-label〉}`glossaries-extra-bib2gls v1.48+

Separator used by `\glsxtrmultientryadjustedname` between the main element and the first element of the second sublist. §7.14; 375

`\glsxtrmultientryadjustednamepresep``{〈pre-label〉}{〈post-label〉}`glossaries-extra-bib2gls v1.48+

Separator used by `\glsxtrmultientryadjustedname` between the last element of the first sublist and the main element. §7.14; 375

`\glsxtrmultientryadjustednamesep``{〈pre-label〉}{〈post-label〉}`glossaries-extra-bib2gls v1.48+

Separator used by `\glsxtrmultientryadjustedname`. §7.14; 375

`\glsxtrmultilastotherindex``{〈multi-label〉}`glossaries-extra v1.48+

Expands to the index of the final non-main element in the given multi-entry or nothing if 〈multi-label〉 hasn’t been defined. §7.13; 373

`\glsxtrmultilist``{〈multi-label〉}`glossaries-extra v1.48+

Expands to the list of element labels for the multi-entry identified by 〈multi-label〉 or nothing if not defined. §7.13; 372

`\glsxtrmultimain``{〈multi-label〉}`glossaries-extra v1.48+

Expands to the main label for the multi-entry identified by 〈multi-label〉 or nothing if not defined. §7.13; 372

`\glsxtrmultimainindex``{〈multi-label〉}`glossaries-extra v1.48+

Expands to the index of the main element in the given multi-entry or nothing if 〈multi-label〉 hasn’t been defined. §7.13; 373

`\glsxtrmultisupplocation``{〈src〉}{〈location〉}{〈format〉}`modifier: * glossaries-extra-bib2gls v1.36+

Used by `\glsxtrdisplaysupploc` to format the location. §11.5.5; 579

`\glsxtrmultitotalelements``{〈multi-label〉}`glossaries-extra v1.48+

Expands to the total number of elements in the given multi-entry or nothing if 〈multi-label〉 hasn’t been defined. §7.13; 373

`\glsxtrnameloclink``{〈prefix〉}{〈counter〉}{〈format〉}{〈location〉}{〈text〉}{〈file〉}`glossaries-extra-bib2gls v1.37+

Create an external location hyperlink using the prefix and counter. §11.5.6; 584

`\glsxtrnamereflink``{〈format〉}{〈title〉}{〈target〉}{〈file〉}`glossaries-extra-bib2gls v1.37+

Used by `\glsxtrdisplaylocnameref` to create a location hyperlink.

`\glsxtrnewabbrevpresetkeyhook``{〈options〉}{〈label〉}{〈short〉}`

Hook provided to adjust initialisation within `\newabbreviation`. §4.1.5; 45

`\glsxtrnewgls``[〈default-options〉]{〈prefix〉}{〈cs〉}`glossaries-extra v1.21+

Defines the command 〈cs〉[〈options〉]{〈entry-label〉} to behave like ``\gls`[〈default-options〉,〈options〉]{〈prefix〉〈entry-label〉}`. §5.7; 257

`\glsxtrnewglsdisp``[〈default-options〉]{〈prefix〉}{〈cs〉}`glossaries-extra v1.49+

Defines the command `〈cs〉[〈options〉]{〈label〉}{〈text〉}` to behave like ``\glsdisp`[〈default-options〉,〈options〉]{〈prefix〉〈label〉}{〈text〉}`. §5.7; 258

`\glsxtrnewGLSlike``[〈default-options〉]{〈prefix〉}{〈`\GLS`-like cs〉}{〈`\GLSpl`-like cs〉}`glossaries-extra v1.21+

Like `\glsxtrnewgls` but provides all caps commands. §5.7; 258

`\glsxtrnewglslike``[〈default-options〉]{〈prefix〉}{〈`\gls`-like cs〉}{〈`\glspl`-like cs〉}{〈`\Gls`-like cs〉}{〈`\Glspl`-like cs〉}`glossaries-extra v1.21+

Like `\glsxtrnewgls` but provides plural and sentence case commands as well. §5.7; 258

`\glsxtrnewglslink``[〈default-options〉]{〈prefix〉}{〈cs〉}`glossaries-extra v1.49+

Defines the command `〈cs〉[〈options〉]{〈label〉}{〈text〉}` to behave like ``\glslink`[〈default-options〉,〈options〉]{〈prefix〉〈label〉}{〈text〉}`. §5.7; 258

`\glsxtrnewnumber``[〈key=value list〉]{〈entry-label〉}{〈num〉}`

(requires ``\usepackage`[numbers]{glossaries-extra}`)

Defines a new glossary entry with the given label, type set to `numbers`, the category set to `number`, the name set to 〈num〉 and the sort set to 〈entry-label〉. The optional argument is a comma-separated list of glossary entry keys, which can be used to override the defaults. §2.1; 11

`\glsxtrnewrgls``[〈default-options〉]{〈prefix〉}{〈cs〉}`glossaries-extra v1.21+

Like `\glsxtrnewgls` but uses `\rgls`. §5.7; 259

`\glsxtrnewrGLSlike``[〈default-options〉]{〈prefix〉}{〈`\rGLS`-like cs〉}{〈`\rGLSpl`-like cs〉}`glossaries-extra v1.21+

Like `\glsxtrnewrgls` but provides all caps commands. §5.7; 259

`\glsxtrnewrglslike``[〈default-options〉]{〈prefix〉}{〈`\rgls`-like cs〉}{〈`\rglspl`-like cs〉}{〈`\rGls`-like cs〉}{〈`\rGlspl`-like cs〉}`glossaries-extra v1.21+

Like `\glsxtrnewrgls` but provides plural and sentence case commands as well. §5.7; 259

`\glsxtrnewsymbol``[〈key=value list〉]{〈entry-label〉}{〈sym〉}`

(requires ``\usepackage`[symbols]{glossaries-extra}`)

Defines a new glossary entry with the given label, type set to `symbols`, the category set to `symbol`, the name set to 〈sym〉 and the sort set to 〈entry-label〉. The optional argument is a comma-separated list of glossary entry keys, which can be used to override the defaults. §2.1; 10

`\glsxtrNoGlossaryWarning``{〈glossary-type〉}`

Issues a warning with `\GlossariesExtraWarning` indicating that the given glossary is missing.

`\GlsXtrNoGlsWarningAutoMake``{〈glossary-label〉}`

Advisory message when automake has been used. §15; 619

`\GlsXtrNoGlsWarningBuildInfo`

Build advice. §15; 619

`\GlsXtrNoGlsWarningCheckFile``{〈file〉}`

Advisory message to check the file contents. §15; 618

`\GlsXtrNoGlsWarningEmptyMain`

Produces the boilerplate text if the probably empty glossary is the `main` one. §15; 617

`\GlsXtrNoGlsWarningEmptyNotMain``{〈glossary-label〉}`

Produces the boilerplate text if the probably empty glossary is not the `main` one. §15; 617

`\GlsXtrNoGlsWarningEmptyStart`

Produces the boilerplate text if a glossary is probably empty. §15; 617

`\GlsXtrNoGlsWarningHead``{〈glossary-label〉}{〈file〉}`

Produces the header boilerplate text if a glossary file is missing. §15; 617

`\GlsXtrNoGlsWarningMisMatch`

Advisory message on mis-matching `\makenoidxglossaries`. §15; 618

`\GlsXtrNoGlsWarningNoOut``{〈file〉}`

Advisory if no output file was created. §15; 618

`\GlsXtrNoGlsWarningTail`

Final paragraph of missing glossary boilerplate text. §15; 618

`\glsxtrnoidxgroups` glossaries-extra v1.49+

Makes the group titling mechanism used with the “unsrt” family of commands use the same method as for `\printnoidxglossary` (ASCII only). This command can’t be used with `\makeglossaries` or with record. §8.4; 387

`\glsxtrnonprintablerules` glossaries-extra-bib2gls v1.27+

Expands to non-printable character sort rules. 566

`\glsxtrnopostpunc` glossaries-extra v1.22+

When placed at the end of the description, this switches off the post-description punctuation (inserted automatically via options such as postdot) but doesn’t suppress the post-description hook. Does nothing outside of the glossary. §8.6.2; 426

`\glsxtronlydescname` glossaries-extra v1.17+

Expands to the name value for styles like long-only-short-only-desc. 155

`\glsxtronlydescsort` glossaries-extra v1.17+

Expands to the name value for styles like long-only-short-only-desc. 155

`\glsxtronlyname` glossaries-extra v1.25+

Expands to the name value for styles like long-only-short-only. 155

`\glsxtronlysuffix` initial: `\glsxtrabbrvpluralsuffix`; glossaries-extra v1.17+

The plural suffix used by the “only” abbreviation styles (such as long-only-short-only). 154

`\glsxtrorgkeylist` glossaries-extra v1.49+

Expands to the original option list as it was supplied to `\newabbreviation`. §4.5.3.1; 163

`\glsxtrorgshort` glossaries-extra v1.17+

Expands to the original short form as it was supplied to `\newabbreviation`. §4.5.3.1; 164

`\glsxtrorglong` glossaries-extra v1.17+

Expands to the original long form as it was supplied to `\newabbreviation`. §4.5.3.1; 164

`\GLSxtrp``{〈field〉}{〈entry-label〉}`glossaries-extra v1.07+

As `\glsxtrp` but converts to uppercase (but not in the PDF bookmark). §5.4; 231

`\Glsxtrp``{〈field〉}{〈entry-label〉}`glossaries-extra v1.07+

As `\glsxtrp` but converts the first letter to uppercase (but not in the PDF bookmark). §5.4; 231

`\glsxtrp``{〈field〉}{〈entry-label〉}`glossaries-extra v1.07+

For use in headings and captions (instead of the `\gls`-like or `\glstext`-like commands). This command is designed to expand to the field value if used in a PDF bookmark and can also expand to a more appropriate command if it ends up in the page header. Note that there’s no optional argument. Options should be set beforehand using `\glsxtrsetpopts`, which is done automatically in the glossary with `\glossxtrsetpopts`. §5.4; 230

`\glsxtrpageref``{〈entry-label〉}`glossaries-extra v1.11+

As `\glsrefentry` but uses `\pageref` instead of `\ref`. As with `\glsrefentry`, this will use `\gls` instead if the corresponding entry counter is disabled. §8.1; 379

`\glsxtrparen``{〈text〉}`glossaries-extra v1.17+

Used to encapsulate 〈text〉 in parentheses. 132

`\Glsxtrpdfentryfmt``{〈entry-label〉}{〈text〉}`glossaries-extra v1.49+

Does ``\MFUsentencecase`{〈text〉}`. §5.12.2; 301

`\glsxtrpdfentryfmt``{〈entry-label〉}{〈text〉}`glossaries-extra v1.42+

Just does 〈text〉. §5.12.2; 298

`\glsxtrpInit``{〈cs-name〉}{〈entry-label〉}`glossaries-extra v1.51+

Hook implemented at the start of `\glsxtrp` (and case-changing variants) inside the added scoping. By default this disables the post-link hook and ignores its arguments. §5.4; 230

`\Glsxtrpl``[〈gls-options〉][〈dfn-options〉]{〈entry-label〉}`

As `\glsxtrpl` but applies sentence case. §13; 602

`\glsxtrpl``[〈gls-options〉][〈dfn-options〉]{〈entry-label〉}`

As `\glsxtr` but shows the plural form. §13; 602

`\glsxtrpostabbrvfootnote``{〈entry-label〉}{〈fmt-code〉}`glossaries-extra v1.49+

Command used in the post-link hook for styles like short-postfootnote. §4.5.2; 160

`\glsxtrpostdescabbreviation` initial: empty

The default post-description hook for the abbreviation category. §8.6.2; 426

`\glsxtrpostdescacronym` initial: empty

The default post-description hook for the acronym category. §8.6.2; 426

`\glsxtrpostdesc〈category〉`glossaries-extra

The post-description hook associated with the category identified by the label 〈category〉. §8.6.2; 425

`\glsxtrpostdescgeneral` initial: empty

The default post-description hook for the general category. §8.6.2; 425

`\glsxtrpostdescindex` initial: empty

(requires ``\usepackage`[index]{glossaries-extra}`)

The default post-description hook for the index category. §2.1; 12

`\glsxtrpostdescnumber` initial: empty

(requires ``\usepackage`[numbers]{glossaries-extra}`)

The default post-description hook for the number category. §2.1; 11

`\glsxtrpostdescription`

An additional hook used within `\glspostdescription` that implements the category post-description hook. §8.6.2; 425

`\glsxtrpostdescsymbol` initial: empty

(requires ``\usepackage`[symbols]{glossaries-extra}`)

The default post-description hook for the symbol category. §2.1; 10

`\glsxtrpostdescterm` initial: empty

The default post-description hook for the term category (which isn’t used by glossaries-extra). §8.6.2; 426

`\glsxtrpostfootnotelongformat``{〈entry-label〉}{〈fmt-cs〉}`glossaries-extra v1.49+

Used in the footnote text to format the long form for styles like short-postfootnote. 146

`\GLSxtrposthyphenlong``{〈entry-label〉}{〈insert〉}`glossaries-extra v1.49+

As `\glsxtrposthyphenlong` but all caps. 153

`\glsxtrposthyphenlong``{〈entry-label〉}{〈insert〉}`glossaries-extra v1.17+

Used within the post-link hook to format the long form according to the short-hyphen-postlong-hyphen style on first use. 153

`\GLSxtrposthyphenlongpl``{〈entry-label〉}{〈insert〉}`glossaries-extra v1.49+

As `\glsxtrposthyphenlongpl` but all caps. 153

`\glsxtrposthyphenlongpl``{〈entry-label〉}{〈insert〉}`glossaries-extra v1.49+

As `\glsxtrposthyphenlong` but shows the plural. 153

`\GLSxtrposthyphenshort``{〈entry-label〉}{〈insert〉}`glossaries-extra v1.49+

As `\glsxtrposthyphenshort` but all caps. 151

`\glsxtrposthyphenshort``{〈entry-label〉}{〈insert〉}`glossaries-extra v1.17+

Used within the post-link hook to format the short form according to the long-hyphen-postshort-hyphen style on first use. 151

`\GLSxtrposthyphenshortpl``{〈entry-label〉}{〈insert〉}`glossaries-extra v1.49+

As `\glsxtrposthyphenshortpl` but all caps. 151

`\glsxtrposthyphenshortpl``{〈entry-label〉}{〈insert〉}`glossaries-extra v1.49+

As `\glsxtrposthyphenshort` but plural. 151

`\GLSxtrposthyphensubsequent``{〈entry-label〉}{〈insert〉}`glossaries-extra v1.49+

As `\glsxtrposthyphensubsequent` but all caps. 152

`\glsxtrposthyphensubsequent``{〈entry-label〉}{〈insert〉}`glossaries-extra v1.17+

Used within the post-link hook to format the insert according to the long-hyphen-postshort-hyphen style on subsequent use. 151

`\glsxtrpostlink`

A post-link hook that does `\glsxtrpostlink〈category〉` if that command has been defined, where the category label is obtained from the entry that has just been referenced with a `\gls`-like or `\glstext`-like command (using `\glslabel`). Does nothing if `\glsxtrpostlink〈category〉` isn’t defined. §5.5.4; 250

`\glsxtrpostlinkAddDescOnFirstUse`

May be used within a post-link hook to display the description in parentheses on first use. §5.5.4; 251

`\glsxtrpostlinkAddSymbolDescOnFirstUse` glossaries-extra v1.31+

May be used within a post-link hook to display the symbol and description in parentheses on first use. §5.5.4; 251

`\glsxtrpostlinkAddSymbolOnFirstUse`

May be used within a post-link hook to display the symbol in parentheses on first use. §5.5.4; 251

`\glsxtrpostlink〈category〉`

The post-link hook associated with the category identified by the label 〈category〉.

`\glsxtrpostlinkendsentence`

A post-link hook that’s used if a full stop is discarded in order to adjust the space factor (to denote the end of a sentence). If the category post-link hook exists, and will be applied and the full stop will be restored. §5.5.4; 248

`\glsxtrpostlinkhook`

A post-link hook that checks if a following full stop needs to be discarded, in which case it does `\glsxtrpostlinkendsentence`, otherwise it does `\glsxtrpostlink`. §5.5.4; 246

`\glsxtrpostlinkSymbolDescSep` glossaries-extra v1.49+

Used by `\glsxtrpostlinkAddSymbolDescOnFirstUse` to separate the symbol and description, if both are set. §5.5.4; 251

`\glsxtrpostlocalreset``{〈entry-label〉}`

Hook performed by `\glslocalreset`. This hook is modified by `\glsenableentrycount` and `\glsenableentryunitcount`. §5.10; 282

`\glsxtrpostlocalunset``{〈entry-label〉}`

Hook performed by `\glslocalunset`. This hook is modified by `\glsenableentrycount` and `\glsenableentryunitcount`. §5.10; 282

`\glsxtrpostlongdescription` glossaries-extra v1.12+

Hook added to the end of the description field by the unstarred version of `\longnewglossaryentry`. §3.1; 32

`\glsxtrpostname〈category〉`glossaries-extra v1.04+

The post-name hook associated with the category identified by the label 〈category〉. §8.6.1; 424

`\glsxtrpostnamehook``{〈entry-label〉}`

A hook that’s performed within `\glossentryname` and `\glossentrynameother` after the entry name is displayed. This hook implements auto-indexing (see §12), then the general hook `\glsextrapostnamehook` and finally the `\glsxtrpostname〈category〉` hook. §8.6.1; 424

`\GlsXtrPostNewAbbreviation`

A hook that’s performed after the entry has been defined. §4.5.3.1; 165

`\glsxtrpostreset``{〈entry-label〉}`

Hook performed by `\glsreset`. This hook is modified by `\glsenableentrycount` and `\glsenableentryunitcount`. §5.10; 282

`\glsxtrpostunset``{〈entry-label〉}`

Hook performed by `\glsunset`. This hook is modified by `\glsenableentrycount` and `\glsenableentryunitcount`. §5.10; 282

`\glsxtrpostuserlongformat``{〈entry-label〉}{〈fmt-cs〉}`glossaries-extra v1.49+

Formats the long form in parentheses (with `\glsxtruserparen`) in styles like short-postlong-user. 144

`\glsxtrpostusershortformat``{〈entry-label〉}{〈fmt-cs〉}`glossaries-extra v1.49+

Formats the short form in parentheses (with `\glsxtruserparen`) in styles like long-postshort-user. 142

`\GlsXtrPrefixLabelFallbackLastfalse` glossaries-extra-bib2gls v1.49+

Sets the `\ifGlsXtrPrefixLabelFallbackLast` conditional to false. §11.5.7; 587

`\GlsXtrPrefixLabelFallbackLasttrue` glossaries-extra-bib2gls v1.49+

Sets the `\ifGlsXtrPrefixLabelFallbackLast` conditional to true. §11.5.7; 587

`\glsxtrpreglossarystyle` glossaries-extra v1.49+

Hook performed by `\setglossarystyle` to initialise default definitions of style commands. §8.6; 422

`\glsxtrprelocation` initial: `\space`; glossaries-extra-stylemods v1.21+

Used before the location list in the predefined styles provided by glossaries-extra or modified by glossaries-extra-stylemods. §8.6.5; 431

`\glsxtrprependlabelprefix``{〈label-prefix〉}`glossaries-extra-bib2gls v1.37+

Prepends 〈label-prefix〉 to the list of known labels. §11.5.7; 587

`\GlsXtrPreToDefaultGlsOpts``{〈options〉}`glossaries-extra v1.49+

Locally prepend 〈options〉 to the default options for the `\gls`-like and `\glstext`-like commands. §5.1.1; 186

`\glsxtrprovideaccsuppcmd``{〈category〉}{〈field〉}`glossaries-extra v1.42+

(requires accsupp)

Defines `\glsxtr〈category〉〈field〉accsupp` to `\glsshortaccsupp`, if not already defined.

`\GlsXtrProvideBibTeXFields` glossaries-extra-bib2gls v1.29+

Provides the standard BibTeX fields as glossary entry keys (using `\glsaddstoragekey`). §11.5.2; 560

`\glsxtrprovidecommand``{〈cs〉}[〈n〉][〈default〉]{〈definition〉}`modifier: * glossaries-extra-bib2gls v1.27+

Just uses `\providecommand` within the LaTeX document but is treated as `\renewcommand` by bib2gls’s interpreter. §11.5.8; 595

`\glsxtrprovidestoragekey``{〈key〉}{〈default value〉}{〈no link cs〉}`modifier: * glossaries-extra v1.12+

Like `\glsaddstoragekey` but does nothing if the key has already been defined. §3.2; 35

`\glsxtrrecentanchor` glossaries-extra-bib2gls v1.49+

Defined by `\glsxtrdisplaylocnameref` to expand to the 〈href〉 argument. This corresponds to the value of `\@currentHref` when the record was created. §11.5.6; 580

`\GlsXtrRecordCount``{〈entry-label〉}{〈counter〉}`glossaries-extra v1.21+

Expands to the entry’s record count for the given counter (stored in the recordcount.〈counter〉 field) or to 0 if not set. §11.4; 546

`\GlsXtrRecordCounter``{〈counter-name〉}`glossaries-extra v1.12+

(preamble only)

Activates recording for the given counter. §8.4.3.2; 411

`\glsxtrrecordtriggervalue``{〈entry-label〉}`glossaries-extra v1.21+

Expands to the trigger value used by `\glsxtrifrecordtrigger`. §11.4; 547

`\GlsXtrRecordWarning``{〈glossary-type〉}`glossaries-extra v1.31+

Incorrect use of `\printglossary` with non-hybrid record.

`\glsxtrregularfont``{〈text〉}`glossaries-extra v1.04+

Used by `\glsentryfmt` to encapsulate regular entries. Also used by `\glsxtrassignfieldfont` for regular entries. §5.5.2; 240

`\GlsXtrResetLocalBuffer` glossaries-extra v1.49+

If local unset for repeat entries has been enabled with `\GlsXtrUnsetBufferEnableRepeatLocal`, this will locally reset all entries that are in the buffer that hadn’t been marked as used before the function was enabled. §5.10.1; 287

`\glsxtrresourcecount` glossaries-extra v1.12+

A count register that is incremented on each use of `\GlsXtrLoadResources` to provide a unique basename for each resource set. §11; 534

`\glsxtrresourcefile``[〈options〉]{〈basename〉}`glossaries-extra v1.11+

For use with bib2gls, this both sets up the options for the resource set (which bib2gls can detect from the aux file) and inputs the file 〈basename〉.glstex file created by bib2gls. §11; 533

`\glsxtrresourceinit` glossaries-extra v1.21+

May be defined to temporarily change command definitions before information is written to the aux file by the protected write used by `\glsxtrresourcefile`. §11; 535

`\GlsXtrResourceInitEscSequences` glossaries-extra-bib2gls v1.51+

May be added to the definition of `\glsxtrresourceinit` to temporarily change the definitions of commands that may be used in regular expressions or within the assign-fields resource option. §11.5.2; 559

`\glsxtrrestoremarkhook`

Counteracts `\glsxtrmarkhook`. §5.3.3; 226

`\glsxtrrestorepostpunc` glossaries-extra v1.23+

Used in the description to counteract the use of `\glsxtrnopostpunc`. Does nothing outside of the glossary. §8.6.2; 426

`\glsxtrrevert``{〈text〉}`glossaries-extra v1.49+

Style-sensitive abbreviation command designed to counteract any font change applied by the style. 171

`\glsxtrRevertMarks`

Restores `\markright`, `\markboth` and `\@starttoc` to their previous definitions. §5.3; 200

`\glsxtrRevertTocMarks` glossaries-extra v1.31+

Restores `\@starttoc` to its previous definition. §5.3; 200

`\glsxtrsaveinsert``{〈entry-label〉}{〈insert〉}`glossaries-extra v1.49+

Implemented at the start of all the `\glstext`-like commands (except the inline full form commands like `\glsxtrfull`) to save the `\glsinsert` placeholder. By default, this sets `\glsinsert` to empty. §5.5.4; 253

`\glsxtrscfont``{〈text〉}`

Maintained for backwards-compatibility used to typeset 〈text〉 in small capitals (`\textsc`) for the “sc” abbreviation styles.

`\glsxtrsconlydescname` glossaries-extra v1.48+

Expands to the name value for styles like long-only-short-sc-only-desc. 156

`\glsxtrsconlydescsort` glossaries-extra v1.48+

Expands to the sort value for styles like long-only-short-sc-only-desc. 156

`\glsxtrsconlyname` glossaries-extra v1.48+

Expands to the name value for styles like long-only-short-sc-only. 155

`\glsxtrsconlyrevert``{〈text〉}`glossaries-extra v1.49+

The definition of `\glsxtrrevert` used by styles like long-only-short-sc-only. Uses `\glsxtrscrevert`. 155

`\glsxtrsconlysuffix` initial: `\glsxtrscsuffix`; glossaries-extra v1.48+

The plural suffix used by the “sc-only” abbreviation styles (such as long-only-short-sc-only). 155

`\glsxtrscrevert``{〈text〉}`glossaries-extra v1.49+

The definition of `\glsxtrrevert` used by the small caps (“sc”) abbreviation styles. Uses `\glstextup`. 157

`\glsxtrscsuffix`

The plural suffix used by the small caps (“sc”) abbreviation styles. This switches off the small caps font to prevent the suffix from also appearing in small caps. 157

`\glsxtrscuserrevert``{〈text〉}`glossaries-extra v1.49+

The definition of `\glsxtrrevert` used by styles like long-postshort-sc-user. Uses `\glsxtrscrevert`. 136

`\glsxtrscusersuffix` glossaries-extra v1.48+

The plural suffix used by styles like long-postshort-sc-user. 137

`\glsxtrseealsolabels``{〈entry-label〉}`glossaries-extra v1.16+

Expands to the value of the seealso field for the entry identified by 〈entry-label〉. If the field isn’t set, this will expand to nothing. If the entry isn’t defined, this will expand to `\relax`. §5.9.2; 279

`\glsxtrseelist``{〈csv-list〉}`glossaries-extra v1.16+

Fully expands 〈csv-list〉 and passes it to `\glsseelist`. §5.13; 301

`\glsxtrseelists``{〈entry-label〉}`glossaries-extra v1.49+

If the entry given by 〈entry-label〉 has the see, seealso or alias fields set, this will display the cross reference according to `\glsxtruseseeformat` (for see and alias) or `\glsxtruseseealsoformat` (for seealso). If any of these fields are set, the list is encapsulated with `\glsxtrseelistsencap`. §5.9.2; 278

`\glsxtrseelistsdelim` glossaries-extra v1.49+

Used by `\glsxtrseelists` to as separator between sub-lists. §5.9.2; 279

`\glsxtrseelistsencap``{〈content〉}`glossaries-extra v1.49+

Used by `\glsxtrseelists` to encapsulate the lists. §5.9.2; 278

`\glsxtrsetactualanchor``{〈counter〉}`glossaries-extra-bib2gls v1.49+

Hook used by `\glsxtrdisplaylocnameref` to override the default definition of `\glsxtractualanchor`. §11.5.6; 581

`\GlsXtrSetActualChar``{〈character〉}`

(preamble only)

Sets the “actual character” for the auto-indexing feature. §12; 600

`\glsxtrsetaliasnoindex` glossaries-extra v1.12+

Hook used to switch off indexing for aliases. §5.9.3; 280

`\GlsXtrSetAltModifier``{〈token〉}{〈options〉}`

Sets 〈token〉 as a modifier for the `\gls`-like and `\glstext`-like commands that will automatically implement the given options. §5; 183

`\glsxtrsetbibglsaux``{〈basename〉}`glossaries-extra v1.49+

(requires bib2gls v3.0+)

As the bibglsaux option. §2.4; 26

`\glsxtrsetcategory``{〈entry-labels〉}{〈category-label〉}`

Globally sets the category field to the fully expanded 〈category-label〉 for each entry listed in 〈entry-labels〉. §10; 515

`\glsxtrsetcategoryforall``{〈glossary-labels〉}{〈category-label〉}`

Globally sets the category field to the fully expanded 〈category-label〉 for each entry belonging to the glossaries listed in 〈glossary-labels〉. §10; 515

`\glsxtrsetcomplexstyle``{〈entry-label〉}{〈n〉}`glossaries-extra v1.49+

Indicates that the entry given by 〈entry-label〉 uses a complex abbreviation style. The second argument 〈n〉 should be numeric, which indicates why it doesn’t work with the variations of `\glsfirst`: 1 (all caps doesn’t work), 2 (all caps and insert doesn’t work), 3 (insert doesn’t work). §4.5.3.1; 166

`\GlsXtrSetDefaultGlsOpts``{〈options〉}`

Locally set the default options for the `\gls`-like and `\glstext`-like commands. §5.1.1; 186

`\GlsXtrSetDefaultNumberFormat``{〈encap〉}`glossaries-extra v1.19+

Sets the default format to 〈encap〉 (without the leading backslash). §5.1.1; 187

`\GlsXtrSetDefaultRangeFormat``{〈encap〉}`glossaries-extra v1.50+

Sets the default format to 〈encap〉 (without the leading backslash) for `\glsstartrange` and `\glsendrange`. §5.8; 261

`\GlsXtrSetEncapChar``{〈character〉}`

(preamble only)

Sets the “encap character” for the auto-indexing feature. §12; 600

`\GlsXtrSetEscChar``{〈character〉}`

(preamble only)

Sets the “escape character” for the auto-indexing feature. §12; 600

`\GlsXtrSetField``{〈entry-label〉}{〈field-label〉}{〈value〉}`glossaries-extra v1.12+

Assigns 〈value〉 to the field identified by its internal label 〈field-label〉 for the entry identified by 〈entry-label〉. An error (or warning with undefaction=warn) occurs if the entry hasn’t been defined. §3.5; 39

`\glsxtrsetfieldifexists``{〈entry-label〉}{〈field-label〉}{〈code〉}`glossaries-extra v1.12+

Used by commands like `\GlsXtrSetField` to check if the entry exists before assigning a value to the field. The 〈code〉 part is the assignment code, which is only done if the required condition is met. This can be redefined if the condition needs to be altered. §3.5; 39

`\glsxtrsetgrouptitle``{〈group-label〉}{〈group-title〉}`glossaries-extra v1.14+

Globally assigns the given title 〈group-title〉 to the group identified by 〈group-label〉. §8.6.4; 430

`\glsxtrsetglossarylabel``{〈label〉}`glossaries-extra v1.39+

Sets the label to add (using ``\label`{〈label〉}`) after the glossary section heading. §8.3; 381

`\GlsXtrSetLevelChar``{〈character〉}`

(preamble only)

Sets the “level character” for the auto-indexing feature. §12; 600

`\glsxtrsetlongfirstuse``{〈entry-label〉}`glossaries v1.49+

Implemented by the `\glsxtrlong` set of commands to assign `\glsxtrifwasfirstuse`. §4.3; 52

`\GlsXtrSetPlusModifier``{〈options〉}`glossaries-extra v1.49+

Overrides the options that should be implemented by the plus (`+`) modifier for `\gls`-like and `\glstext`-like commands. §5; 183

`\glsxtrsetpopts``{〈options〉}`glossaries-extra v1.07+

Sets the options that `\glsxtrp` (and case-change variants) pass to the relevant `\glstext`-like command. §5.4; 230

`\glsxtrsetpunctuationmarks``{〈token list〉}`

Sets the punctuation list used by `\glsxtrifnextpunc`. The 〈token list〉 must be a non-delimited list of single tokens that represent each punctuation character. Note that the element of the list must be a single token, which means a single-byte character for pdfLaTeX (for example, ASCII). Multi-byte characters (UTF-8) will required a native Unicode engine (XeLaTeX or LuaLaTeX). §5.5.4; 250

`\GlsXtrSetRecordCountAttribute``{〈category-list〉}{〈value〉}`glossaries-extra v1.21+

Sets the recordcount attribute to 〈value〉 for each of the listed categories. §11.4; 547

`\GlsXtrSetStarModifier``{〈options〉}`glossaries-extra v1.49+

Overrides the options that should be implemented by the star (`*`) modifier for `\gls`-like and `\glstext`-like commands. §5; 183

`\glsxtrsetupfulldefs`

Hook used by `\glsxtrfull` (and case-changing and plural variations). §4.3; 54

`\glsxtrSetWidest``{〈type〉}{〈level〉}`glossaries-extra-bib2gls v1.37+

Written to the glstex by the set-widest option. §11.5.3; 577

`\glsxtrSetWidestFallback``{〈type〉}{〈level〉}`glossaries-extra-bib2gls v1.37+

Written to the glstex by the set-widest option if bib2gls can’t determine the widest name. §11.5.3; 578

`\GLSxtrshort``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉

As `\glsxtrshort` but converts the link text to all caps. §4.3; 51

`\Glsxtrshort``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉

As `\glsxtrshort` but converts the first character of the link text to uppercase (for the start of a sentence) using `\makefirstuc`. §4.3; 50

`\glsxtrshort``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉

References the entry identified by 〈entry-label〉. The text produced is obtained from the short value, formatted according to the abbreviation style associated with the entry’s category. The 〈insert〉 argument will be inserted at the end of the link text. This command does not alter or depend on the first use flag. For the first optional argument, see `\glslink` options. §4.3; 50

`\glsxtrshortdescname` glossaries-extra v1.17+

Expands to the name value for styles like short-nolong-desc. 147

`\GLSxtrshortformat``{〈entry-label〉}{〈insert〉}{〈fmt-cs〉}`glossaries-extra v1.49+

As `\glsxtrshortformat` but all caps. 177

`\Glsxtrshortformat``{〈entry-label〉}{〈insert〉}{〈fmt-cs〉}`glossaries-extra v1.49+

As `\glsxtrshortformat` but sentence case. 177

`\glsxtrshortformat``{〈entry-label〉}{〈insert〉}{〈fmt-cs〉}`glossaries-extra v1.49+

Encapsulates the short field for the given entry with 〈fmt-cs〉. The 〈insert〉 argument is the insertion material supplied in the final optional argument of the `\gls`-like or `\glstext`-like commands. The `\ifglsxtrinsertinside`, inner formatting, and accessibility settings are supported. 177

`\GLSxtrshortformatgrp``{〈entry-label〉}{〈insert〉}{〈fmt-cs〉}`glossaries-extra v1.49+

As `\glsxtrshortformatgrp` but all caps. 178

`\Glsxtrshortformatgrp``{〈entry-label〉}{〈insert〉}{〈fmt-cs〉}`glossaries-extra v1.49+

As `\glsxtrshortformatgrp` but sentence case. 178

`\glsxtrshortformatgrp``{〈entry-label〉}{〈insert〉}{〈fmt-cs〉}`glossaries-extra v1.49+

As `\glsxtrshortformat` but adds grouping around 〈insert〉 (with the inner formatting inside the group). 178

`\glsxtrshorthyphen``{〈short〉}{〈entry-label〉}{〈insert〉}`glossaries-extra v1.17+

Formats the short form according to the short-hyphen-postlong-hyphen style. 152

`\GLSxtrshorthyphenlong``{〈entry-label〉}{〈short〉}{〈long〉}{〈insert〉}`glossaries-extra v1.49+

As `\glsxtrshorthyphenlong` but 〈insert〉 is converted to all caps. 152

`\glsxtrshorthyphenlong``{〈entry-label〉}{〈short〉}{〈long〉}{〈insert〉}`glossaries-extra v1.17+

Formats the short and long form according to the short-hyphen-long-hyphen style. 152

`\glsxtrshorthyphenlongsort` glossaries-extra v1.49+

Expands to the sort value for the short-hyphen-long-hyphen styles. 148

`\glsxtrshortlongdescname` glossaries-extra v1.17+

Expands to the name value for short-long-desc styles. 134

`\glsxtrshortlongdescsort` glossaries-extra v1.17+

Expands to the sort value for short-long-desc styles. 134

`\GLSxtrshortlongformat``{〈entry-label〉}{〈insert〉}{〈long-fmt-cs〉}{〈short-fmt-cs〉}`glossaries-extra v1.49+

As `\glsxtrshortlongformat` but all caps. 180

`\Glsxtrshortlongformat``{〈entry-label〉}{〈insert〉}{〈long-fmt-cs〉}{〈short-fmt-cs〉}`glossaries-extra v1.49+

As `\glsxtrshortlongformat` but sentence case. 180

`\glsxtrshortlongformat``{〈entry-label〉}{〈insert〉}{〈long-fmt-cs〉}{〈short-fmt-cs〉}`glossaries-extra v1.49+

Formats the short form with `\glsxtrshortformat` and the long form in parentheses with `\glsxtrlongformat`. 179

`\glsxtrshortlongname` glossaries-extra v1.25+

Expands to the name value for short-long styles. 134

`\GLSxtrshortlongplformat``{〈entry-label〉}{〈insert〉}{〈long-fmt-cs〉}{〈short-fmt-cs〉}`glossaries-extra v1.49+

As `\glsxtrshortlongplformat` but all caps. 180

`\Glsxtrshortlongplformat``{〈entry-label〉}{〈insert〉}{〈long-fmt-cs〉}{〈short-fmt-cs〉}`glossaries-extra v1.49+

As `\glsxtrshortlongplformat` but sentence case. 180

`\glsxtrshortlongplformat``{〈entry-label〉}{〈insert〉}{〈long-fmt-cs〉}{〈short-fmt-cs〉}`glossaries-extra v1.49+

As `\glsxtrshortlongformat` but for the plurals. 180

`\glsxtrshortlonguserdescname` glossaries-extra v1.25+

Expands to the value for the name key for styles like short-long-user-desc. 139

`\glsxtrshortnolongname` glossaries-extra v1.25+

Expands to the name value for short-nolong styles. 146

`\GLSxtrshortpl``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉

As `\glsxtrshort` but converts the link text to all caps. §4.3; 51

`\Glsxtrshortpl``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉

As `\glsxtrshortpl` but converts the first character of the link text to uppercase (for the start of a sentence) using `\makefirstuc`. §4.3; 51

`\glsxtrshortpl``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉

References the entry identified by 〈entry-label〉. The text produced is obtained from the shortplural value, formatted according to the abbreviation style associated with the entry’s category. The 〈insert〉 argument will be inserted at the end of the link text. This command does not alter or depend on the first use flag. For the first optional argument, see `\glslink` options. §4.3; 51

`\GLSxtrshortplformat``{〈entry-label〉}{〈insert〉}{〈fmt-cs〉}`glossaries-extra v1.49+

As `\glsxtrshortplformat` but all caps. 178

`\Glsxtrshortplformat``{〈entry-label〉}{〈insert〉}{〈fmt-cs〉}`glossaries-extra v1.49+

As `\glsxtrshortplformat` but sentence case. 177

`\glsxtrshortplformat``{〈entry-label〉}{〈insert〉}{〈fmt-cs〉}`glossaries-extra v1.49+

As `\glsxtrshortformat` but for the shortplural field. 177

`\GLSxtrshortplformatgrp``{〈entry-label〉}{〈insert〉}{〈fmt-cs〉}`glossaries-extra v1.49+

As `\glsxtrshortplformatgrp` but all caps. 178

`\Glsxtrshortplformatgrp``{〈entry-label〉}{〈insert〉}{〈fmt-cs〉}`glossaries-extra v1.49+

As `\glsxtrshortplformatgrp` but sentence case. 178

`\glsxtrshortplformatgrp``{〈entry-label〉}{〈insert〉}{〈fmt-cs〉}`glossaries-extra v1.49+

As `\glsxtrshortplformat` but adds grouping around 〈insert〉 (with the inner formatting inside the group). 178

`\glsxtrshowtargetinner``{〈target-name〉}`glossaries-extra v1.48+

Used in inner mode for debugging, this defaults to `\glsshowtargetinner` but is changed by the showtargets options. §2.5; 30

`\glsxtrshowtargetouter``{〈target-name〉}`glossaries-extra v1.48+

Used in outer mode for debugging, this defaults to `\glsshowtargetouter` but is changed by the showtargets options. §2.5; 30

`\glsxtrshowtargetsymbolleft` glossaries-extra v1.48+

The left marker debugging symbol (◁). §2.5; 30

`\glsxtrshowtargetsymbolright` glossaries-extra v1.48+

The right marker debugging symbol (▷). §2.5; 30

`\glsxtrsmfont``{〈text〉}`

Maintained for backwards-compatibility used to typeset 〈text〉 in a smaller font (`\textsmaller`) for the “sm” abbreviation styles.

`\glsxtrsmrevert``{〈text〉}`glossaries-extra v1.49+

The definition of `\glsxtrrevert` used by the smaller (“sm”) abbreviation styles. Uses `\textlarger`. 157

`\glsxtrsmsuffix` initial: `\glsxtrabbrvpluralsuffix`

The plural suffix used by the smaller (“sm”) abbreviation styles (such as short-sm-long). 158

`\glsxtrspacerules` glossaries-extra-bib2gls v1.27+

Expands to space character sort rules. 566

`\GlsXtrStandaloneEntryHeadName``{〈entry-label〉}`glossaries-extra v1.49+

Used by `\glsxtrglossentry` for the header and toc. §8.5; 421

`\GlsXtrStandaloneEntryHeadOther``{〈entry-label〉}{〈field-label〉}`glossaries-extra v1.49+

Used by `\glsxtrglossentryother` for the header and toc. §8.5; 422

`\GlsXtrStandaloneEntryName``{〈entry-label〉}`glossaries-extra v1.37+

Used to display the standalone entry name and create the associated hypertarget, if supported. §8.5; 419

`\GlsXtrStandaloneEntryOther``{〈entry-label〉}{〈field-label〉}`glossaries-extra v1.37+

As `\GlsXtrStandaloneEntryName` but where the text is obtained from the given field instead of name. §8.5; 419

`\GlsXtrStandaloneEntryPdfName``{〈entry-label〉}`glossaries-extra v1.49+

Used by `\glsxtrglossentry` for the PDF bookmark. §8.5; 421

`\GlsXtrStandaloneEntryPdfOther``{〈entry-label〉}{〈field-label〉}`glossaries-extra v1.49+

Used by `\glsxtrglossentryother` for the PDF bookmark. §8.5; 421

`\GlsXtrStandaloneGlossaryType` glossaries-extra v1.21+

Expands to the glossary type for standalone entries. §8.5; 418

`\GlsXtrStandaloneSubEntryItem``{〈entry-label〉}`glossaries-extra v1.21+

Used to display standalone entries that have the parent field set. §8.5; 418

`\glsxtrstarflywarn`

Issues a warning with `\GlossariesExtraWarning` indicating that the experimental starred version of `\GlsXtrEnableOnTheFly` has been used.

`\GlsXtrStartUnsetBuffering` modifier: * glossaries-extra v1.30+

Enables unset buffering. The starred version doesn’t check for duplicates. §5.10.1; 286

`\GlsXtrStopUnsetBuffering` modifier: * glossaries-extra v1.30+

Stops buffering. The starred version performs a global unset. §5.10.1; 287

`\glsxtrSubScriptDigitrules` glossaries-extra-bib2gls v1.27+

Expands to the 0–9 subscript digit character sort rules. 569

`\GLSxtrsubsequentfmt``{〈entry-label〉}{〈insert〉}`glossaries-extra v1.49+

Used by `\glsxtrgenabbrvfmt` to display the all caps subsequent singular form (defined by the abbreviation style). 173

`\Glsxtrsubsequentfmt``{〈entry-label〉}{〈insert〉}`glossaries-extra v1.17+

Used by `\glsxtrgenabbrvfmt` to display the sentence case subsequent singular form (defined by the abbreviation style). 173

`\glsxtrsubsequentfmt``{〈entry-label〉}{〈insert〉}`glossaries-extra v1.17+

Used by `\glsxtrgenabbrvfmt` to display the subsequent singular form (defined by the abbreviation style). 173

`\GLSxtrsubsequentplfmt``{〈entry-label〉}{〈insert〉}`glossaries-extra v1.49+

Used by `\glsxtrgenabbrvfmt` to display the all caps subsequent plural form (defined by the abbreviation style). 173

`\Glsxtrsubsequentplfmt``{〈entry-label〉}{〈insert〉}`glossaries-extra v1.17+

Used by `\glsxtrgenabbrvfmt` to display the sentence case subsequent plural form (defined by the abbreviation style). 173

`\glsxtrsubsequentplfmt``{〈entry-label〉}{〈insert〉}`glossaries-extra v1.17+

Used by `\glsxtrgenabbrvfmt` to display the subsequent plural form (defined by the abbreviation style). 173

`\glsxtrSuperScriptDigitrules` glossaries-extra-bib2gls v1.27+

Expands to the 0–9 superscript digit character sort rules. 569

`\glsxtrsupphypernumber``{〈location〉}`glossaries-extra v1.14+

Used to hyperlink to a location in an external document if the externallocation attribute has been set. This will define `\glsxtrsupplocationurl` to the location provided by the attribute or to empty if the attribute isn’t set. §5.1.2; 194

`\glsxtrsupplocationurl` glossaries-extra v1.14+

Defined by `\glsxtrsupphypernumber` to the external location or empty if not provided.

`\glsxtrtagfont``{〈text〉}`

Used by the tagging command defined with `\GlsXtrEnableInitialTagging`. §4.4; 56

`\glsxtrtaggedlist``{〈singular tag〉}{〈plural tag〉}{〈label prefix〉}{〈csv-list〉}`glossaries-extra v1.49+

Similar to `\glsseelist`, this will start the list with 〈singular tag〉 if the list only contains one element and 〈plural tag〉 if the list contains more than one element. Each element is prefixed with 〈label prefix〉. The tag is separated from the start of the list with `\glsxtrtaggedlistsep`. The actual list separators as as for `\glsseelist`. The 〈csv-list〉 is expanded before being iterated over. Does nothing if 〈csv-list〉 is empty. §5.13; 302

`\glsxtrtaggedlistsep` initial: `\space`; glossaries-extra v1.49+

Separator used by `\glsxtrtaggedlist` between the tag and the list. §5.13; 302

`\glsxtrtarget``{〈entry-label〉}{〈text〉}`glossaries-extra v1.51+

Like `\glstarget` but only creates the target if the field given by `\glsxtrtarget` field hasn’t been set (if hyperlinks are supported). If that field hasn’t been set, the target is created and the field is set to the target name. §5.6; 256

`\glsxtrtargetfield` glossaries-extra v1.51+

Expands to the field label used by `\glsxtrtarget`. §5.6; 256

`\GlsXtrTheLinkCounter``{〈entry-label〉}`glossaries-extra v1.26+

Expands to the value of the link counter associated with the given entry or 0 if it hasn’t been defined. §6.2; 320

`\glsxtrtitlednamereflink``{〈format〉}{〈location〉}{〈title〉}{〈file〉}`glossaries-extra-bib2gls v1.49+

Used by `\glsxtrdisplaylocnameref` to display locations that have a title and are not associated with the page counter and don’t have an associated `\glsxtr〈counter〉locfmt` command. The anchor is obtained from `\glsxtrrecentanchor`. §11.5.6; 583

`\GLSxtrtitlefirst``{〈entry-label〉}`glossaries-extra v1.42+

Used to display the all caps entry’s first field in the section title and table of contents. §5.3.3; 225

`\Glsxtrtitlefirst``{〈entry-label〉}`

Used to display the sentence case entry’s first field in the section title and table of contents. §5.3.3; 224

`\glsxtrtitlefirst``{〈entry-label〉}`

Used to display the entry’s first field in the section title and table of contents. §5.3.3; 224

`\GLSxtrtitlefirstplural``{〈entry-label〉}`glossaries-extra v1.42+

Used to display the all caps entry’s firstplural field in the section title and table of contents. §5.3.3; 225

`\Glsxtrtitlefirstplural``{〈entry-label〉}`

Used to display the sentence case entry’s firstplural field in the section title and table of contents. §5.3.3; 225

`\glsxtrtitlefirstplural``{〈entry-label〉}`

Used to display the entry’s firstplural field in the section title and table of contents. §5.3.3; 225

`\GLSxtrtitlefull``{〈entry-label〉}`glossaries-extra v1.42+

Used to display the entry’s all caps full form in the section title and table of contents. §5.3.3; 221

`\Glsxtrtitlefull``{〈entry-label〉}`glossaries-extra v1.02+

Used to display the entry’s sentence case full form in the section title and table of contents. §5.3.3; 221

`\glsxtrtitlefull``{〈entry-label〉}`glossaries-extra v1.02+

Used to display the entry’s full form in the section title and table of contents. §5.3.3; 220

`\GLSxtrtitlefullpl``{〈entry-label〉}`glossaries-extra v1.42+

Used to display the entry’s all caps full plural form in the section title and table of contents. §5.3.3; 222

`\Glsxtrtitlefullpl``{〈entry-label〉}`glossaries-extra v1.02+

Used to display the entry’s sentence case full plural form in the section title and table of contents. §5.3.3; 221

`\glsxtrtitlefullpl``{〈entry-label〉}`glossaries-extra v1.02+

Used to display the entry’s full plural form in the section title and table of contents. §5.3.3; 221

`\GLSxtrtitlelong``{〈entry-label〉}`glossaries-extra v1.42+

The normal behaviour of `\GLSfmtlong`. §5.3.3; 219

`\Glsxtrtitlelong``{〈entry-label〉}`glossaries-extra v1.02+

The normal behaviour of `\Glsfmtlong`. §5.3.3; 219

`\glsxtrtitlelong``{〈entry-label〉}`glossaries-extra v1.02+

The normal behaviour of `\glsfmtlong`. §5.3.3; 219

`\GLSxtrtitlelongpl``{〈entry-label〉}`glossaries-extra v1.42+

The normal behaviour of `\GLSfmtlongpl`. §5.3.3; 220

`\Glsxtrtitlelongpl``{〈entry-label〉}`glossaries-extra v1.02+

The normal behaviour of `\Glsfmtlongpl`. §5.3.3; 220

`\glsxtrtitlelongpl``{〈entry-label〉}`glossaries-extra v1.02+

The normal behaviour of `\glsfmtlongpl`. §5.3.3; 220

`\GLSxtrtitlename``{〈entry-label〉}`glossaries-extra v1.42+

Used to display the all caps entry’s name in the section title and table of contents. §5.3.3; 222

`\Glsxtrtitlename``{〈entry-label〉}`glossaries-extra v1.21+

Used to display the sentence case entry’s name in the section title and table of contents. §5.3.3; 222

`\glsxtrtitlename``{〈entry-label〉}`glossaries-extra v1.21+

Used to display the entry’s name in the section title and table of contents. §5.3.3; 222

`\glsxtrtitleopts` glossaries-extra v1.49+

Expands to the options that commands like `\glsfmtshort` should use in the title or caption within the document text. §5.3.2; 205

`\glsxtrtitleorpdforheading``{〈title〉}{〈PDF bookmarks〉}{〈heading〉}`glossaries-extra v1.21+

Does the applicable argument depending on whether the command occurs within a title/caption or PDF bookmark or heading. §5.3.3; 214

`\GLSxtrtitleplural``{〈entry-label〉}`glossaries-extra v1.42+

Used to display the all caps entry’s plural field in the section title and table of contents. §5.3.3; 224

`\Glsxtrtitleplural``{〈entry-label〉}`

Used to display the sentence case entry’s plural field in the section title and table of contents. §5.3.3; 224

`\glsxtrtitleplural``{〈entry-label〉}`

Used to display the entry’s plural field in the section title and table of contents. §5.3.3; 223

`\GLSxtrtitleshort``{〈entry-label〉}`glossaries-extra v1.42+

The normal behaviour of `\GLSfmtshort`. §5.3.3; 217

`\Glsxtrtitleshort``{〈entry-label〉}`

The normal behaviour of `\Glsfmtshort`. §5.3.3; 216

`\glsxtrtitleshort``{〈entry-label〉}`

The normal behaviour of `\glsfmtshort`. §5.3.3; 216

`\GLSxtrtitleshortpl``{〈entry-label〉}`glossaries-extra v1.42+

The normal behaviour of `\GLSfmtshortpl`. §5.3.3; 219

`\Glsxtrtitleshortpl``{〈entry-label〉}`

The normal behaviour of `\Glsfmtshortpl`. §5.3.3; 218

`\glsxtrtitleshortpl``{〈entry-label〉}`glossaries-extra v1.03+

The normal behaviour of `\glsfmtshortpl`. §5.3.3; 218

`\GLSxtrtitletext``{〈entry-label〉}`glossaries-extra v1.42+

Used to display the all caps entry’s text field in the section title and table of contents. §5.3.3; 223

`\Glsxtrtitletext``{〈entry-label〉}`

Used to display the sentence case entry’s text field in the section title and table of contents. §5.3.3; 223

`\glsxtrtitletext``{〈entry-label〉}`

Used to display the entry’s text field in the section title and table of contents. §5.3.3; 223

`\GlsXtrTotalRecordCount``{〈entry-label〉}`glossaries-extra v1.21+

Expands to the entry’s total record count (stored in the recordcount field) or to 0 if not set. §11.4; 546

`\glsxtrtreechildpredesc` initial: `\glstreechildpredesc`; glossaries-extra-stylemods v1.46+

Inserted before the child descriptions for the tree styles.

`\glsxtrtreepredesc` initial: `\glstreepredesc`; glossaries-extra-stylemods v1.46+

Inserted before the top-level descriptions for the tree styles.

`\glsxtrundefaction``{〈message〉}{〈additional help〉}`glossaries-extra v1.08+

Will either produce an error or a warning, depending on the undefaction setting. In the document environment this will also generate the unknown marker (`??`). §2.4; 16

`\glsxtrundeftag` initial: ??; glossaries-extra v1.08+

Expands to the unknown marker (`??`). §2.4; 15

`\GlsXtrUnknownDialectWarning``{〈locale〉}{〈root language〉}`glossaries-extra v1.32+

Issues a warning with `\GlossariesExtraWarning` indicating that a valid dialect label can’t be determined for the given locale and root language. §5.12.1; 295

`\GlsXtrUnsetBufferDisableRepeatLocal` glossaries-extra v1.49+

Disables GlsXtrUnsetBufferEnableRepeatLocal. §5.10.1; 288

`\GlsXtrUnsetBufferEnableRepeatLocal` glossaries-extra v1.49+

Allows repeat entries within the buffering code to be locally unset before the link text. §5.10.1; 287

`\glsxtrunsrtdo``{〈entry-label〉}`glossaries-extra v1.12+

Used by the “unsrt” family of commands, this displays the glossary entry according to the current glossary style (taking the hierarchical level into account, which may have been adjusted by leveloffset or flatten). §8.4.3; 406

`\glsxtrunusedformat``{〈location〉}`

The format used by `\glsxtraddallcrossrefs`. §5.9.3; 281

`\glsxtrUpAlpha` glossaries-extra-bib2gls v1.27+

(Sort rule) expands to the variations of math Greek upright alpha. 577

`\glsxtrUpBeta` glossaries-extra-bib2gls v1.27+

(Sort rule) expands to the variations of math Greek upright beta. 577

`\glsxtrUpChi` glossaries-extra-bib2gls v1.27+

(Sort rule) expands to the variations of math Greek upright chi. 577

`\glsxtrUpDelta` glossaries-extra-bib2gls v1.27+

(Sort rule) expands to the variations of math Greek upright delta. 577

`\glsxtrUpDigamma` glossaries-extra-bib2gls v1.27+

(Sort rule) expands to the variations of math Greek upright digamma. 577

`\glsxtrUpEpsilon` glossaries-extra-bib2gls v1.27+

(Sort rule) expands to the variations of math Greek upright epsilon. 577

`\glsxtrUpEta` glossaries-extra-bib2gls v1.27+

(Sort rule) expands to the variations of math Greek upright eta. 577

`\glsxtrUpGamma` glossaries-extra-bib2gls v1.27+

(Sort rule) expands to the variations of math Greek upright gamma. 577

`\glsxtrUpIota` glossaries-extra-bib2gls v1.27+

(Sort rule) expands to the variations of math Greek upright iota. 577

`\glsxtrUpKappa` glossaries-extra-bib2gls v1.27+

(Sort rule) expands to the variations of math Greek upright kappa. 577

`\glsxtrUpLambda` glossaries-extra-bib2gls v1.27+

(Sort rule) expands to the variations of math Greek upright lambda. 577

`\glsxtrUpMu` glossaries-extra-bib2gls v1.27+

(Sort rule) expands to the variations of math Greek upright mu. 577

`\glsxtrUpNu` glossaries-extra-bib2gls v1.27+

(Sort rule) expands to the variations of math Greek upright nu. 577

`\glsxtrUpOmega` glossaries-extra-bib2gls v1.27+

(Sort rule) expands to the variations of math Greek upright omega. 577

`\glsxtrUpOmicron` glossaries-extra-bib2gls v1.27+

(Sort rule) expands to the variations of math Greek upright omicron. 577

`\glsxtrUpPhi` glossaries-extra-bib2gls v1.27+

(Sort rule) expands to the variations of math Greek upright phi. 577

`\glsxtrUpPi` glossaries-extra-bib2gls v1.27+

(Sort rule) expands to the variations of math Greek upright pi. 577

`\glsxtrUpPsi` glossaries-extra-bib2gls v1.27+

(Sort rule) expands to the variations of math Greek upright psi. 577

`\glsxtrUpRho` glossaries-extra-bib2gls v1.27+

(Sort rule) expands to the variations of math Greek upright rho. 577

`\glsxtrUpSigma` glossaries-extra-bib2gls v1.27+

(Sort rule) expands to the variations of math Greek upright sigma. 577

`\glsxtrUpTau` glossaries-extra-bib2gls v1.27+

(Sort rule) expands to the variations of math Greek upright tau. 577

`\glsxtrUpTheta` glossaries-extra-bib2gls v1.27+

(Sort rule) expands to the variations of math Greek upright theta. 577

`\glsxtrUpUpsilon` glossaries-extra-bib2gls v1.27+

(Sort rule) expands to the variations of math Greek upright upsilon. 577

`\glsxtrUpXi` glossaries-extra-bib2gls v1.27+

(Sort rule) expands to the variations of math Greek upright xi. 577

`\glsxtrUpZeta` glossaries-extra-bib2gls v1.27+

(Sort rule) expands to the variations of math Greek upright zeta. 577

`\GlsXtrUseAbbrStyleFmts``{〈style-name〉}`

Implements the 〈display definitions〉 code for the given abbreviation style. §4.5.2; 159

`\GlsXtrUseAbbrStyleSetup``{〈style-name〉}`

Implements the 〈setup〉 code for the given abbreviation style. §4.5.2; 159

`\glsxtrusealias``{〈entry-label〉}`glossaries-extra v1.42+

If the entry given by 〈entry-label〉 has the alias field set, this will display the cross reference according to `\glsxtruseseeformat`. §5.9.2; 279

`\GLSxtrusefield``{〈entry-label〉}{〈field-label〉}`glossaries-extra v1.37+

As `\glsxtrusefield` but converts the field value to all caps. §5.11; 293

`\Glsxtrusefield``{〈entry-label〉}{〈field-label〉}`glossaries-extra v1.12+

As `\glsxtrusefield` but uses sentence case. §5.11; 293

`\glsxtrusefield``{〈entry-label〉}{〈field-label〉}`glossaries-extra v1.12+

Expands to the value of the given field (identified by its internal label 〈field-label〉) for the entry given by 〈entry-label〉. Expands to `\relax` if the entry or field are undefined. §5.11; 293

`\glsxtruserfield` glossaries-extra v1.04+

Expands to the internal label of the field used to store additional information for the “user” abbreviation styles, such as long-short-user. 135

`\glsxtruserfieldfmt``{〈text〉}`glossaries-extra v1.49+

Used to format the value of the field given by `\glsxtruserfield` within `\glsxtruserparen` and `\GLSxtruserparen`. 135

`\GLSxtruserlongformat``{〈entry-label〉}{〈fmt-cs〉}`glossaries-extra v1.49+

As `\glsxtruserlongformat` but all caps. 143

`\glsxtruserlongformat``{〈entry-label〉}{〈fmt-cs〉}`glossaries-extra v1.49+

Formats the singular long form in parentheses (with `\glsxtruserparen`) in styles like short-long-user. 143

`\GLSxtruserlongplformat``{〈entry-label〉}{〈fmt-cs〉}`glossaries-extra v1.49+

As `\glsxtruserlongplformat` but all caps. 144

`\glsxtruserlongplformat``{〈entry-label〉}{〈fmt-cs〉}`glossaries-extra v1.49+

Formats the plural long form in parentheses (with `\glsxtruserparen`) in styles like short-long-user. 143

`\GLSxtruserlongshortformat``{〈entry-label〉}{〈insert〉}{〈long-fmt-cs〉}{〈short-fmt-cs〉}`glossaries-extra v1.49+

As `\glsxtruserlongshortformat` but all caps. 139

`\Glsxtruserlongshortformat``{〈entry-label〉}{〈insert〉}{〈long-fmt-cs〉}{〈short-fmt-cs〉}`glossaries-extra v1.49+

As `\glsxtruserlongshortformat` but sentence case. 139

`\glsxtruserlongshortformat``{〈entry-label〉}{〈insert〉}{〈long-fmt-cs〉}{〈short-fmt-cs〉}`glossaries-extra v1.49+

Used by styles like long-short-user to format the long and short form. 139

`\GLSxtruserlongshortplformat``{〈entry-label〉}{〈insert〉}{〈long-fmt-cs〉}{〈short-fmt-cs〉}`glossaries-extra v1.49+

As `\glsxtruserlongshortplformat` but all caps. 140

`\Glsxtruserlongshortplformat``{〈entry-label〉}{〈insert〉}{〈long-fmt-cs〉}{〈short-fmt-cs〉}`glossaries-extra v1.49+

As `\glsxtruserlongshortplformat` but sentence case. 140

`\glsxtruserlongshortplformat``{〈entry-label〉}{〈insert〉}{〈long-fmt-cs〉}{〈short-fmt-cs〉}`glossaries-extra v1.49+

Used by styles like long-short-user to format the plural long and plural short form. 140

`\GLSxtruserparen``{〈text〉}{〈entry-label〉}`glossaries-extra v1.49+

As `\glsxtruserparen` but the value of the field given by `\glsxtruserfield` is converted to all caps. The 〈text〉 argument should already be in all caps. 138

`\glsxtruserparen``{〈text〉}{〈entry-label〉}`glossaries-extra v1.04+

Used by the “user” abbreviation styles, such as long-short-user, to insert the space separator (`\glsxtrfullsep`) followed by the parenthetical material (`\glsxtrparen`) consisting of 〈text〉 and, if set, the value of the field given by `\glsxtruserfield`, separated by `\glsxtruserparensep`. 137

`\glsxtruserparensep` glossaries-extra v1.49+

The separator used in the parenthetical content of `\glsxtruserparen` and `\GLSxtruserparen`. 135

`\GLSxtrusershortformat``{〈entry-label〉}{〈fmt-cs〉}`glossaries-extra v1.49+

As `\glsxtrusershortformat` but all caps. 142

`\glsxtrusershortformat``{〈entry-label〉}{〈fmt-cs〉}`glossaries-extra v1.49+

Formats the singular short form in parentheses (with `\glsxtruserparen`) in styles like long-short-user. 141

`\GLSxtrusershortlongformat``{〈entry-label〉}{〈insert〉}{〈long-fmt-cs〉}{〈short-fmt-cs〉}`glossaries-extra v1.49+

As `\glsxtrusershortlongformat` but all caps. 141

`\Glsxtrusershortlongformat``{〈entry-label〉}{〈insert〉}{〈long-fmt-cs〉}{〈short-fmt-cs〉}`glossaries-extra v1.49+

As `\glsxtrusershortlongformat` but sentence case. 141

`\glsxtrusershortlongformat``{〈entry-label〉}{〈insert〉}{〈long-fmt-cs〉}{〈short-fmt-cs〉}`glossaries-extra v1.49+

Used by styles like short-long-user to format the short and long form. 140

`\GLSxtrusershortlongplformat``{〈entry-label〉}{〈insert〉}{〈long-fmt-cs〉}{〈short-fmt-cs〉}`glossaries-extra v1.49+

As `\glsxtrusershortlongplformat` but all caps. 141

`\Glsxtrusershortlongplformat``{〈entry-label〉}{〈insert〉}{〈long-fmt-cs〉}{〈short-fmt-cs〉}`glossaries-extra v1.49+

As `\glsxtrusershortlongplformat` but sentence case. 141

`\glsxtrusershortlongplformat``{〈entry-label〉}{〈insert〉}{〈long-fmt-cs〉}{〈short-fmt-cs〉}`glossaries-extra v1.49+

Used by styles like short-long-user to format the plural short and plural long form. 141

`\GLSxtrusershortplformat``{〈entry-label〉}{〈fmt-cs〉}`glossaries-extra v1.49+

As `\glsxtrusershortplformat` but all caps. 142

`\glsxtrusershortplformat``{〈entry-label〉}{〈fmt-cs〉}`glossaries-extra v1.49+

Formats the plural short form in parentheses (with `\glsxtruserparen`) in styles like long-short-user. 142

`\glsxtrusersuffix` initial: `\glsxtrabbrvpluralsuffix`; glossaries-extra v1.04+

The plural suffix used by styles like short-long-user. 136

`\glsxtrusesee``{〈entry-label〉}`glossaries-extra v1.06+

If the entry given by 〈entry-label〉 has the see field set, this will display the cross reference according to `\glsxtruseseeformat`. §5.9.2; 279

`\glsxtruseseealso``{〈entry-label〉}`glossaries-extra v1.16+

If the entry given by 〈entry-label〉 has the seealso field set, this will display the cross reference according to `\glsxtruseseealsoformat`. §5.9.2; 279

`\glsxtruseseealsoformat``{〈csv-list〉}`glossaries-extra v1.16+

Formats the comma-separated list of entry labels as a “see also” cross-reference. §5.9.2; 280

`\glsxtruseseeformat``{〈tag〉}{〈xr-list〉}`glossaries-extra v1.06+

Format used by `\glsxtrusesee`. This internally uses `\glsseeformat`.

`\GlsXtrWarnDeprecatedAbbrStyle``{〈old-name〉}{〈new-name〉}`glossaries-extra v1.04+

Issues a warning with `\GlossariesExtraWarning` indicating that a deprecated abbreviation style has been used. §4.5.2; 160

`\GlsXtrWarning``{〈options〉}{〈entry〉}`

Issues a warning with `\GlossariesExtraWarning` indicating that the given options list has been ignored by the given entry because it has already been defined. §13; 602

`\glsxtrword``{〈word〉}`glossaries-extra v1.17+

Used to mark each word by the markwords and markshortwords attributes. §10.2.1.1; 519

`\glsxtrwordsep` glossaries-extra v1.17+

Used to mark word separator space by the markwords and markshortwords attributes. §10.2.1.1; 519

`\glsxtrwordsephyphen` glossaries-extra v1.49+

Used to mark compound word separator hyphen by the markwords and markshortwords attributes.

`\glsxtrwrglossaryhook``{〈entry-label〉}`

Hook implemented everytime an entry is indexed.

`\glsxtrwrglossarylocfmt``{〈location〉}{〈title〉}`glossaries-extra-bib2gls v1.49+

Used by `\glsxtrdisplaylocnameref` to format a location where the counter is wrglossary. §11.5.6; 582

`\glsxtrwrglosscountermark``{〈number〉}`glossaries-extra v1.49+

Used to mark where the wrglossary counter is incrememented with debug=showwrgloss. §2.5; 29

`\glsxtrwrglossmark` glossaries-extra v1.21+

Marker (·) used to mark write operations with debug=showwrgloss. §2.5; 29

[top]

## H
[link]

`\hyperbf``{〈location(s)〉}`glossaries

If hyperlinks are supported this does `\textbf{`\glshypernumber`{〈location(s)〉}}` otherwise it just does `\textbf{〈location(s)〉}`.

[top]

## I
[link]

`\ifglossaryexists``{〈glossary-type〉}{〈true〉}{〈false〉}`modifier: * glossaries

If the glossary given by 〈glossary-type〉 exists, this does 〈true〉, otherwise it does 〈false〉. The unstarred form treats ignored glossaries as non-existent. The starred form (v4.46+) will do 〈true〉 if 〈glossary-type〉 matches an ignored glossary.

`\ifglsentryexists``{〈entry-label〉}{〈true〉}{〈false〉}`glossaries

Does 〈true〉 if the entry given by 〈entry-label〉 exists, otherwise does 〈false〉.

`\ifglsfieldcseq``{〈entry-label〉}{〈field-label〉}{〈cs-name〉}{〈true〉}{〈false〉}`glossaries v4.16+

Tests if the value of the given field is equal to the replacement text of the command given by the control sequence name 〈cs-name〉 using etoolbox’s `\ifcsstrequal`. Triggers an error if the given field (identified by its internal field label) hasn’t been defined. Uses `\glsdoifexists`.

`\ifglsfielddefeq``{〈entry-label〉}{〈field-label〉}{〈cs〉}{〈true〉}{〈false〉}`glossaries v4.16+

Tests if the value of the given field is equal to the replacement text of the given command 〈cs〉 using etoolbox’s `\ifdefstrequal`. Triggers an error if the given field (identified by its internal field label) hasn’t been defined. Uses `\glsdoifexists`.

`\ifglsfieldeq``{〈entry-label〉}{〈field-label〉}{〈string〉}{〈true〉}{〈false〉}`glossaries v4.16+

Tests if the value of the given field is equal to the given string using etoolbox’s `\ifcsstring`. Triggers an error if the given field (identified by its internal field label) hasn’t been defined. Uses `\glsdoifexists`.

`\ifglsfieldvoid``{〈field-label〉}{〈entry-label〉}{〈true〉}{〈false〉}`glossaries v4.50+

An expandable test to determine if the entry is undefined or the field is undefined or empty. The 〈field-label〉 must be the field’s internal label.

`\ifglshaschildren``{〈entry-label〉}{〈true〉}{〈false〉}`glossaries v3.02+

Does 〈true〉 if the given entry has child entries otherwise does 〈false〉. Note that this has to iterate over the set of defined entries for the entry’s glossary to find one that has the entry identified in its parent field. A more efficient approach can be achieved with bib2gls and the save-child-count resource option.

`\ifglshasdesc``{〈entry-label〉}{〈true〉}{〈false〉}`glossaries v3.08a+

Does 〈true〉 if the entry’s description field is set otherwise does 〈false〉.

`\ifglshasdescsuppressed``{〈entry-label〉}{〈true〉}{〈false〉}`glossaries v3.08a+

Does 〈true〉 if the entry’s description field is just `\nopostdesc` otherwise does 〈false〉.

`\ifglshasfield``{〈field〉}{〈entry-label〉}{〈true〉}{〈false〉}`glossaries v4.03+

If the field identified by either its key or its internal field label 〈field〉 for the entry identified by 〈entry-label〉 is set and non-empty, this sets `\glscurrentfieldvalue` to the field value and does 〈true〉 otherwise it does 〈false〉.

`\ifglshaslong``{〈entry-label〉}{〈true〉}{〈false〉}`glossaries v3.11a+

Does 〈true〉 if the entry’s long field is set otherwise does 〈false〉.

`\ifglshasparent``{〈entry-label〉}{〈true〉}{〈false〉}`glossaries v3.02+

Does 〈true〉 if the entry’s parent field is set otherwise does 〈false〉.

`\ifglshasshort``{〈entry-label〉}{〈true〉}{〈false〉}`glossaries v3.11a+

Does 〈true〉 if the entry’s short field is set otherwise does 〈false〉.

`\ifglshassymbol``{〈entry-label〉}{〈true〉}{〈false〉}`glossaries v3.08a+

Does 〈true〉 if the entry’s symbol field is set otherwise does 〈false〉.

`\ifglsindexonlyfirst``〈true〉`\else` 〈false〉`\fi``initial: `\iffalse`; glossaries v3.02+

A conditional that corresponds to the indexonlyfirst option. §5.8; 267

`\ifGlsLongExtraUseTabular``〈true〉`\else` 〈false〉`\fi``initial: `\iffalse`; glossary-longextra v1.37+

Conditional that determines whether or not to use tabular instead of longtable. If this conditional is changed, it must be changed before the style is set. §8.7.2; 449

`\ifglsnogroupskip``〈true〉`\else` 〈false〉`\fi``initial: `\iffalse`; glossaries v3.03+

Conditional set by the nogroupskip option.

`\ifglsresetcurrcount``〈true〉`\else` 〈false〉`\fi``initial: `\iffalse`; glossaries-extra v1.49+

Conditional that determines whether or not to reset the entry counter to 0 when the first use flag is reset. §6.1; 310

`\ifglsused``{〈entry-label〉}{〈true〉}{〈false〉}`glossaries

Does 〈true〉 if the entry has been marked as used, does 〈false〉 if the entry is marked as unused, and does neither if the entry hasn’t been defined (but will generate an error or warning according to undefaction).

`\ifglsxtrinitwrglossbefore``〈true〉`\else` 〈false〉`\fi``initial: `\iftrue`; glossaries-extra v1.14+

A conditional that indicates whether or not wrgloss=before is set. §5.1.2; 193

`\ifglsxtrinsertinside``〈true〉`\else` 〈false〉`\fi``initial: `\iffalse`; glossaries-extra v1.02

A conditional used by the predefined abbreviation styles to determine whether the 〈insert〉 part should go inside or outside of the style’s font formatting commands. 131

`\ifGlsXtrPrefixLabelFallbackLast``〈true〉`\else` 〈false〉`\fi``initial: `\iftrue`; glossaries-extra-bib2gls v1.49+

Conditional that determines whether or not to use the last label prefix as the default. §11.5.7; 587

`\ifglsxtrprintglossflatten``〈true〉`\else` 〈false〉`\fi``initial: `\iffalse`; glossaries-extra v1.49+

Conditional set by the flatten option. §8.4.3; 406

`\ifmglsused``{〈multi-label〉}{〈true〉}{〈false〉}`glossaries-extra v1.48+

Does 〈true〉 if the given multi-entry has been marked as used, otherwise does 〈false〉. §7.7; 354

`\ifmultiglossaryentryglobal``〈true〉`\else` 〈false〉`\fi``initial: `\iffalse`; glossaries-extra v1.48+

If true, subsequent multi-entry definitions will be global. §7; 327

`\IfTeXParserLib``{〈TeX parser lib code〉}{〈LaTeX code〉}`glossaries-extra-bib2gls v1.49+

Defined by glossaries-extra-bib2gls to 〈LaTeX code〉 but defined by bib2gls’s interpreter to expand to 〈TeX parser lib code〉. §11.5.8; 595

`\IN`

Defined by `\GlsXtrResourceInitEscSequences` to expand to detokenized `\IN`. §11.5.2; 559

`\indexname` initial: Index

(language-sensitive)

Expands to the index title.

`\INTERPRET`

Defined by `\GlsXtrResourceInitEscSequences` to expand to detokenized `\INTERPRET`. §11.5.2; 559

`\Iota` glossaries-extra-bib2gls v1.27+

Defined with `\providecommand`, this just does `\mathrm{I}`. §11.5.8; 596

[top]

## K
[link]

`\Kappa` glossaries-extra-bib2gls v1.27+

Defined with `\providecommand`, this just does `\mathrm{K}`. §11.5.8; 596

[top]

## L
[link]

`\LABELIFY`

Defined by `\GlsXtrResourceInitEscSequences` to expand to detokenized `\LABELIFY`. §11.5.2; 559

`\LABELIFYLIST`

Defined by `\GlsXtrResourceInitEscSequences` to expand to detokenized `\LABELIFYLIST`. §11.5.2; 559

`\LC`

Defined by `\GlsXtrResourceInitEscSequences` to expand to detokenized `\LC`. §11.5.2; 559

`\LEN`

Defined by `\GlsXtrResourceInitEscSequences` to expand to detokenized `\LEN`. §11.5.2; 559

`\letabbreviationstyle``{〈new style〉}{〈existing style〉}`glossaries-extra v1.04+

Defines a synonym for an existing abbreviation style. §4.5.3; 161

`\loadglsentries``[〈type〉]{〈filename〉}`glossaries

Locally assigns `\glsdefaulttype` to 〈type〉 and inputs 〈filename〉. If the optional argument is omitted, the default glossary is assumed. Note that if any entries with 〈filename〉 have the type key set (including implicitly in commands like `\newabbreviation`), then this will override the type given in the optional argument.

`\longnewglossaryentry``{〈entry-label〉}{〈key=value list〉}{〈description〉}`glossaries v3.11a

Defines a new glossary entry with the given label. The second argument is a comma-separated list of glossary entry keys. The third argument is the description, which may include paragraph breaks. §3.1; 32

`\longnewglossaryentry*``{〈entry-label〉}{〈key=value list〉}{〈description〉}`glossaries-extra v1.12+

Like the unstarred `\longnewglossaryentry` but doesn’t add the `\glsxtrpostlongdescription` hook. §3.1; 32

[top]

## M
[link]

`\MakeAcronymsAbbreviations`

Counteracts `\RestoreAcronyms`. Not recommended. §4.6; 181

`\makefirstuc``{〈text〉}`mfirstuc

Robust command that converts the first character of 〈text〉 to uppercase unless 〈text〉 starts with a command, in which case it will attempt to apply the case change to the first character of the first argument following the command, if the command is followed by a group. As from mfirstuc v2.08, this command internally uses `\MFUsentencecase` to perform the actual case-change. See the mfirstuc documentation for further details, either:

    〉_texdoc mfirstuc

or visit ctan.org/pkg/mfirstuc.

`\makeglossaries``[〈types〉]`glossaries

Opens the associated glossary files that need to be processed by makeindex or xindy. The optional argument is only available with glossaries-extra and is used for a hybrid approach. All glossaries (or each glossary identified in 〈types〉) should be displayed with `\printglossary`. If the optional argument is present, any glossaries not identified in 〈types〉 should be displayed with `\printnoidxglossary`. §8; 377

`\makenoidxglossaries` glossaries v4.04+

Sets up all non-ignored glossaries so that they can be displayed with `\printnoidxglossary`.

`\mfirstucMakeUppercase``{〈text〉}`mfirstuc

This command was used by `\makefirstuc` to convert its argument to all caps and was redefined by glossaries to use `\MakeTextUppercase`, but with mfirstuc v2.08+ and glossaries v4.50+ this command is instead defined to use the LaTeX3 all caps command, which is expandable. This command is no longer used by `\makefirstuc` (which instead uses `\MFUsentencecase`) or by glossaries v4.50+ (which now uses `\glsuppercase` for all caps commands such as `\GLS`).

`\MFUaddmap``{〈cs1〉}{〈cs2〉}`mfirstuc v2.08+

Identifies a mapping from the command 〈cs1〉 to command 〈cs2〉 for `\makefirstuc` and also identifies 〈cs2〉 as a blocker. Mappings and blockers aren’t supported by `\MFUsentencecase`, so both 〈cs1〉 and 〈cs2〉 are identified as exclusions for `\MFUsentencecase`.

`\MFUblocker``{〈cs〉}`mfirstuc v2.08+

Locally identifies 〈cs〉 as a blocker command for `\makefirstuc` and an exclusion for `\MFUsentencecase` (which doesn’t support blockers).

`\MFUexcl``{〈cs〉}`mfirstuc v2.08+

Locally identifies 〈cs〉 as an exclusion command, which will be recognised by both `\makefirstuc` and `\MFUsentencecase`.

`\MFUsave` mfirstuc v2.08+

Saves the list of exclusions, blockers and mappings to the aux file (if required by some external tool, such as bib2gls). This command sets itself to `\relax` so it doesn’t repeat the action if used multiple times, and counteracts any use of `\MFUsaveatend`.

`\MFUsaveatend` mfirstuc v2.08+

Saves the list of exclusions, blockers and mappings to the aux file (if required by some external tool, such as bib2gls) at the end of the document. This command sets itself to `\relax` so it doesn’t repeat the action if used multiple times, but it can be overridden by `\MFUsave`.

`\MFUsentencecase``{〈text〉}`mfirstuc v2.08+

Fully expands 〈text〉 and converts the first letter to uppercase. Unlike `\makefirstuc`, this command is expandable, but only recognises commands identified as exclusions. See the mfirstuc documentation for further details. This command is provided by glossaries-extra v1.49+ if an old version of mfirstuc is detected.

`\MGP`

Defined by `\GlsXtrResourceInitEscSequences` to expand to detokenized `\MGP`. Note that this isn’t the same as `\glscapturedgroup`. §11.5.2; 559

`\MGLS``[〈options〉]{〈multi-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries-extra v1.48+

As `\mgls` but uses `\GLS` for each element. §7.11.1; 366

`\MGls``[〈options〉]{〈multi-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries-extra v1.48+

As `\mgls` but uses `\Gls` for all elements. §7.11.1; 365

`\Mgls``[〈options〉]{〈multi-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries-extra v1.48+

As `\mgls` but uses `\Gls` for the first element. §7.11.1; 365

`\mgls``[〈options〉]{〈multi-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries-extra v1.48+

References a multi-entry identified by the given 〈multi-label〉. §7; 325

`\mglsAddOptions``{〈multi-label〉}{〈new-options〉}`glossaries-extra v1.48+

Locally appends to the options associated with the given multi-entry. §7; 327

`\mglscurrentcategory` glossaries-extra v1.48+

Placeholder command for use in multi-entry hooks, this expands to the multi-entry category current in effect. §7.5; 350

`\mglscurrentlabel` glossaries-extra v1.48+

Placeholder command for use in multi-entry hooks, this expands to the current element label. §7.5; 350

`\mglscurrentlist` glossaries-extra v1.48+

Placeholder command for use in multi-entry hooks, this expands to the complete comma-separated list of elements. §7.5; 349

`\mglscurrentmainlabel` glossaries-extra v1.48+

Placeholder command for use in multi-entry hooks, this expands to the label of the main element. §7.5; 349

`\mglscurrentmultilabel` glossaries-extra v1.48+

Placeholder command for use in multi-entry hooks, this expands to the multi-entry label. §7.5; 349

`\mglscurrentoptions` glossaries-extra v1.48+

Placeholder command for use in multi-entry hooks, this expands to the options used when the multi-entry was defined. §7.5; 349

`\mglscurrentprefix` glossaries-extra v1.48+

Placeholder command for use in multi-entry hooks, this expands to the current prefix. §7.5; 350

`\mglscurrentsuffix` glossaries-extra v1.48+

Placeholder command for use in multi-entry hooks, this expands to the current suffix. §7.5; 350

`\mglscustompostlinkhook` glossaries-extra v1.48+

Hook used with the mpostlinkelement=custom option. §7.6; 351

`\mglsdefcategoryprefix``{〈category-label〉}{〈definition〉}`glossaries-extra v1.48+

Defines the prefix for the given multi-entry category. §7.3; 343

`\mglsdefcategorysuffix``{〈category-label〉}{〈definition〉}`glossaries-extra v1.48+

Defines the suffix for the given multi-entry category. §7.3; 344

`\mglselementindex` glossaries-extra v1.48+

A count register used in multi-entry hooks, this is set to the element index. §7.5; 350

`\mglselementposthook` glossaries-extra v1.48+

Hook performed after each (non-skipped) element in a multi-entry set. §7.5; 349

`\mglselementprehook` glossaries-extra v1.48+

Hook performed before each (non-skipped) element in a multi-entry set. §7.5; 349

`\mglselementreset``{〈entry-label〉}`glossaries-extra v1.48+

Used by options such as resetall to reset an element’s first use flag (taking the presetlocal option into account). §7.10; 364

`\mglselementunset``{〈entry-label〉}`glossaries-extra v1.48+

Used by options such as unsetall to unset an element’s first use flag (taking the presetlocal option into account). §7.10; 364

`\mglsfield` initial: useri; glossaries-extra v1.48+

Expands to the internal field label required by `\mglsusefield`. §7.11.3; 368

`\mglsforelements``{〈multi-label〉}{〈cs〉}{〈body〉}`glossaries-extra v1.48+

Iterates over the list of element labels for the multi-entry identified by 〈multi-label〉. §7.13; 372

`\mglsforotherelements``{〈multi-label〉}{〈cs〉}{〈body〉}`glossaries-extra v1.48+

As `\mglsforelements` but skips the main entry label. §7.13; 373

`\Mglsfull``[〈options〉]{〈multi-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries-extra v1.48+

As `\mglsfull` but sentence case. §7.11.2; 367

`\mglsfull``[〈options〉]{〈multi-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries-extra v1.48+

As `\mgls` but uses `\glsxtrfull` for any elements that have the short field set and `\glsfirst` otherwise. §7.11.2; 366

`\mglshascategoryprefix``{〈category-label〉}{〈true〉}{〈false〉}`glossaries-extra v1.48+

Does 〈true〉 if the given multi-entry category has a prefix set otherwise does 〈false〉. §7.3; 344

`\mglshascategorysuffix``{〈category-label〉}{〈true〉}{〈false〉}`glossaries-extra v1.48+

Does 〈true〉 if the given multi-entry category has a suffix set otherwise does 〈false〉. §7.3; 344

`\mglsiflast``{〈true〉}{〈false〉}`glossaries-extra v1.48+

For use in multi-entry hooks, this expands to 〈true〉 if this is the last iteration otherwise expands to 〈false〉. §7.5; 350

`\mglsiflastelementcapscase``{〈no-change〉}{〈firstuc〉}{〈all caps〉}`glossaries-extra v1.48+

For use in multi-entry suffix and post-link hooks, this expands to the 〈no-change〉 if the last element had no case-change applied, to 〈firstuc〉 if the last element had sentence case applied or to 〈all caps〉 if the last element had all caps applied. §7.6.1; 353

`\mglsiflastelementskipped``{〈true〉}{〈false〉}`glossaries-extra v1.48+

For use in multi-entry suffix and post-link hooks, this expands to the 〈true〉 if the last element was skipped, otherwise to 〈false〉. §7.6.1; 352

`\mglsiflastelementwasfirstuse``{〈true〉}{〈false〉}`glossaries-extra v1.48+

For use in multi-entry suffix and post-link hooks, this expands to the 〈true〉 if the last element was used for the first time, otherwise to 〈false〉. §7.6.1; 352

`\mglsiflastelementwasplural``{〈true〉}{〈false〉}`glossaries-extra v1.48+

For use in multi-entry suffix and post-link hooks, this expands to the 〈true〉 if the last element had the plural form displayed, otherwise to 〈false〉. §7.6.1; 352

`\mglsiflastmaincapscase``{〈no-change〉}{〈firstuc〉}{〈all caps〉}`glossaries-extra v1.48+

For use in multi-entry suffix and post-link hooks, this expands to the 〈no-change〉 if the main element from the multi-entry just referenced had no case-change applied, to 〈firstuc〉 if the last element had sentence case applied or to 〈all caps〉 if the last element had all caps applied. §7.6.2; 354

`\mglsiflastmainskipped``{〈true〉}{〈false〉}`glossaries-extra v1.48+

For use in multi-entry suffix and post-link hooks, this expands to the 〈true〉 if the main element from the multi-entry just referenced was skipped, otherwise to 〈false〉. §7.6.2; 353

`\mglsiflastmainwasfirstuse``{〈true〉}{〈false〉}`glossaries-extra v1.48+

For use in multi-entry suffix and post-link hooks, this expands to the 〈true〉 if the main element from the multi-entry just referenced was used for the first time, otherwise to 〈false〉. §7.6.2; 353

`\mglsiflastmainwasplural``{〈true〉}{〈false〉}`glossaries-extra v1.48+

For use in multi-entry suffix and post-link hooks, this expands to the 〈true〉 if the main element from the multi-entry just referenced had the plural form shown, otherwise to 〈false〉. §7.6.2; 353

`\mglsisfirstuse``{〈true〉}{〈false〉}`glossaries-extra v1.48+

For use in multi-entry hooks, this expands to 〈true〉 if this is the first use otherwise expands to 〈false〉. §7.5; 350

`\mglslastcategory` glossaries-extra v1.48+

For use in multi-entry suffix and post-link hooks, this expands to the multi-entry category or nothing, if no category assigned. §7.6; 352

`\mglslastelementlabel` glossaries-extra v1.48+

For use in multi-entry suffix and post-link hooks, this expands to the label of the last non-skipped element. §7.6.1; 352

`\mglslastelementpostlinkhook` glossaries-extra v1.48+

Hook used with the mpostlinkelement=last option. §7.6; 351

`\mglslastmainlabel` glossaries-extra v1.48+

For use in multi-entry suffix and post-link hooks, this expands to the label of the main element that was just referenced. §7.6.2; 353

`\mglslastmainpostlinkhook` glossaries-extra v1.48+

Hook used with the mpostlinkelement=main option. §7.6; 351

`\mglslastmultilabel` glossaries-extra v1.48+

For use in multi-entry suffix and post-link hooks, this expands to the multi-entry label. §7.6; 351

`\mglslocalreset``{〈multi-label〉}`glossaries-extra v1.48+

Locally resets the first use flag for the given multi-entry. §7.7; 354

`\mglslocalunset``{〈multi-label〉}`glossaries-extra v1.48+

Locally unsets the first use flag for the given multi-entry. §7.7; 354

`\mglslocalunsetothers``{〈multi-label〉}`glossaries-extra v1.48+

Locally unsets the first use flag for the other (not main) elements of the given multi-entry. §7.10; 364

`\Mglslong``[〈options〉]{〈multi-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries-extra v1.48+

As `\mglslong` but sentence case. §7.11.2; 367

`\mglslong``[〈options〉]{〈multi-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries-extra v1.48+

As `\mgls` but uses `\glsxtrlong` for any elements that have the long field set and `\glstext` otherwise. §7.11.2; 366

`\MGLSmainpl``[〈options〉]{〈multi-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries-extra v1.48+

As `\mgls` but uses `\GLSpl` for the main element and `\GLS` for the others. §7.11.1; 366

`\MGlsmainpl``[〈options〉]{〈multi-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries-extra v1.48+

As `\mgls` but uses `\Glspl` for the main entry and `\Gls` for the others. §7.11.1; 365

`\Mglsmainpl``[〈options〉]{〈multi-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries-extra v1.48+

As `\mgls` uses sentence case for the first element and the plural form for the main element. §7.11.1; 365

`\mglsmainpl``[〈options〉]{〈multi-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries-extra v1.48+

As `\mgls` but uses the plural form for the main element. §7.11.1; 365

`\MGlsname``[〈options〉]{〈multi-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries-extra v1.48+

As `\mgls` but uses `\Glsname`. §7.11.3; 367

`\Mglsname``[〈options〉]{〈multi-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries-extra v1.48+

As `\mgls` but uses `\Glsname` for the first entry and `\glsname` for the remaining entries. §7.11.3; 367

`\mglsname``[〈options〉]{〈multi-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries-extra v1.48+

As `\mgls` but uses `\glsname`. §7.11.3; 367

`\MGLSpl``[〈options〉]{〈multi-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries-extra v1.48+

As `\mgls` but uses `\GLSpl` for each element. §7.11.1; 366

`\MGlspl``[〈options〉]{〈multi-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries-extra v1.48+

As `\mgls` but uses `\Glspl` for each element. §7.11.1; 365

`\Mglspl``[〈options〉]{〈multi-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries-extra v1.48+

As `\mgls` but uses `\Glspl` for the first element and `\glspl` for the remaining elements. §7.11.1; 365

`\mglspl``[〈options〉]{〈multi-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries-extra v1.48+

As `\mgls` but uses the plural form for each element. §7.11.1; 365

`\mglsprefix` glossaries-extra v1.48+

Code used to typeset the multi-entry prefix. §7.3; 342

`\mglsreset``{〈multi-label〉}`glossaries-extra v1.48+

Globally resets the first use flag for the given multi-entry. §7.7; 354

`\mglsresetall` glossaries-extra v1.48+

Resets the first use flag for all multi-entries. §7.7; 355

`\mglsseefirstitem``{〈multi-label〉}`glossaries-extra v1.48+

Formatting command used by cross-reference lists for the first item if the item is a multi-entry. §7.12; 371

`\mglsseeitem``{〈multi-label〉}`glossaries-extra v1.48+

Formatting command used by cross-reference lists for subsequent items if the item is a multi-entry. §7.12; 371

`\mglsSetMain``{〈multi-label〉}{〈new-main-label〉}`glossaries-extra v1.48+

Locally changes the main element for the given multi-entry.

`\mglsSetOptions``{〈multi-label〉}{〈new-options〉}`glossaries-extra v1.48+

Locally sets the options associated with the given multi-entry. §7; 327

`\Mglsshort``[〈options〉]{〈multi-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries-extra v1.48+

As `\mglsshort` but sentence case. §7.11.2; 366

`\mglsshort``[〈options〉]{〈multi-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries-extra v1.48+

As `\mgls` but uses `\glsxtrshort` for any elements that have the short field set and `\glstext` otherwise. §7.11.2; 366

`\mglssuffix` glossaries-extra v1.48+

Code used to typeset the multi-entry suffix. §7.3; 343

`\MGlssymbol``[〈options〉]{〈multi-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries-extra v1.48+

As `\mgls` but uses `\glssymbol` if the symbol field is set and `\Gls` otherwise. §7.11.3; 367

`\Mglssymbol``[〈options〉]{〈multi-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries-extra v1.48+

As `\mgls` but uses `\glssymbol` if the symbol field is set, otherwise it uses `\Gls` for the first element and `\gls` for the remaining elements. §7.11.3; 367

`\mglssymbol``[〈options〉]{〈multi-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries-extra v1.48+

As `\mgls` but uses `\glssymbol` if the symbol field is set and `\gls` otherwise. §7.11.3; 367

`\mglsunset``{〈multi-label〉}`glossaries-extra v1.48+

Globally unsets the first use flag for the given multi-entry. §7.7; 354

`\mglsunsetall` glossaries-extra v1.48+

Unsets the first use flag for all multi-entries. §7.7; 355

`\mglsunsetothers``{〈multi-label〉}`glossaries-extra v1.48+

Globally unsets the first use flag for the other (not main) elements of the given multi-entry. §7.10; 364

`\mglsusecategoryprefix``{〈category-label〉}`glossaries-extra v1.48+

Expands to the prefix assigned to the given multi-entry category or does nothing if no prefix assigned. §7.3; 344

`\mglsusecategorysuffix``{〈category-label〉}`glossaries-extra v1.48+

Expands to the suffix assigned to the given multi-entry category or does nothing if no suffix assigned. §7.3; 344

`\MGlsusefield``[〈options〉]{〈multi-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries-extra v1.48+

As `\mglsusefield` but sentence case for each element. §7.11.3; 368

`\Mglsusefield``[〈options〉]{〈multi-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries-extra v1.48+

As `\mglsusefield` but sentence case for the first element. §7.11.3; 368

`\mglsusefield``[〈options〉]{〈multi-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries-extra v1.48+

As `\mgls` but uses `\glsdisp` if the field identified by `\mglsfield` exists with the link text obtained from the field value. §7.11.3; 368

`\mglswasfirstuse``{〈true〉}{〈false〉}`glossaries-extra v1.48+

For use in multi-entry suffix and post-link hooks, this expands to the 〈true〉 if this was the first use of the multi-entry, otherwise to 〈false〉. §7.6; 352

`\MPGLS``[〈options〉]{〈multi-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries-extra v1.48+

As `\mpgls` but all caps for the all elements. §7.11.4; 371

`\MPGls``[〈options〉]{〈multi-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries-extra v1.48+

As `\mpgls` but sentence case for all elements. §7.11.4; 370

`\Mpgls``[〈options〉]{〈multi-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries-extra v1.48+

As `\mpgls` but sentence case for the first element. §7.11.4; 370

`\mpgls``[〈options〉]{〈multi-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries-extra v1.48+

As `\mgls` but uses `\pgls` for the first element. §7.11.4; 369

`\MPGLSmainpl``[〈options〉]{〈multi-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries-extra v1.48+

As `\mpglsmainpl` but all caps for the all elements. §7.11.4; 371

`\MPGlsmainpl``[〈options〉]{〈multi-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries-extra v1.48+

As `\mpglsmainpl` but sentence case for all elements. §7.11.4; 370

`\Mpglsmainpl``[〈options〉]{〈multi-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries-extra v1.48+

As `\mpglspl` but sentence case for the first element. §7.11.4; 370

`\mpglsmainpl``[〈options〉]{〈multi-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries-extra v1.48+

As `\mgls` but uses `\pglspl` for the first element if its the main element otherwise `\pgls` and, for the remaining elements, uses `\glspl` if the element is the main entry or `\gls` otherwise. §7.11.4; 370

`\MPGLSpl``[〈options〉]{〈multi-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries-extra v1.48+

As `\mpglspl` but all caps for the all elements. §7.11.4; 371

`\MPGlspl``[〈options〉]{〈multi-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries-extra v1.48+

As `\mpglspl` but sentence case for all elements. §7.11.4; 370

`\mpglspl``[〈options〉]{〈multi-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries-extra v1.48+

As `\mgls` but uses `\pglspl` for the first element and `\glspl` for the remaining elements. §7.11.4; 370

`\mpglsWarning` glossaries-extra v1.48+

Issues a warning with `\GlossariesExtraWarning` indicating that glossaries-prefix is required for `\mpgls` family of commands. §7.11.4; 369

`\Mu` glossaries-extra-bib2gls v1.27+

Defined with `\providecommand`, this just does `\mathrm{M}`. §11.5.8; 596

`\multiglossaryentry``[〈options〉]{〈multi-label〉}[〈main-label〉]{〈entry-label-list〉}`glossaries-extra v1.48+

Defines a multi-entry set with the label 〈multi-label〉, consisting of the entries whose labels are listed in 〈entry-label-list〉, where the main entry (which must be present in 〈entry-label-list〉) is identified by 〈main-label〉 (or the final element in 〈entry-label-list〉, if 〈main-label〉 is omitted). §7; 325

`\multiglossaryentryglobalfalse` glossaries-extra v1.48+

Sets `\ifmultiglossaryentryglobal` to false. §7; 327

`\multiglossaryentryglobaltrue` glossaries-extra v1.48+

Sets `\ifmultiglossaryentryglobal` to true. §7; 326

`\multiglossaryentrysetup``{〈options〉}`glossaries-extra v1.48+

Specifies a general set of options to apply to all multi-entries. §7.9; 356

[top]

## N
[link]

`\newabbr``[〈options〉]{〈entry-label〉}{〈short〉}{〈long〉}`

A synonym for `\newabbreviation` defined by the shortcuts=abbreviations or shortcuts=ac package option. §4.3.2; Table 4.1

`\newabbreviation``[〈options〉]{〈entry-label〉}{〈short〉}{〈long〉}`

Defines a new entry that represents an abbreviation. This internally uses `\newglossaryentry` and any provided 〈options〉 (glossary entry keys) will be appended. The category is set to abbreviation by default, but may be overridden in 〈options〉. The appropriate style should be set before the abbreviation is defined with `\setabbreviationstyle`. §4.1; 41

`\newabbreviationhook`

Hook provided within `\newabbreviation` just before the entry is defined. §4.1.5; 45

`\newabbreviationstyle``{〈style-name〉}{〈setup〉}{〈display definitions〉}`

Defines an abbreviation style, which can be set with `\setabbreviationstyle`. §4.5.3; 160

`\newacronym``[〈options〉]{〈entry-label〉}{〈short〉}{〈long〉}`glossaries

This command is provided by the base glossaries package but is redefined by glossaries-extra to use `\newabbreviation` with the category key set to acronym. The appropriate style should be set before the abbreviation is defined with ``\setabbreviationstyle`[acronym]{〈style〉}`. You can override the category in 〈options〉 but remember to change the optional argument of `\setabbreviationstyle` to match.

🛇`\newacronymstyle``{〈name〉}{〈format def〉}{〈display defs〉}`glossaries v4.02+

Defines an acronym style for use with the base glossaries package’s acronym mechanism. These styles are not compatible with glossaries-extra. Use `\newabbreviationstyle` instead.

`\newdglsfield``[〈default-options〉]{〈field〉}{〈cs〉}`glossaries-extra-bib2gls v1.49+

Defines the command 〈cs〉[〈options〉]{〈entry-label〉} to behave like ``\dglsfield`[〈default-options〉,〈options〉]{〈entry-label〉}{〈field〉}`. §11.5.7; 590

`\newdglsfieldlike``[〈default-options〉]{〈field〉}{〈cs〉}{〈Cs〉}{〈CS〉}`glossaries-extra-bib2gls v1.49+

Similar to `\newdglsfield` but also defines sentence case (〈Cs〉) and all caps (〈CS〉) commands with mappings. §11.5.7; 590

`\newentry``{〈entry-label〉}{〈options〉}`

A synonym for `\newglossaryentry` defined by the shortcuts=other package option. §2.4; 18

`\newglossary``[〈log-ext〉]{〈glossary-label〉}{〈in-ext〉}{〈out-ext〉}{〈title〉}[〈counter〉]`glossaries

Defines a glossary identified by 〈glossary-label〉 (which can be referenced by the type key when defining an entry). The 〈title〉 will be used when displaying the glossary (using commands like `\printglossary`), but this title can be overridden by the title option. The optional 〈counter〉 indicates which counter should be used by default for the location when indexing any entries that have been assigned to this glossary. (This can be overridden by the counter option.) The other arguments are file extensions for use with makeindex or xindy. These arguments aren’t relevant for other indexing options (in which case, you may prefer to use `\newglossary*`).

`\newglossary*``{〈glossary-label〉}{〈title〉}[〈counter〉]`glossaries v4.08+

A shortcut that supplies file extensions based on the glossary label:

    \newglossary[〈glossary-label〉-glg]{〈glossary-label〉}{〈glossary-label〉-gls}{〈〈glossary-label〉-glo〉}{〈title〉}[〈counter〉]

`\newglossaryentry``{〈entry-label〉}{〈key=value list〉}`glossaries

Defines a new glossary entry with the given label. The second argument is a comma-separated list of glossary entry keys.

`\newignoredglossary``{〈glossary-label〉}`glossaries v4.08+

Defines a glossary that should be ignored by iterative commands, such as `\printglossaries`. This glossary has no associated indexing files and has hyperlinks disabled. You can use an ignored glossary for common terms or abbreviations that don’t need to be included in any listing (but you may want these terms defined as entries to allow automated formatting with the `\gls`-like commands). An ignored glossary can’t be displayed with `\printglossary` but may be displayed with the “unsrt” family of commands, such as `\printunsrtglossary`.

`\newignoredglossary*``{〈glossary-label〉}`glossaries-extra v1.11+

This is like the unstarred `\newignoredglossary` but doesn’t disable hyperlinks. You will need to ensure that the hypertargets are defined. For example, with `\printunsrtglossary` or through standalone entrys. §8; 377

`\newnum``[〈key=value list〉]{〈entry-label〉}{〈num〉}`

A synonym for `\glsxtrnewnumber` defined by the shortcuts=other package option (provided the numbers option is also used). §2.4; 19

`\newsym``[〈key=value list〉]{〈entry-label〉}{〈sym〉}`

A synonym for `\glsxtrnewsymbol` defined by the shortcuts=other package option (provided the symbols option is also used). §2.4; 18

`\newterm``[〈key=value list〉]{〈entry-label〉}`glossaries v4.02+

(requires index package option)

Defines a new glossary entry with the given label, type set to `index`, the name set to 〈entry-label〉 and the description set to `\nopostdesc`. The optional argument is a comma-separated list of glossary entry keys, which can be used to override the defaults. §2.1; 12

`\NIN`

Defined by `\GlsXtrResourceInitEscSequences` to expand to detokenized `\NIN`. §11.5.2; 559

`\nopostdesc` glossaries v1.17+

When placed at the end of the description, this switches off the post-description hook (including the post-description punctuation). Does nothing outside of the glossary.

`\NOTPREFIXOF`

Defined by `\GlsXtrResourceInitEscSequences` to expand to detokenized `\NOTPREFIXOF`. §11.5.2; 559

`\NOTSUFFIXOF`

Defined by `\GlsXtrResourceInitEscSequences` to expand to detokenized `\NOTSUFFIXOF`. §11.5.2; 559

`\Nu` glossaries-extra-bib2gls v1.27+

Defined with `\providecommand`, this just does `\mathrm{N}`. §11.5.8; 596

`\NULL`

Defined by `\GlsXtrResourceInitEscSequences` to expand to detokenized `\NULL`. §11.5.2; 559

[top]

## O
[link]

`\Omicron` glossaries-extra-bib2gls v1.27+

Defined with `\providecommand`, this just does `\mathrm{O}`. §11.5.8; 596

`\omicron` glossaries-extra-bib2gls v1.27+

Defined with `\providecommand`, this just does `\mathrm{O}`. §11.5.8; 596

[top]

## P
[link]

`\pagelistname` initial: Page List; glossaries

(language-sensitive)

Expands to the title of the location list column for headed tabular-like styles.

`\PGLS``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries-prefix

As `\pgls` but all caps.

`\Pgls``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries-prefix

As `\pgls` but sentence case.

`\pgls``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries-prefix

Similar to `\gls` but inserts the appropriate prefix, if provided.

`\PGLSfmtlong``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries-extra v1.49+

(requires glossaries-prefix)

As `\pglsfmtlong` but all caps. §5.3.2; 208

`\Pglsfmtlong``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries-extra v1.49+

(requires glossaries-prefix)

As `\pglsfmtlong` but sentence case. §5.3.2; 208

`\pglsfmtlong``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries-extra v1.49+

As `\glsfmtlong` but inserts the prefixfirst field and separator in front if set. §5.3.2; 208

`\PGLSfmtlongpl``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries-extra v1.49+

(requires glossaries-prefix)

As `\pglsfmtlongpl` but all caps. §5.3.2; 209

`\Pglsfmtlongpl``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries-extra v1.49+

(requires glossaries-prefix)

As `\pglsfmtlongpl` but sentence case. §5.3.2; 209

`\pglsfmtlongpl``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries-extra v1.49+

(requires glossaries-prefix)

As `\glsfmtlongpl` but inserts the prefixfirstplural field and separator in front if set. §5.3.2; 209

`\PGLSfmtshort``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries-extra v1.49+

(requires glossaries-prefix)

As `\pglsfmtshort` but all caps. §5.3.2; 206

`\Pglsfmtshort``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries-extra v1.49+

(requires glossaries-prefix)

As `\pglsfmtshort` but sentence case. §5.3.2; 206

`\pglsfmtshort``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries-extra v1.49+

(requires glossaries-prefix)

As `\glsfmtshort` but inserts the prefix field and separator in front if set. §5.3.2; 206

`\PGLSfmtshortpl``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries-extra v1.49+

(requires glossaries-prefix)

As `\pglsfmtshortpl` but all caps. §5.3.2; 207

`\Pglsfmtshortpl``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries-extra v1.49+

(requires glossaries-prefix)

As `\pglsfmtshortpl` but sentence case. §5.3.2; 207

`\pglsfmtshortpl``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries-extra v1.49+

(requires glossaries-prefix)

As `\glsfmtshortpl` but inserts the prefixplural field and separator in front if set. §5.3.2; 207

`\PGLSpl``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries-prefix

As `\pgls` but all caps.

`\Pglspl``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries-prefix

As `\pgls` but sentence case.

`\pglspl``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries-prefix

Similar to `\glspl` but inserts the appropriate prefix, if provided.

`\PGLSxtrlong``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries-extra v1.49+

(requires glossaries-prefix)

As `\pglsxtrlong` but all caps. §4.3.1; 55

`\Pglsxtrlong``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries-extra v1.49+

(requires glossaries-prefix)

As `\pglsxtrlong` but sentence case. §4.3.1; 55

`\pglsxtrlong``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries-extra v1.49+

(requires glossaries-prefix)

As `\glsxtrlong` but inserts the prefixfirst field and separator in front if set. §4.3.1; 55

`\PGLSxtrlongpl``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries-extra v1.49+

(requires glossaries-prefix)

As `\pglsxtrlongpl` but all caps. §4.3.1; 56

`\Pglsxtrlongpl``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries-extra v1.49+

(requires glossaries-prefix)

As `\pglsxtrlongpl` but sentence case. §4.3.1; 56

`\pglsxtrlongpl``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries-extra v1.49+

(requires glossaries-prefix)

As `\glsxtrlongpl` but inserts the prefixfirstplural field and separator in front if set. §4.3.1; 55

`\PGLSxtrshort``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries-extra v1.49+

(requires glossaries-prefix)

As `\pglsxtrshort` but all caps. §4.3.1; 55

`\Pglsxtrshort``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries-extra v1.49+

(requires glossaries-prefix)

As `\pglsxtrshort` but sentence case. §4.3.1; 54

`\pglsxtrshort``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries-extra v1.49+

(requires glossaries-prefix)

As `\glsxtrshort` but inserts the prefix field and separator in front if set. §4.3.1; 54

`\PGLSxtrshortpl``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries-extra v1.49+

(requires glossaries-prefix)

As `\pglsxtrshortpl` but all caps. §4.3.1; 55

`\Pglsxtrshortpl``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries-extra v1.49+

(requires glossaries-prefix)

As `\pglsxtrshortpl` but sentence case. §4.3.1; 55

`\pglsxtrshortpl``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries-extra v1.49+

(requires glossaries-prefix)

As `\glsxtrshortpl` but inserts the prefixplural field and separator in front if set. §4.3.1; 55

`\Pglsxtrtitlelong``{〈entry-label〉}`glossaries-extra v1.49+

(requires glossaries-prefix)

The normal behaviour of `\Pglsfmtlong`. §5.3.3; 218

`\Pglsxtrtitlelongpl``{〈entry-label〉}`glossaries-extra v1.49+

(requires glossaries-prefix)

The normal behaviour of `\Pglsfmtlongpl`. §5.3.3; 218

`\Pglsxtrtitleshort``{〈entry-label〉}`glossaries-extra v1.49+

(requires glossaries-prefix)

The normal behaviour of `\Pglsfmtshort`. §5.3.3; 218

`\Pglsxtrtitleshortpl``{〈entry-label〉}`glossaries-extra v1.49+

(requires glossaries-prefix)

The normal behaviour of `\Pglsfmtshortpl`. §5.3.3; 218

`\PREFIXOF`

Defined by `\GlsXtrResourceInitEscSequences` to expand to detokenized `\PREFIXOF`. §11.5.2; 559

`\pretoglossarypreamble``[〈type〉]{〈text〉}`glossaries-extra v1.12+

Prepends (locally) 〈text〉 to the preamble for the glossary identified by 〈type〉. If 〈type〉 is omitted, `\glsdefaulttype` is assumed. §8.2; 380

`\printabbreviations``[〈options〉]`

(requires ``\usepackage`[abbreviations]{glossaries-extra}`)

Shortcut for ``\printglossary`[type=`\glsxtrabbrvtype`]`. §2.1; 9

`\printacronyms``[〈options〉]`glossaries

(requires the acronyms package option)

Shortcut for ``\printglossary`[type=`\acronymtype`]`.

`\printglossaries` glossaries

Iterates over all non-ignored glossaries and does ``\printglossary`[type=〈type〉]` for each glossary.

`\printglossary``[〈options〉]`glossaries

Displays the glossary by inputting a file created by makeindex or xindy. Must be used with `\makeglossaries` and either makeindex or xindy.

`\printindex``[〈options〉] v4.02+`

(requires the index package option)

Shortcut provided by the index package option that simply does ``\printglossary`[type=index]`.

`\printnoidxglossaries` glossaries v4.04+

Iterates over all non-ignored glossaries and does ``\printnoidxglossary`[type=〈type〉]` for each glossary.

`\printnoidxglossary``[〈options〉]`glossaries v4.04+

Displays the glossary by obtaining the indexing information from the aux file and using TeX to sort and collate. Must be used with `\makenoidxglossaries` or with the glossaries not identified in the optional argument of `\makeglossaries` when using the hybrid method. This method can be very slow and has limitations.

`\printnumbers``[〈options〉]`glossaries v4.02+

(requires the numbers package option)

Shortcut for ``\printglossary`[type=numbers]`.

`\printsymbols``[〈options〉]`glossaries v4.02+

(requires the symbols package option)

Shortcut for ``\printglossary`[type=symbols]`.

`\printunsrtabbreviations``[〈options〉]`glossaries-extra-bib2gls v1.40+

(requires ``\usepackage`[abbreviations,record]{glossaries-extra}`)

Shortcut for ``\printunsrtglossary`[type=`\glsxtrabbrvtype`]`. §11.5.1; 557

`\printunsrtacronyms``[〈options〉]`glossaries-extra-bib2gls v1.40+

(requires ``\usepackage`[acronyms,record]{glossaries-extra}`)

Shortcut for ``\printunsrtglossary`[type=`\acronymtype`]`. §11.5.1; 557

`\printunsrtglossaries` glossaries-extra v1.08+

Iterates over all non-ignored glossaries and does ``\printunsrtglossary`[type=〈type〉]` for each glossary. §8.4; 386

`\printunsrtglossary``[〈options〉]`glossaries-extra v1.08+

Displays the glossary by iterating over all entries associated with the given glossary (in the order in which they were added to the glossary). Group headers will only be inserted if the group key has been defined and has been set (typically with the record option and bib2gls). Location lists will only be shown if the location or loclist fields have been set (typically by bib2gls). §8.4; 385

`\printunsrtglossary*``[〈options〉]{〈init-code〉}`glossaries-extra v1.12+

Does `{〈init-code〉`\printunsrtglossary`[〈options〉]}` which localises 〈init-code〉. §8.4; 385

`\printunsrtglossaryentryprocesshook``{〈entry-label〉}`glossaries-extra v1.21+

Hook used within the “unsrt” family of commands while the glossary is being constructed. §8.4.3; 404

`\printunsrtglossarygrouphook``{〈internal cs〉}`glossaries-extra v1.50+

Hook used within the “unsrt” family of commands while the group header is being constructed. §8.4.1; 395

`\printunsrtglossaryhandler``{〈entry-label〉}`glossaries-extra v1.16+

Used within the “unsrt” family of commands to process the current entry. §8.4.3; 406

`\printunsrtglossarypostbegin``{〈internal cs〉}`glossaries-extra v1.50+

Hook used within the “unsrt” family of commands while the glossary is being constructed just after ``\begin{theglossary}`` is added. §8.4.3; 402

`\printunsrtglossarypostentryprocesshook``{〈internal cs〉}`glossaries-extra v1.50+

Hook used within the “unsrt” family of commands while the glossary is being constructed after the entry line has been added. §8.4.3; 405

`\printunsrtglossarypredoglossary` glossaries-extra v1.21+

Hook performed by the “unsrt” family of commands just before the glossary body is displayed. §8.4.3; 405

`\printunsrtglossarypreend``{〈internal cs〉}`glossaries-extra v1.50+

Hook used within the “unsrt” family of commands while the glossary is being constructed just before ``\end{theglossary}`` is added. §8.4.3; 403

`\printunsrtglossarypreentryprocesshook``{〈internal cs〉}`glossaries-extra v1.50+

Hook used within the “unsrt” family of commands while the glossary is being constructed before the entry line has been added. §8.4.3; 404

`\printunsrtglossaryskipentry` glossaries-extra v1.21+

May be used within `\printunsrtglossaryentryprocesshook` to skip the current entry. §8.4.3; 404

`\printunsrtglossaryunit``[〈options〉]{〈counter-name〉}`glossaries-extra v1.12+

Provided for use with `\GlsXtrRecordCounter` to display a glossary with `\printunsrtglossary*` that filters entries that don’t have a match for the current 〈counter-name〉 value. §8.4.3.2; 412

`\printunsrtglossaryunitpostskip` glossaries-extra v1.49+

The vertical space at the end of the glossary appended by `\printunsrtglossaryunit`. §8.4.3.2; 413

`\printunsrtglossaryunitsetup``{〈counter-name〉}`glossaries-extra v1.12+

Sets up the filtering used by `\printunsrtglossaryunit`. §8.4.3.2; 413

`\printunsrtindex``[〈options〉]`glossaries-extra-bib2gls v1.40+

(requires ``\usepackage`[index,record]{glossaries-extra}`)

Shortcut provided by the index package option combined with glossaries-extra-bib2gls that simply does ``\printunsrtglossary`[type=index]`. §11.5.1; 558

`\printunsrtinnerglossary``[〈options〉]{〈pre-code〉}{〈post-code〉}`glossaries-extra v1.44+

Similar to `\printunsrtglossary` but doesn’t contain the code that starts and ends the glossary (such as beginning and ending the theglossary environment), so this command needs to be either placed inside printunsrtglossarywrap or in the `\printunsrtglossary` entry handler `\printunsrtglossaryhandler`. §8.4.3.1; 407

`\printunsrtnumbers``[〈options〉]`glossaries-extra-bib2gls v1.40+

(requires ``\usepackage`[numbers,record]{glossaries-extra}`)

Shortcut provided by the numbers package option combined with glossaries-extra-bib2gls that simply does ``\printunsrtglossary`[type=numbers]`. §11.5.1; 557

`\printunsrtsymbols``[〈options〉]`glossaries-extra-bib2gls v1.40+

(requires ``\usepackage`[symbols,record]{glossaries-extra}`)

Shortcut for ``\printunsrtglossary`[type=symbols]`. §11.5.1; 557

`\printunsrttable``[〈options〉]`glossary-table v1.49+

Internally uses `\printunsrtglossary` with the table style. §8.7.4; 481

`\provideignoredglossary``{〈glossary-label〉}`modifier: * glossaries-extra v1.12+

As `\newignoredglossary` but does nothing if the glossary has already been defined. §8; 378

`\providemultiglossaryentry``[〈options〉]{〈multi-label〉}[〈main-label〉]{〈entry-label-list〉}`glossaries-extra v1.48+

As `\multiglossaryentry` but does nothing if a multi-entry set has already been defined with the given label. §7; 326

`\ProvidesGlossariesExtraLang``{〈tag〉}`

Should be placed at the start of a glossaries-extra ldf file. §15; 616

[top]

## R
[link]

`\renewabbreviationstyle``{〈style-name〉}{〈setup〉}{〈display definitions〉}`glossaries-extra v1.04+

Redefines an abbreviation style. §4.5.3; 161

`\RequireGlossariesExtraLang``{〈tag〉}`

Indicates that a glossaries-extra ldf file should be input, if it hasn’t already been input.

`\RestoreAcronyms`

Restores `\newacronym` to the base glossaries mechanism. Not recommended. §4.6; 181

`\rGLS``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries-extra v1.21+

Like `\GLS` but hooks into the entry’s record count. §11.4; 549

`\rGls``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries-extra v1.21+

Like `\Gls` but hooks into the entry’s record count. §11.4; 549

`\rgls``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries-extra v1.21+

Like `\gls` but hooks into the entry’s record count. §11.4; 548

`\rGLSformat``{〈entry-label〉}{〈insert〉}`glossaries-extra v1.21+

Format used by `\rGLS` if the entry’s record count is more than the given trigger value. §11.4; 549

`\rGlsformat``{〈entry-label〉}{〈insert〉}`glossaries-extra v1.21+

Format used by `\rGls` if the entry’s record count is more than the given trigger value. §11.4; 549

`\rglsformat``{〈entry-label〉}{〈insert〉}`glossaries-extra v1.21+

Format used by `\rgls` if the entry’s record count is more than the given trigger value. §11.4; 548

`\rGLSpl``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries-extra v1.21+

Like `\GLSpl` but hooks into the entry’s record count. §11.4; 549

`\rGlspl``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries-extra v1.21+

Like `\Glspl` but hooks into the entry’s record count. §11.4; 549

`\rglspl``[〈options〉]{〈entry-label〉}[〈insert〉]`modifiers: * + 〈alt-mod〉 glossaries-extra v1.21+

Like `\glspl` but hooks into the entry’s record count. §11.4; 548

`\rGLSplformat``{〈entry-label〉}{〈insert〉}`glossaries-extra v1.21+

Format used by `\rGLSpl` if the entry’s record count is more than the given trigger value. §11.4; 549

`\rGlsplformat``{〈entry-label〉}{〈insert〉}`glossaries-extra v1.21+

Format used by `\rGlspl` if the entry’s record count is more than the given trigger value. §11.4; 549

`\rglsplformat``{〈entry-label〉}{〈insert〉}`glossaries-extra v1.21+

Format used by `\rglspl` if the entry’s record count is more than the given trigger value. §11.4; 548

`\Rho` glossaries-extra-bib2gls v1.27+

Defined with `\providecommand`, this just does `\mathrm{P}`. §11.5.8; 596

[top]

## S
[link]

`\seealsoname` initial: see also; glossaries-extra v1.16+

(language-sensitive)

Used as a cross-reference tag. The default value is `\alsoname`, if that command has been defined, or “see also”.

`\seename` initial: see

(language-sensitive)

Used as a cross-reference tag (provided by glossaries if not already defined).

`\setabbreviationstyle``[〈category〉]{〈style-name〉}`

Sets the current abbreviation style to 〈style-name〉 for the category identified by 〈category〉. If the optional argument is omitted, abbreviation is assumed. §4.5; 59

🛇`\setacronymstyle``{〈acronym-style-name〉}`glossaries v4.02+

Sets the style for the base glossaries package’s acronym mechanism. These styles are not compatible with glossaries-extra, which redefines `\newacronym` to use `\newabbreviation`. Use:

    \setabbreviationstyle[acronym]{〈abbreviation-style-name〉}

with the closest matching abbreviation style instead.

`\setentrycounter``[〈prefix〉]{〈counter〉}`glossaries

Used to set the location counter and prefix required for `\glshypernumber`.

`\setglossarypreamble``[〈type〉]{〈text〉}`glossaries v3.07+

Globally sets the preamble for the glossary identified by 〈type〉 to 〈text〉. If 〈type〉 is omitted, `\glsdefaulttype` is assumed.

`\setglossarystyle``{〈style-name〉}`glossaries v3.08a+

Set the current glossary style to 〈style-name〉. Redefined by glossaries-extra to include `\glsxtrpreglossarystyle`.

`\setupglossaries``{〈options〉}`glossaries v3.11a+

Change allowed options that are defined by the base glossaries package. Note that some options can only be passed as package options. To change options defined or modified by the glossaries-extra package, use `\glossariesextrasetup`. §2; 9

`\setupglsadd``{〈options〉}`glossaries-extra v1.49+

Set the default options for `\glsadd`. §5.1.1; 189

`\setupglslink``{〈options〉}`glossaries-extra v1.49+

Set the default `\glslink` options. §5.1.1; 189

`\subglossentry``{〈level〉}{〈entry label〉}{〈location list〉}`glossaries v3.08+

Used to format a child entry. This command should be redefined by the glossary style.

`\SUFFIXOF`

Defined by `\GlsXtrResourceInitEscSequences` to expand to detokenized `\SUFFIXOF`. §11.5.2; 559

`\symbolname` initial: Symbol; glossaries

(language-sensitive)

Expands to the title of the symbol column for headed tabular-like styles.

[top]

## T
[link]

`\Tau` glossaries-extra-bib2gls v1.27+

Defined with `\providecommand`, this just does `\mathrm{T}`. §11.5.8; 596

`\theglossaryentry` glossaries v3.0+

The value of the glossaryentry counter.

`\TITLE`

Defined by `\GlsXtrResourceInitEscSequences` to expand to detokenized `\TITLE`. §11.5.2; 559

`\TRIM`

Defined by `\GlsXtrResourceInitEscSequences` to expand to detokenized `\TRIM`. §11.5.2; 559

[top]

## U
[link]

`\u``〈hex〉`

Recognised by bib2gls within some resource options as identifying the Unicode character given by 〈hex〉. Since `\u` is defined by the LaTeX kernel as an accent command, you need to protect it from expansion while the options are written to the aux file (``\string``\u`〈hex〉`). §11.5.2; 559

`\UC`

Defined by `\GlsXtrResourceInitEscSequences` to expand to detokenized `\UC`. §11.5.2; 559

`\Upalpha` glossaries-extra-bib2gls v1.27+

Defined with `\providecommand` and only if upgreek has been loaded, this just does `\mathrm{A}`. §11.5.8; 596

`\Upbeta` glossaries-extra-bib2gls v1.27+

Defined with `\providecommand` and only if upgreek has been loaded, this just does `\mathrm{B}`. §11.5.8; 596

`\Upchi` glossaries-extra-bib2gls v1.27+

Defined with `\providecommand` and only if upgreek has been loaded, this just does `\mathrm{X}`. §11.5.8; 596

`\Upepsilon` glossaries-extra-bib2gls v1.27+

Defined with `\providecommand` and only if upgreek has been loaded, this just does `\mathrm{E}`. §11.5.8; 596

`\Upeta` glossaries-extra-bib2gls v1.27+

Defined with `\providecommand` and only if upgreek has been loaded, this just does `\mathrm{H}`. §11.5.8; 596

`\Upiota` glossaries-extra-bib2gls v1.27+

Defined with `\providecommand` and only if upgreek has been loaded, this just does `\mathrm{I}`. §11.5.8; 596

`\Upkappa` glossaries-extra-bib2gls v1.27+

Defined with `\providecommand` and only if upgreek has been loaded, this just does `\mathrm{K}`. §11.5.8; 596

`\Upmu` glossaries-extra-bib2gls v1.27+

Defined with `\providecommand` and only if upgreek has been loaded, this just does `\mathrm{M}`. §11.5.8; 596

`\Upnu` glossaries-extra-bib2gls v1.27+

Defined with `\providecommand` and only if upgreek has been loaded, this just does `\mathrm{N}`. §11.5.8; 596

`\Upomicron` glossaries-extra-bib2gls v1.27+

Defined with `\providecommand` and only if upgreek has been loaded, this just does `\mathrm{O}`. §11.5.8; 596

`\upomicron` glossaries-extra-bib2gls v1.27+

Defined with `\providecommand` and only if upgreek has been loaded, this just does `\mathrm{o}`. §11.5.8; 596

`\Uprho` glossaries-extra-bib2gls v1.27+

Defined with `\providecommand` and only if upgreek has been loaded, this just does `\mathrm{P}`. §11.5.8; 596

`\Uptau` glossaries-extra-bib2gls v1.27+

Defined with `\providecommand` and only if upgreek has been loaded, this just does `\mathrm{T}`. §11.5.8; 596

`\Upzeta` glossaries-extra-bib2gls v1.27+

Defined with `\providecommand` and only if upgreek has been loaded, this just does `\mathrm{Z}`. §11.5.8; 596

[top]

## W
[link]

`\writemultiglossentry``{〈options〉}{〈multi-label〉}{〈main-label〉}{〈list〉}`glossaries-extra v1.48+

Writes multi-entry information to the aux file. §7.13; 373

[top]

## X
[link]

`\xcapitalisefmtwords``{〈text〉}`mfirstuc v2.03+

Passes the argument to `\capitalisefmtwords` but with the first token in 〈text〉 expanded. The starred version uses the starred version of `\capitalisefmtwords`.

`\xglssetwidest``[〈level〉]{〈name〉}`glossaries-extra-stylemods v1.05+

As `\eglssetwidest` but global. §8.6.5.4; 438

`\xglsupdatewidest``[〈level〉]{〈name〉}`glossaries-extra-stylemods v1.23+

As `\eglsupdatewidest` but global. §8.6.5.4; 438

`\xGlsXtrIfValueInFieldCsvList``{〈entry-label〉}{〈field-label〉}{〈value〉}{〈true〉}{〈false〉}`modifier: * glossaries-extra v1.47+

As `\GlsXtrIfValueInFieldCsvList` but fully expands 〈value〉. §5.13; 306

`\xGlsXtrSetField``{〈entry-label〉}{〈field-label〉}{〈value〉}`glossaries-extra v1.12+

As `\GlsXtrSetField` but expands the value and uses a global assignment. §3.5; 40

`\xpglsxtrpostabbrvfootnote` glossaries-extra v1.49+

Expands to the footnote code required for styles like short-postfootnote. §4.5.2; 160

`\xpglsxtrposthyphenlong` glossaries-extra v1.49+

Used within the post-link hook for the short-hyphen-postlong-hyphen style on first use. This expands the placeholder commands and uses either `\glsxtrposthyphenlong` or `\GLSxtrposthyphenlong`. 152

`\xpglsxtrposthyphenshort` glossaries-extra v1.49+

Used within the post-link hook for the long-hyphen-postshort-hyphen style on first use. This expands the placeholder commands and uses either `\glsxtrposthyphenshort` or `\GLSxtrposthyphenshort`. 150

`\xpglsxtrposthyphensubsequent` glossaries-extra v1.49+

Used within the post-link hook for the long-hyphen-postshort-hyphen style on subsequent use. This expands the placeholder commands and uses either `\glsxtrposthyphensubsequent` or `\GLSxtrposthyphensubsequent`. 151

[top]

## Z
[link]

`\Zeta` glossaries-extra-bib2gls v1.27+

Defined with `\providecommand`, this just does `\mathrm{Z}`. §11.5.8; 596

[top]

# Environment Summary
[link]

`\begin{glstablesubentries}`glossary-table v1.49+

Encapsulates the child list. §8.7.4.1; 485

`\begin{printunsrtglossarywrap}``[〈options〉]`glossaries-extra v1.44+

Sets up the start and end of the glossary (including beginning and ending the theglossary environment). Use `\printunsrtinnerglossary` within the body for each block of entries. §8.4.3.1; 408

`\begin{theglossary}`glossaries

Redefined by glossary styles to set up the way the glossary is displayed. For example, to start and end the description environment for the list styles.

[top]

# Package Option Summary
[link]

`\usepackage`[〈options〉]{glossaries-extra-stylemods}

(or ``\usepackage`[stylemods=〈options〉]{glossaries-extra}`)

Modifies the glossary styles supplied with the base glossaries package to make them more flexible and to integrate support for features provided by glossaries-extra or bib2gls.

all 𝍢

Load all predefined styles.

〈name〉𝍢

Load package glossary-〈name〉.

`\usepackage`[〈options〉]{glossaries-extra}

Extension package that loads glossaries, provides additional commands, and modifies some of the base glossaries commands to integrate them with the new commands or to make them more flexible. §2; 8

abbreviations 𝍢

Provides a new glossary with the label `abbreviations` and title given by `\abbreviationsname`, redefines `\glsxtrabbrvtype` to `abbreviations`, redefines `\acronymtype` to `\glsxtrabbrvtype` (unless the acronym or acronyms option has been used), and provides `\printabbreviations`. §2.1; 9

accsupp 𝍢

Loads glossaries-accsupp. §2.3; 14

autoseeindex=`〈boolean〉`default: true; initial: true 🔘

Indicates whether or not to enable automatic indexing of see and seealso fields. §2.4; 21

autoseeindex=false

Disables automatic indexing of see and seealso fields. 22

autoseeindex=true

Enables automatic indexing of see and seealso fields. 22

bibglsaux=`〈basename〉`initial: empty 🎚glossaries-extra v1.49+

(requires bib2gls v3.0+)

If set, an additional aux file called 〈basename〉.aux will be created in which to store the bib2gls records. This file will be skipped by LaTeX when the main aux file is input but will be read by bib2gls. §2.4; 26

debug=`〈value〉`default: true; initial: false 🎚

Provides debugging information. Some options are also available with just the base glossaries package. §2.5; 28

debug=all glossaries-extra v1.21+

Implements all debugging options. 29

debug=false glossaries v4.24+

Disable debugging actions. 28

debug=showaccsupp glossaries v4.45+

Implements debug=true and also shows accessibility information in the document. 28

debug=showtargets glossaries v4.24+

Implements debug=true and also shows target markers in the document. 29

debug=showwrgloss glossaries-extra v1.21+

Implements debug=true and also shows a marker in the document whenever the entry is indexed and (if used with indexcounter) will mark where the wrglossary counter is incremented. 29

debug=true glossaries v4.24+

Writes `wrglossary(〈type〉)(〈indexing info〉)` to the log file if there is an attempt to index an entry before the associated indexing file has been opened (makeindex and xindy only). With glossaries-extra, this setting will also display the label of any undefined entries that are referenced in the document. 28

docdef=`〈value〉`default: true; initial: false 🎚

Determines whether or not `\newglossaryentry` is permitted in the document environment. §2.4; 16

docdef=atom

As restricted but creates the glsdefs file for atom’s autocomplete support. 17

docdef=false

Don’t allow `\newglossaryentry` in the document environment. 16

docdef=restricted

Allow `\newglossaryentry` in the document environment, but only before any glossaries. 17

docdef=true

Allow `\newglossaryentry` in the document environment if the base glossaries package would allow it. 16

equations=`〈boolean〉`default: true; initial: false 🔘︎

Automatically switch the location counter to equation when inside a numbered equation environment. §2.4; 26

floats=`〈boolean〉`default: true; initial: false 🔘︎

Automatically switch the location counter to the corresponding counter when inside a floating environment. §2.4; 27

indexcounter 𝍢

Defines the index counter wrglossary and implements counter=wrglossary. §2.4; 27

indexcrossrefs=`〈boolean〉`default: true; initial: varies 🔘︎

Indicates whether or not to enable automatic indexing of cross-referenced entries. §2.4; 20

indexcrossrefs=false

Disables automatic indexing of cross-referenced entries. 21

indexcrossrefs=true

Enables automatic indexing of cross-referenced entries. 21

nomissingglstext=`〈boolean〉`default: true; initial: false 🔘︎

Determines whether or not to display warning text if the external glossary file hasn’t been generated due to an incomplete build. §2.1; 9

postdot 𝍢 glossaries-extra v1.12+

A shortcut for nopostdot=false. §2.2; 12

postpunc=`〈value〉`🎚glossaries-extra v1.21+

An alternative to postdot, this can be used to insert a different punctuation character after the description. §2.2; 12

postpunc=comma

Inserts a comma after the description. 13

postpunc=dot

Equivalent to postdot or nopostdot=false. 13

postpunc=none

Switches off automatic post-description punctuation insertion. 13

postpunc=〈punctuation〉

Inserts 〈punctuation〉 after the description.

prefix 𝍢

Loads glossaries-prefix. §2.3; 14

record=`〈value〉`default: only; initial: off 🎚

Indicates whether or not bib2gls is being used (in which case entry indexing is performed by adding bib2gls records in the aux file). §2.4; 23

record=alsoindex alias: hybrid🗑

25

record=hybrid

Performs a mixture of bib2gls records in the aux file (to select entries from a bib file) and makeindex/xindy indexing in their associated files. The actual sorting and collation is performed by the indexing application, so sort=none and save-locations=false should be used in `\GlsXtrLoadResources` (because it’s redundant to make bib2gls sort and collate as well). This setting should be used with `\makeglossaries` before `\GlsXtrLoadResources` and glossaries should be displayed with `\printglossary` (or `\printglossaries`). There’s little point in using this setting unless you have a custom xindy module that you can’t convert to an equivalent set of bib2gls options. 25, 25

record=nameref

Entry indexing is performed by adding bib2gls nameref records in the aux file. Glossaries should be displayed with the “unsrt” family of commands. 24

record=off

Entry indexing is performed as per the base glossaries package, using either `\makeglossaries` or `\makenoidxglossaries`. 23

record=only

Entry indexing is performed by adding bib2gls records in the aux file. Glossaries should be displayed with the “unsrt” family of commands. 24

shortcuts=`{〈value〉}`initial: none 🎚

Defines various shortcut commands (boolean only with just the base glossaries package). §2.4; 17

shortcuts=abbr alias: abbreviations

18

shortcuts=abbreviations

Implements the abbreviation shortcuts. 18, 18

shortcuts=abother

Implements shortcuts=abbreviations and shortcuts=other. 19

shortcuts=ac

Implements the acronym shortcuts that are compatible with `\newabbreviation`. 18

shortcuts=acother

Implements shortcuts=ac and shortcuts=other. 19

shortcuts=acro alias: acronyms

19

shortcuts=acronyms

Implements the acronym shortcuts. Don’t use this option unless you have reverted `\newacronym` back to the base glossaries package’s acronym mechanism. 19, 19

shortcuts=all

Implements shortcuts=ac, shortcuts=abbreviations, shortcuts=other. 19, 19, 20

shortcuts=false alias: all

20

shortcuts=none

Don’t define any shortcut commands.

shortcuts=other

Implements the shortcuts `\newentry`, `\newsym` and `\newnum`. 18

shortcuts=true alias: all

19

showtargets=`〈value〉`🎚glossaries-extra v1.48+

Implements debug=showtargets. §2.5; 29

showtargets=annoteleft

Markers are placed on either side of the link/target with the annotation on the left in all modes. 31

showtargets=annoteright

Markers are placed on either side of the link/target with the annotation on the right in all modes. 31

showtargets=innerleft

A marker and annotation are placed to the left of the link/target in all modes. 31

showtargets=innerright

A marker and annotation are placed to the left of the link/target in all modes. 31

showtargets=left

A marker is placed to the left of the link/target and a marginal note is used in outer mode. 30

showtargets=right

A marker is placed to the right of the link/target and a marginal note is used in outer mode. 30

stylemods=`〈value〉`default: default 🎚

Loads glossaries-extra-stylemods with the given options. If stylemods=default then no options are passed to glossaries-extra-stylemods. §2.2; 13

stylemods=all

Load glossaries-extra-stylemods with all predefined styles. 13

stylemods=default

Load glossaries-extra-stylemods with no options (patches any predefined styles that have been loaded). 13

stylemods=〈list〉

Load glossaries-extra-stylemods with all the listed styles. 14

undefaction=`〈value〉`initial: error 🎚

Indicates whether to trigger an error or warning if an unknown entry label is referenced. §2.4; 15

undefaction=error

Trigger an error if an unknown entry label is referenced. 15

undefaction=warn

Trigger a warning if an unknown entry label is referenced. 15

`\usepackage`[〈options〉]{glossaries}

(automatically loaded with ``\usepackage`{glossaries-extra}`)

Base package. When loaded implicitly with glossaries-extra, any relevant options will be passed to the base glossaries package.

acronym=`〈boolean〉`default: true; initial: false 🔘︎

If true, provides a new glossary with the label `acronym` and title given by `\acronymname`, redefines `\acronymtype` to `acronym`, and provides `\printacronyms`. §2.1; 11

🛇acronymlists=`{〈label-list〉}`🎚

Identifies the glossaries that contain acronyms (defined with the base glossaries packages acronym mechanism).

acronyms 𝍢

Provides a new glossary with the label `acronym`, redefines `\acronymtype` to `acronym`, and provides `\printacronyms`. §2.1; 11

automake=`〈value〉`default: true; initial: false 🎚

Indicates whether or not to attempt to use TeX’s shell escape to run an indexing application.

counter=`〈counter-name〉`initial: page 🎚

Sets the default location counter.

debug=`〈value〉`initial: false 🎚glossaries v4.24+

(modified by glossaries-extra’s debug option)

Adds markers to the document for debugging purposes.

entrycounter 𝍢

Enables the entry counter for top-level entries.

hyperfirst=`〈boolean〉`default: true; initial: true 🔘

Indicates whether or not to use hyperlinks on first use (if hyperlinks are supported).

index 𝍢

Provides a new glossary with the label `index` and the title `\indexname`, and provides `\printindex` and `\newterm`. §2.1; 11

indexonlyfirst=`〈boolean〉`default: true; initial: false 🔘︎

Indicates whether or not to only index the first use.

makeindex 𝍢

Indicates that the indexing should be performed by makeindex (default).

mfirstuc initial: unexpanded 𝍢 glossaries v4.50+

Implements the expanded and unexpanded options provided by mfirstuc.

nogroupskip=`〈boolean〉`default: true; initial: false 🔘︎

If true, suppress the gap between letter groups in the glossaries by default.

nolist 𝍢

Don’t load glossary-list, which is normally loaded automatically. Note that if glossaries is loaded before glossaries-extra, then this option should be passed directly to glossaries not glossaries-extra otherwise it will be too late to implement.

nolong 𝍢

Don’t load glossary-long, which is normally loaded automatically. Note that if glossaries is loaded before glossaries-extra, then this option should be passed directly to glossaries not glossaries-extra otherwise it will be too late to implement.

nomain 𝍢

Prevents the definition of the `main` glossary. You will need to define another glossary to use instead. For example, with the acronyms package option.

nonumberlist 𝍢

Set no location lists as the default for all glossaries. May be overridden for individual glossaries with nonumberlist=true.

nopostdot=`〈boolean〉`default: true; initial: true 🔘

If true, suppresses the automatic insertion of a full stop after each entry’s description in the glossary (for styles that support this). The default is nopostdot=true for glossaries-extra and nopostdot=false for just glossaries. §2.2; 12

noredefwarn 𝍢

Suppresses a warning if theglossary or `\printglossary` have already been defined (which indicates that the document class or another package also provides a mechanism for creating a glossary that could potentially conflict with glossaries). This option is automatically implemented with glossaries-extra.

nostyles 𝍢

Don’t load the default set of predefined styles. Note that if glossaries is loaded before glossaries-extra, then this option should be passed directly to glossaries not glossaries-extra otherwise it will be too late to implement.

nosuper 𝍢

Don’t load glossary-super, which is normally loaded automatically. Note that if glossaries is loaded before glossaries-extra, then this option should be passed directly to glossaries not glossaries-extra otherwise it will be too late to implement.

notranslate 𝍢

Equivalent to translate=false.

notree 𝍢

Don’t load glossary-tree, which is normally loaded automatically. Note that if glossaries is loaded before glossaries-extra, then this option should be passed directly to glossaries not glossaries-extra otherwise it will be too late to implement.

nowarn 𝍢

Suppresses warnings.

numberedsection=`〈value〉`default: nolabel; initial: false 🎚

Indicates whether or not glossary section headers will be numbered and also if they should automatically be labelled.

numbers 𝍢

Provides a new glossary with the label `numbers` and the title `\glsnumbersgroupname`, and provides `\printnumbers`. With glossaries-extra, this additionally defines `\glsxtrnewnumber`. §2.1; 11

sanitizesort=`〈boolean〉`default: true; initial: varies 🔘︎

Indicates whether the default sort value should be sanitized (only applicable with sort=standard).

savenumberlist=`〈boolean〉`default: true; initial: false 🔘︎

If true, patches the location list encapsulator to save the location list. With bib2gls, use the save-locations resource option.

section=`〈value〉`default: section 🎚

Indicates which section heading command to use for the glossary. The value may be one of the standard sectioning command’s control sequence name (without the leading backslash), such as `chapter` or `section`.

seenoindex=`〈value〉`initial: error 🎚

Indicates what to do if the see key is used before the associated indexing files have been opened by `\makeglossaries`.

seenoindex=error

Triggers an error if the see key is used before `\makeglossaries`.

seenoindex=ignore

Does nothing if the see key is used before `\makeglossaries`.

seenoindex=warn

Triggers a warning if the see key is used before `\makeglossaries`.

sort=`〈value〉`initial: standard 🎚

Indicates how the sort key should automatically be assigned if not explicitly provided (for `\makeglossaries` and `\makenoidxglossaries` only).

sort=clear glossaries v4.50+

Sets the sort key to an empty value. Use this option if no indexing is required for a slightly faster build.

sort=def

Use the (zero-padded) order of definition as the default for the sort key.

sort=none glossaries v4.30+

Don’t process the sort key. Use this option if no indexing is required for a slightly faster build.

sort=standard

Use the value of the name key as the default for the sort key and implement the `\glsprestandardsort` hook.

sort=use

Use the (zero-padded) order of use as the default for the sort key.

style=`〈style-name〉`🎚

Sets the default glossary style to 〈style-name〉.

subentrycounter 𝍢

Enables the entry counter for level 1 entries.

symbols 𝍢

Provides a new glossary with the label `symbols` and the title `\glssymbolsgroupname`, and provides `\printsymbols`. With glossaries-extra, this additionally defines `\glsxtrnewsymbol`. §2.1; 10

toc=`〈boolean〉`default: true; initial: true 🔘

If true, each glossary will be automatically added to the table of contents. The default is toc=false with glossaries and toc=true with glossaries-extra.

translate=`〈value〉`initial: babel 🎚

Indicates how multilingual support should be provided, if applicable.

translate=babel

Uses babel’s language hooks to implement multilingual support (default for glossaries-extra if babel has been detected).

translate=false

Don’t implement multilingual support (default if no language package has been detected).

translate=true

Uses translator’s language hooks to implement multilingual support (default for glossaries if a language package has been detected).

writeglslabelnames 𝍢

Creates a file called `\jobname`.glslabels that contains all defined entry labels and names (for the benefit of autocompletion tools).

writeglslabels 𝍢

Creates a file called `\jobname`.glslabels that contains all defined entry labels (for the benefit of autocompletion tools).

xindy=`{〈options〉}`🎚

Indicates that the indexing should be performed by xindy.

[top]

# Index
[link]

[top]

## Symbols
[link]

`\\`§11.5.2; 492, 559
`&`
see tabulation (`&`)
`\:`§11.5.2; 559
`\?`§11.5.2; 559
`??` (unknown entry marker)15, 28, 37, 38, 534, 535, 729, 920, 921
`\/`§11.5.2; 559
`\.`§11.5.2; 559
`.` (full stop or period)
see full stop (`.`)
`\^`§11.5.2; 559
`\~`§11.5.2; 559
`~` (non-breaking space)
see non-breaking space (`~`)
`\"`§11.5.2; 559
`\(`§11.5.2; 559
`)` (range end)260, 261, 730
`(` (range start)260, 261, 794
`\)`§11.5.2; 559
`\[`§11.5.2; 559
`\]`§11.5.2; 559
`\$`§11.5.2; 558, 559, 724
`\*`§11.5.2; 559
* (modifier)
see `\GlsXtrSetStarModifier`
`\&`§11.5.2; 303, 559
`\#`§11.5.2; 559
`#`558, 754
`\-`§11.5.2; 559
`\+`§11.5.2; 559
+ (modifier)
see `\GlsXtrSetPlusModifier`
`\<`§11.5.2; 559
`\<`§11.5.2; 559
`\|`§11.5.2; 559
[top]

## @
[link]

`\@currentHref` 24, 25, 579, 581, 896
`\@currentlabel` 24, 25
`\@currentlabelname` 579
`\@endfortrue` 304
`\@firstofone` 240, 298, 583
`\@firstoftwo` 52, 213
`\@for` 304, 373
`\@gobble` 414, 428
`\@glsxtr@doglossary`§8.4.3; 402–405, 677
`\@glsxtr@multientry`§7.13; 373, 677
`\@glsxtr@org@@starttoc`§5.3.3; 226, 677
`\@glsxtr@org@markboth`§5.3.3; 226, 677
`\@glsxtr@org@markright`§5.3.3; 226, 677
`\@glsxtrinmark`§5.3.3; 226, 422, 677
`\@glsxtrnotinmark`§5.3.3; 226, 422, 678
`\@secondoftwo` 213
`\@starttoc` 200, 203, 213, 225, 226, 422, 677, 858, 874, 898
[top]

## A
[link]

`\AB`§4.3.2; Table 4.1; 678
`\Ab`§4.3.2; Table 4.1; 678
`\ab`§4.3.2; Table 4.1; 550, 678
abbreviation styles 651
footnote-desc
see short-footnote-desc
footnote-em🗑
see short-em-footnote
footnote-sc🗑
see short-sc-footnote
footnote-sm🗑
see short-sm-footnote
footnote
see short-footnote
long-desc-em🗑
see long-noshort-em-desc
long-desc-sc🗑
see long-noshort-sc-desc
long-desc-sm🗑
see long-noshort-sm-desc
long-desc
see long-noshort-desc
long-em-noshort-em-desc-noreg 131, 652
long-em-noshort-em-desc 80, 131, 652
long-em-noshort-em-noreg 64, 131, 652
long-em-noshort-em 64, 79, 131, 652
long-em-short-em-desc 82, 87, 652
long-em-short-em 63, 81, 86, 132, 653
long-em🗑
see long-noshort-em
long-hyphen-noshort-desc-noreg 107, 149, 653, 870
long-hyphen-noshort-noreg 64, 107, 149, 653, 870
long-hyphen-postshort-hyphen-desc 106, 653
long-hyphen-postshort-hyphen 54, 63, 104, 106, 109–111, 150, 151, 165, 653, 870, 891, 892, 979
long-hyphen-short-hyphen-desc 105, 106, 653
long-hyphen-short-hyphen 103–105, 148, 149, 519, 653, 654, 870, 871
long-noshort-desc-noreg 107, 131, 654
long-noshort-desc Table 4.2; 73, 74, 76–78, 80, 131, 147, 168, 652, 652, 653, 654, 655, 871
long-noshort-em-desc 73, 78, 651, 654
long-noshort-em 78, 653, 654
long-noshort-noreg 107, 131, 654
long-noshort-sc-desc 73, 76, 651, 654
long-noshort-sc 63, 75, 655, 656
long-noshort-sm-desc 73, 77, 652, 655
long-noshort-sm 76, 655, 658
long-noshort Table 4.2; 47, 74–76, 78, 79, 131, 147, 652, 654, 655, 658, 871
long-only-short-only-desc 112, 113, 155, 156, 655, 887
long-only-short-only 41, 111, 112, 154, 655, 656, 887
long-only-short-sc-only-desc 113, 656, 899
long-only-short-sc-only 112, 656, 704, 899
long-postshort-sc-user-desc 92, 138, 656, 874
long-postshort-sc-user 91, 92, 138, 336, 656, 874, 900
long-postshort-user-desc 90, 656
long-postshort-user 90, 91, 142, 238, 656, 894
long-sc🗑
see long-noshort-sc
long-short-desc Table 4.2; 82–84, 86, 87, 133, 134, 652, 656, 657, 872
long-short-em-desc 82, 86, 657
long-short-em 63, 81, 85, 657
long-short-sc-desc Table 4.2; 82, 83, 657
long-short-sc Table 4.2; 41, 42, 44, 81, 82, 171, 172, 657
long-short-sm-desc Table 4.2; 82, 84, 657
long-short-sm Table 4.2; 81, 84, 657
long-short-user-desc 89, 91, 138, 658, 874
long-short-user 63, 88–90, 135, 139, 140, 142, 656, 658, 811, 925, 927–929
long-short Table 4.2; 3, 42, 44, 50, 60, 66, 73, 81, 82, 84–86, 88, 103, 132, 133, 165, 171, 240, 651, 653, 654, 657, 658, 873
long-sm🗑
see long-noshort-sm
long
see long-noshort
nolong-short-em 66, 73, 658
nolong-short-noreg 130, 658
nolong-short-sc 66, 69, 659
nolong-short-sm 66, 71, 659
nolong-short 66, 69, 71, 73, 130, 658, 659
postfootnote-desc
see short-postfootnote-desc
postfootnote-em🗑
see short-em-postfootnote
postfootnote-sc🗑
see short-sc-postfootnote
postfootnote-sm🗑
see short-sm-postfootnote
postfootnote
see short-postfootnote
short-desc
see short-nolong-desc
short-em-desc
see short-em-nolong-desc
short-em-footnote-desc 64, 127, 660
short-em-footnote 64, 114, 126, 651, 660
short-em-long-desc 94, 97, 660
short-em-long-em-desc 94, 99, 660
short-em-long-em 93, 98, 660
short-em-long 93, 97, 660
short-em-nolong-desc 66, 72, 73, 660, 661
short-em-nolong 65, 71, 72, 661
short-em-postfootnote-desc 129, 661
short-em-postfootnote 128, 659, 661
short-em
see short-em-nolong
short-footnote-desc Table 4.2; 115–117, 119, 123, 127, 144, 145, 651, 660, 661, 664, 666, 841
short-footnote Table 4.2; 50, 64, 114–116, 118, 122, 126, 651, 660, 661, 664, 666, 817, 841
short-hyphen-long-hyphen-desc 110, 662
short-hyphen-long-hyphen 108–110, 148, 152, 662, 854, 907
short-hyphen-postlong-hyphen-desc 110, 662
short-hyphen-postlong-hyphen 109, 152, 153, 662, 891, 906, 979
short-long-desc Table 4.2; 64, 94–97, 99, 134, 660, 662, 665, 666, 907
short-long-user-desc 100, 103, 139, 663, 908
short-long-user 100, 140, 141, 143, 663, 926, 928, 929
short-long Table 4.2; 64, 65, 93, 94, 96–98, 100, 101, 108, 114, 134, 660–662, 663, 664–666, 908
short-nolong-desc-noreg 130, 663
short-nolong-desc 66, 68, 70, 72, 130, 147, 660, 661, 663, 665, 666, 905
short-nolong-noreg 130, 663
short-nolong 3, 41, 42, 46, 47, 60, 65–67, 69, 71, 130, 146, 236, 240, 651, 659, 661, 663, 665, 666, 667, 908
short-postfootnote-desc 117, 118, 121, 125, 129, 659, 661, 664, 665, 667
short-postfootnote 116, 117, 120, 124, 128, 160, 166, 238, 248, 659, 661, 662, 664, 665, 667, 817, 889, 890, 979
short-postlong-user-desc 102, 664
short-postlong-user 54, 101, 102, 144, 664, 894
short-sc-desc
see short-sc-nolong-desc
short-sc-footnote-desc Table 4.2; 119, 664
short-sc-footnote Table 4.2; 114, 118, 651, 664
short-sc-long-desc Table 4.2; 94, 95, 665
short-sc-long Table 4.2; 93, 94, 665
short-sc-nolong-desc 66, 68, 69, 664, 665
short-sc-nolong 65, 67, 68, 665
short-sc-postfootnote-desc 121, 665
short-sc-postfootnote 64, 120, 659, 665
short-sc
see short-sc-nolong
short-sm-desc
see short-sm-nolong-desc
short-sm-footnote-desc Table 4.2; 123, 666
short-sm-footnote Table 4.2; 114, 122, 651, 666
short-sm-long-desc Table 4.2; 94, 96, 666
short-sm-long Table 4.2; 93, 96, 666, 911
short-sm-nolong-desc 66, 70, 71, 666
short-sm-nolong 65, 69, 70, 666, 667
short-sm-postfootnote-desc 125, 667
short-sm-postfootnote 124, 659, 667
short-sm
see short-sm-nolong
short
see short-nolong
`\abbreviationsname`§2.1; 9, 10, 615, 678, 981
`\abbrvpluralsuffix` 36, 43, 44, 170, 171, 499, 678, 683
`\ABP`§4.3.2; Table 4.1; 679
`\Abp`§4.3.2; Table 4.1; 679
`\abp`§4.3.2; Table 4.1; 679
`\AC`§4.3.2; Table 4.1; 679
`\Ac`§4.3.2; Table 4.1; 679
`\ac`§4.3.2; Table 4.1; 18, 19, 43, 310, 550, 679
accsupp package 714
`\ACF`§4.3.2; Table 4.1; 679
`\Acf`§4.3.2; Table 4.1; 680
`\acf`§4.3.2; Table 4.1; 680
`\ACFP`§4.3.2; Table 4.1; 680
`\Acfp`§4.3.2; Table 4.1; 680
`\acfp`§4.3.2; Table 4.1; 680
`\ACL`§4.3.2; Table 4.1; 680
`\Acl`§4.3.2; Table 4.1; 680
`\acl`§4.3.2; Table 4.1; 19, 681
`\ACLP`§4.3.2; Table 4.1; 681
`\Aclp`§4.3.2; Table 4.1; 681
`\aclp`§4.3.2; Table 4.1; 681
`\ACP`§4.3.2; Table 4.1; 681
`\Acp`§4.3.2; Table 4.1; 681
`\acp`§4.3.2; Table 4.1; 682
`\Acrfull`🛇680, 682
`\acrfull`🛇680, 682
`\Acrfullpl`🛇680, 682
`\acrfullpl`🛇680, 682
`\Acrlong`🛇681, 682
`\acrlong`🛇18, 19, 681, 682, 683
`\Acrlongpl`🛇681, 683
`\acrlongpl`🛇681, 683
acronym (base) style
dua-desc Table 4.2
dua Table 4.2
footnote-desc Table 4.2
footnote-sc-desc Table 4.2
footnote-sc Table 4.2
footnote-sm-desc Table 4.2
footnote-sm Table 4.2
footnote Table 4.2
long-sc-short-desc Table 4.2
long-sc-short Table 4.2
long-short-desc Table 4.2
long-short 228
long-sm-short-desc Table 4.2
long-sm-short Table 4.2
long-sp-short-desc Table 4.2
long-sp-short Table 4.2
sc-short-long-desc Table 4.2
sc-short-long Table 4.2
short-long-desc Table 4.2
short-long Table 4.2
sm-short-long-desc Table 4.2
sm-short-long Table 4.2
`\acronymfont` 229, 683
`\acronymname` 9, 615, 678, 683, 986
`\acronymtype`§4.1.4; 10, 11, 44, 683, 965, 967, 981, 986
`\acrpluralsuffix`🛇36, 683
`\Acrshort`🛇684
`\acrshort`🛇18, 19, 50, 684
`\Acrshortpl`🛇684, 685
`\acrshortpl`🛇684, 685
`\ACS`§4.3.2; Table 4.1; 684
`\Acs`§4.3.2; Table 4.1; 684
`\acs`§4.3.2; Table 4.1; 19, 684
`\ACSP`§4.3.2; Table 4.1; 685
`\Acsp`§4.3.2; Table 4.1; 685
`\acsp`§4.3.2; Table 4.1; 685
`\actualchar` 599
`\AF`§4.3.2; Table 4.1; 685
`\Af`§4.3.2; Table 4.1; 685
`\af`§4.3.2; Table 4.1; 685
`\AFP`§4.3.2; Table 4.1; 685
`\Afp`§4.3.2; Table 4.1; 686
`\afp`§4.3.2; Table 4.1; 686
`\AL`§4.3.2; Table 4.1; 686
`\Al`§4.3.2; Table 4.1; 686
`\al`§4.3.2; Table 4.1; 686
align environment 26
all caps 199, 253, 724, 883, 884, 944, 945
`\ALP`§4.3.2; Table 4.1; 686
`\Alp`§4.3.2; Table 4.1; 686
`\alp`§4.3.2; Table 4.1; 686
`\Alph` 264, 265
`\alph` 264
`\Alpha`§11.5.8; 565, 576, 577, 596, 687
`\alpha` 565, 575–577
`\alsoname` 687, 973
〈alt-mod〉 (modifier)
see `\GlsXtrSetAltModifier`
amsmath package 27
`\andname` 303, 687
`\appto` 164, 395, 403–405, 498
`\apptoglossarypreamble`§8.2; 380, 687
`\arabic` 264, 265
arara 534
array package 450, 481
`\AS`§4.3.2; Table 4.1; 687
`\As`§4.3.2; Table 4.1; 687
`\as`§4.3.2; Table 4.1; 687
ASCII 388, 544, 622, 886, 904
`\ASP`§4.3.2; Table 4.1; 688
`\Asp`§4.3.2; Table 4.1; 688
`\asp`§4.3.2; Table 4.1; 688
[top]

## B
[link]

babel package 3, 4, 9, 17, 515, 615, 678, 687, 990
`\backmatter` 186
beamer class 288
`\Beta`§11.5.8; 565, 576, 596, 688
`\beta` 565, 575, 577
bib2gls 531–596
-g
see --group
--group 24, 26, 34, 275, 392, 398, 399, 429, 446, 452, 478, 486, 542, 561, 630
-i
see --index-conversion
--log-file 25
--merge-nameref-on 584
--no-group 647
--record-count-rule 545
--record-count-unit 545, 551, 555, 638
--record-count 267, 545, 551, 637, 638
-t
see --log-file
`\bibgls@input` 688
`\bibglsdualprefixlabel`§11.5.7; 594, 688
`\bibglsnewdualindexsymbolsecondary` 688
`\bibglsprimaryprefixlabel`§11.5.7; 594, 689
`\bibglssetlastgrouptitle` 561, 689
`\bibglssetlocationrecordcount`§11.4.2; 555, 689,
see also --record-count-unit
`\bibglssetrecordcount`§11.4.2; 555, 689,
see also --record-count
`\bibglssettotalrecordcount`§11.4.2; 554, 689,
see also --record-count
`\bibglstertiaryprefixlabel`§11.5.7; 594, 689
booktabs package 481, 488, 670
`\bottomrule` 468
[top]

## C
[link]

`\capitalisefmtwords` 199, 523, 689, 724, 978
`\capitalisewords` 199, 293, 375, 523, 690, 724, 839
`\caption` 27, 487
case change 367, 522, 590, 938,
see also uppercase, lowercase, title case, sentence case & all caps
`\CAT`§11.5.2; 559, 690
categories
abbreviation§10.1; 41, 42, 58–60, 159, 238, 240, 322, 426, 516, 651, 889, 955, 973
acronym§10.1; 5, 42, 46, 58–60, 181, 236, 238, 240, 426, 516, 518, 651, 889, 955
general§10.1; 238, 245, 254, 313, 314, 318, 425, 482, 516, 518, 526, 528, 889
index§10.1; 12, 516, 890
number§10.1; 11, 517, 890
symbol§10.1; 10, 406, 517, 890
term 426
category attributes 247, 631, 633, 833
accessaposplural§9.1; 499
accessinsertdots§9.1; 499
accessnoshortplural§9.1; 499
aposplural§10.2.1.1; 43, 162, 499, 520, 521, 785
combinedfirstsep§7.8; 346, 355
combinedfirstsepfirst§7.8; 346, 355
combinedsep§7.8; 345, 356
combinedsepfirst§7.8; 346, 356
discardperiod§10.2.1.1; 247, 332, 518, 520, 833
dualindex§10.2.1.4; 525, 597, 599, 609
encapinnerfmt 243
encapnocase
encapnocaseinnerfmt 243
entrycount§10.2.1.4; 310, 311, 313–315, 524
externallocation§10.2.1.4; 194, 195, 526, 579, 914
firstshortaccess§9.1; 168, 500, 629, 630
glossdesc§10.2.1.3; 196, 199, 234, 422, 522, 524
glossdescfont§10.2.1.3; 422, 523, 524
glossname§10.2.1.3; 196, 422, 423, 462, 524
glossnamefont§10.2.1.3; 419, 422, 423, 462, 524, 782
glosssymbolfont§10.2.1.3; 422, 524
headuc§10.2.1.4; 203, 215–217, 524, 849–853, 857
hyperoutside§10.2.1.2; 189, 522
indexname§10.2.1.3; 424, 524, 597, 609
indexonlyfirst§10.2.1.2; 267, 522, 599
innertextformat 243, 821
insertdots§10.2.1.1; 162, 499, 520
linkcount§10.2.1.4; 319, 322, 525
linkcountmaster§10.2.1.4; 319, 525
markshortwords§10.2.1.1; 43, 63, 103, 147, 162, 166, 167, 173, 177, 520, 654, 662, 746, 815, 930, 931
markwords§10.2.1.1; 43, 63, 103, 147, 162, 168, 175, 519, 520, 653, 654, 662, 746, 816, 930, 931
multioptions§7.8; 334, 355, 356
nameshortaccess§9.1; 168, 169, 499, 628
nohyper§10.2.1.2; 256, 522, 528
nohyperfirst§10.2.1.2; 115, 116, 185, 188, 256, 521, 662, 829
nohypernext§10.2.1.2; 185, 256, 521
noshortplural§10.2.1.1; 44, 162, 499, 520, 521, 678, 785
pluraldiscardperiod§10.2.1.1; 518
recordcount 547–549, 859, 904
regular§10.2.1.1; 517
retainfirstuseperiod§10.2.1.1; 247, 332, 518, 833
tagging§10.2.1.1; 56, 58, 59, 521
targetcategory§10.2.1.4; 526
targetname§10.2.1.4; 525, 526
targeturl§10.2.1.4; 36, 257, 525, 611
textformat§10.2.1.2; 190, 238, 239, 522
textshortaccess§9.1; 168, 169, 500, 631, 634
unitcount 315
wrgloss§10.2.1.2; 184, 188, 193, 266, 522
category post-description hook 10–12, 425, 426, 432, 622, 626, 890
category post-link hook 235, 237, 245–248, 250, 251, 427, 586, 622, 626, 893
category post-name hook 586, 622
`\cGLS`§6.1; Table 4.1; 313, 678, 679, 690, 691,
see also `\glsenableentrycount` & `\cGLSformat`
`\cGls`§6.1; 312, 678, 679, 690, 691,
see also `\glsenableentrycount` & `\cGlsformat`
`\cgls`§6.1; Table 4.1; 56, 182, 310, 311, 315, 525, 547, 550, 678, 679, 690, 691,
see also `\glsenableentrycount` & `\cglsformat`
`\cGLSformat`§6.1; 313, 691
`\cGlsformat`§6.1; 312, 691
`\cglsformat`§6.1; 311–313, 547, 548, 691
`\cGLSpl`§6.1; Table 4.1; 313, 679, 681, 691, 692,
see also `\glsenableentrycount` & `\cGLSplformat`
`\cGlspl`§6.1; 312, 679, 681, 691, 692,
see also `\glsenableentrycount` & `\cGlsplformat`
`\cglspl`§6.1; Table 4.1; 312, 679, 682, 691, 692,
see also `\glsenableentrycount` & `\cglsplformat`
`\cGLSplformat`§6.1; 313, 691
`\cGlsplformat`§6.1; 313, 692
`\cglsplformat`§6.1; 312, 313, 692
`\chapter` 435, 701
chapter counter 315, 552, 553, 556, 579
`\char` 387
`\Chi`§11.5.8; 596, 692
CLI 622, 624
convertgls2bib 275, 531
--index-conversion 275
--preamble-only
`\CS`§11.5.2; 559, 692
`\cs`§11.5.2; 559, 692
`\csdef` 38, 39, 866
`\csGlsXtrLetField`§3.5; 39, 40, 692
`\cslet` 40, 692, 866
`\csletcs` 40, 692
`\currentglossary` 401, 418, 435, 692
`\CurrentTrackedDialect` 616
`\CurrentTrackedLanguage` 616
`\CustomAbbreviationFields`§4.5.3.1; 165–168, 693
[top]

## D
[link]

datatool-base package 304, 305, 696, 838, 856, 859
datatool package 306, 530, 696, 755, 838
`\defglsentryfmt` 81, 184, 254, 693, 724, 726, 756, 758
`\delimN` 693, 754, 783
`\delimR` 693, 754, 783
`\Delta` 576
description environment 669, 980
`\descriptionname` 450, 488, 497, 693
`\dGLS`§11.5.7; 588, 693,
see also `\glsxtraddlabelprefix` & `\glsxtrprependlabelprefix`
`\dGls`§11.5.7; 588, 694,
see also `\glsxtraddlabelprefix` & `\glsxtrprependlabelprefix`
`\dgls`§11.5.7; 182, 588, 592–594, 693, 694, 695, 696,
see also `\glsxtraddlabelprefix` & `\glsxtrprependlabelprefix`
`\dGlsdisp`§11.5.7; 589, 694,
see also `\glsxtraddlabelprefix` & `\glsxtrprependlabelprefix`
`\dglsdisp`§11.5.7; 589, 694,
see also `\glsxtraddlabelprefix` & `\glsxtrprependlabelprefix`
`\dGLSfield`§11.5.7; 590, 694,
see also `\glsxtraddlabelprefix` & `\glsxtrprependlabelprefix`
`\dGlsfield`§11.5.7; 589, 590, 694,
see also `\glsxtraddlabelprefix` & `\glsxtrprependlabelprefix`
`\dglsfield`§11.5.7; 589, 590, 694, 695, 956,
see also `\glsxtraddlabelprefix` & `\glsxtrprependlabelprefix`
`\dglsfieldactualfieldlabel`§11.5.7; 591, 695
`\dglsfieldcurrentfieldlabel`§11.5.7; 591, 695
`\dglsfieldfallbackfieldlabel`§11.5.7; 591, 695
`\dGlslink`§11.5.7; 589, 695,
see also `\glsxtraddlabelprefix` & `\glsxtrprependlabelprefix`
`\dglslink`§11.5.7; 589, 695,
see also `\glsxtraddlabelprefix` & `\glsxtrprependlabelprefix`
`\dGLSpl`§11.5.7; 589, 695,
see also `\glsxtraddlabelprefix` & `\glsxtrprependlabelprefix`
`\dGlspl`§11.5.7; 588, 695,
see also `\glsxtraddlabelprefix` & `\glsxtrprependlabelprefix`
`\dglspl`§11.5.7; 588, 696,
see also `\glsxtraddlabelprefix` & `\glsxtrprependlabelprefix`
`\Digamma`§11.5.8; 575, 576, 596, 696
`\digamma` 575–577
display full form 50, 63, 81, 88, 93, 100, 103, 104, 106, 109–111, 132, 170, 172, 174, 622, 624, 843, 844
document environment 16, 17, 37, 535, 601, 982, 983
`\doifglossarynoexistsordo` 379, 696,
see also `\ifglossaryexists` & `\glsxtrifemptyglossary`
`\dolistcsloop` 306, 837
`\DTLformatlist` 304, 306, 696, 838
`\DTLifinlist` 305, 530, 696, 755, 856, 859
[top]

## E
[link]

`\eglssetwidest`§8.6.5.4; 438, 697, 978
`\eglsupdatewidest`§8.6.5.4; 438, 697, 978
`\eGlsXtrSetField`§3.5; 39, 40, 697
`\emph` 156, 158, 652–654, 657, 658, 660, 661
`\encapchar` 599
entry location 622, 624, 625
`\entryname` 450, 488, 497, 697
`\Epsilon`§11.5.8; 596, 697
equation counter 26, 27, 579, 580, 582, 837, 983
equation environment 26, 27
`\Eta`§11.5.8; 596, 697
etoolbox package 38–40, 306, 307, 320, 411, 528, 536, 637, 638, 692, 753, 837–839, 856, 866, 932
example-glossaries-acronym.bib§14.1; 604
example-glossaries-acronym-desc.bib§14.1; 604
example-glossaries-acronyms-lang.bib§14.1; 604
example-glossaries-brief.bib§14.1; 604
example-glossaries-childmultipar.bib§14.1; 604
example-glossaries-childnoname.bib§14.1; 604
example-glossaries-cite.bib§14.1; 604
example-glossaries-images.bib§14.1; 604
example-glossaries-long.bib§14.1; 604
example-glossaries-longchild.bib§14.1; 605
example-glossaries-multipar.bib§14.1; 605
example-glossaries-parent.bib§14.1; 605
example-glossaries-symbolnames.bib§14.1; 605
example-glossaries-symbols.bib§14.1; 605
example-glossaries-symbolsnames.bib
example-glossaries-url.bib§14.1; 605
example-glossaries-user.bib§14.1; 605
example-glossaries-utf8.bib§14.1; 605
example-glossaries-xr.bib§14.1; 605
example-glossaries-xr.tex§14.1; 604
`\expandafter` 166, 254
`\expandonce` 133, 134
`\ExtraCustomAbbreviationFields`§4.5.3.1; 161, 164, 697
[top]

## F
[link]

fancyhdr package 448
`\fbox` 242, 243
field 32, 37–40, 185, 209, 230, 293, 303–305, 307, 402, 622, 625, 630, 632, 730–739, 758, 838, 842, 848, 849, 851–853, 855–857, 859, 867, 915, 916, 918–920, 925
figure counter
figure environment 27
file formats
acr 6
aux 17, 26, 373, 411, 531, 536, 624, 637, 966, 982
bib 17, 33, 34, 531, 604, 625
glg-abr 9
glg
glo-abr 9
glo
gls-abr 9
gls 17
glsdefs 16, 17, 37
glslabels 990
glstex 34, 531, 534, 626
ist
ldf 615, 616
log 982
tex 33, 531, 604
toc 214
xdy
first use 623
first use flag 623, 761
first use text 623
`\firstacronymfont` 698
`\FIRSTLC`§11.5.2; 559, 698
`\FIRSTUC`§11.5.2; 559, 698
fontenc package 61
`\footnote` 64, 254
`\forallabbreviationlists`§8; 379, 698,
see also `\forallglossaries`
`\forallacronyms`🛇379, 698
`\forallglossaries` 379, 698
`\forallglsentries` 698
`\foreignlanguage` 295
`\forglsentries` 15, 699,
see also `\forallglsentries`
`\forlistcsloop` 306, 838
`\frontmatter` 186
full stop (`.`)2, 12, 13, 247, 248, 433, 518, 520, 568, 833, 855, 859, 893, 988
[top]

## G
[link]

gettitlestring package 214, 760
`\GetTitleStringDisableCommands` 214
`\GetTitleStringSetup` 214
`\gglssetwidest`§8.6.5.4; 437, 699
`\gglsupdatewidest`§8.6.5.4; 438, 699
`\gGlsXtrSetField`§3.5; 39, 40, 699
group (letters, numbers, symbols)24, 34, 35, 275, 382, 387–392, 394–396, 399, 401, 402, 429, 430, 435, 445, 447, 452, 477, 478, 486, 623, 630, 638, 647, 648, 669, 670, 674, 676, 753, 757, 760, 767, 775, 783, 794, 795, 807, 809, 819, 826, 827, 848, 867, 903, 967, 987
GUI 623
[top]

## Glo
[link]

`\glolinkprefix` 195, 256, 382, 414, 525, 526, 649, 699
glossaries-accsupp package 14, 15, 29, 420, 423, 498–500, 613, 634–636, 714, 721, 726–728, 735, 739, 744, 746, 762, 780, 782, 785, 792, 795, 802, 812–815, 981
glossaries-extra-bib2gls package§11.5; 9–12, 24, 25, 374, 535, 556–596, 615, 687, 688, 692–697, 724, 728, 733, 754, 787, 818, 819, 822, 824, 829, 830, 833–835, 837, 840–842, 845–848, 854, 857, 858, 861, 863–867, 874–883, 886, 895, 896, 898, 901, 905, 911, 912, 914, 915, 921–924, 931, 935, 936, 954, 956, 958, 959, 966, 967, 969, 970, 972, 975–979
glossaries-extra-stylemods package 13, 14, 386, 387, 395, 425, 431, 435, 475, 578, 612, 626, 697, 699, 723, 740–742, 753, 757, 759–761, 785, 806–810, 820, 895, 920, 978, 981, 986
all 981
〈name〉981
glossaries-extra package§2; 2, 8, 981
abbreviations§2.1; 9, 10, 44, 46, 557, 615, 683, 817, 965, 966, 981
accsupp§2.3; 14, 168, 169, 420, 498, 628–634, 705, 706, 715–721, 726, 817, 818, 820, 895, 981
autoseeindex§2.4; 21, 22, 33, 266, 273, 278, 304, 981
false 22–24, 33, 632, 981
true 22, 981
bibglsaux§2.4; 26, 688, 901, 982
debug§2.5; 28, 982, 987
all 29, 982
false 28, 982
showaccsupp 28, 982
showtargets 29, 30, 793, 982, 985,
see also showtargets
showwrgloss 29, 931, 982
true 28, 29, 982
docdef§2.4; 16, 326, 372, 373, 601, 982
atom 17, 982
false 16, 982
restricted 17, 982
true 16, 37, 310, 378, 982
equations§2.4; 26, 579, 983
floats§2.4; 27, 983
indexcounter§2.4; 25, 27, 29, 582, 596, 637, 982, 983
indexcrossrefs§2.4; 20, 22, 23, 268, 269, 281, 983
false 20, 21, 24, 983
true 20, 21, 983
nomissingglstext§2.1; 9, 983
postdot§2.2; 2, 12, 425, 426, 886, 983,
see also nopostdot & postpunc
postpunc§2.2; 12, 13, 425, 426, 431, 785, 983
comma 13, 983
dot 13, 983
none 13, 983
〈punctuation〉983
prefix§2.3; 14, 54, 369, 983
record§2.4; 23, 984
alsoindex🗑
see hybrid
hybrid 23, 25, 29, 37, 533, 535, 556, 984
nameref 23, 24, 34, 195, 281, 374, 391, 533, 535, 556, 579, 624, 630, 816, 834, 984
off 23, 37, 388, 984
only 23, 24, 34, 37, 281, 374, 391, 535, 556, 630, 816, 984
shortcuts§2.4; 17–19, 310, 328, 984, 985
abbr
see abbreviations
abbreviations Table 4.1; 18, 19, 56, 678, 679, 685–688, 832, 955, 984
abother 19, 984
ac Table 4.1; 18, 19, 43, 56, 679–682, 684, 685, 832, 955, 984
acother 19, 832, 984
acro
see acronyms
acronyms 19, 679–682, 684, 685, 985
all 19, 20, 832, 985
false
see all
none 20, 985
other 18, 832, 956, 957, 985
true
see all
showtargets§2.5; 29, 383, 910, 985
annoteleft 31, 340, 985
annoteright 31, 985
innerleft 31, 985
innerright 31, 985
left 30, 985
right 30, 985
stylemods§2.2; 12–14, 387–390, 431, 441, 981, 985
all 13, 986
default 13, 14, 986
〈list〉14, 986
undefaction§2.4; 15, 16, 283, 285, 729, 859, 920, 934, 986
error 15, 24, 378, 379, 729, 855, 857, 986
warn 15, 17, 24, 39, 279, 378, 379, 534, 729, 739, 855, 857, 903, 986
glossaries-prefix package 14, 54, 206–209, 217, 369, 613, 631, 632, 786, 954, 959–964, 984
glossaries package 2, 41, 986
acronym§2.1; 10, 11, 557, 683, 981, 986
acronymlists🛇10, 986
acronyms§2.1; 11, 44, 46, 557, 683, 965, 967, 981, 986, 987
automake 619, 885, 986
counter 27, 264, 552, 579, 628, 983, 987
debug 987
entrycounter 379, 418, 420, 450, 460, 732, 787, 987
hyperfirst 185, 256, 521, 987
index§2.1; 11, 12, 426, 558, 890, 957, 966, 969, 987
indexonlyfirst 267, 522, 599, 934, 987
makeindex 580, 987
mfirstuc 987
nogroupskip 432–434, 474, 753, 784, 934, 987
nolist 14, 987
nolong 987
nomain 6, 726, 987
nonumberlist 263, 401, 427, 474, 552, 625, 700, 782, 987
nopostdot§2.2; 2–4, 12, 13, 432, 785, 983, 988,
see also postdot & postpunc
noredefwarn 3, 988
nostyles 14, 431, 437, 441, 988
nosuper 988
notranslate 988
notree 437, 988
nowarn 700, 988
numberedsection 381, 487, 648, 701, 723, 988
numbers§2.1; 11, 19, 32, 426, 557, 783, 884, 890, 957, 966, 969, 988
sanitizesort 988
savenumberlist 537, 988
section 446, 701, 989
seenoindex 23, 989
error 989
ignore 989
warn 989
sort 390, 416, 989
clear 989
def 989
none 24, 989
standard 786, 988, 989
use 989
style 481, 989
subentrycounter 379, 418, 420, 450, 482, 787, 794, 989
symbols§2.1; 10, 18, 32, 426, 557, 585, 795, 884, 890, 957, 966, 970, 990
toc 2–4, 990
translate 3, 4, 988, 990
babel 990
false 990
true 990
writeglslabelnames 17, 990
writeglslabels 17, 990
xindy 263, 265, 429, 597, 990
`\GlossariesAbbrStyleTooComplexWarning` 699
`\GlossariesExtraInfo` 590, 700
`\glossariesextrasetup`§2; 8, 14, 18, 557, 700, 974
`\GlossariesExtraWarning` 160, 700, 879, 885, 912, 921, 930, 954
`\GlossariesExtraWarningNoLine` 700
glossary-bookindex package§8.7.1; 14, 389, 441–448, 669, 825–828
glossary-hypernav package
glossary-inline package 432, 669, 757, 785, 786
glossary-list package 668–670, 760, 987
glossary-long package 674, 728, 783, 987
glossary-longbooktabs package 448, 481, 486, 670, 783, 784
glossary-longextra package§8.7.2; 14, 448–474, 577, 668, 670–674, 762–779, 934
glossary-longragged package 674
glossary-mcols package 674, 675
glossary-super package 675, 728, 783, 988
glossary-superragged package 675
glossary-table package§8.7.4; 481–497, 675, 795–801, 970, 980
glossary-topic package§8.7.3; 474–480, 675, 803–806
glossary-tree package 435, 437, 439, 447, 474, 475, 668, 669, 675, 676, 741, 792, 806–809, 988
glossary 623
glossary entry fields 637, 762, 763
childcount 481, 484, 485, 490–492, 578, 637, 857
childlist 637, 796
indexcounter 596, 637, 861
loclist 35, 399, 400, 536, 580, 637, 967
recordcount 545, 546, 637, 920
recordcount.〈counter〉545, 546, 638, 896
recordcount.〈counter〉.〈location〉545, 546, 638, 868
record.〈counter〉411, 412, 638, 816
secondarygroup 392, 393, 398, 399, 638
useri 465, 638, 762
userii 466, 638, 763
useriii 466, 638, 763
glossary entry keys 33, 628
access 162, 498, 499, 628, 715, 782
alias§3.2; 20, 33, 36, 37, 266, 268–270, 273, 274, 276, 278, 279, 281, 293, 327, 372, 604, 611, 628, 819, 900, 925
category§3.2; 12, 33, 41, 42, 59, 60, 162, 267, 399, 406, 515, 516, 551, 628, 651, 752, 755, 884, 902, 955
counter 264, 628
description 12, 44, 63, 64, 251, 259, 426, 450, 452, 503, 510, 539, 622, 628, 629, 654, 657, 661–664, 705, 727, 730, 886, 893, 898, 933, 958
descriptionaccess 629, 705, 728
descriptionplural 503, 510, 629, 705, 727, 730
descriptionpluralaccess 629, 706, 728
first 36, 61, 163, 166, 168, 169, 203, 224, 225, 227, 255, 348, 501, 509, 598, 629, 658, 662, 663, 706, 731, 742, 747, 817, 818, 848, 849, 915
firstaccess 162, 500, 629, 706, 744
firstplural 36, 163, 166, 168, 203, 225, 255, 502, 509, 629, 630, 658, 662, 663, 706, 731, 746, 747, 817, 818, 849, 916
firstpluralaccess 162, 500, 629, 706, 746
group§3.2; 24, 34, 389–394, 398, 399, 430, 537, 542, 543, 625, 630, 967
location§3.2; 24, 34, 35, 399, 400, 432, 444, 465, 486, 536, 537, 553, 580, 595, 630, 637, 728, 733, 967
long 36, 43, 61, 175, 203, 233, 348, 366, 462, 481, 498, 504, 512, 518, 598, 630, 715, 732, 843, 868, 869, 933, 947
longaccess 162, 498, 630, 715, 762
longplural 36, 43–45, 162, 176, 203, 498, 505, 512, 630, 631, 715, 732, 844, 871, 872
longpluralaccess 162, 498, 631, 715, 780
name 34, 36, 44, 133, 134, 138, 139, 144, 146, 147, 155, 156, 163, 167–169, 203, 222, 223, 227, 237, 294, 371, 374, 390, 419, 423, 450–452, 498, 500, 507, 578, 586, 597, 598, 602, 609, 612, 613, 622, 628, 631, 633, 634, 702, 715, 733, 750, 781, 782, 817, 818, 837, 848, 851, 874, 884, 908, 911, 958, 989
parent 37, 327, 382, 389, 390, 430, 439, 578, 598, 631, 733, 837, 912, 933
plural 35–37, 163, 167–169, 203, 223, 224, 255, 501, 508, 629, 631, 658, 662, 663, 716, 733, 734, 750, 785, 817, 818, 851, 852, 918, 919
pluralaccess 162, 500, 631, 716, 785
prefix 54, 206, 631, 961, 963
prefixfirst 55, 208, 632, 960, 962
prefixfirstplural 55, 209, 632, 960, 963
prefixplural 55, 207, 632, 961, 964
see 20–22, 24, 33, 36, 266, 268–270, 276, 278, 279, 281, 293, 301, 327, 371, 445, 539, 604, 628, 632, 789, 818, 819, 900, 929, 981, 989
seealso§3.2; 20–22, 33, 266, 268–270, 276, 278–281, 293, 301, 327, 371, 445, 604, 632, 818, 819, 900, 930, 981
short 36, 43, 61, 159, 177, 203, 255, 348, 366, 371, 462, 498, 499, 503, 511, 518, 521, 632, 633, 716, 731, 734, 817, 843, 845, 905, 906, 933, 943, 950
shortaccess 162, 164, 498–500, 632, 716, 726, 792, 821
shortplural 36, 43–45, 162, 177, 203, 498, 504, 511, 520, 521, 633, 678, 717, 735, 844, 909
shortpluralaccess 162, 498–500, 633, 717, 792, 821
sort 10, 11, 17, 34, 37, 134, 145, 155, 156, 228, 390, 391, 416, 520, 597, 598, 633, 884, 989
symbol 251, 367, 368, 423, 451, 452, 456, 460, 502, 509, 586, 633, 634, 717, 735, 795, 934, 950, 951
symbolaccess 423, 633, 717, 735, 795
symbolplural 502, 510, 633, 634, 718, 735, 795
symbolpluralaccess 634, 718, 795
text 35–37, 61, 163, 167–169, 203, 223, 227, 255, 348, 371, 501, 508, 591, 629, 631, 634, 658, 662, 663, 718, 736, 751, 752, 802, 817, 818, 853, 920
textaccess 162, 500, 634, 718, 802
type 41, 44, 254, 264, 378, 379, 389, 418, 430, 515, 560, 634, 693, 736, 884, 937, 956, 958
user1 63, 135, 297, 330, 368, 369, 397, 398, 423, 505, 512, 518, 625, 634, 638, 719, 736, 812
user1access 634, 719, 812
user2 295, 368, 505, 513, 635, 638, 719, 737, 812
user2access 635, 719, 812
user3 506, 513, 635, 638, 719, 737, 813
user3access 635, 719, 813
user4 506, 513, 635, 720, 737, 814
user4access 635, 720, 814
user5 506, 514, 635, 636, 720, 738, 814
user5access 636, 720, 814
user6 507, 514, 636, 721, 738, 815
user6access 636, 721, 815
glossary, ignored
see ignored glossary
glossary, mini
see mini-glossary
glossary styles 668
abbr-long-short§8.7.2.6; 465, 668, 769, 774–776
abbr-short-long§8.7.2.6; 464, 668, 769, 770, 774–776
altlist 433, 668, 723
alttree 435–437, 439, 441, 451, 474, 475, 577, 578, 612, 668, 669, 723, 820
alttreegroup 668
bookindex§8.7.1; 14, 392, 396, 441–448, 557, 669, 825–828
index 435, 669, 674, 806–810
indexgroup 669, 757, 807, 809
inline 432, 669
list 14, 432, 433, 668, 669, 670, 759–761, 980
listdotted 433, 669, 760
listgroup 433, 669, 670, 760
listhypergroup 670
long-booktabs 481, 670
long-custom1-name§8.7.2.7; 468–470, 670, 764, 765
long-custom2-name§8.7.2.7; 469, 470, 670, 764
long-custom3-name§8.7.2.7; 469, 470, 670, 764
long-desc-custom1-name§8.7.2.7; 472, 473, 670, 766
long-desc-custom2-name§8.7.2.7; 472, 473, 670, 765
long-desc-custom3-name§8.7.2.7; 473, 474, 671, 765
long-desc-name§8.7.2.1; 453, 671, 766
long-desc-sym-name§8.7.2.2; 456, 671, 767
long-desc-sym§8.7.2.5; 452, 462, 671, 766, 767
long-loc-desc-name§8.7.2.3; 457, 671, 768
long-loc-desc-sym-name§8.7.2.4; 459, 671, 768
long-loc-sym-desc-name§8.7.2.4; 459, 672, 768, 769
long-name-custom1§8.7.2.7; 468, 470, 473, 672, 770, 771
long-name-custom1-desc§8.7.2.7; 471–473, 672, 765, 770
long-name-custom2§8.7.2.7; 469, 470, 473, 672, 770, 771
long-name-custom2-desc§8.7.2.7; 471–473, 672, 764, 770
long-name-custom3§8.7.2.7; 469, 470, 473, 672, 771
long-name-custom3-desc§8.7.2.7; 471–474, 672, 764, 771
long-name-desc-loc§8.7.2.3; 456, 673, 771, 772
long-name-desc-sym-loc§8.7.2.4; 458, 673, 772
long-name-desc-sym§8.7.2.2; 454, 673, 772
long-name-desc§8.7.2.1; 452, 453, 462, 473, 474, 673, 771, 773
long-name-sym-desc-loc§8.7.2.4; 458, 673, 773
long-name-sym-desc§8.7.2.2; 452, 455, 460, 673, 773, 774
long-sym-desc-name§8.7.2.2; 455, 674, 777, 778
long-sym-desc§8.7.2.5; 452, 461, 674, 777, 778
long 14, 402, 432, 450, 674
longheader 481, 674
longragged 674
mcolindex 674
mcolindexgroup 441, 674
mcoltree 474, 675
super 675
superragged 675
table§8.7.4; 481, 675, 970
topic§8.7.3; 474, 675
topicmcols§8.7.3; 474, 675, 803
tree 435, 436, 474, 668, 675, 676, 806–810, 920
treegroup 434, 675, 676, 807, 809
treehypergroup 434, 676, 808
treenoname 436, 676, 808, 809
glossaryentry counter 975
`\glossaryentrynumbers` 400, 427, 700, 842
`\glossaryheader` 401, 700
`\glossaryname` 701
`\glossarypostamble` 385, 481, 648, 701
`\glossarypreamble` 379, 385, 386, 481, 648, 701,
see also `\setglossarypreamble`
`\glossarysection` 481, 701
`\glossarytitle` 401, 487, 701
`\glossarytoctitle` 401, 701
`\glossentry` 400, 401, 403, 418, 481, 701
`\Glossentrydesc` 159, 479, 702, 727
`\glossentrydesc` 159, 422, 450, 496, 522, 523, 628, 702, 727
`\Glossentryname` 424, 479, 597, 702, 781
`\glossentryname` 159, 418–420, 422–424, 443, 450, 495, 500, 524, 597, 626, 631, 702, 782, 801, 848, 894
`\glossentrynameother`§8.6; 159, 420, 423, 702, 894
`\Glossentrysymbol` 159, 702, 794
`\glossentrysymbol` 159, 422, 423, 452, 495, 524, 702, 733, 795
`\glossxtrsetpopts`§5.4; 230, 702, 888
[top]

## Gls
[link]

`\GLS` 703
`\Gls` 703
`\gls` 703
`\gls`-like 623
`\gls`-like and `\glstext`-like options 185–195, 639
counter 27, 264, 546, 552, 581, 582, 639, 956
format 639
hyper 182, 185, 188, 203, 204, 230, 256, 322, 323, 521, 522, 639, 829
hyperoutside§5.1.2; 185, 189, 234, 256, 522, 639, 861
innertextformat§5.1.2; 43, 166, 173, 190, 624, 639, 831, 832
local 190, 285, 640
noindex§5.1.2; 37, 50, 184, 185, 187, 189, 192, 193, 203, 204, 230, 259, 267, 280, 281, 599, 640, 857
postunset§5.1.2; 185, 188–192, 285, 640, 757
prefix§5.1.2; 195, 384, 640
prereset§5.1.2; 43, 47, 184, 185, 188, 190, 192, 284, 285, 289, 363, 640, 742, 745, 746, 757
preunset§5.1.2; 43, 47, 184, 185, 188, 191, 192, 284, 285, 287, 288, 364, 640, 757, 784, 785, 802
textformat§5.1.2; 190, 239, 640
theHvalue§5.1.2; 194, 195, 641
thevalue§5.1.2; 194, 195, 264, 527, 578, 613, 622, 641
types 185, 641, 722
wrgloss§5.1.2; 184, 185, 188, 189, 193, 266, 522, 641, 862, 935
`\glsabbrvdefaultfont` 65, 74, 82, 93, 115, 132, 133, 136, 148, 154, 703
`\glsabbrvemfont` 71–73, 78–80, 85–87, 97–99, 126–129, 158, 703
`\glsabbrvfont` 167, 171, 173, 683, 703, 757, 815
`\glsabbrvhyphenfont` 63, 148, 704
`\glsabbrvonlyfont` 154, 704
`\glsabbrvscfont` 67–69, 75, 76, 82, 83, 94, 95, 118–121, 136, 154, 156, 157, 704
`\glsabbrvsconlyfont` 113, 154, 155, 704
`\glsabbrvscuserfont` 91, 136, 137, 704
`\glsabbrvsmfont` 69–71, 76, 77, 84, 96, 122–125, 157, 704
`\glsabbrvuserfont` 88, 100, 135, 136, 704
`\glsabspace` Table 4.2; 132, 705
`\GLSaccessdesc`§9.2; 503, 705, 707
`\Glsaccessdesc`§9.2; 503, 705, 707
`\glsaccessdesc`§9.2; 503, 705, 707
`\GLSaccessdescplural`§9.2; 503, 705, 707
`\Glsaccessdescplural`§9.2; 503, 705, 707
`\glsaccessdescplural`§9.2; 503, 705, 707
`\GLSaccessfirst`§9.2; 501, 706, 707
`\Glsaccessfirst`§9.2; 501, 706, 708
`\glsaccessfirst`§9.2; 501, 706, 708
`\GLSaccessfirstplural`§9.2; 502, 706, 708
`\Glsaccessfirstplural`§9.2; 502, 706, 708
`\glsaccessfirstplural`§9.2; 502, 706, 708
`\GLSaccessfmtdesc`§9.3; 510, 707
`\Glsaccessfmtdesc`§9.3; 510, 707
`\glsaccessfmtdesc`§9.3; 510, 707
`\GLSaccessfmtdescplural`§9.3; 511, 707
`\Glsaccessfmtdescplural`§9.3; 511, 707
`\glsaccessfmtdescplural`§9.3; 510, 707
`\GLSaccessfmtfirst`§9.3; 509, 707
`\Glsaccessfmtfirst`§9.3; 509, 707
`\glsaccessfmtfirst`§9.3; 509, 708
`\GLSaccessfmtfirstplural`§9.3; 509, 708
`\Glsaccessfmtfirstplural`§9.3; 509, 708
`\glsaccessfmtfirstplural`§9.3; 509, 708
`\GLSaccessfmtlong`§9.3; 512, 708
`\Glsaccessfmtlong`§9.3; 512, 708
`\glsaccessfmtlong`§9.3; 175, 512, 708
`\GLSaccessfmtlongpl`§9.3; 512, 709
`\Glsaccessfmtlongpl`§9.3; 512, 709
`\glsaccessfmtlongpl`§9.3; 512, 709
`\GLSaccessfmtname`§9.3; 508, 709
`\Glsaccessfmtname`§9.3; 508, 709
`\glsaccessfmtname`§9.3; 507, 709
`\GLSaccessfmtplural`§9.3; 508, 709
`\Glsaccessfmtplural`§9.3; 508, 709
`\glsaccessfmtplural`§9.3; 508, 710
`\GLSaccessfmtshort`§9.3; 511, 710
`\Glsaccessfmtshort`§9.3; 511, 710
`\glsaccessfmtshort`§9.3; 177, 511, 710
`\GLSaccessfmtshortpl`§9.3; 511, 710
`\Glsaccessfmtshortpl`§9.3; 511, 710
`\glsaccessfmtshortpl`§9.3; 511, 710
`\GLSaccessfmtsymbol`§9.3; 510, 711
`\Glsaccessfmtsymbol`§9.3; 509, 711
`\glsaccessfmtsymbol`§9.3; 509, 711
`\GLSaccessfmtsymbolplural`§9.3; 510, 711
`\Glsaccessfmtsymbolplural`§9.3; 510, 711
`\glsaccessfmtsymbolplural`§9.3; 510, 711
`\GLSaccessfmttext`§9.3; 508, 711
`\Glsaccessfmttext`§9.3; 508, 711
`\glsaccessfmttext`§9.3; 508, 712
`\GLSaccessfmtuseri`§9.3; 513, 712
`\Glsaccessfmtuseri`§9.3; 512, 712
`\glsaccessfmtuseri`§9.3; 512, 712
`\GLSaccessfmtuserii`§9.3; 513, 712
`\Glsaccessfmtuserii`§9.3; 513, 712
`\glsaccessfmtuserii`§9.3; 513, 712
`\GLSaccessfmtuseriii`§9.3; 513, 713
`\Glsaccessfmtuseriii`§9.3; 513, 713
`\glsaccessfmtuseriii`§9.3; 513, 713
`\GLSaccessfmtuseriv`§9.3; 514, 713
`\Glsaccessfmtuseriv`§9.3; 514, 713
`\glsaccessfmtuseriv`§9.3; 513, 713
`\GLSaccessfmtuserv`§9.3; 514, 713
`\Glsaccessfmtuserv`§9.3; 514, 713
`\glsaccessfmtuserv`§9.3; 514, 714
`\GLSaccessfmtuservi`§9.3; 514, 714
`\Glsaccessfmtuservi`§9.3; 514, 714
`\glsaccessfmtuservi`§9.3; 514, 714
`\glsaccessibility` 714, 721, 792
`\GLSaccesslong`§9.2; 504, 708, 714
`\Glsaccesslong`§9.2; 504, 708, 714
`\glsaccesslong`§9.2; 175, 504, 708, 714, 715
`\GLSaccesslongpl`§9.2; 505, 709, 715
`\Glsaccesslongpl`§9.2; 505, 709, 715
`\glsaccesslongpl`§9.2; 505, 709, 715
`\GLSaccessname`§9.2; 500, 709, 715
`\Glsaccessname`§9.2; 500, 709, 715
`\glsaccessname`§9.2; 182, 500, 709, 715
`\GLSaccessplural`§9.2; 501, 709, 716
`\Glsaccessplural`§9.2; 501, 710, 716
`\glsaccessplural`§9.2; 501, 710, 716
`\GLSaccessshort`§9.2; 504, 710, 716
`\Glsaccessshort`§9.2; 504, 710, 716
`\glsaccessshort`§9.2; 177, 503, 710, 716
`\GLSaccessshortpl`§9.2; 504, 710, 716
`\Glsaccessshortpl`§9.2; 504, 710, 717
`\glsaccessshortpl`§9.2; 504, 710, 716, 717
`\GLSaccesssymbol`§9.2; 502, 711, 717
`\Glsaccesssymbol`§9.2; 502, 711, 717
`\glsaccesssymbol`§9.2; 502, 711, 717
`\GLSaccesssymbolplural`§9.2; 503, 711, 717
`\Glsaccesssymbolplural`§9.2; 502, 711, 717
`\glsaccesssymbolplural`§9.2; 502, 711, 717, 718
`\GLSaccesstext`§9.2; 501, 711, 718
`\Glsaccesstext`§9.2; 501, 712, 718
`\glsaccesstext`§9.2; 15, 500, 712, 718
`\GLSaccessuseri`§9.2; 505, 712, 718
`\Glsaccessuseri`§9.2; 505, 712, 718
`\glsaccessuseri`§9.2; 505, 712, 718
`\GLSaccessuserii`§9.2; 506, 712, 719
`\Glsaccessuserii`§9.2; 505, 712, 719
`\glsaccessuserii`§9.2; 505, 712, 719
`\GLSaccessuseriii`§9.2; 506, 713, 719
`\Glsaccessuseriii`§9.2; 506, 713, 719
`\glsaccessuseriii`§9.2; 506, 713, 719
`\GLSaccessuseriv`§9.2; 506, 713, 720
`\Glsaccessuseriv`§9.2; 506, 713, 720
`\glsaccessuseriv`§9.2; 506, 713, 720
`\GLSaccessuserv`§9.2; 507, 713, 720
`\Glsaccessuserv`§9.2; 507, 714, 720
`\glsaccessuserv`§9.2; 506, 714, 720
`\GLSaccessuservi`§9.2; 507, 714, 720
`\Glsaccessuservi`§9.2; 507, 714, 721
`\glsaccessuservi`§9.2; 507, 714, 720, 721
`\glsaccsupp` 721, 739
`\glsacspace` 132, 705, 721
`\glsacspacemax` 132, 721
`\glsadd` 20, 23, 27, 37, 185–189, 195, 197, 198, 259–263, 276, 525, 622, 639, 721, 722, 723, 821, 974
`\glsaddall` 15, 185, 198, 260, 378, 537, 641, 721
`\glsaddallunindexed`§5.8; 260, 722
`\glsaddallunused` 260, 537, 722
`\glsaddeach`§5.8; 198, 260, 261, 722, 794
`\glsaddkey` 35, 722,
see also `\glsaddstoragekey` & `\glsxtrprovidestoragekey`
`\glsaddpostsetkeys`§5.1.1; 186, 187, 722
`\glsaddpresetkeys`§5.1.1; 185, 187, 722
`\glsaddstoragekey` 35, 723, 896,
see also `\glsaddkey` & `\glsxtrprovidestoragekey`
`\glsaltlistitem`§8.6.5.3; 433, 723
`\glsalttreechildpredesc`§8.6.5.4; 435, 723
`\glsalttreepredesc`§8.6.5.4; 435, 723
`\glsapptopostlink`§5.5.4; 250, 723
`\glsautoprefix` 381, 723
`\glsbackslash` 558, 723
`\glscapitalisewords`§5.2.4; 199, 293, 375, 523, 724, 839
`\glscapscase` 254, 353, 354, 724, 854
`\glscapturedgroup`§11.5.2; 558, 724, 940
`\glscategory`§10; 515, 724
`\glscategorylabel`§4.5.3.1; 161–163, 166, 167, 724
`\glscombinedfirstsep`§7.4; 345, 355, 724
`\glscombinedfirstsepfirst`§7.4; 346, 356, 375, 725
`\glscombinedsep`§7.4; 345, 346, 356, 725
`\glscombinedsepfirst`§7.4; 346, 356, 725
`\glscurrententrylabel` 137, 395, 403, 405, 418, 424, 426, 725
`\glscurrententrylevel`§8.4.3; 395, 404, 406, 725
`\glscurrentfieldvalue` 303–308, 725, 838, 842, 855–857, 860, 933
`\glscurrentrootentry`§8.4.3; 404, 405, 726
`\glscurrenttoplevelentry`§8.4.3; 404, 405, 726
`\glscustomtext` 254, 726, 758
`\glsdefaultshortaccess` 499, 726
`\glsdefaulttype` 44, 380, 650, 687, 693, 699, 726, 937, 965, 974
`\glsdefpostdesc`§8.6.2; 426, 726
`\glsdefpostlink`§5.5.4; 250, 726
`\glsdefpostname`§8.6.1; 424, 727
`\GLSdesc` 727
`\Glsdesc` 727
`\glsdesc` 252, 628, 727
`\glsdescplural` 252, 727
`\glsdescriptionaccessdisplay` 503, 510, 727
`\glsdescriptionpluralaccessdisplay` 503, 510, 728
`\glsdescwidth` 450, 453, 454, 456, 458, 461, 462, 464, 470, 471, 728, 764, 765, 769, 774, 775, 778
`\Glsdisp` 589, 728
`\glsdisp` 182, 235, 242, 254, 258, 368, 589, 623, 694, 726, 728, 759, 836, 883, 952
`\glsdisplaynumberlist`§11.5.8; 595, 728
`\glsdoifexists` 728, 729, 739, 932,
see also `\ifglsentryexists`, `\glsdoifexistsordo` & `\glsdoifnoexists`
`\glsdoifexistsordo` 729,
see also `\ifglsentryexists`, `\glsdoifexists` & `\glsdoifnoexists`
`\glsdoifexistsorwarn` 729
`\glsdoifnoexists` 729,
see also `\ifglsentryexists`, `\glsdoifexistsordo` & `\glsdoifexists`
`\glsenableentrycount` 282, 309–311, 315, 524, 729, 730, 734, 893, 894
`\glsenableentryunitcount`§6.1; 282, 315, 729, 730, 734, 893, 894
`\glsencapwrcontent`§5.8; 184, 266, 729
`\glsendrange`§5.8; 261, 262, 730, 902
`\glsentrycounterlabel` 730
`\glsentrycurrcount` 309, 316, 730
`\Glsentrydesc` 523, 730
`\glsentrydesc` 416, 503, 627, 628, 705, 730
`\glsentrydescplural` 503, 706, 730
`\Glsentryfirst` 731
`\glsentryfirst` 212, 501, 706, 731
`\Glsentryfirstplural` 731
`\glsentryfirstplural` 212, 213, 502, 706, 731
`\glsentryfmt` 159, 254, 517, 693, 731, 752, 817, 845, 897
`\glsentryindexcount`§5.8; 267, 731, 755
`\glsentryitem` 418, 730, 732
`\Glsentrylong` 50, 732
`\glsentrylong` 50, 207, 208, 228, 233, 504, 715, 732, 783
`\Glsentrylongpl` 732
`\glsentrylongpl` 50, 208, 209, 505, 715, 732, 783
`\Glsentryname` 376, 421, 732
`\glsentryname` 23, 47, 210, 211, 293, 294, 302, 376, 416, 418, 421, 500, 515, 597, 598, 627, 631, 715, 733
`\glsentrynumberlist`§11.5.8; 440, 595, 733
`\glsentryparent` 294, 733
`\glsentrypdfsymbol`§8.6; 423, 733
`\Glsentryplural` 733
`\glsentryplural` 211, 212, 501, 716, 733
`\glsentryprevcount` 309, 316, 734
`\glsentryprevmaxcount`§6.1; 316, 734
`\glsentryprevtotalcount`§6.1; 316, 734
`\Glsentryshort` 50, 734
`\glsentryshort` 50, 201, 206, 215, 228, 229, 233, 503, 716, 734, 783
`\Glsentryshortpl` 734
`\glsentryshortpl` 50, 206, 207, 209, 504, 717, 735, 783
`\Glsentrysymbol` 735
`\glsentrysymbol` 423, 502, 633, 717, 735
`\glsentrysymbolaccess` 735
`\glsentrysymbolplural` 502, 634, 718, 735
`\Glsentrytext` 722, 735
`\glsentrytext` 15, 50, 201, 211, 229, 302, 501, 718, 722, 736, 754
`\glsentrytitlecase` 199, 376, 523, 736
`\glsentrytype` 736
`\Glsentryuseri` 736
`\glsentryuseri` 505, 634, 719, 736
`\Glsentryuserii` 736
`\glsentryuserii` 505, 635, 719, 737
`\Glsentryuseriii` 737
`\glsentryuseriii` 506, 635, 719, 737
`\Glsentryuseriv` 737
`\glsentryuseriv` 506, 635, 720, 737
`\Glsentryuserv` 738
`\glsentryuserv` 506, 635, 720, 738
`\Glsentryuservi` 738
`\glsentryuservi` 507, 636, 721, 738
`\glsexclapplyinnerfmtfield`§5.5.3; 162, 245, 738
`\glsexpandfields` 738, 791
`\glsextrapostnamehook`§8.6.1; 425, 626, 739, 894
`\glsfieldaccsupp` 739, 829
`\glsfielddef` 37, 739, 740
`\glsfieldedef` 739, 740
`\glsfieldfetch` 736, 739
`\glsfieldgdef` 740
`\glsfieldxdef` 740
`\glsFindWidestAnyName`§8.6.5.4; 439, 740
`\glsFindWidestAnyNameLocation`§8.6.5.4; 440, 740
`\glsFindWidestAnyNameSymbol`§8.6.5.4; 440, 740
`\glsFindWidestAnyNameSymbolLocation`§8.6.5.4; 440, 740
`\glsFindWidestLevelTwo`§8.6.5.4; 439, 740
`\glsFindWidestTopLevelName`§8.6.5.4; 439, 741
`\glsfindwidesttoplevelname` 439, 741
`\glsFindWidestUsedAnyName`§8.6.5.4; 439, 440, 741
`\glsFindWidestUsedAnyNameLocation`§8.6.5.4; 440, 741
`\glsFindWidestUsedAnyNameSymbol`§8.6.5.4; 440, 741, 742
`\glsFindWidestUsedAnyNameSymbolLocation`§8.6.5.4; 440, 741
`\glsFindWidestUsedLevelTwo`§8.6.5.4; 439, 742
`\glsFindWidestUsedTopLevelName`§8.6.5.4; 439, 742
`\GLSfirst` 166, 212, 521, 742
`\Glsfirst` 166, 212, 521, 742
`\glsfirst` 5, 43, 47, 50, 61, 81, 166, 184, 185, 188, 212, 240, 284, 366, 521, 742, 902, 943
`\glsfirstabbrvdefaultfont` 65, 74, 81, 93, 115, 132, 743
`\glsfirstabbrvemfont` 71–73, 78–80, 85–87, 97–99, 126–129, 158, 743
`\glsfirstabbrvfont` 166, 171, 698, 743, 744, 746
`\glsfirstabbrvhyphenfont` 63, 148, 743
`\glsfirstabbrvonlyfont` 154, 743
`\glsfirstabbrvscfont` 67–69, 75, 76, 82, 83, 94, 95, 118–121, 157, 743
`\glsfirstabbrvsconlyfont` 113, 154, 743
`\glsfirstabbrvscuserfont` 91, 136, 743
`\glsfirstabbrvsmfont` 69–71, 76, 77, 84, 96, 122–125, 157, 744
`\glsfirstabbrvuserfont` 88, 100, 136, 744
`\glsfirstaccessdisplay` 501, 509, 744
`\glsfirstinnerfmtabbrvfont`§4.5.3.1; 166, 744, 746
`\glsfirstinnerfmtlongfont`§4.5.3.1; 167, 168, 744
`\glsfirstlongdefaultfont` 74, 81, 93, 133, 744
`\glsfirstlongemfont` 79, 80, 86, 87, 98, 99, 158, 744
`\glsfirstlongfont` 168, 171, 744, 745, 746
`\glsfirstlongfootnotefont` 115, 145, 745
`\glsfirstlonghyphenfont` 63, 148, 151, 745
`\glsfirstlongonlyfont` 154, 745
`\glsfirstlonguserfont` 88, 100, 136, 745
`\GLSfirstplural` 166, 213, 745
`\Glsfirstplural` 166, 213, 745
`\glsfirstplural` 43, 47, 81, 166, 184, 188, 212, 240, 745, 746
`\glsfirstpluralaccessdisplay` 502, 509, 746
`\glsfirstxpabbrvfont`§4.5.3.1; 166, 746
`\glsfirstxplongfont`§4.5.3.1; 168, 746
`\GLSfmtfield`§5.5.3; 245, 507, 707–714, 746
`\Glsfmtfield`§5.5.3; 245, 507, 707–714, 746
`\glsfmtfield`§5.5.3; 244, 245, 507, 707–714, 746, 747
`\GLSfmtfirst`§5.3.2; 212, 225, 747
`\Glsfmtfirst`§5.3.2; 212, 224, 747
`\glsfmtfirst`§5.3.2; 212, 224, 747
`\GLSfmtfirstpl`§5.3.2; 213, 225, 747
`\Glsfmtfirstpl`§5.3.2; 213, 225, 747
`\glsfmtfirstpl`§5.3.2; 212, 225, 747
`\GLSfmtfull`§5.3.2; 210, 221, 748
`\Glsfmtfull`§5.3.2; 210, 221, 748
`\glsfmtfull`§5.3.2; 209, 220, 221, 748
`\GLSfmtfullpl`§5.3.2; 210, 222, 748
`\Glsfmtfullpl`§5.3.2; 210, 221, 748
`\glsfmtfullpl`§5.3.2; 210, 221, 748
`\GLSfmtinsert` 749
`\glsfmtinsert` 749
`\GLSfmtlong`§5.3.2; 208, 219, 220, 749, 850, 917
`\Glsfmtlong`§5.3.2; 207, 219, 749, 850, 917
`\glsfmtlong`§5.3.2; 47, 49, 207, 208, 219, 233, 749, 850, 917, 960
`\GLSfmtlongpl`§5.3.2; 208, 220, 749, 851, 917
`\Glsfmtlongpl`§5.3.2; 208, 220, 749, 851, 917
`\glsfmtlongpl`§5.3.2; 208, 209, 220, 750, 851, 918, 960
`\GLSfmtname`§5.3.2; 211, 222, 223, 295, 750
`\Glsfmtname`§5.3.2; 211, 222, 294, 750
`\glsfmtname`§5.3.2; 210, 222, 294, 750
`\GLSfmtplural`§5.3.2; 212, 224, 750
`\Glsfmtplural`§5.3.2; 212, 224, 750
`\glsfmtplural`§5.3.2; 211, 223, 224, 750
`\GLSfmtshort`§5.3.2; 206, 217, 751, 852, 919
`\Glsfmtshort`§5.3.2; 206, 215–217, 751, 852, 919
`\glsfmtshort`§5.3.2; 27, 47, 203, 204, 206, 214–218, 230, 524, 751, 852, 918, 919, 961
`\GLSfmtshortpl`§5.3.2; 207, 219, 751, 852, 919
`\Glsfmtshortpl`§5.3.2; 207, 218, 751, 852, 919
`\glsfmtshortpl`§5.3.2; 206, 207, 218, 751, 853, 919, 961
`\GLSfmttext`§5.3.2; 211, 223, 295, 751
`\Glsfmttext`§5.3.2; 197, 211, 223, 294, 751
`\glsfmttext`§5.3.2; 27, 182, 189, 203, 211, 223, 294, 302, 752
`\glsforeachincategory`§10; 516, 752
`\glsforeachwithattribute`§10; 516, 752
`\glsgenentryfmt`§5.5.5; 60, 64, 81, 190, 243, 244, 255, 507, 517, 731, 752
`\glsgetattribute`§10.2.2; 528, 752
`\glsgetcategoryattribute`§10.2.2; 528, 752
`\glsgetwidestname`§8.6.5.4; 438, 753
`\glsgetwidestsubname`§8.6.5.4; 438, 753
`\glsgroupheading` 396, 401, 403, 404, 753
`\glsgroupskip` 386, 432, 753, 784
`\glshasattribute`§10.2.2; 356, 528, 753
`\glshascategoryattribute`§10.2.2; 356, 528, 753
`\glshashchar`§11.5.2; 558, 754
`\glshex`§11.5.2; 558, 754,
see also `\GlsXtrResourceInitEscSequences`
`\glshyperlink` 754
`\glshypernumber` 29, 580, 583, 599, 754, 783, 931, 973
`\glsifapplyinnerfmtfield`§5.5.3; 244, 754,
see also `\glsexclapplyinnerfmtfield`
`\glsifattribute`§10.2.2; 529, 754
`\glsifattributetrue`§10.2.2; 529, 755
`\glsifcategory`§10; 515, 755
`\glsifcategoryattribute`§10.2.2; 528, 529, 755
`\glsifcategoryattributehasitem`§10.2.2; 530, 755
`\glsifcategoryattributetrue`§10.2.2; 529, 530, 755
`\glsifindexed`§5.8; 267, 755
`\glsifnotregular`§10.2.2; 529, 756
`\glsifnotregularcategory`§10.2.2; 529, 756
`\glsifplural` 142, 144, 150, 152, 254, 353, 756
`\glsifregular`§10.2.2; 255, 529, 731, 756
`\glsifregularcategory`§10.2.2; 529, 756
`\glsignore` 264, 428, 548, 624, 756
`\glsindexingsetting` 377, 533, 757
`\glsindexsubgroupitem` 757
`\glsinitreunsets`§5.1.1; 185, 188, 288, 757
`\glsinlinedescformat` 432, 757
`\glsinlinesubdescformat` 432, 757
`\glsinnerfmtabbrvfont`§4.5.3.1; 167, 757, 815
`\glsinnerfmtlongfont`§4.5.3.1; 168, 746, 757, 816
`\glsinsert` 54, 105, 150–152, 166, 253, 254, 749, 758, 844, 898,
see also `\glsxtrsaveinsert` & `\glsxtrfullsaveinsert`
`\glskeylisttok`§4.5.3.1; 161–163, 758
`\glslabel` 150–152, 165, 166, 229, 243, 246, 254, 262, 288, 525, 758, 821, 892
`\glslabeltok`§4.5.3.1; 161, 163, 165, 166, 758
`\glsletentryfield` 293, 758
`\Glslink` 589, 758
`\glslink` 182, 235, 242, 252, 258, 298, 589, 623, 695, 728, 758, 840, 884
`\glslinkcheckfirsthyperhook` 185, 309, 318, 321, 759
`\glslinkpostsetkeys` 186–189, 309, 322, 759
`\glslinkpresetkeys`§5.1.1; 185, 187–189, 309, 321, 322, 556, 759
`\glslinkwrcontent`§5; 183, 229, 729, 759
`\glslistchildpostlocation`§8.6.5.3; 433, 759
`\glslistchildprelocation`§8.6.5.3; 432, 759
`\glslistdesc`§8.6.5.3; 433, 760
`\glslistdottedwidth` 433, 760
`\glslistexpandedname` 760
`\glslistgroupafterheader`§8.6.5.3; 433, 760
`\glslistgroupheaderitem`§8.6.5.3; 433, 760
`\glslistgroupskip`§8.6.5.3; 433, 760
`\glslistinit` 760
`\glslistitem`§8.6.5.3; 433, 760
`\glslistprelocation`§8.6.5.3; 432, 761
`\glslocalreset` 191, 282, 761, 893,
see also `\glsreset`, `\glslocalunset`, `\ifglsused` & `\GlsXtrIfUnusedOrUndefined`
`\glslocalresetall` 289, 761,
see also `\glsreset`, `\glslocalreset`, `\glsresetall` & `\glslocalunsetall`
`\glslocalreseteach`§5.10; 283, 761,
see also `\glsreset`, `\glslocalreset`, `\ifglsused` & `\GlsXtrIfUnusedOrUndefined`
`\glslocalunset` 282, 285–287, 640, 761, 893,
see also `\glsunset`, `\glslocalreset`, `\ifglsused` & `\GlsXtrIfUnusedOrUndefined`
`\glslocalunsetall` 761,
see also `\glsunset`, `\glslocalunset`, `\glsunsetall` & `\glslocalresetall`
`\glslocalunseteach`§5.10; 283, 762,
see also `\glsunset`, `\glslocalreset`, `\ifglsused` & `\GlsXtrIfUnusedOrUndefined`
`\glslongaccessdisplay` 504, 512, 762
`\glslongdefaultfont` 65, 74, 81, 93, 133, 145, 148, 154, 762
`\glslongemfont` 79, 80, 86, 87, 98, 99, 158, 233, 762
`\glslongextraCustomIAlign`§8.7.2.7; 468, 762
`\glslongextraCustomIField`§8.7.2.7; 465, 762
`\glslongextraCustomIFmt`§8.7.2.7; 466, 470, 762
`\glslongextraCustomIHeader`§8.7.2.7; 466, 762
`\glslongextraCustomIIAlign`§8.7.2.7; 468, 763
`\glslongextraCustomIIField`§8.7.2.7; 466, 763
`\glslongextraCustomIIFmt`§8.7.2.7; 467, 470, 763
`\glslongextraCustomIIHeader`§8.7.2.7; 466, 763
`\glslongextraCustomIIIAlign`§8.7.2.7; 468, 763
`\glslongextraCustomIIIField`§8.7.2.7; 466, 763
`\glslongextraCustomIIIFmt`§8.7.2.7; 467, 470, 763
`\glslongextraCustomIIIHeader`§8.7.2.7; 466, 764
`\glslongextraCustomIIINameHeader`§8.7.2.7; 469, 764
`\glslongextraCustomIIINameTabularHeader`§8.7.2.7; 469, 764
`\glslongextraCustomIIISetDescWidth`§8.7.2.7; 471, 764
`\glslongextraCustomIINameHeader`§8.7.2.7; 469, 764
`\glslongextraCustomIINameTabularHeader`§8.7.2.7; 469, 764
`\glslongextraCustomIISetDescWidth`§8.7.2.7; 471, 764
`\glslongextraCustomINameHeader`§8.7.2.7; 468, 764
`\glslongextraCustomINameTabularHeader`§8.7.2.7; 468, 765
`\glslongextraCustomISetDescWidth`§8.7.2.7; 471, 765
`\glslongextraCustomTabularFooter`§8.7.2.7; 468, 765
`\glslongextraDescAlign`§8.7.2; 450, 462, 470, 765
`\glslongextraDescCustomIIINameHeader`§8.7.2.7; 473, 765
`\glslongextraDescCustomIIINameTabularHeader`§8.7.2.7; 473, 765
`\glslongextraDescCustomIINameHeader`§8.7.2.7; 472, 765
`\glslongextraDescCustomIINameTabularHeader`§8.7.2.7; 472, 765
`\glslongextraDescCustomINameHeader`§8.7.2.7; 472, 766
`\glslongextraDescCustomINameTabularHeader`§8.7.2.7; 472, 766
`\glslongextraDescFmt`§8.7.2; 450, 766
`\glslongextraDescNameHeader`§8.7.2.1; 454, 766
`\glslongextraDescNameTabularFooter`§8.7.2.1; 454, 766
`\glslongextraDescNameTabularHeader`§8.7.2.1; 453, 766
`\glslongextraDescSymHeader`§8.7.2.5; 462, 766
`\glslongextraDescSymNameHeader`§8.7.2.2; 456, 766
`\glslongextraDescSymNameTabularFooter`§8.7.2.2; 456, 767
`\glslongextraDescSymNameTabularHeader`§8.7.2.2; 456, 767
`\glslongextraDescSymTabularFooter`§8.7.2.5; 462, 767
`\glslongextraDescSymTabularHeader`§8.7.2.5; 462, 767
`\glslongextraGroupHeading`§8.7.2; 452, 767
`\glslongextraHeaderFmt`§8.7.2; 449, 767
`\glslongextraLocationAlign`§8.7.2; 451, 767
`\glslongextraLocationDescNameHeader`§8.7.2.3; 457, 768
`\glslongextraLocationDescNameTabularFooter`§8.7.2.3; 457, 768
`\glslongextraLocationDescNameTabularHeader`§8.7.2.3; 457, 768
`\glslongextraLocationDescSymNameHeader`§8.7.2.4; 460, 768
`\glslongextraLocationDescSymNameTabularFooter`§8.7.2.4; 459, 768
`\glslongextraLocationDescSymNameTabularHeader`§8.7.2.4; 459, 768
`\glslongextraLocationFmt`§8.7.2; 451, 768
`\glslongextraLocationSymDescNameHeader`§8.7.2.4; 459, 768
`\glslongextraLocationSymDescNameTabularFooter`§8.7.2.4; 459, 769
`\glslongextraLocationSymDescNameTabularHeader`§8.7.2.4; 459, 769
`\glslongextraLocSetDescWidth`§8.7.2.3; 456, 769
`\glslongextraLongFmt`§8.7.2.6; 463, 769
`\glslongextraLongHeader`§8.7.2.6; 463, 769
`\glslongextraLongShortHeader`§8.7.2.6; 465, 769
`\glslongextraLongShortTabularFooter`§8.7.2.6; 465, 769
`\glslongextraLongShortTabularHeader`§8.7.2.6; 465, 769
`\glslongextraNameAlign`§8.7.2; 450, 462, 770
`\glslongextraNameCustomIDescHeader`§8.7.2.7; 471, 770
`\glslongextraNameCustomIDescTabularHeader`§8.7.2.7; 471, 770
`\glslongextraNameCustomIHeader`§8.7.2.7; 468, 770
`\glslongextraNameCustomIIDescHeader`§8.7.2.7; 472, 770
`\glslongextraNameCustomIIDescTabularHeader`§8.7.2.7; 472, 770
`\glslongextraNameCustomIIHeader`§8.7.2.7; 469, 770
`\glslongextraNameCustomIIIDescHeader`§8.7.2.7; 472, 771
`\glslongextraNameCustomIIIDescTabularHeader`§8.7.2.7; 472, 771
`\glslongextraNameCustomIIIHeader`§8.7.2.7; 469, 771
`\glslongextraNameCustomIIITabularHeader`§8.7.2.7; 469, 771
`\glslongextraNameCustomIITabularHeader`§8.7.2.7; 469, 771
`\glslongextraNameCustomITabularHeader`§8.7.2.7; 468, 771
`\glslongextraNameDescHeader`§8.7.2.1; 453, 771
`\glslongextraNameDescLocationHeader`§8.7.2.3; 457, 771
`\glslongextraNameDescLocationTabularFooter`§8.7.2.3; 457, 772
`\glslongextraNameDescLocationTabularHeader`§8.7.2.3; 457, 772
`\glslongextraNameDescSymHeader`§8.7.2.2; 454, 772
`\glslongextraNameDescSymLocationHeader`§8.7.2.4; 458, 772
`\glslongextraNameDescSymLocationTabularFooter`§8.7.2.4; 458, 772
`\glslongextraNameDescSymLocationTabularHeader`§8.7.2.4; 458, 772
`\glslongextraNameDescSymTabularFooter`§8.7.2.2; 454, 772
`\glslongextraNameDescSymTabularHeader`§8.7.2.2; 454, 772
`\glslongextraNameDescTabularFooter`§8.7.2.1; 453, 773
`\glslongextraNameDescTabularHeader`§8.7.2.1; 453, 773
`\glslongextraNameFmt`§8.7.2; 450, 470, 773
`\glslongextraNameSymDescHeader`§8.7.2.2; 455, 773
`\glslongextraNameSymDescLocationHeader`§8.7.2.4; 459, 773
`\glslongextraNameSymDescLocationTabularFooter`§8.7.2.4; 458, 773
`\glslongextraNameSymDescLocationTabularHeader`§8.7.2.4; 458, 773
`\glslongextraNameSymDescTabularFooter`§8.7.2.2; 455, 773
`\glslongextraNameSymDescTabularHeader`§8.7.2.2; 455, 774
`\glslongextraSetDescWidth`§8.7.2.1; 453, 454, 456, 471, 774
`\glslongextraSetWidest`§8.7.2; 451, 453, 454, 456, 458, 774
`\glslongextraShortHeader`§8.7.2.6; 462, 464, 774
`\glslongextraShortLongHeader`§8.7.2.6; 464, 774
`\glslongextraShortLongTabularFooter`§8.7.2.6; 464, 774
`\glslongextraShortLongTabularHeader`§8.7.2.6; 464, 774
`\glslongextraShortNoNameSetDescWidth`§8.7.2.6; 464, 775
`\glslongextraShortTargetFmt`§8.7.2.6; 463, 775
`\glslongextraSubCustomIFmt`§8.7.2.7; 467, 470, 775
`\glslongextraSubCustomIIFmt`§8.7.2.7; 467, 470, 775
`\glslongextraSubCustomIIIFmt`§8.7.2.7; 467, 470, 775
`\glslongextraSubDescFmt`§8.7.2; 450, 775
`\glslongextraSubGroupHeading`§8.7.2; 452, 775
`\glslongextraSubLocationFmt`§8.7.2; 451, 776
`\glslongextraSubLongFmt`§8.7.2.6; 464, 776
`\glslongextraSubNameFmt`§8.7.2; 450, 451, 460, 470, 776
`\glslongextraSubShortTargetFmt`§8.7.2.6; 463, 776
`\glslongextraSubSymbolFmt`§8.7.2; 452, 776
`\glslongextraSubSymbolOrName`§8.7.2.5; 460, 776
`\glslongextraSubSymbolTargetFmt`§8.7.2.5; 460, 461, 776
`\glslongextraSymbolAlign`§8.7.2; 452, 777
`\glslongextraSymbolFmt`§8.7.2; 452, 460, 777
`\glslongextraSymbolNameAlign`§8.7.2.5; 460, 777
`\glslongextraSymbolOrName`§8.7.2.5; 460, 777
`\glslongextraSymbolTargetFmt`§8.7.2.5; 460, 777
`\glslongextraSymDescHeader`§8.7.2.5; 461, 777
`\glslongextraSymDescNameHeader`§8.7.2.2; 455, 777
`\glslongextraSymDescNameTabularFooter`§8.7.2.2; 455, 778
`\glslongextraSymDescNameTabularHeader`§8.7.2.2; 455, 778
`\glslongextraSymDescTabularFooter`§8.7.2.5; 461, 778
`\glslongextraSymDescTabularHeader`§8.7.2.5; 461, 778
`\glslongextraSymLocSetDescWidth`§8.7.2.4; 457, 458, 778
`\glslongextraSymNoNameSetDescWidth`§8.7.2.5; 461, 778
`\glslongextraSymSetDescWidth`§8.7.2.2; 454, 458, 778
`\glslongextraTabularVAlign`§8.7.2; 449, 779
`\glslongextraUpdateWidest`§8.7.2; 451, 779
`\glslongextraUpdateWidestChild`§8.7.2; 451, 779
`\GlsLongExtraUseTabularfalse`§8.7.2; 449, 779
`\GlsLongExtraUseTabulartrue`§8.7.2; 449, 779
`\glslongfont` 168, 172, 757, 779, 816
`\glslongfootnotefont` 115, 145, 779
`\glslonghyphenfont` 63, 103, 108, 148, 780
`\glslongonlyfont` 111, 154, 780
`\glslongpltok`§4.5.3.1; 162, 164, 780
`\glslongpluralaccessdisplay` 505, 512, 780
`\glslongtok`§4.5.3.1; 155, 161, 164, 780
`\glslonguserfont` 88, 100, 136, 780
`\glslowercase`§5.2.2; 199, 780
`\glsmakefirstuc` 780
`\glsmfuaddmap`§5.2.1; 199, 294, 590, 781
`\glsmfublocker`§5.2.1; 198, 590, 781
`\glsmfuexcl`§5.2.1; 197–199, 781
`\GLSname` 81, 89, 91, 93, 101, 103, 211, 781
`\Glsname` 211, 367, 781, 948
`\glsname` 210, 354, 367, 631, 781, 948
`\glsnameaccessdisplay` 500, 507, 782
`\glsnamefont` 419, 423, 462, 524, 782
`\glsnextpages` 419, 782
`\glsnoexpandfields` 204, 577, 782, 791
`\glsnoidxdisplayloc`§11.5.6; 428, 580, 782, 834
`\glsnonextpages` 419, 782, 788
`\glsnumberformat` 187, 625, 782
`\glsnumbersgroupname` 430, 783, 988
`\glspagelistwidth` 451, 456, 458, 783
`\glspar` 783
`\glspatchLToutput` 783
`\glspdffmtfull`§5.3.2; 209, 210, 748, 783
`\glspdffmtfullpl`§5.3.2; 209, 210, 748, 749, 783
`\glspenaltygroupskip` 481, 784
`\glspercentchar` 525, 784
`\GLSpl` 784
`\Glspl` 784
`\glspl` 784
`\GLSplural` 212, 784
`\Glsplural` 212, 784
`\glsplural` 43, 47, 81, 184, 191, 211, 240, 252, 518, 756, 784, 785
`\glspluralaccessdisplay` 501, 508, 785
`\glspluralsuffix` 35, 36, 43, 44, 162, 629, 631, 785
`\glspostdescription` 12, 13, 425–427, 431, 432, 626, 628, 785, 890
`\glspostinline` 432, 785
`\glspostinlinedescformat` 786
`\glspostinlinesubdescformat` 786
`\glspostlinkhook` 230, 246, 349, 351, 626, 786
`\glsprefixsep` 54, 786
`\glsprestandardsort` 786, 989
`\glspretopostlink`§5.5.4; 250, 786
`\GLSps`§5.4; 231, 787
`\Glsps`§5.4; 231, 787
`\glsps`§5.4; 231, 233, 334, 787
`\GLSpt`§5.4; 231, 787
`\Glspt`§5.4; 231, 787
`\glspt`§5.4; 231, 787
`\glsrefentry` 379, 420, 787, 888
`\glsrenewcommand`§11.5.8; 596, 787
`\glsreset` 191, 282, 309, 788, 894,
see also `\glslocalreset`, `\glsunset`, `\ifglsused` & `\GlsXtrIfUnusedOrUndefined`
`\glsresetall` 282, 788,
see also `\glsreset`, `\glsunsetall`, `\ifglsused` & `\GlsXtrIfUnusedOrUndefined`
`\glsresetcurrcountfalse`§6.1; 309, 310, 788
`\glsresetcurrcounttrue`§6.1; 310, 788
`\glsresetentrylist` 402, 788
`\glssee` 21, 22, 24, 33, 37, 185, 260, 268, 269, 273, 274, 280, 632, 788,
see also `\glsxtrindexseealso`
`\glsseefirstitem`§5.13; 302, 788, 789,
see also `\glsseeitem`
`\glsseeformat` 280, 301, 789, 930
`\glsseeitem` 302, 303, 789,
see also `\glsseefirstitem`
`\glsseeitemformat`§5.13; 294, 302, 789
`\glsseelastoxfordsep`§5.13; 303, 789,
see also `\glsseelastsep` & `\glsseelastoxfordsep`
`\glsseelastsep`§5.13; 303, 687, 789,
see also `\glsseelastsep` & `\glsseelastoxfordsep`
`\glsseelist`§5.13; 301, 302, 304, 789, 790, 900, 914,
see also `\glsxtrseelist`
`\glsseesep`§5.13; 303, 789, 790,
see also `\glsseelastsep` & `\glsseelastoxfordsep`
`\glssentencecase`§5.2.1; 196, 197, 728, 758, 790
`\glssetabbrvfmt`§4.5.2; 158, 169, 255, 693, 731, 790
`\glssetattribute`§10.2.2; 527, 790
`\glssetcategoriesattribute`§10.2.2; 527, 790
`\glssetcategoriesattributes`§10.2.2; 527, 790
`\glssetcategoryattribute`§10.2.2; 527, 547, 790
`\glssetcategoryattributes`§10.2.2; 527, 791
`\glssetcombinedsepabbrvnbsp`§7.4; 347, 791
`\glssetcombinedsepabbrvnone`§7.4; 348, 791
`\glssetcombinedsepnarrow`§7.4; 348, 791
`\glssetexpandfield` 782, 791
`\glssetnoexpandfield` 739, 791
`\glssetregularcategory`§10.2.2; 527, 792
`\glssetwidest` 438, 451, 474, 578, 668, 697, 699, 792, 811
`\glsshortaccessdisplay` 503, 511, 792
`\glsshortaccsupp` 739, 792, 895
`\glsshortpltok`§4.5.3.1; 162, 164, 167, 792
`\glsshortpluralaccessdisplay` 504, 511, 792
`\glsshorttok`§4.5.3.1; 145, 161–163, 167, 792
`\glsshowtarget` 793
`\glsshowtargetfont` 793
`\glsshowtargetfonttext` 28, 793
`\glsshowtargetinner` 29, 30, 793, 910
`\glsshowtargetinnersymleft`§2.5; 30, 793
`\glsshowtargetinnersymright`§2.5; 30, 793
`\glsshowtargetouter` 29, 30, 793, 910
`\glsshowtargetsymbol` 793, 794
`\glsstartrange`§5.8; 261, 262, 730, 794, 902
`\glssubentryitem` 418, 794
`\glssubgroupheading`§8.4.1; 395, 396, 403, 404, 794
`\GLSsymbol` 794
`\Glssymbol` 794
`\glssymbol` 367, 633, 794, 795, 950, 951
`\glssymbolaccessdisplay` 420, 502, 509, 795
`\glssymbolplural` 634, 795
`\glssymbolpluralaccessdisplay` 502, 510, 795
`\glssymbolsgroupname` 430, 795, 990
`\glstableblocksubentry` 486, 795
`\glstableblocksubentrysep`§8.7.4.1; 486, 796
`\glstableblockwidth`§8.7.4.4; 494, 796
`\glstablecaption`§8.7.4.2; 487, 796
`\glstablecenteralign`§8.7.4.4; 493, 796
`\glstableChildEntries`§8.7.4.1; 485, 796, 797, 800
`\glstabledesccolalign`§8.7.4.4; 493, 796
`\glstableDescFmt`§8.7.4.4; 495, 496, 796
`\glstabledescheader`§8.7.4.2, §8.7.4.4; 488, 497, 797
`\glstabledescwidth`§8.7.4.4; 494, 797
`\glstableHeaderFmt`§8.7.4.4; 497, 797
`\glstableiffilter`§8.7.4; 482, 485, 797
`\glstableiffilterchild`§8.7.4.1; 485, 797
`\glstableifhasotherfield`§8.7.4.4; 496, 797
`\glstableleftalign`§8.7.4.4; 493, 797
`\glstablenamecolalign`§8.7.4.4; 493, 798
`\glstableNameFmt`§8.7.4.4; 483, 495, 798
`\glstablenameheader`§8.7.4.2, §8.7.4.4; 488, 497, 798
`\glstablenamewidth`§8.7.4.4; 494, 798
`\glstablenewline`§8.7.4.4; 486, 492, 798
`\glstablenextcaption`§8.7.4.2; 487, 798, 799
`\glstableOther`§8.7.4.4; 496, 798
`\glstableothercolalign`§8.7.4.4; 494, 799
`\glstableotherfield`§8.7.4.4; 496, 799
`\glstableOtherFmt`§8.7.4.4; 496, 799
`\glstableotherheader`§8.7.4.2, §8.7.4.4; 488, 497, 799
`\glstableotherwidth`§8.7.4.4; 494, 799
`\glstablepostnextcaption`§8.7.4.2; 487, 799
`\glstablepostpreambleskip`§8.7.4.4; 495, 799
`\glstablePreChildren`§8.7.4.1; 485, 799
`\glstableprepostambleskip`§8.7.4.4; 495, 800
`\glstablerightalign`§8.7.4.4; 493, 800
`\glstablesetstyle`§8.7.4.3; 489, 800
`\glstableSubDescFmt`§8.7.4.4; 496, 800
glstablesubentries environment§8.7.4.1; 485, 800, 980
`\glstablesubentryalign`§8.7.4.1; 486, 800
`\glstableSubNameFmt`§8.7.4.4; 495, 800
`\glstableSubOther`§8.7.4.4; 496, 800
`\glstableSubOtherFmt` 801
`\glstableSubSymbolFmt`§8.7.4.4; 495, 801
`\glstablesymbolcolalign`§8.7.4.4; 493, 801
`\glstableSymbolFmt`§8.7.4.4; 495, 801
`\glstablesymbolheader`§8.7.4.2, §8.7.4.4; 488, 497, 801
`\glstablesymbolwidth`§8.7.4.4; 494, 801
`\glstarget` 29, 256, 382, 419, 525, 801, 915
`\GLStext` 203, 211, 722, 724, 801
`\Glstext` 211, 722, 724, 802
`\glstext` 5, 23, 37, 43, 47, 50, 81, 182, 184, 191, 201, 203, 211, 234, 240, 244, 252, 284, 321, 366, 518, 534, 623, 722, 724, 802, 947, 950
`\glstext`-like 623
`\glstextaccessdisplay` 501, 508, 802
`\glstextformat` 189, 190, 238, 239, 254, 522, 639, 641, 802, 821
`\glstextup` 157, 802, 899
`\glstildechar` 525, 802
`\glstopicAssignSubIndent`§8.7.3; 479, 803
`\glstopicAssignWidest`§8.7.3; 480, 803
`\glstopicCols`§8.7.3; 475, 803
`\glstopicColsEnv`§8.7.3; 474, 803
`\glstopicDesc`§8.7.3; 479, 803
`\glstopicGroupHeading`§8.7.3; 478, 803
`\glstopicInit`§8.7.3; 477, 803
`\glstopicItem`§8.7.3; 478, 804
`\glstopicLoc`§8.7.3; 479, 804
`\glstopicMarker`§8.7.3; 478, 804
`\glstopicMidSkip`§8.7.3; 479, 804
`\glstopicParIndent`§8.7.3; 476, 804
`\glstopicPostSkip`§8.7.3; 479, 804
`\glstopicPreSkip`§8.7.3; 478, 804
`\glstopicSubGroupHeading`§8.7.3; 478, 804
`\glstopicSubIndent`§8.7.3; 476, 805
`\glstopicSubItem`§8.7.3; 480, 805
`\glstopicSubItemBox`§8.7.3; 480, 805
`\glstopicSubItemParIndent`§8.7.3; 477, 805
`\glstopicSubItemSep`§8.7.3; 480, 805
`\glstopicSubLoc`§8.7.3; 480, 805
`\glstopicSubNameFont`§8.7.3; 480, 805
`\glstopicSubPreLocSep`§8.7.3; 480, 806
`\glstopicTitle`§8.7.3; 479, 806
`\glstopicTitleFont`§8.7.3; 479, 806
`\glstreechilddesc`§8.6.5.4; 436, 437, 806
`\glstreeChildDescLoc`§8.6.5.4; 437, 806
`\glstreechildpredesc`§8.6.5.4; 435, 806
`\glstreechildprelocation`§8.6.5.4; 436, 437, 806
`\glstreechildsymbol`§8.6.5.4; 437, 806
`\glstreedefaultnamefmt`§8.6.5.4; 434, 807
`\glstreedesc`§8.6.5.4; 436, 437, 807
`\glstreeDescLoc`§8.6.5.4; 437, 807
`\glstreegroupheaderfmt`§8.6.5.4; 434, 447, 807
`\glstreegroupheaderskip`§8.6.5.4; 434, 807
`\glstreegroupskip`§8.6.5.4; 434, 807
`\glstreeitem` 807
`\glstreenamefmt` 434, 447, 808
`\glstreenavigationfmt`§8.6.5.4; 434, 808
`\glstreeNoDescSymbolPreLocation`§8.6.5.4; 437, 808
`\glstreenonamechilddesc`§8.6.5.4; 436, 808
`\glstreenonameChildDescLoc` 808
`\glstreenonamedesc`§8.6.5.4; 436, 808
`\glstreenonameDescLoc` 808
`\glstreenonamesymbol`§8.6.5.4; 436, 808
`\glstreepredesc`§8.6.5.4; 435, 809
`\glstreePreHeader`§8.6.5.4; 435, 809
`\glstreeprelocation`§8.6.5.4; 435–437, 809
`\glstreesubgroupitem` 809
`\glstreesubitem` 446, 809
`\glstreeSubPreHeader` 809
`\glstreesubsubitem` 446, 809
`\glstreesymbol`§8.6.5.4; 436, 810
`\glstriggerrecordformat`§11.4; 548, 553, 810,
see also `\rgls` & --record-count
`\glsunexpandedfieldvalue` 810
`\glsunset` 282, 285–288, 309, 640, 810, 833, 894,
see also `\glslocalunset`, `\glsreset`, `\ifglsused` & `\GlsXtrIfUnusedOrUndefined`
`\glsunsetall` 282, 810,
see also `\glsunset`, `\glsresetall`, `\ifglsused` & `\GlsXtrIfUnusedOrUndefined`
`\glsunsetcategoryattribute`§10.2.2; 528, 810
`\glsupdatewidest`§8.6.5.4; 438, 697, 699, 810
`\glsuppercase`§5.2.3; 199, 811, 939
`\glsuseabbrvfont`§4.5.2; 159, 811
`\glsuselongfont`§4.5.2; 159, 811
`\glsuserdescription` 88, 100, 101, 137, 811
`\GLSuseri` 811
`\Glsuseri` 811
`\glsuseri` 634, 811
`\glsuseriaccessdisplay` 505, 512, 812
`\GLSuserii` 812
`\Glsuserii` 812
`\glsuserii` 635, 812
`\glsuseriiaccessdisplay` 505, 513, 812
`\GLSuseriii` 812
`\Glsuseriii` 813
`\glsuseriii` 635, 813
`\glsuseriiiaccessdisplay` 506, 513, 813
`\GLSuseriv` 813
`\Glsuseriv` 813
`\glsuseriv` 635, 813
`\glsuserivaccessdisplay` 506, 513, 814
`\GLSuserv` 814
`\Glsuserv` 814
`\glsuserv` 635, 814
`\glsuservaccessdisplay` 506, 514, 814
`\GLSuservi` 814
`\Glsuservi` 815
`\glsuservi` 636, 815
`\glsuserviaccessdisplay` 507, 514, 815
`\glswriteentry`§5.8; 267, 815
`\glsxpabbrvfont`§4.5.3.1; 167, 815
`\glsxplongfont`§4.5.3.1; 168, 815
[top]

## Glsxtr
[link]

`\Glsxtr`§13; 602, 603, 816
`\glsxtr`§13; 601–603, 816, 828, 836, 889
`\glsxtr@counterrecord`§8.4.3.2; 411, 412, 816, 819
`\glsxtr@record`§11.5.6; 579, 816
`\glsxtr@record@nameref`§11.5.6; 579, 580, 816
`\glsxtr@resource`§11; 17, 534, 816
`\glsxtrabbreviationfont`§5.5.2; 60, 64, 236, 240, 255, 731, 817
`\glsxtrabbrvfootnote` 145, 817
`\glsxtrabbrvpluralsuffix`§4.1.2; 44, 136, 148, 154, 158, 171, 499, 679, 683, 817
`\glsxtrabbrvtype`§4.1.4; 9–11, 41, 44, 683, 817, 965, 966, 981
`\glsxtrAccSuppAbbrSetFirstLongAttrs`§4.5.3.1; 169, 817
`\glsxtrAccSuppAbbrSetNameLongAttrs`§4.5.3.1; 168, 817
`\glsxtrAccSuppAbbrSetNameShortAttrs`§4.5.3.1; 169, 818
`\glsxtrAccSuppAbbrSetNoLongAttrs`§4.5.3.1; 168, 818
`\glsxtrAccSuppAbbrSetTextShortAttrs`§4.5.3.1; 169, 818
`\glsxtractivatenopost`§8.5; 419, 421, 427, 818
`\glsxtractualanchor`§11.5.6; 581, 818, 901
`\glsxtraddallcrossrefs`§5.9.3; 21, 281, 818, 921,
see also indexcrossrefs
`\glsxtrAddCounterRecordHook`§8.4.3.2; 411, 415, 816, 818
`\glsxtraddgroup`§8.4.1; 394, 395, 399, 404, 819
`\glsxtraddlabelprefix`§11.5.7; 587, 594, 819
`\glsxtraddpunctuationmark`§5.5.4; 249, 819, 859
`\glsxtraddunusedxrefs`§5.9.3; 281, 819
`\glsxtralias`§5.9.2; 36, 37, 279, 819
`\glsxtraliashook`§3.4; 36, 819
`\glsxtrAltTreeIndent`§8.6.5.4; 441, 820
`\glsxtralttreeInit`§8.6.5.4; 441, 820
`\glsxtralttreeSubSymbolDescLocation`§8.6.5.4; 441, 820
`\glsxtralttreeSymbolDescLocation`§8.6.5.4; 440, 820
`\glsxtrapptocsvfield`§3.5; 38, 301, 305, 820
`\GlsXtrAppToDefaultGlsOpts`§5.1.1; 185, 186, 820
`\glsxtrassignactualsetup`§9.1; 498, 499, 820
`\glsxtrassignfieldfont`§5.5.2; 159, 239, 240, 244, 821, 897
`\glsxtrassignlinktextfmt`§5.5.4; 160, 254, 821
`\glsxtrattrentrytextfmt`§5.5.3; 243, 821
`\GlsXtrAutoAddOnFormat`§5.8; 262, 263, 821
`\glsxtrautoindex`§12; 598, 821, 834
`\glsxtrautoindexassignsort`§12; 598, 821
`\glsxtrautoindexentry`§12; 597, 822
`\glsxtrautoindexesc`§12; 598, 822
`\glsxtrBasicDigitrules` 569, 822
`\glsxtrbibaddress`§11.5.2; 560, 822
`\glsxtrbibauthor`§11.5.2; 560, 822
`\glsxtrbibbooktitle`§11.5.2; 560, 822
`\glsxtrbibchapter`§11.5.2; 560, 822
`\glsxtrbibedition`§11.5.2; 560, 822
`\glsxtrbibhowpublished`§11.5.2; 560, 823
`\glsxtrbibinstitution`§11.5.2; 560, 823
`\glsxtrbibjournal`§11.5.2; 560, 823
`\glsxtrbibmonth`§11.5.2; 560, 823
`\glsxtrbibnote`§11.5.2; 560, 823
`\glsxtrbibnumber`§11.5.2; 560, 823
`\glsxtrbiborganization`§11.5.2; 560, 823
`\glsxtrbibpages`§11.5.2; 560, 824
`\glsxtrbibpublisher`§11.5.2; 560, 824
`\glsxtrbibschool`§11.5.2; 560, 824
`\glsxtrbibseries`§11.5.2; 560, 824
`\GlsXtrBibTeXEntryAliases`§11.5.2; 559, 824
`\glsxtrbibtitle`§11.5.2; 560, 824
`\glsxtrbibtype`§11.5.2; 560, 824
`\glsxtrbibvolume`§11.5.2; 560, 824
`\glsxtrbookindexatendgroup`§8.7.1; 445, 825
`\glsxtrbookindexbetween`§8.7.1; 445, 825, 828
`\glsxtrbookindexbookmark`§8.7.1; 446, 825
`\glsxtrbookindexcols`§8.7.1; 442, 825
`\glsxtrbookindexcolspread`§8.7.1; 443, 825
`\glsxtrbookindexfirstmark`§8.7.1; 447, 825
`\glsxtrbookindexfirstmarkfmt`§8.7.1; 448, 825, 826
`\glsxtrbookindexformatheader`§8.7.1; 447, 826
`\glsxtrbookindexformatsubheader` 396, 826
`\glsxtrbookindexlastmark`§8.7.1; 447, 826
`\glsxtrbookindexlastmarkfmt`§8.7.1; 448, 826
`\glsxtrbookindexlocation`§8.7.1; 444, 826
`\glsxtrbookindexmarkentry`§8.7.1; 447, 826
`\glsxtrbookindexmulticolsenv`§8.7.1; 443, 827
`\glsxtrbookindexname`§8.7.1; 443, 444, 448, 827
`\glsxtrbookindexparentchildsep`§8.7.1; 444, 827
`\glsxtrbookindexparentsubchildsep`§8.7.1; 444, 827
`\glsxtrbookindexpregroupskip`§8.7.1; 447, 827
`\glsxtrbookindexprelocation`§8.7.1; 444, 827
`\glsxtrbookindexsubatendgroup`§8.7.1; 445, 827
`\glsxtrbookindexsubbetween`§8.7.1; 445, 827
`\glsxtrbookindexsublocation`§8.7.1; 444, 828
`\glsxtrbookindexsubname`§8.7.1; 443, 448, 828
`\glsxtrbookindexsubprelocation`§8.7.1; 444, 828
`\glsxtrbookindexsubsubatendgroup`§8.7.1; 445, 828
`\glsxtrbookindexsubsubbetween`§8.7.1; 445, 828
`\glsxtrcat`§13; 603, 828
`\glsxtr〈category〉〈field〉accsupp` 739, 828, 895
`\glsxtrchecknohyperfirst`§5.1.1; 185, 188, 521, 829
`\glsxtrclearlabelprefixes`§11.5.7; 587, 829,
see also `\glsxtraddlabelprefix` & `\glsxtrprependlabelprefix`
`\GlsXtrClearUnsetBuffer`§5.10.1; 287, 288, 829
`\glsxtrcombiningdiacriticIIIrules` 567, 829
`\glsxtrcombiningdiacriticIIrules` 567, 829
`\glsxtrcombiningdiacriticIrules` 566, 829
`\glsxtrcombiningdiacriticIVrules` 567, 829
`\glsxtrcombiningdiacriticrules` 566, 830
`\glsxtrcontrolrules` 566, 830
`\glsxtrcopytoglossary`§8; 195, 378, 386, 830
`\glsxtr〈counter〉locfmt`§11.5.6; 581, 582, 830, 915
`\glsxtrcurrencyrules` 569, 830
`\glsxtrcurrentfield`§5.5.4; 252, 253, 830, 860
`\glsxtrcurrentmglscsname`§7.5; 350, 830
`\glsxtrdefaultentrytextfmt`§5.5.3; 243, 831, 845
`\GlsXtrDefaultResourceOptions`§11; 536, 831
`\glsxtrdefaultrevert` 132, 133, 831
`\GLSxtrdefaultsubsequentfmt` 174, 831
`\Glsxtrdefaultsubsequentfmt` 174, 831
`\glsxtrdefaultsubsequentfmt` 174, 831
`\GLSxtrdefaultsubsequentplfmt` 174, 831
`\Glsxtrdefaultsubsequentplfmt` 174, 832
`\glsxtrdefaultsubsequentplfmt` 174, 832
`\glsxtrdeffield`§3.5; 37–39, 820, 832, 835
`\GlsXtrDefineAbbreviationShortcuts` 832
`\GlsXtrDefineAcronymShortcuts` 832
`\GlsXtrDefineOtherShortcuts` 832
`\glsxtrdetoklocation`§11.4; 545, 555, 833
`\glsxtrdigitrules` 569, 833
`\glsxtrdiscardperiod`§5.5.4; 247, 833
`\glsxtrdiscardperiodretainfirstuse`§5.5.4; 247, 518, 833
`\GlsXtrDiscardUnsetBuffering`§5.10.1; 287, 833,
see also `\GlsXtrStartUnsetBuffering` & `\GlsXtrStopUnsetBuffering`
`\glsxtrdisplayendloc`§8.6.3; 428, 833, 834
`\glsxtrdisplayendlochook`§8.6.3; 429, 833
`\glsxtrdisplaylocnameref`§11.5.6; 580, 582, 818, 830, 834, 837, 867, 883, 896, 901, 915, 931
`\glsxtrdisplaysingleloc`§8.6.3; 428, 834
`\glsxtrdisplaystartloc`§8.6.3; 428, 834, 868
`\glsxtrdisplaysupploc`§11.5.5; 579, 834, 882
`\glsxtrdoautoindexname`§12; 267, 597, 599, 834
`\glsxtrdopostpunc`§5.5.4; 248, 834
`\glsxtrdowrglossaryhook`§5.8; 266, 834
`\GlsXtrDualBackLink`§11.5.7; 585, 835
`\GlsXtrDualField`§11.5.7; 585, 835
`\glsxtredeffield`§3.5; 38, 835
`\glsxtremrevert` 158, 835
`\glsxtremsuffix` 71–73, 78–80, 85–87, 97–99, 126–129, 158, 835
`\GlsXtrEnableEntryCounting`§6.1; 310, 311, 835
`\GlsXtrEnableEntryUnitCounting`§6.1; 315, 318, 835
`\GlsXtrEnableIndexFormatOverride`§12; 599, 836
`\GlsXtrEnableInitialTagging`§4.4; 56, 58, 521, 836, 914
`\GlsXtrEnableLinkCounting`§6.2; 319, 321, 322, 525, 836
`\GlsXtrEnableOnTheFly`§13; 601, 613, 816, 836, 912
`\GlsXtrEnablePreLocationTag`§8.6.3; 427, 428, 836
`\glsxtrenablerecordcount`§11.4; 56, 550, 836
`\glsxtrendfor`§5.13; 303, 837
`\Glsxtrentryfmt`§5.12.2; 300, 837
`\glsxtrentryfmt`§5.12.2; 298, 301, 837
`\glsxtrentryparentname`§5.11; 293, 837
`\glsxtrequationlocfmt`§11.5.6; 582, 837
`\GlsXtrExpandedFmt`§5.5; 236, 291, 837
`\glsxtrfielddolistloop`§5.14; 39, 306, 837
`\glsxtrfieldforlistloop`§5.14; 39, 306, 838
`\glsxtrfieldformatcsvlist`§5.13; 39, 304, 838
`\glsxtrfieldformatlist`§5.14; 306, 838
`\glsxtrfieldifinlist`§5.14; 306, 838
`\glsxtrfieldlistadd`§3.5; 39, 306, 838
`\glsxtrfieldlisteadd`§3.5; 39, 838
`\glsxtrfieldlistgadd`§3.5; 39, 838
`\glsxtrfieldlistxadd`§3.5; 39, 839
`\glsxtrfieldtitlecase`§5.11; 293, 839
`\glsxtrfieldtitlecasecs`§5.11; 293, 523, 839
`\glsxtrfieldxifinlist`§5.14; 307, 412, 839
`\glsxtrfirstscfont` 839
`\glsxtrfirstsmfont` 839
`\Glsxtrfmt`§5.12.2; 300, 839
`\glsxtrfmt`§5.12.2; 185–189, 297, 298, 300, 301, 611, 840, 841
`\Glsxtrfmt*`§5.12.2; 300, 840
`\glsxtrfmt*`300, 840
`\GlsXtrFmtDefaultOptions`§5.1.1; 185, 187, 298, 840
`\glsxtrfmtdisplay`§5.12.2; 297, 840
`\glsxtrfmtexternalnameref`§11.5.6; 583, 840
`\GlsXtrFmtField`§5.12.2; 297, 298, 837, 840
`\glsxtrfmtinternalnameref`§11.5.6; 583, 841
`\glsxtrfootnotedescname` 116, 144, 841
`\glsxtrfootnotedescsort` 116, 145, 841
`\glsxtrfootnotelongformat` 145, 146, 841
`\glsxtrfootnotelongplformat` 146, 841
`\glsxtrfootnotename` 115, 144, 841
`\glsxtrforcsvfield`§5.13; 39, 303, 837, 841
`\GlsXtrForeignText`§5.12.1; 295, 296, 842
`\GlsXtrForeignTextField`§5.12.1; 295, 842
`\GlsXtrFormatLocationList`§8.6.3; 427, 842
`\GlsXtrForUnsetBufferedList`§5.10.1; 287, 292, 842
`\glsxtrfractionrules` 570, 842
`\GLSxtrfull`§4.3; Table 4.1; 53, 142, 175, 210, 680, 742, 842, 862
`\Glsxtrfull`§4.3; Table 4.1; 53, 142, 175, 210, 680, 685, 742, 843, 862
`\glsxtrfull`§4.3; Table 4.1; 43, 47, 50, 53, 54, 105, 139, 140, 142, 143, 159, 161, 174, 184, 209, 235, 252, 254, 284, 366, 622, 624, 654, 655, 664, 680, 685, 742, 842, 843, 844, 862, 898, 904, 943
`\GLSxtrfullformat` 170, 172, 843
`\Glsxtrfullformat` 172, 843
`\glsxtrfullformat` 61, 170, 172, 255, 843
`\GLSxtrfullpl`§4.3; Table 4.1; 53, 142, 175, 680, 685, 745, 843, 862
`\Glsxtrfullpl`§4.3; Table 4.1; 53, 175, 210, 680, 686, 745, 843, 863
`\glsxtrfullpl`§4.3; Table 4.1; 53, 54, 140, 141, 175, 210, 624, 680, 686, 746, 843, 844, 863
`\GLSxtrfullplformat` 170, 172, 844
`\Glsxtrfullplformat` 172, 844
`\glsxtrfullplformat` 170, 172, 844
`\glsxtrfullsaveinsert`§4.3; 54, 105, 107, 109, 111, 254, 844
`\glsxtrfullsep` Table 4.2; 132, 149, 151, 844, 927
`\glsxtrgenabbrvfmt`§5.5.5; 60, 81, 255, 517, 693, 731, 845, 913
`\glsxtrgenentrytextfmt`§5.5.3; 166–168, 173, 175, 177, 190, 243, 244, 254, 624, 744, 749, 757, 821, 845
`\glsxtrGeneralInitRules` 570, 845
`\glsxtrGeneralLatinAtoGrules` 572, 845
`\glsxtrGeneralLatinAtoMrules` 572, 845
`\glsxtrGeneralLatinHtoMrules` 572, 845
`\glsxtrGeneralLatinIIIrules` 571, 845
`\glsxtrGeneralLatinIIrules` 571, 846
`\glsxtrGeneralLatinIrules` 570–572, 846
`\glsxtrGeneralLatinIVrules` 571, 846
`\glsxtrGeneralLatinNtoSrules` 572, 846
`\glsxtrGeneralLatinNtoZrules` 572, 846
`\glsxtrGeneralLatinTtoZrules` 572, 846
`\glsxtrGeneralLatinVIIIrules` 572, 846
`\glsxtrGeneralLatinVIIrules` 571, 846
`\glsxtrGeneralLatinVIrules` 571, 847
`\glsxtrGeneralLatinVrules` 571, 847
`\glsxtrgeneralpuncaccentsrules` 568, 847
`\glsxtrgeneralpuncbracketrules` 568, 847
`\glsxtrgeneralpuncIIrules` 569, 847
`\glsxtrgeneralpuncIrules` 568, 847, 848
`\glsxtrgeneralpuncmarksrules` 568, 847
`\glsxtrgeneralpuncquoterules` 568, 847
`\glsxtrgeneralpuncrules` 567, 848
`\glsxtrgeneralpuncsignrules` 569, 848
`\glsxtrgetgrouptitle`§8.6.4; 430, 478, 848
`\glsxtrgroupfield`§8.4.1; 392, 393, 848
`\glsxtrglossentry`§8.5; 418, 421, 426, 848, 911, 912
`\glsxtrglossentryother`§8.5; 419, 421, 848, 911, 912
`\GLSxtrheadfirst`§5.3.3; 225, 848,
see also `\GLSfmtfirst` & `\GLSxtrtitlefirst`
`\Glsxtrheadfirst`§5.3.3; 224, 849,
see also `\Glsfmtfirst` & `\Glsxtrtitlefirst`
`\glsxtrheadfirst`§5.3.3; 224, 849,
see also `\glsfmtfirst` & `\glsxtrtitlefirst`
`\GLSxtrheadfirstplural`§5.3.3; 225, 849,
see also `\GLSfmtfirstpl` & `\GLSxtrtitlefirstplural`
`\Glsxtrheadfirstplural`§5.3.3; 225, 849,
see also `\Glsfmtfirstpl` & `\Glsxtrtitlefirstplural`
`\glsxtrheadfirstplural`§5.3.3; 225, 849,
see also `\glsfmtfirstpl` & `\glsxtrtitlefirstplural`
`\GLSxtrheadfull`§5.3.3; 221, 849,
see also `\GLSfmtfull` & `\GLSxtrtitlefull`
`\Glsxtrheadfull`§5.3.3; 221, 849,
see also `\Glsfmtfull` & `\Glsxtrtitlefull`
`\glsxtrheadfull`§5.3.3; 220, 850,
see also `\glsfmtfull` & `\glsxtrtitlefull`
`\GLSxtrheadfullpl`§5.3.3; 222, 850,
see also `\GLSfmtfullpl` & `\GLSxtrtitlefullpl`
`\Glsxtrheadfullpl`§5.3.3; 221, 850,
see also `\Glsfmtfullpl` & `\Glsxtrtitlefullpl`
`\glsxtrheadfullpl`§5.3.3; 221, 850,
see also `\glsfmtfullpl` & `\glsxtrtitlefullpl`
`\GLSxtrheadlong`§5.3.3; 219, 850
`\Glsxtrheadlong`§5.3.3; 219, 850
`\glsxtrheadlong`§5.3.3; 219, 850
`\GLSxtrheadlongpl`§5.3.3; 220, 851
`\Glsxtrheadlongpl`§5.3.3; 220, 851
`\glsxtrheadlongpl`§5.3.3; 220, 851
`\GLSxtrheadname`§5.3.3; 222, 851,
see also `\GLSfmtname` & `\GLSxtrtitlename`
`\Glsxtrheadname`§5.3.3; 222, 851,
see also `\Glsfmtname` & `\Glsxtrtitlename`
`\glsxtrheadname`§5.3.3; 222, 421, 851,
see also `\glsfmtname` & `\glsxtrtitlename`
`\GLSxtrheadplural`§5.3.3; 224, 851,
see also `\GLSfmtplural` & `\GLSxtrtitleplural`
`\Glsxtrheadplural`§5.3.3; 224, 852,
see also `\Glsfmtplural` & `\Glsxtrtitleplural`
`\glsxtrheadplural`§5.3.3; 223, 852,
see also `\glsfmtplural` & `\glsxtrtitleplural`
`\GLSxtrheadshort`§5.3.3; 217, 852
`\Glsxtrheadshort`§5.3.3; 216, 217, 852
`\glsxtrheadshort`§5.3.3; 216, 852
`\GLSxtrheadshortpl`§5.3.3; 219, 852
`\Glsxtrheadshortpl`§5.3.3; 218, 852
`\glsxtrheadshortpl`§5.3.3; 218, 853
`\GLSxtrheadtext`§5.3.3; 223, 853,
see also `\GLSfmttext` & `\GLSxtrtitletext`
`\Glsxtrheadtext`§5.3.3; 223, 853,
see also `\Glsfmttext` & `\Glsxtrtitletext`
`\glsxtrheadtext`§5.3.3; 223, 853,
see also `\glsfmttext` & `\glsxtrtitletext`
`\GLSXTRhiername`§5.11; 295, 853
`\GLSxtrhiername`§5.11; 295, 853
`\GlsXtrhiername`§5.11; 294, 853
`\Glsxtrhiername`§5.11; 294, 854
`\glsxtrhiername`§5.11; 294, 295, 854
`\glsxtrhiernamesep`§5.11; 294, 854
`\glsxtrhyphenrules` 567, 854
`\glsxtrhyphensuffix` 148, 854
`\glsxtridentifyglslike`§5.7; 259, 854
`\glsxtrifallcaps`§5.5.4; 253, 854
`\glsxtrifcounttrigger`§6.1; 313, 524, 854
`\glsxtrifcustomdiscardperiod`§5.5.4; 248, 855
`\glsxtrifemptyglossary`§8; 379, 855,
see also `\ifglossaryexists` & `\GlsXtrIfInGlossary`
`\GlsXtrIfFieldCmpNum`§5.15; 307, 308, 855, 856
`\GlsXtrIfFieldEqNum`§5.15; 308, 855
`\GlsXtrIfFieldEqStr`§5.15; 308, 855, 856, 861
`\GlsXtrIfFieldEqXpStr`§5.15; 308, 856
`\GlsXtrIfFieldNonZero`§5.15; 308, 578, 856, 857
`\GlsXtrIfFieldUndef`§5.15; 256, 307, 856,
see also `\ifglsfieldvoid`
`\GlsXtrIfFieldValueInCsvList`§5.13; 305, 856
`\glsxtrifhasfield`§5.15; 279, 294, 303–308, 578, 838, 842, 855, 856, 859
`\GlsXtrIfHasNonZeroChildCount`§11.5.4; 578, 857
`\glsxtrifheaduc`§5.3.3; 215, 857
`\glsxtrifhyphenstart`§4.5.2; 149, 160, 857
`\glsxtrifindexing`§5.8; 267, 857
`\GlsXtrIfInGlossary`§8; 378, 857,
see also `\ifglossaryexists` & `\glsxtrifemptyglossary`
`\glsxtrifinlabelprefixlist`§11.5.7; 587, 858,
see also `\glsxtraddlabelprefix` & `\glsxtrprependlabelprefix`
`\glsxtrifinmark`§5.3.3; 213, 214, 226, 678, 858
`\glsxtrifintoc`§5.3.3; 213, 216, 858
`\glsxtrifkeydefined`§3.2; 35, 858
`\glsxtriflabelinlist`§8.4.3; 406, 858
`\GlsXtrIfLinkCounterDef`§6.2; 320, 858
`\glsxtrifmulti`§7.13; 372, 858
`\glsxtrifnextpunc`§5.5.4; 248, 819, 834, 859, 904
`\glsxtrifperiod`§5.5.4; 247, 248, 833, 859
`\glsxtrifrecordtrigger`§11.4; 547, 859, 897,
see also `\rgls`, `\GlsXtrSetRecordCountAttribute` & --record-count
`\GlsXtrIfUnusedOrUndefined`§5.10; 15, 267, 285, 859,
see also `\ifglsused` & `\glsxtrifwasfirstuse`
`\GlsXtrIfValueInFieldCsvList`§5.13; 305, 306, 859, 979
`\glsxtrifwasfirstuse`§5.10; 52, 54, 191, 246, 252, 253, 284, 285, 352, 353, 860, 903
`\glsxtrifwasglslike`§5.5.4; 252, 253, 860
`\glsxtrifwasglslikeandfirstuse`§5.5.4; 252, 285, 860
`\glsxtrifwassubsequentorshort`§5.5.4; 253, 860
`\glsxtrifwassubsequentuse`§5.5.4; 253, 860
`\GlsXtrIfXpFieldEqXpStr`§5.15; 308, 860
`\glsxtrIgnorableRules` 570, 861
`\glsxtrinclinkcounter`§6.2; 319, 861
`\glsxtrindexaliased`§5.9.3; 280, 281, 861
`\GlsXtrIndexCounterLink`§11.5.8; 596, 861
`\glsxtrindexseealso`§5.9.3; 22, 33, 269, 273, 280, 861,
see also `\glssee`
`\glsxtrinithyperoutside`§5.1.1; 185, 188, 861
`\glsxtrinitwrgloss`§5.1.1; 185, 188, 193, 266, 862
`\glsxtrinitwrglossbeforefalse` 188, 862
`\glsxtrinitwrglossbeforetrue` 188, 862
`\GLSxtrinlinefullformat` 175, 862
`\Glsxtrinlinefullformat` 175, 862
`\glsxtrinlinefullformat` 174, 862
`\GLSxtrinlinefullplformat` 175, 862
`\Glsxtrinlinefullplformat` 175, 863
`\glsxtrinlinefullplformat` 174, 863
`\glsxtrinsertinsidefalse` 131, 863
`\glsxtrinsertinsidetrue` 131, 863
`\GlsXtrInternalLocationHyperlink` 863
`\glsxtrLatinA` 571, 572, 863
`\glsxtrLatinAA` 575, 863
`\glsxtrLatinAELigature` 574, 864
`\glsxtrLatinE` 573, 864
`\glsxtrLatinEszettSs` 574, 864
`\glsxtrLatinEszettSz` 574, 864
`\glsxtrLatinEth` 574, 864
`\glsxtrLatinH` 573, 864
`\glsxtrLatinI` 573, 864
`\glsxtrLatinInsularG` 575, 864
`\glsxtrLatinK` 573, 865
`\glsxtrLatinL` 865
`\glsxtrLatinLslash` 575, 865
`\glsxtrLatinM` 573, 865
`\glsxtrLatinN` 573, 865
`\glsxtrLatinO` 573, 865
`\glsxtrLatinOELigature` 574, 865
`\glsxtrLatinOslash` 575, 865
`\glsxtrLatinP` 573, 866
`\glsxtrLatinS` 573, 866
`\glsxtrLatinSchwa` 575, 866
`\glsxtrLatinT` 574, 866
`\glsxtrLatinThorn` 574, 866
`\glsxtrLatinWynn` 575, 866
`\glsxtrLatinX` 574, 866
`\GlsXtrLetField`§3.5; 39, 40, 692, 866
`\GlsXtrLetFieldToField`§3.5; 39, 40, 867
`\GlsXtrLinkCounterName`§6.2; 320, 867
`\GlsXtrLinkCounterValue`§6.2; 320, 322, 867
`\GlsXtrLoadResources`§11; 23, 24, 34, 38, 59, 389, 397, 398, 402, 531, 533–536, 541, 544, 560, 626, 867, 897, 984,
see also resource options
`\glsxtrlocalsetgrouptitle`§8.6.4; 430, 867
`\glsxtrlocationanchor`§11.5.6; 581, 867
`\GlsXtrLocationField`§8.4.2; 400, 867
`\glsxtrlocationhyperlink` 863, 868
`\GlsXtrLocationRecordCount`§11.4; 545–547, 868
`\glsxtrlocrangefmt`§8.6.3; 428, 429, 868
`\GLSxtrlong`§4.3; Table 4.1; 52, 208, 680, 686, 868
`\Glsxtrlong`§4.3; Table 4.1; 52, 207, 234, 336, 681, 686, 868
`\glsxtrlong`§4.3; Table 4.1; 18, 19, 43, 47, 52, 54, 55, 61, 63, 65, 74, 81, 93, 103, 115, 159, 175, 207, 233, 235, 335, 366, 519, 663, 681, 686, 742, 868, 903, 947, 962
`\GLSxtrlongformat` 176, 869
`\Glsxtrlongformat` 146, 175, 869
`\glsxtrlongformat` 73, 175, 176, 180, 869, 872, 873, 907
`\GLSxtrlongformatgrp` 176, 869
`\Glsxtrlongformatgrp` 176, 869
`\glsxtrlongformatgrp` 176, 869
`\glsxtrlonghyphen` 150, 151, 869
`\GLSxtrlonghyphennoshort` 149, 870
`\glsxtrlonghyphennoshort` 149, 150, 870
`\glsxtrlonghyphennoshortdescsort` 107, 149, 870
`\glsxtrlonghyphennoshortsort` 107, 149, 870
`\GLSxtrlonghyphenshort` 149, 870
`\glsxtrlonghyphenshort` 149, 152, 870
`\glsxtrlonghyphenshortsort` 103, 148, 870
`\glsxtrlongnoshortdescname` 74, 107, 147, 871
`\glsxtrlongnoshortname` 74, 107, 147, 871
`\GLSxtrlongpl`§4.3; Table 4.1; 53, 208, 681, 686, 871
`\Glsxtrlongpl`§4.3; Table 4.1; 53, 208, 681, 686, 871
`\glsxtrlongpl`§4.3; Table 4.1; 52, 55, 208, 681, 687, 746, 871, 963
`\GLSxtrlongplformat` 176, 871
`\Glsxtrlongplformat` 176, 872
`\glsxtrlongplformat` 143, 176, 179, 180, 871, 872
`\GLSxtrlongplformatgrp` 177, 872
`\Glsxtrlongplformatgrp` 177, 872
`\glsxtrlongplformatgrp` 176, 872
`\glsxtrlongshortdescname` 82, 105, 134, 872
`\glsxtrlongshortdescsort` 82, 105, 133, 872
`\GLSxtrlongshortformat` 179, 872
`\Glsxtrlongshortformat` 179, 873
`\glsxtrlongshortformat` 66, 73, 81, 178–180, 873
`\glsxtrlongshortname` 82, 93, 103, 133, 873
`\GLSxtrlongshortplformat` 179, 873
`\Glsxtrlongshortplformat` 179, 873
`\glsxtrlongshortplformat` 179, 873
`\glsxtrlongshortscuserdescname` 93, 138, 874
`\glsxtrlongshortscusername` 91, 138, 874
`\glsxtrlongshortuserdescname` 89, 90, 92, 138, 874
`\glsxtrmarkhook`§5.3.3; 215–217, 226, 422, 874, 898
`\glsxtrMathGreekIIrules` 576, 874
`\glsxtrMathGreekIrules` 575, 576, 874
`\glsxtrMathItalicAlpha` 577, 874
`\glsxtrMathItalicBeta` 577, 874
`\glsxtrMathItalicChi` 577, 875
`\glsxtrMathItalicDelta` 577, 875
`\glsxtrMathItalicDigamma` 577, 875
`\glsxtrMathItalicEpsilon` 577, 875
`\glsxtrMathItalicEta` 577, 875
`\glsxtrMathItalicGamma` 577, 875
`\glsxtrMathItalicGreekIIrules` 576, 875
`\glsxtrMathItalicGreekIrules` 576, 876
`\glsxtrMathItalicIota` 577, 876
`\glsxtrMathItalicKappa` 577, 876
`\glsxtrMathItalicLambda` 577, 876
`\glsxtrMathItalicLowerGreekIIrules` 577, 876
`\glsxtrMathItalicLowerGreekIrules` 577, 876
`\glsxtrMathItalicMu` 577, 876
`\glsxtrMathItalicNabla` 577, 876
`\glsxtrMathItalicNu` 577, 877
`\glsxtrMathItalicOmega` 577, 877
`\glsxtrMathItalicOmicron` 577, 877
`\glsxtrMathItalicPartial` 577, 877
`\glsxtrMathItalicPhi` 577, 877
`\glsxtrMathItalicPi` 577, 877
`\glsxtrMathItalicPsi` 577, 877
`\glsxtrMathItalicRho` 577, 877
`\glsxtrMathItalicSigma` 577, 878
`\glsxtrMathItalicTau` 577, 878
`\glsxtrMathItalicTheta` 577, 878
`\glsxtrMathItalicUpperGreekIIrules` 576, 878
`\glsxtrMathItalicUpperGreekIrules` 576, 878
`\glsxtrMathItalicUpsilon` 577, 878
`\glsxtrMathItalicXi` 577, 878
`\glsxtrMathItalicZeta` 577, 878
`\glsxtrMathUpGreekIIrules` 576, 879
`\glsxtrMathUpGreekIrules` 576, 879
`\glsxtrMFUsave`§11; 535, 879
`\GlsXtrMglsOrGls`§7; 328, 879
`\glsxtrmglsWarnAllSkipped`§7.9.5; 360, 879
`\GLSxtrmultientryadjustedname`§7.14; 374, 879, 880, 881
`\GlsXtrmultientryadjustedname`§7.14; 374, 880, 881
`\Glsxtrmultientryadjustedname`§7.14; 374, 880, 881
`\glsxtrmultientryadjustedname`§7.14; 374, 375, 879, 880, 881
`\GLSxtrmultientryadjustednamefmt`§7.14; 375, 880
`\GlsXtrmultientryadjustednamefmt`§7.14; 375, 880
`\Glsxtrmultientryadjustednamefmt`§7.14; 375, 880
`\glsxtrmultientryadjustednamefmt`§7.14; 375, 880
`\GLSxtrmultientryadjustednameother`§7.14; 376, 881
`\GlsXtrmultientryadjustednameother`§7.14; 376, 881
`\Glsxtrmultientryadjustednameother`§7.14; 376, 881
`\glsxtrmultientryadjustednameother`§7.14; 376, 881
`\glsxtrmultientryadjustednamepostsep`§7.14; 375, 881
`\glsxtrmultientryadjustednamepresep`§7.14; 375, 881
`\glsxtrmultientryadjustednamesep`§7.14; 375, 881
`\glsxtrmultilastotherindex`§7.13; 373, 882
`\glsxtrmultilist`§7.13; 372, 882
`\glsxtrmultimain`§7.13; 372, 882
`\glsxtrmultimainindex`§7.13; 373, 882
`\glsxtrmultisupplocation`§11.5.5; 579, 882
`\glsxtrmultitotalelements`§7.13; 373, 882
`\glsxtrnameloclink`§11.5.6; 584, 882
`\glsxtrnamereflink` 583, 840, 841, 883
`\glsxtrnewabbrevpresetkeyhook`§4.1.5; 45, 162, 883
`\glsxtrnewgls`§5.7; 257, 259, 586, 592, 883, 884
`\glsxtrnewglsdisp`§5.7; 258, 883
`\glsxtrnewGLSlike`§5.7; 258, 883
`\glsxtrnewglslike`§5.7; 258, 259, 592, 883
`\glsxtrnewglslink`§5.7; 258, 884
`\glsxtrnewnumber`§2.1; 11, 19, 32, 517, 884, 957, 988
`\glsxtrnewrgls`§5.7; 259, 884
`\glsxtrnewrGLSlike`§5.7; 259, 884
`\glsxtrnewrglslike`§5.7; 259, 884
`\glsxtrnewsymbol`§2.1; 10, 16, 18, 32, 517, 884, 957, 990
`\glsxtrNoGlossaryWarning` 885
`\GlsXtrNoGlsWarningAutoMake`§15; 619, 885
`\GlsXtrNoGlsWarningBuildInfo`§15; 619, 885
`\GlsXtrNoGlsWarningCheckFile`§15; 618, 885
`\GlsXtrNoGlsWarningEmptyMain`§15; 617, 885
`\GlsXtrNoGlsWarningEmptyNotMain`§15; 617, 885
`\GlsXtrNoGlsWarningEmptyStart`§15; 617, 885
`\GlsXtrNoGlsWarningHead`§15; 617, 885
`\GlsXtrNoGlsWarningMisMatch`§15; 618, 886
`\GlsXtrNoGlsWarningNoOut`§15; 618, 886
`\GlsXtrNoGlsWarningTail`§15; 618, 886
`\glsxtrnoidxgroups`§8.4; 387, 390, 886
`\glsxtrnonprintablerules` 566, 886
`\glsxtrnopostpunc`§8.6.2; 419, 426, 427, 818, 886, 898,
see also `\nopostdesc`
`\glsxtronlydescname` 112, 155, 156, 886
`\glsxtronlydescsort` 112, 155, 156, 887
`\glsxtronlyname` 111, 155, 887
`\glsxtronlysuffix` 154, 887
`\glsxtrorgkeylist`§4.5.3.1; 161, 163, 887
`\glsxtrorgshort`§4.5.3.1; 45, 134, 148, 149, 161, 164, 887
`\glsxtrorglong`§4.5.3.1; 149, 161, 164, 887
`\GLSxtrp`§5.4; 231, 232, 787, 887
`\Glsxtrp`§5.4; 231, 787, 888
`\glsxtrp`§5.4; 32, 182, 184, 185, 229–231, 703, 787, 887, 888, 889, 904
`\glsxtrpageref`§8.1; 379, 420, 888
`\glsxtrparen` 132, 149, 151, 888, 927
`\Glsxtrpdfentryfmt`§5.12.2; 301, 888
`\glsxtrpdfentryfmt`§5.12.2; 298, 837, 888
`\glsxtrpInit`§5.4; 184, 230, 888
`\Glsxtrpl`§13; 602, 603, 889
`\glsxtrpl`§13; 602, 603, 889
`\glsxtrpostabbrvfootnote`§4.5.2; 160, 889
`\glsxtrpostdescabbreviation`§8.6.2; 426, 889
`\glsxtrpostdescacronym`§8.6.2; 426, 889
`\glsxtrpostdesc〈category〉`§8.6.2; 425, 426, 622, 726, 889
`\glsxtrpostdescgeneral`§8.6.2; 425, 889
`\glsxtrpostdescindex`§2.1; 12, 890
`\glsxtrpostdescnumber`§2.1; 11, 890
`\glsxtrpostdescription`§8.6.2; 12, 425–427, 432, 890
`\glsxtrpostdescsymbol`§2.1; 10, 890
`\glsxtrpostdescterm`§8.6.2; 426, 890
`\glsxtrpostfootnotelongformat` 146, 890
`\GLSxtrposthyphenlong` 152, 153, 890, 979
`\glsxtrposthyphenlong` 152, 153, 890, 891, 979
`\GLSxtrposthyphenlongpl` 153, 891
`\glsxtrposthyphenlongpl` 153, 891
`\GLSxtrposthyphenshort` 150, 151, 891, 979
`\glsxtrposthyphenshort` 150, 151, 153, 891, 979
`\GLSxtrposthyphenshortpl` 151, 891
`\glsxtrposthyphenshortpl` 151, 891
`\GLSxtrposthyphensubsequent` 151, 152, 892, 979
`\glsxtrposthyphensubsequent` 151, 892, 979
`\glsxtrpostlink`§5.5.4; 246–248, 250, 251, 892, 893
`\glsxtrpostlinkAddDescOnFirstUse`§5.5.4; 237, 246, 251, 892
`\glsxtrpostlinkAddSymbolDescOnFirstUse`§5.5.4; 251, 892, 893
`\glsxtrpostlinkAddSymbolOnFirstUse`§5.5.4; 251, 892
`\glsxtrpostlink〈category〉`248, 250, 622, 727, 892
`\glsxtrpostlinkendsentence`§5.5.4; 248, 251, 893
`\glsxtrpostlinkhook`§5.5.4; 246, 251, 786, 893
`\glsxtrpostlinkSymbolDescSep`§5.5.4; 251, 893
`\glsxtrpostlocalreset`§5.10; 282, 893
`\glsxtrpostlocalunset`§5.10; 282, 893
`\glsxtrpostlongdescription`§3.1; 32, 893, 937
`\glsxtrpostname〈category〉`§8.6.1; 424, 425, 443, 622, 626, 727, 893, 894
`\glsxtrpostnamehook`§8.6.1; 424, 597, 626, 739, 894
`\GlsXtrPostNewAbbreviation`§4.5.3.1; 163, 165, 166, 894
`\glsxtrpostreset`§5.10; 282, 894
`\glsxtrpostunset`§5.10; 282, 894
`\glsxtrpostuserlongformat` 144, 894
`\glsxtrpostusershortformat` 90, 142, 144, 894
`\GlsXtrPrefixLabelFallbackLastfalse`§11.5.7; 587, 895
`\GlsXtrPrefixLabelFallbackLasttrue`§11.5.7; 587, 895
`\glsxtrpreglossarystyle`§8.6; 396, 422, 895, 974
`\glsxtrprelocation`§8.6.5; 431, 432, 436, 444, 895
`\glsxtrprependlabelprefix`§11.5.7; 587, 895
`\GlsXtrPreToDefaultGlsOpts`§5.1.1; 185, 186, 895
`\glsxtrprovideaccsuppcmd` 168, 169, 895
`\GlsXtrProvideBibTeXFields`§11.5.2; 560, 822–824, 896
`\glsxtrprovidecommand`§11.5.8; 595, 896
`\glsxtrprovidestoragekey`§3.2; 35, 578, 896
`\glsxtrrecentanchor`§11.5.6; 580, 581, 583, 896, 915
`\GlsXtrRecordCount`§11.4; 546, 547, 896
`\GlsXtrRecordCounter`§8.4.3.2; 411, 638, 816, 896, 969
`\glsxtrrecordtriggervalue`§11.4; 547, 551, 552, 859, 896,
see also `\rgls` & --record-count
`\GlsXtrRecordWarning` 897
`\glsxtrregularfont`§5.5.2; 60, 64, 182, 236, 240, 255, 731, 897
`\GlsXtrResetLocalBuffer`§5.10.1; 287, 289, 290, 897,
see also `\GlsXtrUnsetBufferEnableRepeatLocal`
`\glsxtrresourcecount`§11; 534, 867, 897
`\glsxtrresourcefile`§11; 23, 24, 533–536, 626, 867, 879, 897,
see also resource options & `\GlsXtrLoadResources`
`\glsxtrresourceinit`§11; 535, 558, 559, 897, 898,
see also `\GlsXtrResourceInitEscSequences`
`\GlsXtrResourceInitEscSequences`§11.5.2; 535, 559, 690, 692, 698, 898, 936, 937, 940, 958, 965, 974–976
`\glsxtrrestoremarkhook`§5.3.3; 226, 422, 874, 898
`\glsxtrrestorepostpunc`§8.6.2; 426, 898
`\glsxtrrevert` 133, 171, 831, 835, 898, 899, 900, 911
`\glsxtrRevertMarks`§5.3; 200, 203, 213, 858, 898,
see also `\glsxtrRevertTocMarks`
`\glsxtrRevertTocMarks`§5.3; 200, 203, 213, 858, 898,
see also `\glsxtrRevertMarks`
`\glsxtrsaveinsert`§5.5.4; 54, 253, 844, 898
`\glsxtrscfont` 899
`\glsxtrsconlydescname` 113, 156, 899
`\glsxtrsconlydescsort` 113, 156, 899
`\glsxtrsconlyname` 112, 155, 899
`\glsxtrsconlyrevert` 155, 899
`\glsxtrsconlysuffix` 113, 155, 899
`\glsxtrscrevert` 137, 155, 157, 899, 900
`\glsxtrscsuffix` 67–69, 75, 76, 82, 83, 94, 95, 118–121, 137, 155, 157, 171, 679, 900
`\glsxtrscuserrevert` 136, 137, 900
`\glsxtrscusersuffix` 91, 137, 900
`\glsxtrseealsolabels`§5.9.2; 279, 900
`\glsxtrseelist`§5.13; 301, 900
`\glsxtrseelists`§5.9.2; 278, 900, 901,
see also `\glsxtrseelistsencap` & `\glsxtrseelistsdelim`
`\glsxtrseelistsdelim`§5.9.2; 279, 900
`\glsxtrseelistsencap`§5.9.2; 278, 279, 900, 901
`\glsxtrsetactualanchor`§11.5.6; 581, 901
`\GlsXtrSetActualChar`§12; 600, 901
`\glsxtrsetaliasnoindex`§5.9.3; 269, 280, 281, 861, 901
`\GlsXtrSetAltModifier`§5; 183, 311, 328, 879, 901
`\glsxtrsetbibglsaux`§2.4; 26, 901
`\glsxtrsetcategory`§10; 515, 901
`\glsxtrsetcategoryforall`§10; 515, 902
`\glsxtrsetcomplexstyle`§4.5.3.1; 165, 166, 902
`\GlsXtrSetDefaultGlsOpts`§5.1.1; 185–189, 280, 902
`\GlsXtrSetDefaultNumberFormat`§5.1.1; 187, 261, 902
`\GlsXtrSetDefaultRangeFormat`§5.8; 261, 794, 902
`\GlsXtrSetEncapChar`§12; 600, 902
`\GlsXtrSetEscChar`§12; 600, 903
`\GlsXtrSetField`§3.5; 37–40, 274, 392, 515, 622, 697, 699, 832, 866, 903, 979
`\glsxtrsetfieldifexists`§3.5; 39, 903
`\glsxtrsetgrouptitle`§8.6.4; 34, 390, 430, 630, 903
`\glsxtrsetglossarylabel`§8.3; 381, 903
`\GlsXtrSetLevelChar`§12; 600, 903
`\glsxtrsetlongfirstuse`§4.3; 52, 903
`\GlsXtrSetPlusModifier`§5; 183, 904
`\glsxtrsetpopts`§5.4; 230, 703, 888, 904
`\glsxtrsetpunctuationmarks`§5.5.4; 250, 904
`\GlsXtrSetRecordCountAttribute`§11.4; 547, 904
`\GlsXtrSetStarModifier`§5; 183, 904
`\glsxtrsetupfulldefs`§4.3; 54, 904
`\glsxtrSetWidest`§11.5.3; 577, 905
`\glsxtrSetWidestFallback`§11.5.3; 578, 905
`\GLSxtrshort`§4.3; Table 4.1; 51, 203, 206, 217, 684, 687, 802, 905
`\Glsxtrshort`§4.3; Table 4.1; 50, 206, 684, 687, 802, 905
`\glsxtrshort`§4.3; Table 4.1; 18, 19, 43, 47, 50, 54, 61, 63, 65, 74, 82, 93, 103, 115, 159, 177, 182, 184, 201, 203, 206, 235, 240, 247, 252, 336, 366, 654, 655, 684, 687, 802, 905, 908, 950, 963
`\glsxtrshortdescname` 66, 147, 905
`\GLSxtrshortformat` 177, 905
`\Glsxtrshortformat` 177, 906
`\glsxtrshortformat` 114, 177, 178, 180, 873, 905, 906, 907, 909
`\GLSxtrshortformatgrp` 178, 906
`\Glsxtrshortformatgrp` 178, 906
`\glsxtrshortformatgrp` 178, 906
`\glsxtrshorthyphen` 152, 906
`\GLSxtrshorthyphenlong` 152, 906
`\glsxtrshorthyphenlong` 152, 906, 907
`\glsxtrshorthyphenlongsort` 108, 148, 907
`\glsxtrshortlongdescname` 94, 110, 134, 907
`\glsxtrshortlongdescsort` 94, 100, 110, 134, 907
`\GLSxtrshortlongformat` 180, 907
`\Glsxtrshortlongformat` 180, 907
`\glsxtrshortlongformat` 65, 93, 114, 179, 180, 907, 908
`\glsxtrshortlongname` 108, 134, 908
`\GLSxtrshortlongplformat` 180, 908
`\Glsxtrshortlongplformat` 180, 908
`\glsxtrshortlongplformat` 180, 908
`\glsxtrshortlonguserdescname` 91, 100–103, 139, 908
`\glsxtrshortnolongname` 65, 146, 908
`\GLSxtrshortpl`§4.3; Table 4.1; 51, 207, 685, 688, 784, 908
`\Glsxtrshortpl`§4.3; Table 4.1; 51, 207, 685, 688, 785, 909
`\glsxtrshortpl`§4.3; Table 4.1; 51, 55, 206, 252, 685, 688, 785, 909, 964
`\GLSxtrshortplformat` 178, 909
`\Glsxtrshortplformat` 177, 909
`\glsxtrshortplformat` 142, 177–180, 909, 910
`\GLSxtrshortplformatgrp` 178, 909
`\Glsxtrshortplformatgrp` 178, 909
`\glsxtrshortplformatgrp` 178, 909, 910
`\glsxtrshowtargetinner`§2.5; 30, 910
`\glsxtrshowtargetouter`§2.5; 30, 910
`\glsxtrshowtargetsymbolleft`§2.5; 30, 793, 910
`\glsxtrshowtargetsymbolright`§2.5; 30, 793, 910
`\glsxtrsmfont` 910
`\glsxtrsmrevert` 157, 911
`\glsxtrsmsuffix` 69–71, 76, 77, 84, 96, 122–125, 158, 911
`\glsxtrspacerules` 566, 911
`\GlsXtrStandaloneEntryHeadName`§8.5; 421, 911
`\GlsXtrStandaloneEntryHeadOther`§8.5; 422, 911
`\GlsXtrStandaloneEntryName`§8.5; 256, 419, 420, 911
`\GlsXtrStandaloneEntryOther`§8.5; 419, 911
`\GlsXtrStandaloneEntryPdfName`§8.5; 421, 912
`\GlsXtrStandaloneEntryPdfOther`§8.5; 421, 912
`\GlsXtrStandaloneGlossaryType`§8.5; 418, 912
`\GlsXtrStandaloneSubEntryItem`§8.5; 418, 912
`\glsxtrstarflywarn` 912
`\GlsXtrStartUnsetBuffering`§5.10.1; 286, 287, 912,
see also `\GlsXtrStopUnsetBuffering` & `\GlsXtrDiscardUnsetBuffering`
`\GlsXtrStopUnsetBuffering`§5.10.1; 287, 291, 912,
see also `\GlsXtrStartUnsetBuffering`, `\GlsXtrDiscardUnsetBuffering` & `\GlsXtrForUnsetBufferedList`
`\glsxtrSubScriptDigitrules` 569, 912
`\GLSxtrsubsequentfmt` 173, 913
`\Glsxtrsubsequentfmt` 173, 913
`\glsxtrsubsequentfmt` 61, 173, 255, 913
`\GLSxtrsubsequentplfmt` 173, 913
`\Glsxtrsubsequentplfmt` 173, 913
`\glsxtrsubsequentplfmt` 173, 913
`\glsxtrSuperScriptDigitrules` 569, 914
`\glsxtrsupphypernumber`§5.1.2; 194, 579, 914
`\glsxtrsupplocationurl` 868, 914
`\glsxtrtagfont`§4.4; 56, 521, 914
`\glsxtrtaggedlist`§5.13; 302, 914
`\glsxtrtaggedlistsep`§5.13; 302, 914
`\glsxtrtarget`§5.6; 256, 382, 419, 914, 915
`\glsxtrtargetfield`§5.6; 256, 915
`\GlsXtrTheLinkCounter`§6.2; 320, 915
`\glsxtrtitlednamereflink`§11.5.6; 583, 915
`\GLSxtrtitlefirst`§5.3.3; 225, 915,
see also `\GLSfmtfirst` & `\GLSxtrheadfirst`
`\Glsxtrtitlefirst`§5.3.3; 224, 915,
see also `\Glsfmtfirst` & `\Glsxtrheadfirst`
`\glsxtrtitlefirst`§5.3.3; 224, 915,
see also `\glsfmtfirst` & `\glsxtrheadfirst`
`\GLSxtrtitlefirstplural`§5.3.3; 225, 916,
see also `\GLSfmtfirstpl` & `\GLSxtrheadfirstplural`
`\Glsxtrtitlefirstplural`§5.3.3; 225, 916,
see also `\Glsfmtfirstpl` & `\Glsxtrheadfirstplural`
`\glsxtrtitlefirstplural`§5.3.3; 225, 916,
see also `\glsfmtfirstpl` & `\glsxtrheadfirstplural`
`\GLSxtrtitlefull`§5.3.3; 221, 748, 916,
see also `\GLSfmtfull`
`\Glsxtrtitlefull`§5.3.3; 221, 748, 916,
see also `\Glsfmtfull` & `\Glsxtrheadfull`
`\glsxtrtitlefull`§5.3.3; 220, 748, 916,
see also `\glsfmtfull` & `\glsxtrheadfull`
`\GLSxtrtitlefullpl`§5.3.3; 222, 748, 916,
see also `\GLSfmtfullpl`
`\Glsxtrtitlefullpl`§5.3.3; 221, 748, 917,
see also `\Glsfmtfullpl` & `\Glsxtrheadfullpl`
`\glsxtrtitlefullpl`§5.3.3; 221, 749, 917,
see also `\glsfmtfullpl` & `\glsxtrheadfullpl`
`\GLSxtrtitlelong`§5.3.3; 219, 917
`\Glsxtrtitlelong`§5.3.3; 219, 917
`\glsxtrtitlelong`§5.3.3; 219, 917
`\GLSxtrtitlelongpl`§5.3.3; 220, 917
`\Glsxtrtitlelongpl`§5.3.3; 220, 917
`\glsxtrtitlelongpl`§5.3.3; 220, 917
`\GLSxtrtitlename`§5.3.3; 222, 918,
see also `\GLSfmtname` & `\GLSxtrheadname`
`\Glsxtrtitlename`§5.3.3; 222, 918,
see also `\Glsfmtname` & `\Glsxtrheadname`
`\glsxtrtitlename`§5.3.3; 222, 918,
see also `\glsfmtname` & `\glsxtrheadname`
`\glsxtrtitleopts`§5.3.2; 205, 215, 216, 918
`\glsxtrtitleorpdforheading`§5.3.3; 214, 419, 918
`\GLSxtrtitleplural`§5.3.3; 224, 918,
see also `\GLSfmtplural` & `\GLSxtrheadplural`
`\Glsxtrtitleplural`§5.3.3; 224, 918,
see also `\Glsfmtplural` & `\Glsxtrheadplural`
`\glsxtrtitleplural`§5.3.3; 223, 919,
see also `\glsfmtplural` & `\glsxtrheadplural`
`\GLSxtrtitleshort`§5.3.3; 217, 919
`\Glsxtrtitleshort`§5.3.3; 216, 217, 919
`\glsxtrtitleshort`§5.3.3; 216, 217, 919
`\GLSxtrtitleshortpl`§5.3.3; 219, 919
`\Glsxtrtitleshortpl`§5.3.3; 218, 919
`\glsxtrtitleshortpl`§5.3.3; 218, 919
`\GLSxtrtitletext`§5.3.3; 223, 920,
see also `\GLSfmttext` & `\GLSxtrheadtext`
`\Glsxtrtitletext`§5.3.3; 223, 920,
see also `\Glsfmttext` & `\Glsxtrheadtext`
`\glsxtrtitletext`§5.3.3; 223, 920,
see also `\glsfmttext` & `\glsxtrheadtext`
`\GlsXtrTotalRecordCount`§11.4; 546, 920
`\glsxtrtreechildpredesc` 920
`\glsxtrtreepredesc` 920
`\glsxtrundefaction`§2.4; 16, 920
`\glsxtrundeftag`§2.4; 15, 920
`\GlsXtrUnknownDialectWarning`§5.12.1; 295, 921
`\GlsXtrUnsetBufferDisableRepeatLocal`§5.10.1; 288, 921
`\GlsXtrUnsetBufferEnableRepeatLocal`§5.10.1; 188, 287, 289, 897, 921,
see also `\GlsXtrResetLocalBuffer`
`\glsxtrunsrtdo`§8.4.3; 406, 412, 921
`\glsxtrunusedformat`§5.9.3; 20, 281, 921
`\glsxtrUpAlpha` 577, 921
`\glsxtrUpBeta` 577, 921
`\glsxtrUpChi` 577, 922
`\glsxtrUpDelta` 577, 922
`\glsxtrUpDigamma` 577, 922
`\glsxtrUpEpsilon` 577, 922
`\glsxtrUpEta` 577, 922
`\glsxtrUpGamma` 577, 922
`\glsxtrUpIota` 577, 922
`\glsxtrUpKappa` 577, 923
`\glsxtrUpLambda` 577, 923
`\glsxtrUpMu` 577, 923
`\glsxtrUpNu` 577, 923
`\glsxtrUpOmega` 577, 923
`\glsxtrUpOmicron` 577, 923
`\glsxtrUpPhi` 577, 923
`\glsxtrUpPi` 577, 923
`\glsxtrUpPsi` 577, 924
`\glsxtrUpRho` 577, 924
`\glsxtrUpSigma` 577, 924
`\glsxtrUpTau` 577, 924
`\glsxtrUpTheta` 577, 924
`\glsxtrUpUpsilon` 577, 924
`\glsxtrUpXi` 577, 924
`\glsxtrUpZeta` 577, 924
`\GlsXtrUseAbbrStyleFmts`§4.5.2; 159, 925
`\GlsXtrUseAbbrStyleSetup`§4.5.2; 159, 925
`\glsxtrusealias`§5.9.2; 279, 925,
see also `\glsxtrusesee`, `\glsxtruseseealso` & `\glsxtrseelists`
`\GLSxtrusefield`§5.11; 199, 293, 925
`\Glsxtrusefield`§5.11; 293, 421, 925
`\glsxtrusefield`§5.11; 38, 293, 422, 839, 925
`\glsxtruserfield` 63, 88, 99, 135, 137, 138, 658, 663, 664, 925, 926, 927
`\glsxtruserfieldfmt` 135, 138, 926
`\GLSxtruserlongformat` 143, 926
`\glsxtruserlongformat` 143, 926
`\GLSxtruserlongplformat` 144, 926
`\glsxtruserlongplformat` 143, 144, 926
`\GLSxtruserlongshortformat` 139, 926
`\Glsxtruserlongshortformat` 139, 926
`\glsxtruserlongshortformat` 139, 926, 927
`\GLSxtruserlongshortplformat` 140, 927
`\Glsxtruserlongshortplformat` 140, 927
`\glsxtruserlongshortplformat` 140, 927
`\GLSxtruserparen` 135, 138, 142–144, 926, 927, 928
`\glsxtruserparen` 135, 137, 138, 142–144, 894, 926, 927, 928, 929,
see also `\GLSxtruserparen`, `\glsxtruserparensep` & `\glsxtruserfieldfmt`
`\glsxtruserparensep` 135, 138, 927, 928
`\GLSxtrusershortformat` 142, 928
`\glsxtrusershortformat` 141, 142, 928
`\GLSxtrusershortlongformat` 141, 928
`\Glsxtrusershortlongformat` 141, 928
`\glsxtrusershortlongformat` 140, 928
`\GLSxtrusershortlongplformat` 141, 928
`\Glsxtrusershortlongplformat` 141, 929
`\glsxtrusershortlongplformat` 141, 929
`\GLSxtrusershortplformat` 142, 929
`\glsxtrusershortplformat` 142, 929
`\glsxtrusersuffix` 88, 100, 136, 929
`\glsxtrusesee`§5.9.2; 22, 279, 929, 930,
see also `\glsxtrusealias`, `\glsxtruseseealso` & `\glsxtrseelists`
`\glsxtruseseealso`§5.9.2; 22, 279, 929,
see also `\glsxtrusesee`, `\glsxtrusealias` & `\glsxtrseelists`
`\glsxtruseseealsoformat`§5.9.2; 33, 269, 278–280, 900, 930
`\glsxtruseseeformat` 278, 279, 900, 925, 929, 930
`\GlsXtrWarnDeprecatedAbbrStyle`§4.5.2; 160, 930
`\GlsXtrWarning`§13; 602, 930
`\glsxtrword`§10.2.1.1; 173, 519, 520, 930
`\glsxtrwordsep`§10.2.1.1; 149, 151, 173, 519, 520, 930
`\glsxtrwordsephyphen` 149, 151, 930
`\glsxtrwrglossaryhook` 931
`\glsxtrwrglossarylocfmt`§11.5.6; 29, 582, 931
`\glsxtrwrglosscountermark`§2.5; 29, 931
`\glsxtrwrglossmark`§2.5; 29, 931
[top]

## H
[link]

`\hfil` 431
hierarchical level 263, 381, 382, 386, 389, 390, 395, 396, 401, 404, 406, 410, 438, 439, 442, 448, 482, 484, 553, 577, 623, 631, 648, 725, 741, 742, 753, 792, 811, 921
`\hl` 241
`\hsize` 433
`\hyperbf` 583, 931
`\hyperlink` 319
`\hyperref` 596
hyperref package 25, 27, 36, 63, 194, 195, 197, 200, 204, 215, 229, 239, 256, 293, 294, 298, 316, 417, 421, 533, 545, 552, 579, 580, 599, 609, 614, 837
`\hypertarget`
[top]

## I
[link]

`\ifcsstring` 932
`\ifcsundef` 307, 856
`\ifcsvoid` 307, 528, 591, 753
`\ifdefempty` 307
`\ifdefstring` 856
`\ifglossaryexists` 379, 696, 931,
see also `\doifglossarynoexistsordo` & `\glsxtrifemptyglossary`
`\ifglsentryexists` 729, 932,
see also `\glsdoifexistsordo`, `\glsdoifexists` & `\glsdoifnoexists`
`\ifglsfieldcseq` 932
`\ifglsfielddefeq` 932
`\ifglsfieldeq` 755, 932
`\ifglsfieldvoid` 307, 496, 932,
see also `\GlsXtrIfFieldUndef`
`\ifglshaschildren` 578, 932,
see also `\GlsXtrIfHasNonZeroChildCount`
`\ifglshasdesc` 479, 933
`\ifglshasdescsuppressed` 933
`\ifglshasfield` 307, 725, 857, 933,
see also `\glsxtrifhasfield` & `\ifglsfieldvoid`
`\ifglshaslong` 933
`\ifglshasparent` 294, 578, 933
`\ifglshasshort` 255, 933
`\ifglshassymbol` 934
`\ifglsindexonlyfirst`§5.8; 267, 934
`\ifGlsLongExtraUseTabular`§8.7.2; 449, 779, 934
`\ifglsnogroupskip` 432, 934
`\ifglsresetcurrcount`§6.1; 310, 788, 934
`\ifglsused` 15, 246, 267, 283–285, 860, 934,
see also `\GlsXtrIfUnusedOrUndefined` & `\glsxtrifwasfirstuse`
`\ifglsxtrinitwrglossbefore`§5.1.2; 193, 934
`\ifglsxtrinsertinside` 131, 173, 175, 177, 863, 869, 906, 935
`\ifGlsXtrPrefixLabelFallbackLast`§11.5.7; 587, 895, 935
`\ifglsxtrprintglossflatten`§8.4.3; 406, 935
`\ifinlistcs` 307, 838
`\ifmglsused`§7.7; 354, 935
`\ifmultiglossaryentryglobal`§7; 327, 935, 954
`\IfTeXParserLib`§11.5.8; 595, 935
`\IfTrackedLanguageFileExists` 562
`\ifundef` 307
ignored glossary 256, 260, 377–379, 385, 386, 409, 439, 516, 548, 624, 698, 699, 741, 752, 761, 855, 857, 931, 938, 957, 965–967
ignored location (or record)264, 536, 545, 547, 624
`\IN`§11.5.2; 559, 936
`\index` 263, 524, 525, 597–599, 601
indexing application 194, 263, 264, 313, 429, 623, 624, 984, 986
indexing (or recording)22–28, 33, 37, 183, 184, 188, 189, 192–195, 205, 233, 259, 260, 263–269, 272, 273, 276, 277, 280, 281, 292, 304, 309, 377, 378, 385, 410–412, 441, 481, 531, 536, 537, 545, 547, 552, 553, 578, 579, 581, 582, 584, 588, 594, 624, 628, 631, 633–638, 640, 641, 643, 722, 729, 756, 757, 759, 816, 834, 835, 956, 957, 966, 981–984, 987, 989, 990
`\indexname` 936, 987
`\indexspace` 434
inline full form 50, 53, 63, 65, 66, 73, 74, 81, 88, 93, 100, 101, 103, 105–107, 109, 111, 114, 132, 170, 174, 252, 284, 622, 624, 659, 662, 830, 844, 862, 863, 898
inner formatting 132, 135, 138, 160, 163, 173, 175–178, 235, 239, 241, 243–245, 507, 624, 639, 705, 738, 747, 754, 831, 845, 869, 872, 906, 910
`\input` 531
inputenc package 601
internal field 35, 37, 266, 305, 623, 625
internal field (bib2gls)34, 625, 630
internal field label 38–40, 135, 230, 245, 293, 295, 297, 303–305, 307, 368, 400, 419, 423, 466, 489, 496, 589, 625, 702, 738, 739, 747, 754, 758, 791, 799, 810, 829, 835, 838, 841, 842, 848, 855–857, 859, 867, 868, 903, 925, 932, 933, 943
internal field name
see glossary entry fields
`\INTERPRET`§11.5.2; 559, 936
`\Iota`§11.5.8; 596, 936
`\item` 433, 524, 669
[top]

## J
[link]

`\jobname` 17, 533, 534, 867
[top]

## K
[link]

`\Kappa`§11.5.8; 596, 936
[top]

## L
[link]

`\label` 27, 381, 647, 903
`\LABELIFY`§11.5.2; 559, 936
`\LABELIFYLIST`§11.5.2; 559, 936
`\LC`§11.5.2; 559, 937
`\leavevmode` 32
`\LEN`§11.5.2; 559, 937
`\let` 225, 226, 243
`\letabbreviationstyle`§4.5.3; 161, 937
`\letcs` 498
`\levelchar` 599
`\linewidth` 453, 461
link text 63, 64, 105, 116, 151, 182–185, 188–191, 193, 195, 196, 229, 233, 234, 237, 241, 244, 253, 254, 259, 266, 281, 283–286, 288, 291, 297, 319, 368, 518, 522, 608, 623, 625, 626–628, 639–641, 703, 726–728, 742, 745, 746, 758, 759, 781, 784, 785, 794, 795, 802, 811–815, 840, 842–844, 868, 869, 871, 905, 908, 909, 921, 952
`\listcsadd` 39, 838
`\listcseadd` 39, 838
`\listcsgadd` 39, 839
`\listcsxadd` 39, 839
`\loadglsentries` 531, 937
location counter 24–27, 194, 264, 266, 379, 536, 546, 547, 579–581, 622, 625, 628, 638, 639, 641, 868, 896, 956, 973, 983, 987
location encap (format)187, 194, 357, 536, 579, 624, 625, 637, 639, 754, 756, 783, 921
location, ignored/invisible
see ignored location (or record)
location list 20, 24, 27, 33, 35, 37, 193, 194, 200, 260, 263–266, 268, 269, 277, 278, 280, 329, 386, 389, 399–402, 414, 427, 428, 431–433, 435, 440, 441, 444, 445, 451, 452, 454, 456–459, 461, 462, 464, 465, 474, 479, 486, 531, 535–537, 539, 548, 552, 556, 580, 594, 595, 609, 610, 612, 624, 625, 630, 648, 669, 671–673, 700, 728, 733, 740–742, 754, 756, 757, 759, 761, 767–769, 776, 778, 782, 783, 786, 789, 804–809, 826–828, 836, 842, 868, 895, 959, 967, 987, 988
`\longnewglossaryentry`§3.1; 16, 17, 32, 537, 893, 937
`\longnewglossaryentry*`§3.1; 32, 389, 937
longtable environment 402, 449, 453–462, 464, 465, 468–470, 472, 473, 481, 668, 670–674, 764–774, 777, 783, 934
longtable package 481, 674
lowercase 136, 156, 199, 264, 576, 577, 780, 876
[top]

## M
[link]

`\mainmatter` 186, 187
`\MakeAcronymsAbbreviations`§4.6; 181, 938
`\makefirstuc` 196–199, 241, 293, 294, 375, 703, 742, 745, 746, 781, 784, 785, 790, 802, 843, 844, 868, 871, 905, 909, 938, 939, 940
`\makeglossaries`§8; 23–25, 257, 377, 385, 388, 611, 786, 886, 938, 965, 966, 984, 989
makeglossaries-lite
makeglossaries 6, 257, 314, 315
makeglossariesgui
makeindex 6, 17, 20, 23, 25, 28, 194, 195, 263, 597, 624, 938, 965, 984, 987
`\MakeLowercase`
`\makenoidxglossaries` 16, 17, 24, 25, 377, 385, 399, 536, 579, 786, 886, 938, 966, 984, 989
`\MakeTextLowercase` 199
`\MakeTextUppercase` 202, 226, 938
`\MakeUppercase` 149, 150, 152, 226
`\markboth` 200, 203, 213, 225, 226, 422, 677, 858, 874, 898
`\markright` 200, 203, 213, 225, 226, 422, 677, 858, 874, 898
`\mbox` 241, 242, 286, 290, 291
memoir class 5
mfirstuc package 196–199, 202, 227, 234, 243, 293, 301, 523, 535, 689, 690, 780, 781, 879, 938–940, 978, 987
`\mfirstucMakeUppercase` 199, 376, 938
`\MFUaddmap` 198, 199, 301, 781, 939,
see also `\MFUexcl` & `\MFUblocker`
`\MFUblocker` 198, 781, 939,
see also `\MFUexcl` & `\MFUaddmap`
`\MFUexcl` 197, 198, 781, 939,
see also `\MFUblocker` & `\MFUaddmap`
`\MFUsave` 535, 879, 939
`\MFUsaveatend` 536, 939
`\MFUsentencecase` 196–198, 241, 301, 488, 781, 888, 938, 939
`\MGP`§11.5.2; 558, 559, 724, 940
`\MGLS`§7.11.1; 344, 359, 366, 940
`\MGls`§7.11.1; 365, 940
`\Mgls`§7.11.1; 342, 344, 359, 365, 940
`\mgls`§7; 182, 325–329, 332, 334–336, 339–341, 349–351, 354–356, 361–364, 374, 643, 644, 940, 943, 947–954
`\mglsAddOptions`§7; 327, 940
`\mglscurrentcategory`§7.5; 350, 356, 941
`\mglscurrentlabel`§7.5; 350, 360, 941
`\mglscurrentlist`§7.5; 349, 941
`\mglscurrentmainlabel`§7.5; 349, 941
`\mglscurrentmultilabel`§7.5; 349, 941
`\mglscurrentoptions`§7.5; 349, 941
`\mglscurrentprefix`§7.5; 343, 344, 350, 941
`\mglscurrentsuffix`§7.5; 344, 350, 942
`\mglscustompostlinkhook`§7.6; 351, 358, 942
`\mglsdefcategoryprefix`§7.3; 343, 942
`\mglsdefcategorysuffix`§7.3; 344, 942
`\mglselementindex`§7.5; 350, 942
`\mglselementposthook`§7.5; 349, 942
`\mglselementprehook`§7.5; 349, 350, 368, 942
`\mglselementreset`§7.10; 364, 942
`\mglselementunset`§7.10; 364, 943
`\mglsfield`§7.11.3; 368, 943, 952
`\mglsforelements`§7.13; 372, 373, 943
`\mglsforotherelements`§7.13; 373, 943
`\Mglsfull`§7.11.2; 367, 943
`\mglsfull`§7.11.2; 366, 367, 943
`\mglshascategoryprefix`§7.3; 344, 944
`\mglshascategorysuffix`§7.3; 344, 944
`\mglsiflast`§7.5; 350, 944
`\mglsiflastelementcapscase`§7.6.1; 353, 944
`\mglsiflastelementskipped`§7.6.1; 352, 944
`\mglsiflastelementwasfirstuse`§7.6.1; 352, 944
`\mglsiflastelementwasplural`§7.6.1; 352, 944
`\mglsiflastmaincapscase`§7.6.2; 354, 945
`\mglsiflastmainskipped`§7.6.2; 353, 945
`\mglsiflastmainwasfirstuse`§7.6.2; 353, 945
`\mglsiflastmainwasplural`§7.6.2; 353, 945
`\mglsisfirstuse`§7.5; 350, 945
`\mglslastcategory`§7.6; 352, 945
`\mglslastelementlabel`§7.6.1; 343, 352, 353, 946
`\mglslastelementpostlinkhook`§7.6; 351, 358, 946
`\mglslastmainlabel`§7.6.2; 353, 946
`\mglslastmainpostlinkhook`§7.6; 351, 358, 946
`\mglslastmultilabel`§7.6; 351, 946
`\mglslocalreset`§7.7; 354, 946
`\mglslocalunset`§7.7; 354, 946
`\mglslocalunsetothers`§7.10; 364, 947
`\Mglslong`§7.11.2; 367, 947
`\mglslong`§7.11.2; 366, 367, 947
`\MGLSmainpl`§7.11.1; 366, 947
`\MGlsmainpl`§7.11.1; 365, 947
`\Mglsmainpl`§7.11.1; 365, 947
`\mglsmainpl`§7.11.1; 341, 342, 365, 948
`\MGlsname`§7.11.3; 367, 948
`\Mglsname`§7.11.3; 367, 948
`\mglsname`§7.11.3; 348, 354, 367, 948
`\MGLSpl`§7.11.1; 366, 948
`\MGlspl`§7.11.1; 365, 948
`\Mglspl`§7.11.1; 365, 948
`\mglspl`§7.11.1; 342, 348, 362, 365, 949
`\mglsprefix`§7.3; 342, 344, 949
`\mglsreset`§7.7; 354, 949
`\mglsresetall`§7.7; 355, 949
`\mglsseefirstitem`§7.12; 303, 371, 789, 949
`\mglsseeitem`§7.12; 303, 371, 789, 949
`\mglsSetMain` 326, 341, 949
`\mglsSetOptions`§7; 327, 950
`\Mglsshort`§7.11.2; 366, 950
`\mglsshort`§7.11.2; 366, 367, 950
`\mglssuffix`§7.3; 343, 344, 351, 950
`\MGlssymbol`§7.11.3; 367, 368, 950
`\Mglssymbol`§7.11.3; 367, 950
`\mglssymbol`§7.11.3; 367, 951
`\mglsunset`§7.7; 354, 951
`\mglsunsetall`§7.7; 355, 951
`\mglsunsetothers`§7.10; 364, 951
`\mglsusecategoryprefix`§7.3; 344, 951
`\mglsusecategorysuffix`§7.3; 344, 951
`\MGlsusefield`§7.11.3; 368, 951
`\Mglsusefield`§7.11.3; 368, 952
`\mglsusefield`§7.11.3; 368, 943, 951, 952
`\mglswasfirstuse`§7.6; 352, 952
`\midrule`
mini-glossary 292, 410, 414, 415, 462, 555, 556
`\MPGLS`§7.11.4; 371, 952
`\MPGls`§7.11.4; 370, 952
`\Mpgls`§7.11.4; 370, 952
`\mpgls`§7.11.4; 342, 359, 369, 952, 954
`\MPGLSmainpl`§7.11.4; 371, 953
`\MPGlsmainpl`§7.11.4; 370, 953
`\Mpglsmainpl`§7.11.4; 370, 953
`\mpglsmainpl`§7.11.4; 370, 953
`\MPGLSpl`§7.11.4; 371, 953
`\MPGlspl`§7.11.4; 370, 953
`\mpglspl`§7.11.4; 370, 953, 954
`\mpglsWarning`§7.11.4; 369, 954
`\Mu`§11.5.8; 596, 954
multi-entry first use 358–360, 623, 625, 642–644
multi-entry first use flag 363, 364, 625, 644
multi-entry set options 642
all§7.10; 361, 362, 642
category§7.9.6; 355, 361, 642
encapmain§7.9.2; 357, 642
encapothers§7.9.2; 357, 642
firstprefix§7.9.4; 344, 359, 642
firstskipmain§7.9.5; 359, 642
firstskipothers§7.9.5; 359, 643
firstsuffix§7.9.4; 330, 344, 359, 643
hyper§7.10; 329, 334, 362, 643
hyper§7.9.6; 360, 643
indexmain§7.9.1; 356, 643
indexothers§7.9.1; 327, 357, 643
main§7.10; 362, 643
mglsopts§7.9.6; 334, 361, 362, 644
mpostlink§7.9.3; 332, 351, 358, 644
mpostlinkelement§7.9.3; 351, 358, 644, 942, 946
multiunset§7.10; 363, 364, 644
others§7.10; 334, 362, 644
postlinks§7.9.3; 332, 349, 351, 357, 644
presetlocal§7.10; 334, 363, 364, 644, 943
resetall§7.10; 363, 644, 943
resetmain§7.10; 363, 645
resetothers§7.10; 363, 645
setup§7.10; 355, 356, 361, 362, 645
textformat§7.9.6; 360, 361, 645
unsetall§7.10; 363, 645, 943
unsetmain§7.10; 364, 645
unsetothers§7.10; 364, 645
usedprefix§7.9.4; 344, 359, 646
usedskipmain§7.9.5; 360, 646
usedskipothers§7.9.5; 360, 646
usedsuffix§7.9.4; 344, 359, 646
multi-entry subsequent use 358–360, 625, 644, 646
multicol package 474
multicols environment 442, 443, 474, 674, 675, 803, 825, 827
multicols* environment 443
`\multiglossaryentry`§7; 325–327, 341, 355, 356, 362, 373, 374, 954, 970
`\multiglossaryentryglobalfalse`§7; 327, 954
`\multiglossaryentryglobaltrue`§7; 326, 954
`\multiglossaryentrysetup`§7.9; 349, 356, 362, 954
[top]

## N
[link]

`\nameref` 214
nameref package 214
`\newabbr`§4.3.2; Table 4.1; 955
`\newabbreviation`§4.1; Table 4.1; 5, 16, 41, 43–45, 47, 50, 63, 66, 82, 94, 115, 133, 161, 163–167, 169, 181, 184, 325, 379, 389, 498, 515, 516, 519–521, 537, 628–634, 651, 678, 682–684, 697, 724, 726, 742, 745, 746, 758, 780, 784, 785, 792, 802, 883, 887, 937, 955, 973, 984
`\newabbreviationhook`§4.1.5; 45, 162, 955
`\newabbreviationstyle`§4.5.3; 43, 159–162, 169, 955
`\newacronym` 3, 5, 7, 10, 19, 42–44, 59, 60, 180, 181, 516, 519–521, 632, 651, 955, 971, 973, 985
`\newacronymstyle`🛇43, 955
`\newcommand` 250, 259
`\newdglsfield`§11.5.7; 590, 956
`\newdglsfieldlike`§11.5.7; 590, 956
`\newentry`§2.4; 18, 956, 985
`\newglossary` 264, 956
`\newglossary*`956
`\newglossaryentry` 16–18, 32, 37, 41, 47, 161, 162, 167, 305, 325, 515, 516, 602, 628, 630, 632, 955, 956, 957, 982, 983
`\newignoredglossary` 256, 377, 378, 624, 957, 970
`\newignoredglossary*`§8; 377, 526, 957
`\newnum`§2.4; 19, 957, 985
`\newsym`§2.4; 18, 957, 985
`\newterm`§2.1; 12, 517, 957, 987
`\NIN`§11.5.2; 559, 958
`\NoCaseChange` 202, 215
non-breaking space (`~`)331, 347, 791
`\nopostdesc` 12, 32, 419, 426, 818, 933, 958,
see also `\glsxtrnopostpunc`
`\NOTPREFIXOF`§11.5.2; 559, 958
`\NOTSUFFIXOF`§11.5.2; 559, 958
`\Nu`§11.5.8; 596, 958
`\NULL`§11.5.2; 559, 958
`\null` 6
number list
see location list
[top]

## O
[link]

`\Omicron`§11.5.8; 596, 959
`\omicron`§11.5.8; 596, 959
[top]

## P
[link]

page counter 25, 27, 264, 266, 315, 319, 546, 552, 553, 579, 583, 915
`\pagelistname` 450, 959
`\pageref` 379, 888
`\pagestyle` 205
`\par` 783
`\parindent` 477
`\part` 264
part counter 264
`\pdfbookmark` 446, 825
period (`.`)
see full stop (`.`)
`\PGLS` 371, 959
`\Pgls` 54, 206, 370, 959
`\pgls` 54, 369, 370, 953, 959, 961, 962
`\PGLSfmtlong`§5.3.2; 208, 959
`\Pglsfmtlong`§5.3.2; 208, 218, 960, 964
`\pglsfmtlong`§5.3.2; 208, 959, 960
`\PGLSfmtlongpl`§5.3.2; 209, 960
`\Pglsfmtlongpl`§5.3.2; 209, 218, 960, 964
`\pglsfmtlongpl`§5.3.2; 209, 960
`\PGLSfmtshort`§5.3.2; 206, 960
`\Pglsfmtshort`§5.3.2; 206, 217, 218, 961, 964
`\pglsfmtshort`§5.3.2; 206, 218, 960, 961
`\PGLSfmtshortpl`§5.3.2; 207, 961
`\Pglsfmtshortpl`§5.3.2; 207, 218, 961, 965
`\pglsfmtshortpl`§5.3.2; 207, 961
`\PGLSpl` 371, 961
`\Pglspl` 370, 962
`\pglspl` 370, 953, 954, 962
`\PGLSxtrlong`§4.3.1; 55, 962
`\Pglsxtrlong`§4.3.1; 55, 962
`\pglsxtrlong`§4.3.1; 55, 962
`\PGLSxtrlongpl`§4.3.1; 56, 962
`\Pglsxtrlongpl`§4.3.1; 56, 963
`\pglsxtrlongpl`§4.3.1; 55, 56, 962, 963
`\PGLSxtrshort`§4.3.1; 55, 963
`\Pglsxtrshort`§4.3.1; 54, 963
`\pglsxtrshort`§4.3.1; 54, 55, 963
`\PGLSxtrshortpl`§4.3.1; 55, 963
`\Pglsxtrshortpl`§4.3.1; 55, 964
`\pglsxtrshortpl`§4.3.1; 55, 964
`\Pglsxtrtitlelong`§5.3.3; 218, 964
`\Pglsxtrtitlelongpl`§5.3.3; 218, 964
`\Pglsxtrtitleshort`§5.3.3; 218, 964
`\Pglsxtrtitleshortpl`§5.3.3; 218, 964
polyglossia package 615
post-description hook 12, 33, 272, 307, 405, 425, 426, 443, 450, 463, 479, 480, 496, 622, 626, 628, 669, 725, 726, 766, 775, 886, 889, 890, 958
post-link hook 50, 54, 63, 90, 101, 104–107, 109–111, 116, 117, 142, 144, 150–153, 160, 165, 166, 182, 184, 229, 230, 234–236, 238, 239, 245–247, 251–254, 281, 283–285, 298, 332, 336, 351, 357, 358, 518, 548, 551, 622, 623, 626, 629, 644, 653, 656, 662, 664, 723, 724, 726, 727, 756, 758, 786, 830, 833, 860, 889, 891–893, 979
post-name hook 405, 418, 423, 424, 450, 463, 524, 622, 626, 627, 631, 727, 894
`\PREFIXOF`§11.5.2; 559, 965
`\preto` 164, 395, 403
`\pretoglossarypreamble`§8.2; 380, 965
print “unsrt” glossary commands (and environment)24, 34, 35, 133, 134, 145, 148, 149, 155, 156, 195, 378, 380–382, 385, 388, 391, 399, 427, 429, 452, 557, 624, 626, 630, 637, 647, 648, 677, 725, 794, 819, 830, 868, 886, 921, 957, 967, 968, 984
print [unsrt|noidx] glossary options 380, 647
entrycounter 647
flatten§8.3; 381, 394, 404, 406, 624, 647, 726, 921, 935
groups§8.3; 382, 388, 404, 486, 647, 753
label§8.3; 381, 487, 647
leveloffset§8.3; 381, 382, 404, 484, 624, 647, 725, 726, 921
nogroupskip 388, 432, 486, 648
nonumberlist 35, 486, 625, 648, 987
nopostdot 648
numberedsection§8.3; 380, 648
postamble§8.3; 385, 648
preamble§8.3; 384, 648
prefix§8.3; 256, 382, 384, 649
sort§8.3; 380, 649
style§8.3; 381, 481, 486, 649, 668
subentrycounter 649
target§8.3; 256, 384, 649
targetnameprefix§8.3; 383, 384, 413, 649
title§8.3; 378, 380, 408, 481, 487, 615, 649, 956
toctitle§8.3; 380, 481, 487, 650
type 390, 408, 415, 650, 965–967, 969, 970
`\printabbreviations`§2.1; 9, 965, 981
`\printacronyms` 11, 965, 986
`\printglossaries` 6, 25, 624, 957, 965, 984
`\printglossary` 3, 5, 6, 25, 377, 378, 380, 385, 386, 401, 402, 418, 427, 432, 537, 603, 611, 623, 647, 701, 794, 897, 938, 956, 957, 965, 966, 984, 988
`\printindex` 966, 987
`\printnoidxglossaries` 966
`\printnoidxglossary` 35, 377, 378, 380, 385–388, 390, 400, 427, 428, 430, 432, 611, 637, 647, 649, 794, 886, 938, 966
`\printnumbers` 966, 988
`\printsymbols` 966, 990
`\printunsrtabbreviations`§11.5.1; 9, 557, 966
`\printunsrtacronyms`§11.5.1; 11, 557, 967
`\printunsrtglossaries`§8.4; 378, 386, 624, 626, 967
`\printunsrtglossary`§8.4; 9, 11, 12, 24, 181, 195, 377, 378, 380, 385–387, 389, 390, 397, 401–403, 407–409, 432, 481, 486, 489, 537, 557, 623, 624, 626, 647, 957, 966, 967, 969, 970
`\printunsrtglossary*`§8.4; 385, 967, 969
`\printunsrtglossaryentryprocesshook`§8.4.3; 404, 411, 482, 726, 967, 968
`\printunsrtglossarygrouphook`§8.4.1; 395, 967
`\printunsrtglossaryhandler`§8.4.3; 406, 411, 967, 969
`\printunsrtglossarypostbegin`§8.4.3; 402, 408, 968
`\printunsrtglossarypostentryprocesshook`§8.4.3; 405, 968
`\printunsrtglossarypredoglossary`§8.4.3; 405, 408, 677, 968
`\printunsrtglossarypreend`§8.4.3; 403, 408, 968
`\printunsrtglossarypreentryprocesshook`§8.4.3; 404, 968
`\printunsrtglossaryskipentry`§8.4.3; 404, 411, 968
`\printunsrtglossaryunit`§8.4.3.2; 412, 414, 416, 969
`\printunsrtglossaryunitpostskip`§8.4.3.2; 413, 969
`\printunsrtglossaryunitsetup`§8.4.3.2; 413, 969
printunsrtglossarywrap environment§8.4.3.1; 380–382, 385, 403, 408, 626, 647, 648, 969, 980
`\printunsrtindex`§11.5.1; 12, 558, 969
`\printunsrtinnerglossary`§8.4.3.1; 380, 381, 403, 407, 409, 624, 626, 647, 701, 969, 980
`\printunsrtnumbers`§11.5.1; 11, 557, 969
`\printunsrtsymbols`§11.5.1; 10, 557, 970
`\printunsrttable`§8.7.4; 395, 403, 405, 481, 482, 486, 496, 675, 797, 970
block-style§8.7.4.2; 489
desc-name 490, 491
desc-other-name 491
desc-other-symbol-name 492
desc-symbol-other-name 492
name-desc-symbol 491
name-desc 485, 486, 488, 490
name-other-desc 491
name-other-symbol-desc 492
name-other 490, 491
name-symbol-desc 488, 491
name-symbol-other-desc 492
name-symbol 488, 490
name 483, 485, 490
other-name 483, 490, 491
other-symbol 491
symbol-name 490
symbol-other 483, 491
blocks§8.7.4.2; 486
blocksep§8.7.4.2; 488
caption§8.7.4.2; 487
header§8.7.4.2; 488
init§8.7.4.2; 482, 489
other§8.7.4.2; 483, 489, 496
par§8.7.4.2; 482, 483, 485, 486, 489, 492–494, 796–801
rules§8.7.4.2; 488
`\protect` 291, 559
`\providecommand` 578, 595, 596, 687, 688, 692, 696, 697, 896, 936, 954, 958, 959, 972, 975–979
`\provideignoredglossary`§8; 378, 578, 970
`\providemultiglossaryentry`§7; 326, 374, 970
`\ProvidesGlossariesExtraLang`§15; 616, 970
[top]

## Q
[link]

`\quotechar` 599
[top]

## R
[link]

`\ref` 379, 787, 888
`\refstepcounter` 25, 27, 319, 579, 580
`\relax` 279, 293, 331, 528, 589, 733, 819, 900, 925
relsize package 63, 157, 655, 657, 659, 666, 667
`\renewabbreviationstyle`§4.5.3; 161, 970,
see also `\newabbreviationstyle`
`\renewcommand` 250, 426, 595, 596, 788, 896
`\RequireGlossariesExtraLang` 970
resource file 595, 596, 626
resource options 24–26, 374, 423, 558, 560, 578, 585, 586, 626, 648, 722, 817, 831, 975
alias-loc 269, 280, 281
alias 280
assign-fields 535, 558, 559, 898
category 551
combine-dual-locations 594
compound-adjust-name 374, 880
description-case-change 523
dual-backlink 586
dual-field 585, 586
dual-prefix 592
dual-type 585
entry-type-aliases 559, 824
field-aliases 560
flatten 382
group-level 394, 399, 478
group 542
ignore-fields
interpret-fields 423
label-prefix 592
loc-counters 552
loc-prefix 428, 432
loc-suffix 428
name-case-change 524
post-description-dot 2, 12, 13
prune-xr 277
replicate-fields 423
save-child-count 482, 578, 637, 857, 933
save-index-counter 27, 596, 637
save-locations 25, 35, 444, 474, 536, 625, 630, 648, 984, 988
secondary 382, 392, 393
see 280, 445
seealso 280, 445
selection 22, 33, 260, 268, 270, 276, 280, 281, 537, 547, 584, 722
set-widest 439, 451, 461, 475, 577, 905
sort-field 34
sort-label-list 301
sort-replace 558
sort-rule 544, 560, 562
sort 25, 380, 537, 560, 984
src 17, 537, 578
supplemental-locations 194, 578, 583
symbol-sort-fallback 414
trigger-type 548, 553
type 541
resource set 578, 626, 817, 897
`\RestoreAcronyms`§4.6; 181, 938, 971
`\rGLS`§11.4; 198, 259, 549, 550, 884, 971,
see also `\glsxtrifrecordtrigger`, `\rGLSformat` & --record-count
`\rGls`§11.4; 199, 259, 549, 550, 884, 971,
see also `\glsxtrifrecordtrigger`, `\rGlsformat` & --record-count
`\rgls`§11.4; 56, 182, 199, 259, 547, 548, 550, 554, 556, 836, 884, 971, 972,
see also `\glsxtrifrecordtrigger`, `\rglsformat` & --record-count
`\rGLSformat`§11.4; 549, 971
`\rGlsformat`§11.4; 549, 971
`\rglsformat`§11.4; 548, 551, 971
`\rGLSpl`§11.4; 259, 549, 550, 884, 972,
see also `\glsxtrifrecordtrigger`, `\rGlsplformat` & --record-count
`\rGlspl`§11.4; 259, 549, 550, 884, 972,
see also `\glsxtrifrecordtrigger`, `\rGlsplformat` & --record-count
`\rglspl`§11.4; 259, 548, 550, 884, 972,
see also `\glsxtrifrecordtrigger`, `\rglsplformat` & --record-count
`\rGLSplformat`§11.4; 549, 972
`\rGlsplformat`§11.4; 549, 972
`\rglsplformat`§11.4; 548, 972
`\Rho`§11.5.8; 596, 972
`\Roman` 264
`\roman` 264, 265
[top]

## S
[link]

sample.tex§14.2; 605
sample-abbr-styles.tex§14.2; 606
sample-abbrv.tex§14.2; 606
sample-accsupp.tex§14.2; 613
sample-acronym.tex§14.2; 606
sample-acronym-desc.tex§14.2; 607
sample-alias.tex§14.2; 611
sample-altmodifier.tex§14.2; 610
sample-alttree.tex§14.2; 441, 611
sample-alttree-marginpar.tex§14.2; 441, 612
sample-alttree-sym.tex§14.2; 441, 612
sample-autoindex.tex§14.2; 609
sample-autoindex-hyp.tex§14.2; 609
sample-crossref.tex§14.2; 607
sample-entrycount.tex§14.2; 609
sample-external.tex§14.2; 525, 611
sample-fmt.tex§14.2; 611
sample-footnote.tex§14.2; 607
sample-header.tex§14.2; 609
sample-indexhook.tex§14.2; 607
sample-initialisms.tex§14.2; 608
sample-linkcount.tex§14.2; 610
sample-mixed-abbrv-styles.tex§14.2; 608
sample-mixedsort.tex§14.2; 377, 611
sample-mixture.tex§14.2; 606
sample-name-font.tex§14.2; 606
sample-nested.tex§14.2; 609
sample-onelink.tex§14.2; 610
sample-onthefly.tex§14.2; 612
sample-onthefly-utf8.tex§14.2; 612
sample-onthefly-xetex.tex§14.2; 612
sample-pages.tex§14.2; 428, 610
sample-postdot.tex§14.2; 608
sample-postlink.tex§14.2; 608
sample-prefix.tex§14.2; 613
sample-suppl.tex§14.2; 613
sample-suppl-hyp.tex§14.2; 614
sample-suppl-main.tex§14.2; 613
sample-suppl-main-hyp.tex§14.2; 613
sample-undef.tex§14.2; 608
sample-unitentrycount.tex§14.2; 610
sample files
`\section` 701
section counter 315, 546, 579, 581, 582
`\seealsoname` 33, 269, 280, 628, 632, 861, 973
`\seename` 269, 632, 788, 973
sentence case 253, 523, 703, 724, 742, 745, 784, 785, 802, 843, 844, 868, 871, 905, 909, 938, 940, 944, 945
`\setabbreviationstyle`§4.5; 7, 41, 59, 169, 955, 973
`\setacronymstyle`🛇43, 228, 973
`\setentrycounter` 580, 973
`\setglossarypreamble` 379, 973
`\setglossarystyle` 396, 422, 481, 668, 895, 974
`\setupglossaries`§2; 9, 432, 974
`\setupglsadd`§5.1.1; 189, 974,
see also `\setupglslink`
`\setupglslink`§5.1.1; 189, 974,
see also `\setupglsadd`
small caps 63, 88, 112, 113, 136, 156, 157, 199, 656, 704, 743, 744, 899, 900
`\so` 242, 243
soul package 236, 241, 242, 286
standalone entry 626, 957
`\stepcounter` 319, 861
`\string` 535, 544, 558, 559, 563, 565, 598, 724, 754, 975
`\subglossentry` 400, 401, 403, 418, 482, 974
subsequent use 627
`\SUFFIXOF`§11.5.2; 559, 974
supertabular environment 675
supertabular package
`\symbolname` 450, 488, 497, 975
[top]

## T
[link]

`\tabcolsep` 453, 456, 458, 461, 471, 494
table counter
table environment 27
`\tableofcontents` 202, 214
tabular environment 386, 402, 406, 432, 448, 449, 482, 668, 670–674, 693, 697, 728, 779, 783, 934, 959, 975
`\tabularnewline` 405, 492
tabulation (`&`)405, 481
`\Tau`§11.5.8; 596, 975
texindy 597
`\texorpdfstring` 204, 215, 422
`\textbf` 434, 497, 583
textcase package 202
`\textlarger` 157, 911
`\textsc` 61, 136, 156, 655–657, 659, 664, 665, 802, 839, 899
`\textsmaller` 63, 156, 157, 229, 655, 657, 659, 666, 667, 839, 910
`\textsubscript` 498
`\textsuperscript` 498
`\textup` 158, 835
`\the〈counter〉`195, 316, 320, 411, 412, 545, 552, 580
theglossary environment 3, 401, 402, 407, 408, 700, 786, 969, 980, 988
`\theglossaryentry` 975
`\theH〈counter〉`195, 316, 413, 545, 552, 581, 641
theindex environment 599
`\thepage` 545, 547
`\TITLE`§11.5.2; 559, 975
title case 199, 293, 374–376, 523, 690, 736, 839, 880
titlestring package
`\toprule`
tracklang package 295, 296, 537, 562, 564, 616, 617, 842
translator package 3, 990
`\TRIM`§11.5.2; 559, 975
[top]

## U
[link]

`\u`§11.5.2; 535, 544, 558, 559, 754, 975,
see also `\glshex` & `\GlsXtrResourceInitEscSequences`
`\UC`§11.5.2; 559, 975
`\ul` 236
`\underline` 56
`\unskip` 20, 32, 281
`\Upalpha`§11.5.8; 577, 596, 976
`\upalpha` 575–577
`\Upbeta`§11.5.8; 596, 976
`\upbeta`
`\Upchi`§11.5.8; 596, 976
`\Upepsilon`§11.5.8; 596, 976
`\Upeta`§11.5.8; 596, 976
upgreek package 575, 576, 596, 976–978
`\Upiota`§11.5.8; 596, 976
`\Upkappa`§11.5.8; 596, 977
`\Upmu`§11.5.8; 596, 977
`\Upnu`§11.5.8; 596, 977
`\Upomicron`§11.5.8; 596, 977
`\upomicron`§11.5.8; 596, 977
`\uppercase` 227
uppercase 136, 138, 146, 156, 157, 196, 199, 200, 264, 293–295, 302, 313, 390, 523, 576, 577, 703, 731, 742, 745, 784, 785, 802, 811, 843, 844, 853, 868, 871, 878, 905, 909, 938, 940,
see also title case, sentence case & all caps
`\Uprho`§11.5.8; 596, 977
`\Uptau`§11.5.8; 596, 977
`\Upzeta`§11.5.8; 596, 978
UTF-8 183, 196, 197, 249, 430, 442, 544, 601, 627, 819, 904
[top]

## W
[link]

whatsit 183, 184, 193, 266, 292, 627
wrglossary counter§2.4; 27, 29, 582, 637, 931, 982, 983
`\writemultiglossentry`§7.13; 373, 978
[top]

## X
[link]

`\xcapitalisefmtwords` 523, 978
xfor package 304, 373
`\xglssetwidest`§8.6.5.4; 438, 978
`\xglsupdatewidest`§8.6.5.4; 438, 978
`\xGlsXtrIfValueInFieldCsvList`§5.13; 306, 978
`\xGlsXtrSetField`§3.5; 39, 40, 979
`\xifinlistcs` 307, 839
xindex 624
xindy 6, 17, 20, 23, 25, 28, 194, 195, 263, 597, 624, 633, 938, 965, 984, 990
`\xpglsxtrpostabbrvfootnote`§4.5.2; 160, 979
`\xpglsxtrposthyphenlong` 152, 979
`\xpglsxtrposthyphenshort` 150, 979
`\xpglsxtrposthyphensubsequent` 151, 979
[top]

## Z
[link]

`\Zeta`§11.5.8; 596, 979