From f8984c096c7871551016e012a01478e1a193fccd Mon Sep 17 00:00:00 2001
From: Karl Berry
glossaries-extra.sty v1.41: an extension to the
+class="cmr-17">glossaries-extra.sty v1.42: an extension to the
glossaries package
2019-04-09
The file example-glossaries-xr.tex contains dummy entries with cross-references
-that may be used for creating minimal working examples for testing the
-example-glossaries-xr.tex contains dummy entries with
+cross-references that may be used for creating minimal working examples for testing
+the glossaries-extra package. (The base glossaries package provides additional files, but
this one needs New or Modified Package Options
2 Modifications to Existing Commands and Styles
2.1 Entry Indexing
+href="#definingentries" id="QQ2-1-6">Defining Entries
2.2 Cross-References (“see” and “see also”)
+href="#sec:wrglossary" id="QQ2-1-7">Entry Indexing
2.3 Entry Display Style Modifications
+href="#sec:see" id="QQ2-1-8">Cross-References (“see” and “see also”)
2.4 Entry Counting Modifications
+href="#sec:entryfmtmods" id="QQ2-1-9">Entry Display Style Modifications
2.5 First Use Flag
+href="#sec:entrycountmods" id="QQ2-1-10">Entry Counting Modifications
2.6 Plurals
+href="#sec:glsunset" id="QQ2-1-11">First Use Flag
2.7 Nested Links
+href="#plurals" id="QQ2-1-12">Plurals
2.8 Acronym Style Modifications
+href="#sec:nested" id="QQ2-1-13">Nested Links
2.9 glossary-bookindex package
+href="#sec:acronymmods" id="QQ2-1-14">Acronym Style Modifications
2.10 glossary-longextra package
-
2.11 glossary-topic package
-
2.12 Glossary Style Modifications
-
2.12.1 Style Hooks
-
2.12.2 Number List
-
2.12.3 The glossaries-extra-stylemods Package
+href="#glossaries" id="QQ2-1-16">Glossaries
+
2.10.1 Glossary Style Modifications
3 Abbreviations
+href="#newglossarystyles" id="QQ2-1-21">New Glossary Styles
3.1 Tagging Initials
+href="#x1-210003.1" id="QQ2-1-22">glossary-bookindex package
3.2 Abbreviation Styles
+href="#x1-220003.2" id="QQ2-1-23">glossary-longextra package
3.3 Shortcut Commands
-
3.4 Predefined Abbreviation Styles
-
3.4.1 Predefined Abbreviation Styles that Set the Regular Attribute
-
3.4.2 Predefined Abbreviation Styles that Don’t Set the Regular Attribute
-
3.5 Defining New Abbreviation Styles
+href="#x1-230003.3" id="QQ2-1-24">glossary-topic package
4 Entries in Sectioning Titles, Headers, Captions and Contents
+href="#sec:abbreviations" id="QQ2-1-25">Abbreviations
+
4.1 Tagging Initials
+
4.2 Abbreviation Styles
+
4.3 Shortcut Commands
+
4.4 Predefined Abbreviation Styles
+
4.4.1 Predefined Abbreviation Styles that Set the Regular Attribute
+
4.4.2 Predefined Abbreviation Styles that Don’t Set the Regular Attribute
+
4.5 Defining New Abbreviation Styles
5 Categories
+href="#sec:headtitle" id="QQ2-1-34">Entries in Sectioning Titles, Headers, Captions and Contents
+
5.1 Simplistic Approach
+
5.2 New Commands Designed for Chapter/Section Headings
6 Counting References
-
6.1 Entry Counting (First Use Flag)
-
6.2 Link Counting
+href="#sec:categories" id="QQ2-1-37">Categories
7 Auto-Indexing
+href="#sec:countref" id="QQ2-1-38">Counting References
+
7.1 Entry Counting (First Use Flag)
+
7.2 Link Counting
8 On-the-Fly Document Definitions
-
9 bib2gls: Managing Reference Databases
+href="#sec:autoindex" id="QQ2-1-41">Auto-Indexing
+
9 bib2gls: Managing Reference Databases
9.1 Selection
+href="#selection" id="QQ2-1-43">Selection
9.2 Sorting and Displaying the Glossary
+href="#sortinganddisplayingtheglossary" id="QQ2-1-44">Sorting and Displaying the Glossary
9.3 The The glossaries-extra-bib2gls package
9.3.1 Supplemental Locations
+href="#sec:supplocations" id="QQ2-1-46">Supplemental Locations
9.3.2 Nameref Record
+href="#sec:recordnameref" id="QQ2-1-47">Nameref Record
9.3.3 Helper Commands for Resource Options
+href="#sec:resourcecommands" id="QQ2-1-48">Helper Commands for Resource Options
9.4 Supplementary Commands
+href="#supplementarycommands" id="QQ2-1-49">Supplementary Commands
9.5 Record Counting
+href="#sec:recordcount" id="QQ2-1-50">Record Counting
10 Miscellaneous New Commands
+href="#sec:miscnew" id="QQ2-1-51">Miscellaneous New Commands
10.1 Entry Fields
+href="#sec:fields" id="QQ2-1-52">Entry Fields
10.2 Display All Entries Without Sorting or Indexing
+href="#sec:printunsrt" id="QQ2-1-53">Display All Entries Without Sorting or Indexing
10.3 Standalone Entry Items
+href="#sec:glossentry" id="QQ2-1-54">Standalone Entry Items
10.4 Entry Aliases
+href="#sec:alias" id="QQ2-1-55">Entry Aliases
11 Supplemental Packages
-
11.1 Prefixes or Determiners
-
11.2 Accessibility Support
+href="#sec:onthefly" id="QQ2-1-56">On-the-Fly Document Definitions
12 Sample Files
+href="#sec:supplemental" id="QQ2-1-57">Supplemental Packages
+
12.1 Prefixes or Determiners
+
12.2 Accessibility Support
13 Multi-Lingual Support
+href="#sec:samples" id="QQ2-1-60">Sample Files
+
14 Multi-Lingual Support
Glossary
@@ -880,9 +889,7 @@ href="#styopt.debug">debug=true and uses -
@@ -1060,29 +1067,42 @@ class="cmtt-10">loc-prefix which will only apply if the entry has a number list.)
If you want to define styles that can interface with the accessibility support + id="dx1-4036"> package (if not already loaded). +
+
If you want to define styles that can interface with the accessibility support provided by glossaries-accsupp use the use the \glsaccess⟨xxx⟩ type of commands instead of \glsentry⟨xxx⟩ (for example, \glsaccesstext instead of + id="dx1-4039"> instead of \glsentrytext). If ). If glossaries-accsupp hasn’t been loaded those commands are + id="dx1-4041"> hasn’t been loaded those commands are equivalent (for example, \glsaccesstext just does \glsentrytext) but if it @@ -1091,101 +1111,101 @@ class="cmtt-10">\glsaccess⟨xxx⟩ commands will add the accessibility information. (See §11.2 §12.2 Accessibility Support for further details.) -
Note that the Note that the accsupp option can only be used as a package option (and can’t
+ id="dx1-4042">
-
Note that
+ Note that \ifglsused will display ?? in the document text with
+ id="dx1-4054"> will display ?? in the document text with
undefaction=warn if the entry hasn’t been defined, as the underlying boolean
+ id="dx1-4055"> 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.) See §2.5 §
Note that Note that bib2gls can automatically find dependent entries when it
parses the .bib source file. The record option automatically implements
+ id="dx1-4064">
Note that the Note that the record=only option automatically implements option automatically implements autoseeindex=false.
- For example, if an entry is defined as
+ id="dx1-4070">
For example, if an entry is defined as @@ -1260,7 +1280,7 @@ class="cmss-10">=false
\newglossaryentry{foo}{name={foo},description={},see={bar,baz}} then with then with autoseeindex=true, this is equivalent to
@@ -1272,7 +1292,7 @@ class="cmtt-10">autoseeindex=true
\glossariesextrasetup{indexcrossrefs=true}
\GlsXtrSetField{foo}{see}{bar,baz}
but with but with autoseeindex=false, this is equivalent to
@@ -1282,19 +1302,19 @@ class="cmtt-10">autoseeindex=false
\GlsXtrSetField{foo}{see}{bar,baz}
-
Note that Note that indexcrossrefs isn’t automatically implemented by the presence of the
+ id="dx1-4071">
It’s therefore possible to remove the cross-references from the location lists and + id="dx1-4073"> is false. +
It’s therefore possible 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 +
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. @@ -1306,25 +1326,25 @@ class="cmss-10">glossaries) to record
The option may only be set in the preamble and can’t be used after +
The option may only be set in the preamble and can’t be used after \GlsXtrLoadResources. If the value is missing record=only is assumed. + id="dx1-4076"> is assumed. Permitted values:
The glossaries should be displayed using .)
+ The glossaries should be displayed using \printunsrtglossary (or
\printunsrtglossaries).
- The document build process is (assuming the file is called The document build process is (assuming the file is called myDoc.tex):
@@ -1378,53 +1398,53 @@ class="cmtt-10">myDoc.tex
- Note that
+ Note that record=only will prevent the The The record=only option will automatically set the
bib2gls myDoc
pdflatex myDoc
-
This option is best used with This option is best used with counter=chapter or or counter=section if you
+ id="dx1-4095">
The glossaries should be displayed using The glossaries should be displayed using \printglossary (or
\printglossaries). This option is expected to be used with bib2gls’s
sort=none setting and so glossaries-extra-bib2gls is not automatically
+ id="dx1-4107"> is not automatically
loaded.
- The document build process is (assuming the file is called The document build process is (assuming the file is called myDoc.tex):
@@ -1530,16 +1550,16 @@ class="cmtt-10">myDoc.tex
makeglossaries myDoc
pdflatex myDoc
-
With the recording on (
+ With the recording on (record=only or or record=alsoindex), any of the commands
+ id="dx1-4109">
\glsadd{foobar}
\end{figure}
-
+
-
By default (with
+
+ By default (with hyperref), the page numbers in ), the page numbers in number lists link back to the
top of the relevant page (provided the format uses \glshypernumber). The
indexcounter option is designed to link back to the place within the page where
+ id="dx1-4140"> option is designed to link back to the place within the page where
the indexing occurred. It does this by creating a new counter (called wrglossary)
+ id="dx1-4141">)
that’s incremented with \refstepcounter every time an entry is indexed (but
not via cross-referencing commands, such as \label is placed
class="cmtt-10">\pageref
Since Since bib2gls is designed specifically to work with glossaries-extra,
See the See the bib2gls documentation for the save-index-counter resource option
for more details.
@@ -1776,7 +1796,7 @@ class="cmtt-10">save-index-counter
Remember that if Remember that if \newglossaryentry wouldn’t be allowed in the
document environment with the base environment with the base glossaries package, then it still
won’t be allowed with docdefs=true. If your glossaries occur at the
+ id="dx1-4168">. If your glossaries occur at the
end of the document, consider using docdef=restricted instead.
+ id="dx1-4169"> instead.
With this option, if an entry appears in the glossary before it has been +
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 + id="dx1-4177"> 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 .gls files). href="#styopt.docdef">docdef=restricted but + id="dx1-4179"> but creates the .glsdefs file for atom’s autocomplete support. This file @@ -1893,22 +1913,22 @@ class="cmss-10">glossaries-extra and so associated problems with the href="#styopt.docdef">docdef=restricted, entries may + id="dx1-4180">, 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.
The The glossaries package allows \newglossaryentry within the document
+ id="dx1-4181">
environment (when used with makeindex or xindy) but the user manual warns
against this usage. By default the prohibits this, only
allowing definitions within the preamble. If you are really determined to define
entries in the document environment, despite all the associated drawbacks, you
+ id="dx1-4185"> environment, despite all the associated drawbacks, you
can restore this with docdef=true. Note that this doesn’t change the
+ id="dx1-4187">. Note that this doesn’t change the
prohibitions that the glossaries package has in certain circumstances (for
example, when using “option 1”). See the glossaries user manual for
href="#styopt.docdef">docdef=restricted. Only use . Only use docdef=true if document definitions
+ id="dx1-4189"> if document definitions
are necessary and one or more of the glossaries occurs in the front
matter.
- This option affects commands that internally use This option affects commands that internally use \newglossaryentry, such as
\newabbreviation, but not the “on-the-fly” commands described in §8
+class="cmsy-10">§
+
which is equivalent to
which uses \printunsrtglossary. -
The title of the new glossary is given by -
The title of the new glossary is given by +
+
If this command is already defined, it’s left unchanged. Otherwise it’s defined to “Abbreviations” if babel hasn’t been loaded or hasn’t been loaded or \acronymname if babel has been loaded. However, if you’re using has been loaded. However, if you’re using babel it’s likely you + id="dx1-4202"> it’s likely you will need to change this. (See §13 §14 Multi-Lingual Support for further details.) -
-
If the
+ If the abbreviations option is used and the option is used and the acronym option provided by the
+ id="dx1-4205">
-
Note that there are no analogous options to the
+ Note that there are no analogous options to the glossaries package’s acronymlists
+ id="dx1-4209">
option (or associated commands) as the abbreviation mechanism is handled
differently with glossaries-extra.
@@ -2077,22 +2097,19 @@ class="cmss-10">glossaries-extra
which is equivalent to
If If glossaries-extra-bib2gls is also loaded then this option will additionally
+ id="dx1-4213"> is also loaded then this option will additionally
provide:
-
+
which uses \printunsrtglossary.
+ id="dx1-4215">.
+
which is equivalent to If If glossaries-extra-bib2gls is also loaded then this option will additionally
+ id="dx1-4218"> is also loaded then this option will additionally
provide:
-
+
which uses \printunsrtglossary.
+ id="dx1-4220">.
+
which uses \printunsrtglossary.
-
+
+
which uses \printunsrtglossary.
+ id="dx1-4230">.
Note that multiple invocations of the Note that multiple invocations of the shortcuts option After the After the glossaries-extra package has been loaded, you can set available options
using
-
+
The abbreviations and and docdef options may only be used in the preamble. Additionally,
+ id="dx1-4257"> options may only be used in the preamble. Additionally,
docdef can’t be used after can’t be used after \makenoidxglossaries.
+ id="dx1-4259">.
The
+ The glossaries package provides \nopostdesc which may be used in the which may be used in the description
-to suppress the post-description hook. The to
+suppress the post-description hook. The glossaries-extra package provides another
command
-
+
which has a similar function but only suppresses the post-description punctuation. It
doesn’t suppress the use of \glsxtrpostdescription which allows the use of
@@ -2445,12 +2452,10 @@ class="cmtt-10">\glsxtrpostdescription
+
These commands have no effect outside of the glossary (except with standalone
entries that use \glsxtractivatenopost and §10.3
Standalone Entry Items).
- The glossaries package provides
-
-to format items in a cross-reference list (identified with the see key or \glssee). This
-was originally defined to use \glsentryname{⟨label⟩} since it makes more sense for the
-cross-reference to match the way the term appears in the glossary. Unfortunately this
-caused a problem when the name field was sanitized, which used to be the default
-setting, so glossaries v3.0 changed the default definition of this command to
-use \glsentrytext instead. Since the name and text field are quite often
-the same, this change usually doesn’t have a noticeable effect. However,
-now that the name field is no longer sanitized (following the redesign of
-glossaries v4.0) it makes more sense to restore this command to its original
-behaviour, but to take account of abbreviations glossaries-extra redefines this
-as:
-
-
-
- If you want to restore the glossaries v3.0+ definition just do:
-
-
-
- The glossaries-extra package provides \glsxtrhiername and its case-changing
-variants that may be used within the definition of \glsseeitemformat if required.
-These display the hierarchy for sub-entries rather than just the name, which may be
-more helpful in cross-references. See §2.2 Cross-References (“see” and “see also”) for
-further details.
- The commands used by The commands used by glossaries to automatically produce an error if an entry is
undefined (such as \glsdoifexists) are changed to take the ) are changed to take the undefaction option into
+ id="dx1-6006"> option into
account.
- The \newignoredglossary{⟨type⟩} command now (as from v1.11) has a starred
-version that doesn’t automatically switch off the hyperlinks. This starred version may
-be used with the targeturl attribute to create a link to an external URL. (See §5
-Categories for further details.) As from v1.12 both the starred and unstarred version
-check that the glossary doesn’t already exist. (The glossaries package omits this
-check.)
- You can now provide an ignored glossary with:
-
-which will only define the glossary if it doesn’t already exist. This also has a starred
-version that doesn’t automatically switch off hyperlinks.
- The individual glossary displaying commands \printglossary, \printnoidxglossary
-and \printunsrtglossary have two extra keys:
-
- but take care of duplicate labels if it’s not scoped. The The \newglossaryentry command has three new keys: The test file example-glossaries-xr.tex contains dummy entries with a mixture of
- This apply to all entry defining commands (such as \newabbreviation).
+ The test file example-glossaries-xr.tex contains dummy entries with a
+mixture of see, , alias and and seealso keys for use with minimal working examples. There are also
+ id="dx1-6013"> keys for use with minimal working examples.
+There are also example-glossaries-*.bib files that correspond to each
example-glossaries-*.bib files that correspond to each example-glossaries-*.tex
-file for testing example-glossaries-*.tex file for testing bib2gls.
- The The \longnewglossaryentry command now has a starred version (as from v1.12)
that doesn’t automatically insert
at the end of the description field.
- at the end of the description field.
+
+
The descriptionplural key is left unset unless explicitly set in ⟨ key is left unset unless explicitly set in ⟨options⟩.
- The unstarred version no longer hard-codes the above code (which removes
+ The unstarred version no longer hard-codes the above code (which removes
trailing space and suppresses the post-description hook) but instead uses:
-
+
This can be redefined to allow the post-description hook to work but retain the
\unskip part if required. For example:
@@ -2726,60 +2562,58 @@ class="cmtt-10">\unskip This will discarded unwanted trailing space at the end of the description but won’t
+ This will discarded unwanted trailing space at the end of the description but won’t
suppress the post-description hook.
- The unstarred version also alters the base The unstarred version also alters the base glossaries package’s treatment of the
+ id="dx1-6018"> package’s treatment of the
descriptionplural key. Since a plural description doesn’t make much sense for
+ id="dx1-6019"> key. Since a plural description doesn’t make much sense for
multi-paragraph descriptions, the default behaviour with glossaries-extra’s
+ id="dx1-6020">’s
\longnewglossaryentry is to simply leave the plural description unset
unless explicitly set using the descriptionplural key. The key. The glossaries.sty version
of this command sets the description’s plural form to the same as the
singular.2.1
- Note that this modified unstarred version doesn’t append
+ Note that this modified unstarred version doesn’t append \glsxtrpostlongdescription
to the description’s plural form.
- The The \newterm command (defined through the command (defined through the index package option) is modified
+ id="dx1-6029"> package option) is modified
so that the category defaults to index. The . The \newacronym command is modified
+ id="dx1-6031"> command is modified
to use the new abbreviation interface provided by glossaries-extra. (See §3
+class="cmsy-10">§4
Abbreviations.)
- The The \makeglossaries command now has an optional argument.
-
+
If ⟨list⟩ is empty, \makeglossaries behaves as per its original definition in the
@@ -2787,44 +2621,44 @@ class="cmtt-10">\makeglossaries This command is not permitted with the This command is not permitted with the record=only package option. Without
+ id="dx1-6033"> It should then be possible to use .
+ It should then be possible to use \printglossary for those glossaries listed in ⟨list⟩
and \printnoidxglossary for the other glossaries. (See the accompanying file
sample-mixedsort.tex for an example.)
-
-
+ You will need at least version 2.20 of makeglossaries or at least version 1.3 of
the Lua alternative makeglossaries-lite (both distributed with (both distributed with glossaries v4.27) to
allow for this use of \makeglossaries[⟨list⟩]. Alternatively, use the automake
+ id="dx1-6040">
option.
+
As from version 1.31, there is a new command like \glsadd where the mandatory
-argument is a comma-separated list of labels:
- As from version 1.31, there is a new command like \glsadd where the mandatory
+argument is a comma-separated list of labels:
+
+
This simply iterates over ⟨list⟩ and does \glsadd[⟨]{⟨label⟩} for each entry in the
list.
- As from version 1.37, you can make commands like As from version 1.37, you can make commands like \gls or \glslink
automatically use } in the optional argument of the corresponding
\gls, \glslink etc).
-
The optional argument ⟨label⟩ defaults to \glslabel and indicates the label to use in
@@ -2902,51 +2732,51 @@ class="cmtt-10">format={ For example, with:
+ For example, with:
then then \gls[format=hyperbf]{sample} will be equivalent to
Note that the explicit range markers will prevent a match unless you include
+ 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:
+ Here’s another example:
In this case In this case \gls[format=hyperbf]{sample} will now be equivalent to:
-
+
-The
+ The glossaries-extra package provides extra keys for commands like \gls and
\glstext:
The default value is set up using
- The default value is set up using
+
+
which is defined as:
This sets the conditional
-
+ This sets the conditional
+
which is used to determine where to perform the indexing.
- This means you can set the This means you can set the wrgloss attribute to will set will set hyperoutside=false for all entries that are assigned to the category
mathrelation and
@@ -3116,10 +2942,10 @@ class="cmtt-10">mathrelation will use will use \mathrel instead of \glstextformat resulting in: There is a new hook that’s used each time indexing information is written to the
-external glossary files:
- You can set the default options used by \glslink, \gls etc with:
+
-where ⟨label⟩ is the entry’s label. This does nothing by default but may be redefined.
-(See, for example, the accompanying sample file sample-indexhook.tex, which uses
-this hook to determine which entries haven’t been indexed.)
- There’s also a new hook (from v1.26) that’s used immediately before the options
-are set by the \gls-like and \glstext-like commands:
-
-(The base package provides \glslinkpostsetkeys that’s used immediately after the
-options are set.)
+
+For example, if you mostly don’t want to index entries then you can do:
+
+
+
+ and then use, for example, \gls[noindex=false]{sample} when you actually want
+the location added to the number list. These defaults may be overridden by other
+settings (such as category attributes) in addition to any settings passed in the option
+argument of commands like \glslink and \gls.
+ Note that if you don’t want any indexing, just omit \makeglossaries and
+\printglossaries (or analogous commands). If you want to adjust the
+default for wrgloss, it’s better to do this by redefining \glsxtrinitwrgloss
+instead.
+
+ If you want to change the default value of format, you can instead use:
+
+This has the advantage of also working for \glsadd. For example, if you
+want all locations in the back matter to appear in italic (unless explicitly
+overridden):
+
+
+
+
+ Commands like \gls have star (*) and plus (+) modifiers as a short cut for
+hyper=false and hyper=true. The glossaries-extra package provides a way to add a
+third modifier, if required, using
+
+where ⟨char⟩ is the character used as the modifier and ⟨options⟩ is the default set of
+options (which may be overridden). Note that ⟨char⟩ must be a single character (not a
+UTF-8 character, unless you are using XƎLATEX or LuaLATEX).
+
+ Example:
+
+
+
+ This means that \gls!{sample} will be equivalent to \gls[noindex]{sample}. It’s
+not possible to mix modifiers. For example, if you want to do
- As from version 1.30 there are also similar hooks for
+ you can use \gls*[noindex]{sample} or \gls![hyper=false]{sample} but you
+can’t combine the * and ! modifiers.
+ There is a new hook that’s used each time indexing information is written to the
+external glossary files:
+
+where ⟨label⟩ is the entry’s label. This does nothing by default but may be redefined.
+(See, for example, the accompanying sample file sample-indexhook.tex, which uses
+this hook to determine which entries haven’t been indexed.)
+ There’s also a new hook (from v1.26) that’s used immediately before the options
+are set by the \gls-like and \glstext-like commands:
+
+(The base package provides \glslinkpostsetkeys that’s used immediately after the
+options are set.)
+ As from version 1.30 there are also similar hooks for \glsadd:
-
+
and
-
+
For example, to default to using the equation counter in maths mode:
+ id="dx1-7043"> counter in maths mode:
In this case, the counter can be overridden with an explicit use of In this case, the counter can be overridden with an explicit use of counter in the
+ id="dx1-7044"> in the
optional argument of \gls or \glsadd. (As from version 1.37, a simpler method is to
just use the equations package option.)
- Alternatively, to enforce this (overriding the option argument):
+ id="dx1-7045"> package option.)
+ Alternatively, to enforce this (overriding the option argument):
- As from version 1.14, there are two new keys for
+ As from version 1.14, there are two new keys for \glsadd: thevalue and and theHvalue.
+ id="dx1-7047">.
These keys are designed for manually adding explicit locations rather than obtaining
the value from the associated counter. As from version 1.19, these two keys are also
available for commands like \gls and \glslink. The thevalue keys is intended
+ id="dx1-7048"> keys is intended
primarily for adding locations in supplementary material that can’t be obtained from
a counter.
- The principle key The principle key thevalue is for the location value. The other key is for the location value. The other key theHvalue can
+ id="dx1-7050"> can
be used to extract a prefix value for the first argument of commands like
\glsnoidxdisplayloc. Its value must be in the format ⟨. Its value must be in the format ⟨prefix⟩⟨location⟩. In general,
there’s little need for this key as the prefix is typically associated with a counter that
can be used to form hypertargets.
-
- For example,
+ For example, makeindex will only accept locations in the form [⟨ will only accept locations in the form [⟨num⟩⟨sep⟩]*⟨num⟩
@@ -3306,37 +3238,37 @@ instances of a number followed by the recognised separator character (set
with \glsSetCompositor). This means that makeindex won’t accept, for
+ id="dx1-7054"> won’t accept, for
example,
This location value will be accepted by This location value will be accepted by bib2gls, since it will allow any location and
will only try forming ranges if the location matches any of its numerical patterns.
In the case of xindy, you’ll need to add a rule that can match the value.
+ id="dx1-7056"> For example, suppose the file For example, suppose the file suppl.tex contains:
This has an entry on page S.2. Suppose another document wants to include this
+ This has an entry on page S.2. Suppose another document wants to include this
location in the glossary. Then this can be done by setting thevalue to to S.2. For
example:
This location value will be accepted by This location value will be accepted by makeindex as it’s in the form ⟨ as it’s in the form ⟨num⟩⟨sep⟩⟨num⟩.
- If you want hyperlinks, things are more complicated. First you need to set the
+ If you want hyperlinks, things are more complicated. First you need to set the
externallocation attribute to the location of the PDF file. For example:
+ id="dx1-7061"> attribute to the location of the PDF file. For example:
Next you need to add Next you need to add glsxtrsupphypernumber as the format:
Both documents will need to use the Both documents will need to use the hyperref package. Remember that the counter
+ id="dx1-7062"> package. Remember that the counter
used for the location also needs to match. If \theH⟨counter⟩ is defined in the other
document and doesn’t match in the referencing document, then you need to use
theHvalue to set the appropriate value. See the accompanying sample files
+ id="dx1-7063"> to set the appropriate value. See the accompanying sample files
sample-suppl-hyp.tex and sample-suppl-main-hyp.tex for an example that uses
hyperref.
-
- For example, if both
+ 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
+ This method can only be used where there is one external source for the
designated category (identified by the externallocation attribute). For multiple
+ id="dx1-7065"> attribute). For multiple
sources, you need to use bib2gls version 1.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.
-
+
The value of the The value of the see key is now saved as a field. This isn’t the case with This modification allows This modification allows glossaries-extra to provide
-
+
which is used at the end of the document to automatically add any unused
cross-references unless the package option indexcrossrefs was set to false.
- As a by-product of this enhancement, the was set to false.
+ As a by-product of this enhancement, the see key will now work for entries
+ id="dx1-8012"> key will now work for entries
defined in the document environment, but it’s still best to define entries in the
+ id="dx1-8013"> environment, but it’s still best to define entries in the
preamble, and the see key still can’t perform any indexing before the file has been
+ id="dx1-8015"> key still can’t perform any indexing before the file has been
opened by \makeglossaries. Note that glossaries v4.24 introduced the seenoindex
+ id="dx1-8016">
package option, which can be used to suppress the error when the see key
+ id="dx1-8017"> key
is used before \makeglossaries, so seenoindex=ignore will allow the will allow the see
+ id="dx1-8019">
value to be stored even though it may not be possible to index it at that
point.
- As from version 1.06, you can display the cross-referenced information for a given
+ As from version 1.06, you can display the cross-referenced information for a given
entry using
-
+
This internally uses
-
+
where ⟨tag⟩ and ⟨xr list⟩ are obtained from the value of the entry’s see field (if
+ id="dx1-8022"> field (if
non-empty). By default, this just does \glsseeformat[⟨tag⟩xr list⟩}{},
which is how the cross-reference is displayed in the number list. Note that
\glsxtrusesee does nothing if the see field hasn’t been set for the entry given by
+ id="dx1-8024"> field hasn’t been set for the entry given by
⟨label⟩.
- As with the base As with the base glossaries package, package, \glsseeformat is defined to do \emph{⟨tag⟩xr list⟩}. The third argument is always ignored and is present for
makeindex, which always requires a final argument to encapsulate the associated
+ id="dx1-8026">, which always requires a final argument to encapsulate the associated
location. The command
-
+
used to iterate over the list of cross-reference labels is also unchanged from
the base glossaries package, with each item in the list formatted according
+ id="dx1-8028"> package, with each item in the list formatted according
to:
-
+
This is defined by the glossaries package to:
- The command:
-
+ The glossaries package provides
+
+to format items in a cross-reference list (identified with the see key or \glssee). This
+was originally defined to use \glsentryname{⟨label⟩} since it makes more sense for the
+cross-reference to match the way the term appears in the glossary. Unfortunately this
+caused a problem when the name field was sanitized, which used to be the default
+setting, so glossaries v3.0 changed the default definition of this command to
+use \glsentrytext instead. Since the name and text field are quite often
+the same, this change usually doesn’t have a noticeable effect. However,
+now that the name field is no longer sanitized (following the redesign of
+glossaries v4.0) it makes more sense to restore this command to its original
+behaviour, but to take account of abbreviations glossaries-extra redefines this
+as:
+
+
+
+ (Note that as from glossaries-extra version 1.42, this now uses \glsfmttext and
+\glsfmtname instead of just referencing the text and name fields. This helps to ensure
+that any formatting is correctly applied.)
+ If you want to restore the glossaries v3.0+ definition just do:
+
+
+
+
+ The glossaries-extra package provides \glsxtrhiername and its case-changing
+variants that may be used within the definition of \glsseeitemformat if required.
+These display the hierarchy for sub-entries rather than just the name, which may be
+more helpful in cross-references.
+
+
performs a recursive action:
The first step above is skipped if the entry doesn’t have a parent. Each level is separated
+class="cmtt-10">\glsfmtshort The first step above is skipped if the entry doesn’t have a parent. Each level is separated
by:
-
+
which defaults to “ ⊳ ”. This can be redefined as appropriate.
- There are some case-changing variants:
- There are some case-changing variants:
+
+
The top-level has the first letter changed to upper case (either \Glsaccessshort or
+class="cmtt-10">\Glsfmtshort
+
All levels have the first letter changed to upper case (either \Glsaccessshort or
+class="cmtt-10">\Glsfmtshort or
\Glsaccessname).
-
+
The top-level is converted to upper case (either \GLSaccessshort or \GLSaccessname).
+class="cmtt-10">\GLSfmtshort or \GLSfmtname).
There’s no case-change for sub-entries.
-
+
All levels are converted to upper case (either \GLSaccessshort or \GLSaccessname).
- Suppose you want to suppress the number list using \GLSfmtshort Suppose you want to suppress the number list using nonumberlist. This
+ id="dx1-8058">. This
will automatically prevent the cross-references from being displayed. The
seeautonumberlist package option will automatically enable the number list for entries
+ id="dx1-8059"> package option will automatically enable the number list for entries
that have the see key set, but this will also show the rest of the number
+ id="dx1-8061"> key set, but this will also show the rest of the number
list.
-
-
-
- Another approach in this situation is to use the post description hook
+ Another approach in this situation is to use the post description hook
with \glsxtrusesee to append the cross-reference after the description. For
example:
@@ -3753,22 +3741,22 @@ example:
Now the cross-references can appear even though the Now the cross-references can appear even though the number list has been
suppressed.
- As from v1.16, there’s a separate You can display the formatted list of cross-references stored in the You can display the formatted list of cross-references stored in the seealso key
+ id="dx1-8067"> key
using:
-
+
This works in much the same way as \glsxtrusesee but it internally uses
-
+
For example:
- The actual unformatted comma-separated list ⟨
+ The alias key only contains a single label not a list, but if you want to ensure
+consistent formatting with \glsxtrusesee and \glsxtruseseealso you can use
+(from v1.42):
+
+ The actual unformatted comma-separated list ⟨xr-list⟩ stored in the seealso field
+ id="dx1-8072"> field
can be accessed with:
-
+
This will just expand to the ⟨xr-labels⟩ provided in the value of the seealso key. There’s
+ id="dx1-8074"> key. There’s
no corresponding command to access the see field. If you really need to access it, you
+ id="dx1-8075"> field. If you really need to access it, you
can use commands like \glsxtrfielduse, but remember that it may start with
[⟨tag⟩], so it can’t be automatically treated as a simple comma-separated
list.
- As mentioned above, the base As mentioned above, the base glossaries package provides \glsseelist, which
+ id="dx1-8076">, which
requires a comma-separated list of labels as the argument. The argument isn’t fully
expanded, so it’s not suitable to use, for example, \glsxtrseealsolabels{⟨label⟩} as
the argument. For convenience, glossaries-extra provides
-
+
which fully expands its argument and passes it to \glsseelist.
- The The seealso key implements the automatic indexing using
-
+
which just does
+ The command that produces this “see also” text is
+
+If \alsoname (provided by language packages) is defined then \seealsoname will
+simply be defined to \alsoname otherwise it will be defined to see also.
+ The language-sensitive \alsoname is used by general indexing packages, such as
+makeidx, so if you redefine \alsoname the change will apply to normal indexes as well
+as glossaries. If you only want to change the text produced by the seealso key
+without affecting general indexing (with \index) then redefine \seealsoname
+instead.
+
Recall from the Recall from the glossaries package that commands such as \gls display text at
that point in the document (optionally with a hyperlink to the relevant
line in the glossary). This text is referred to as the “link-text” regardless of
whether or not it actually has a hyperlink. The actual text and the way
it’s displayed depends on the command used (such as \gls) and the entry
format.
- The default entry format ( The default entry format (\glsentryfmt) used in the link-text by commands like
+ id="dx1-9002"> This means that entries with a short form can be treated as regular entries rather
+ This means that entries with a short form can be treated as regular entries rather
than abbreviations if it’s more appropriate for the desired style.
- As from version 1.04, As from version 1.04, \glsentryfmt now puts now puts \glsgenentry in the argument of
+ id="dx1-9025"> in the argument of
the new command
-
+
This just does its argument ⟨text⟩ by default. This means that if you want regular
entries in a different font but don’t want that font to apply to abbreviations, then
@@ -4026,115 +4042,103 @@ you can redefine \glsxtrregularfont. This is more precise than changing
\glstextformat which is applied to all linking commands for all entries, unless
+ id="dx1-9027"> which is applied to all linking commands for all entries, unless
overridden by the textformat attribute.
- For example:
+ id="dx1-9028"> attribute.
+ For example:
You can access the label through You can access the label through \glslabel. For example, you can query the
category:
or query the category attribute, for example, provide a custom attribute called
+ or query the category attribute, for example, provide a custom attribute called
font:
As from version 1.21, it’s simpler to just do, for example:
+ As from version 1.21, it’s simpler to just do, for example:
without redefining without redefining \glsxtrregularfont.
- As from version 1.30, there is also a command for abbreviations that encapsulates
+ As from version 1.30, there is also a command for abbreviations that encapsulates
\glsxtrgenabbrvfmt:
-
+
This also just does its argument by default. Font changes made by abbreviation styles
are within ⟨text⟩.
- The The \glspostlinkhook provided by the glossaries package to insert information
after the link-text produced by commands like \gls and \glstext is redefined
to
-
+
This command will discard a following full stop (period) if the discardperiod attribute
+ id="dx1-9032"> attribute
is set to “true” for the current entry’s category. It will also do
-
+
if a full stop hasn’t be discarded and
-
+
if a full stop has been discarded.
- It may be that you want to check some other setting (rather than a category
+ It may be that you want to check some other setting (rather than a category
attribute) to determine whether or not to discard a following full stop. In which case
you can redefine:
-
+
You can access the field’s label using \glslabel. This command should do ⟨true⟩ if the
@@ -4145,12 +4149,12 @@ definition is simply:
which means that no additional checks are performed. (Only the recognised category
+ which means that no additional checks are performed. (Only the recognised category
attributes will be checked.)
-
- By default
+ By default \glsxtrpostlink just does \glsxtrpostlink⟨category⟩ if
+ id="dx1-9036"> if
it exists, where ⟨category⟩ is the category label for the current entry. (For
example, for the general category, category, \glsxtrpostlinkgeneral if it has been
defined.)
- You can define the post-link hook command using You can define the post-link hook command using \newcommand, for
example:
or, as from v1.31, you can use
- or, as from v1.31, you can use
+
+
This is simply a shortcut for: The sentence-ending hook is slightly more complicated. If the command
+ The sentence-ending hook is slightly more complicated. If the command
\glsxtrpostlink⟨category⟩ is defined the hook will do that and then insert a
+ id="dx1-9039"> is defined the hook will do that and then insert a
full stop with the space factor adjusted to match the end of sentence. If
\glsxtrpostlink⟨category⟩ hasn’t been defined, the space factor is adjusted to match
+ id="dx1-9040"> hasn’t been defined, the space factor is adjusted to match
the end of sentence. This means that if you have, for example, an entry that ends
with a full stop, a redundant following full stop will be discarded and the space factor
adjusted (in case the entry is in uppercase) unless the entry is followed by additional
material, in which case the following full stop is no longer redundant and needs to be
reinserted.
- There are some convenient commands you might want to use when customizing
+ There are some convenient commands you might want to use when customizing
the post-link-text category hooks:
-
+
This will add the description in parentheses on first use.
- For example, suppose you want to append the description in parentheses on first
+ For example, suppose you want to append the description in parentheses on first
use for entries in the symbol category:
+ id="dx1-9045"> category:
-
+
+
This will append the symbol (if defined) in parentheses on first use. (Does nothing if
the symbol hasn’t been set.)
-
+
(New to v1.31.) On first use, this will append first use, this will append \space(⟨symbol⟩, ⟨description⟩) if the
symbol is defined otherwise it just appends \space(⟨description⟩).
- If you want to provide your own custom format be aware that you can’t use
+ If you want to provide your own custom format be aware that you can’t use
\ifglsused within the post- within the post-link-text hook as by this point the first use flag will have
been unset. Instead you can use
-
+
This will do ⟨true⟩ if the last used entry was the first use for that entry, otherwise it
+ id="dx1-9054">first use for that entry, otherwise it
will do ⟨false⟩. (Requires at least glossaries v4.19 to work properly.) This command is
locally set by commands like \gls, so don’t rely on it outside of the post-link-text
+ id="dx1-9055">link-text
hook.
-
- For example, if you want to place the description in a footnote after the link-text
+
+ For example, if you want to place the description in a footnote after the link-text
on first use for the first use for the general category:
+ id="dx1-9066"> category:
- The
+ The short-postfootnote abbreviation style uses the post- abbreviation style uses the post-link-text hook to place the
footnote after trailing punctuation characters.
- You can set the default options used by \glslink, \gls etc with:
-
-For example, if you mostly don’t want to index entries then you can do:
+
+ If you are using bib2gls you may find it more convenient to use the record
+count commands described in §9 bib2gls: Managing Reference Databases
+instead.
+ The \glsenableentrycount command is modified 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 appropriate attribute (see §6
+Categories).
+ For example, instead of just doing:
and then use, for example, \gls[noindex=false]{sample} when you actually want
-the location added to the number list. These defaults may be overridden by other
-settings (such as category attributes) in addition to any settings passed in the option
-argument of commands like \glslink and \gls.
- Note that if you don’t want any indexing, just omit \makeglossaries and
-\printglossaries (or analogous commands). If you want to adjust the
-default for wrgloss, it’s better to do this by redefining \glsxtrinitwrgloss
-instead.
-
- If you want to change the default value of format, you can instead use:
-
-This has the advantage of also working for \glsadd. For example, if you
-want all locations in the back matter to appear in italic (unless explicitly
-overridden):
-
-
-
-
- Commands like \gls have star (*) and plus (+) modifiers as a short cut for
-hyper=false and hyper=true. The glossaries-extra package provides a way to add a
-third modifier, if required, using
-
-where ⟨char⟩ is the character used as the modifier and ⟨options⟩ is the default set of
-options (which may be overridden). Note that ⟨char⟩ must be a single character (not a
-UTF-8 character, unless you are using XƎLATEX or LuaLATEX).
-
- Example:
-
-
-
- This means that \gls!{sample} will be equivalent to \gls[noindex]{sample}. It’s
-not possible to mix modifiers. For example, if you want to do
-
-
-
- you can use \gls*[noindex]{sample} or \gls![hyper=false]{sample} but you
-can’t combine the * and ! modifiers.
- Location lists displayed with \printnoidxglossary internally use
-
-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
-
-otherwise it uses
-
-for the start of a range (where the identifier has been stripped from ⟨format⟩)
-or
-
-for the end of a range (where the identifier has been stripped from ⟨format⟩).
- By default the start range command saves the format in
-
-and does The end command checks that the format matches the start of the range,
-does
-
-(which does nothing by default), followed by This means that the list
-
-
-
- doesn’t display any differently from
+ you now need to do:
but it does make it easier to define your own custom list handler that can
-accommodate the ranges.
-
- If you are using bib2gls you may find it more convenient to use the record
-count commands described in §9 bib2gls: Managing Reference Databases
-instead.
- The \glsenableentrycount command is modified 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 appropriate attribute (see §5
-Categories).
- For example, instead of just doing:
-
-
-
- you now need to do:
-
-
-
- This will enable the entry counting for entries in the This will enable the entry counting for entries in the abbreviation category, but any
+ id="dx1-10004"> category, but any
entries assigned to other categories will be unchanged.
- Further information about entry counting, including the new per-unit feature, is
+ Further information about entry counting, including the new per-unit feature, is
described in §6.1 §
+
The The glossaries package provides
-
+
to determine whether or not an entry has been used. This requires the entry to have
been defined. If the entry is undefined, then the underlying boolean variable doesn’t
exist and so is neither true nor false. This command will produce an error with the
@@ -4691,44 +4427,40 @@ default undefaction=error mode and a warning with mode and a warning with undefaction=warn and, where
+ id="dx1-11003"> and, where
appropriate, displays ?? in the document text to denote an undefined reference.
With both modes, neither ⟨true⟩ nor ⟨false⟩ will be performed if ⟨label⟩ doesn’t
exist.
- The The record option automatically implements option automatically implements undefaction=warn since no entries
+ id="dx1-11005">
+
(new to v1.34) which does ⟨true⟩ if the entry given by ⟨label⟩ is undefined or if
@@ -4737,41 +4469,37 @@ class="cmtt-10">\ifglsused There are two new commands provided with version 1.31+:
- There are two new commands provided with version 1.31+:
+
+
and
-
+
These behave like \glslocalreset and \glslocalunset but the argument is a
+comma-separated list of labels.
-comma-separated list of labels.
- The internal command used by The internal command used by \glsunset is modified first to allow for the
changing in entry counting, described above, but also to allow for buffering pending
unsets when commands like \gls are used in a context where changing a boolean
variable can cause things to go wrong. One example of this is using \gls in one of
the commands provided with the package. For example:
+ id="dx1-11012">package. For example:
This causes the confusing error:
+ This causes the confusing error:
The simplest workaround is to put The simplest workaround is to put \gls{html} inside the argument of \mbox. For
example:
@@ -4803,29 +4531,27 @@ example:
This can work provided it’s not the first use of this entry. It if is, then unsetting the
+ 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:
The 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:
-
+
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. Note that this
@@ -4833,14 +4559,12 @@ buffering only applies to the global \glsunset and does not affect the local
\glslocalunset.
- Later you can restore Later you can restore \glsunset and unset all buffered labels using:
-
+
The starred form \GlsXtrStopUnsetBuffering* uses \glslocalunset instead. For
@@ -4849,7 +4573,7 @@ example:
Before you stop the unset buffering, you can iterate over the current buffer
+ Before you stop the unset buffering, you can iterate over the current buffer
using
-
where ⟨cs⟩ is a control sequence that takes a single argument (which is the entry label).
This is best used with the starred version \GlsXtrStartUnsetBuffering* to avoid
duplicates.
- You can discard the buffer and restore \glsunset to its normal behaviour with
+(new to v1.42):
+
+
- There can still be a problem here as content within
+ There can still be a problem here as content within \mbox can’t break across a
line so you may end up with an overfull line or excessive white space within the
paragraph.
- An alternative is to use An alternative is to use \protect:
but the formatting (underlining in this example) won’t be applied. Another
+ but the formatting (underlining in this example) won’t be applied. Another
possibility is:
This moves This moves \gls outside of \ul and uses textformat to locally change the formatting
+ id="dx1-11017"> to locally change the formatting
command used by \gls (which is normally given by \glstextformat or the
textformat attribute) to a custom command attribute) to a custom command \gul, which locally changes the regular
font and the default abbreviation font to use \ul. It then uses
-
+
which (protected) fully expands ⟨text⟩ before applying ⟨cs⟩, which must be a control
@@ -4958,137 +4684,135 @@ something that \ul can’t deal with. For example, if an abbreviation style is used
that contains complex formatting or if the field value contains problematic
content.
-
+
Some languages, such as English, have a general rule that plurals are formed from
+ 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 To make life easier for languages where the majority of plurals can simply be
+ 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 package lets the plural
+ id="dx1-12004">
field default to the value of the text field with field with \glspluralsuffix appended. This
+ id="dx1-12006"> 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
+ id="dx1-12007"> supplied as well, and you only need to use it for the
exceptions.
- For languages that don’t have this general rule, the For languages that don’t have this general rule, the plural field will always need to
+ id="dx1-12008"> field will always need to
be supplied, where needed.
- There are other plural fields, such as There are other plural fields, such as firstplural, , longplural and and shortplural. Again, if
+ id="dx1-12011">. 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 If these fields are omitted, the glossaries package follows these rules:
-
-
-
-
-
-2. Modifications to Existing Commands and Styles
-2.1 Defining Entries
+
-
-
-
\ifglshasshort{\glslabel}{\glsaccesstext{#1}}{\glsaccessname{#1}}%
-
}
-
-
-
-
-
-
-
-2.1 Entry Indexing
-2.2 Entry Indexing
+
-
+
6 Categories for further details.)
Note that the noindex key isn’t available for key isn’t available for \glsadd (and (and \glsaddall)
+ id="dx1-7010">)
since the whole purpose of that command is to index an entry.
-
\glsifattribute{\glslabel}{wrgloss}{after}%
{%
@@ -3029,31 +2857,29 @@ class="cmtt-10">\glsxtrinitwrgloss
}%
}
-
+
-
-
+
\GlsXtrSetDefaultNumberFormat{hyperit}
+
+
+
+
-
-
\ifmmode \setkeys{glslink}{counter=equation}\fi}
\renewcommand{\glsaddpresetkeys}{%
\ifmmode \setkeys{glossadd}{counter=equation}\fi}
\ifmmode \setkeys{glslink}{counter=equation}\fi}
\renewcommand{\glsaddpostsetkeys}{%
\ifmmode \setkeys{glossadd}{counter=equation}\fi}
\usepackage{glossaries-extra}
\newglossaryentry{sample}{name={sample},description={an example}}
@@ -3347,17 +3279,17 @@ class="cmtt-10">suppl.tex contains:
\gls{sample}.
\end{document}
\usepackage{glossaries-extra}
\makeglossaries
@@ -3368,59 +3300,59 @@ example:
\glsadd[thevalue={S.2}]{sample}
\end{document}
\newglossaryentry{sample}{category=supplemental,
name={sample},description={an example}}
2.2
2.3 Cross-References (“see” and “see also”)
-
-
-
-
-
-
+
\ifglshasshort{\glslabel}{\glsfmttext{#1}}{\glsfmtname{#1}}%
+
}
+
-
-
-
-
-
-
-
\ifglshasfield{see}{\glscurrententrylabel}
{, \glsxtrusesee{\glscurrententrylabel}}%
{}%
}
-
-
\ifglshasfield{see}{\glscurrententrylabel}
{, \glsxtrusesee{\glscurrententrylabel}}%
@@ -3821,27 +3805,38 @@ For example:
{}%
}
+
-
-
-
+2.3
2.4 Entry Display Style Modifications
-
-
\glsifcategory{\glslabel}{general}{\textsf{#1}}{#1}}
\renewcommand*{\glsxtrregularfont}[1]{%
\glsifattribute{\glslabel}{font}{sf}{\textsf{#1}}{#1}}
-
-
-
-
-
\glsxtrpostlinkAddDescOnFirstUse
}
-
-
+
\glsxtrpostlinkAddDescOnFirstUse
}
-
+
-
+
-
\glsxtrifwasfirstuse{\footnote{\glsentrydesc{\glslabel}}}{}%
}
-2.5 Entry Counting Modifications
+
-
\GlsXtrSetDefaultNumberFormat{hyperit}
-
-
-
-
-
-
-
\glsxtrdisplaysingleloc{⟨format⟩}{⟨location⟩}
-
-
\glsxtrdisplaysingleloc{⟨format⟩}{⟨location⟩}
-
\glsnoidxdisplayloc{}{page}{textbf}{1},
-
\glsnoidxdisplayloc{}{page}{)textbf}{1}.
-
\glsnoidxdisplayloc{}{page}{textbf}{1},
-
\glsnoidxdisplayloc{}{page}{textbf}{1}.
-2.4 Entry Counting Modifications
-
\glssetcategoryattribute{abbreviation}{entrycount}{1}
2.5
2.6 First Use Flag
-
-
-
-
-
-
-
\usepackage[T1]{fontenc}
\usepackage{soul}
@@ -4862,50 +4586,54 @@ example:
Next use: \gls{html}.
\end{document}
+
+
\ul{Some text about \protect\gls{html}.}
\GlsXtrStopUnsetBuffering
\usepackage{soul}
\usepackage{glossaries-extra}
@@ -4922,31 +4650,29 @@ possibility is:
Next use: \gls{html}.
\end{document}
-2.6
2.7 Plurals
-