From 3e00e848f19fd3c97505c2ed78c88268499d2619 Mon Sep 17 00:00:00 2001
From: Karl Berry
glossaries-extra.sty v1.42: an extension to the
+class="cmr-17">glossaries-extra.sty v1.43: an extension to the
glossaries package
2020-02-13
Additional resources:
@@ -361,74 +351,74 @@ class="cmss-10">glossaries package.
@@ -721,8 +711,8 @@ following:
\documentclass{article}
\usepackage[acronym]{glossaries}
\makeglossaries
-
\newacronym{laser}{laser}{light amplification by stimulated
-
emission of radiation}
+
\newacronym{laser}{laser}{light amplification by stimulated
+
emission of radiation}
\begin{document}
\gls{laser}
\printglossaries
@@ -744,10 +734,10 @@ class="cmtt-10">makeglossaries
(where the original file is called test.tex) but if you simply call
This doesn’t occur with nomain
@@ -981,7 +971,7 @@ class="cmss-10">=dot - \renewcommand{\glspostdescription}{.\spacefactor\sfcode`\. } + \renewcommand{\glspostdescription}{.\spacefactor\sfcode`\. }
where the conditional is determined by the \glsaccess⟨xxx⟩ commands will add the accessibility information. (See §12.2 §12.2 Accessibility Support for further details.)
Note that the glossaries-extra-stylemodsvalue⟩ if it contains any commas.) The value may be omitted if no options need to be passed. See §2.10.1 §2.10.1 Glossary Style Modifications for further details. There are two special keyword values: =warn§2.6 §2.6 First Use Flag for further details.
The option may only be set in the preamble and can’t be used after @@ -1365,7 +1355,7 @@ class="description">The indexing is performed by bib2gls (see §9 §9 bib2gls: Managing Reference Databases). Neither myDoc.tex):
Note that indexcounter option increments the associated counter every time an entry is indexed, which affects this option. See §9.3.2 §9.3.2 Nameref Record for further details.
This option is best used with myDoc.tex):
With the recording on (\glsxtr@record entry to the .aux file.) See §9 §9 bib2gls: Managing Reference Databases for further details. @@ -1632,7 +1622,7 @@ class="cmtt-10">\refstepcounter, so indexing before the caption will class="cmtt-10">\glsfmttext and \glsfmtshort, don’t index. (See §5 +class="tcrm-1000">§5 Entries in Sectioning Titles, Headers, Captions and Contents). You may want to consider using \glsadd after the caption (not before). For
@@ -1705,9 +1695,9 @@ class="cmss-10">equation
@@ -1820,20 +1810,18 @@ class="cmss-10">document environment, it
uses the .glsdefs temporary file to store the entry definitions so
- that on the next LATEX run the entries are defined at the beginning
+ that on the next LaTeX run the entries are defined at the beginning
of the document environment. This allows the entry information
to be referenced in the glossary, even if the glossary occurs before
\newglossaryentry. (For example, when the glossary is displayed in
- the front matter.) This method of saving the definitions for the next
- LATEX run has drawbacks that are detailed in the glossaries user
- manual.
+class="cmtt-10">\newglossaryentry. (For example, when the glossary is displayed
+ in the front matter.) This method of saving the definitions for the
+ next LaTeX run has drawbacks that are detailed in the glossaries
+ user manual.
Remember that if \newglossaryentry wouldn’t be allowed in the
\newglossaryentry, such as
\newabbreviation, but not the “on-the-fly” commands described in §11
+class="tcrm-1000">§11
On-the-Fly Document Definitions.
\ifmmode \setkeys{glslink}{counter=equation}\fi}
+
\ifmmode \setkeys{glslink}{counter=equation}\fi}
\renewcommand{\glsaddpresetkeys}{%
-
\ifmmode \setkeys{glossadd}{counter=equation}\fi}
+
\ifmmode \setkeys{glossadd}{counter=equation}\fi}
The commands used by categorygeneral. See §6 §6 Categories for further information about categories.
This apply to all entry defining commands (such as \newacronymglossaries-extra. (See §4 +class="tcrm-1000">§4 Abbreviations.)
The indexonlyfirst attribute, see §6 §6 Categories for further details.) Note that the noindex\glsxtrinitwrgloss
This sets the conditional @@ -2894,7 +2882,7 @@ class="cmtt-10">}{\glstextformat{⟨link text⟩ text⟩}} @@ -2913,7 +2901,7 @@ class="cmtt-10">\hyperlink{⟨target⟩}{⟨link text⟩ text⟩}} @@ -2956,7 +2944,7 @@ class="cmtt-10">\hyperlink{⟨target⟩}{⟨link text⟩ text⟩}} @@ -2980,7 +2968,7 @@ class="cmtt-10">\glstextformat. See the soul example in §2.6 §2.6 First Use Flag.
In this case, the counter can be overridden with an explicit use of counterequations
As from version 1.14, there are two new keys for num⟩⟨sep⟩]*⟨num⟩
where ⟨num⟩ is an arabic number (0, 1, …), roman numeral (i, ii, … or I, II, …) or a
+class="cmti-10">num⟩ is an arabic number (0, 1, …), roman numeral (i, ii, … or I, II, …) or a
character from a, …, z or A, …, Z, and [⟨num⟩⟨sep⟩]* indicates zero or more
@@ -3245,7 +3233,7 @@ example,
This location value will be accepted by suppl.tex contains:
Next you need to add glsxtrsupphypernumber as the format:
@@ -3539,7 +3527,7 @@ class="cmtt-10">\glsseeitemformatglossaries-extra, as described in §2
+class="tcrm-1000">§2
Modifications to Existing Commands and Styles. This now displays the value of the
(Note that as from
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:
@@ -4163,7 +4151,7 @@ class="cmtt-10">\glsentrytext, \glsaccesstext or \glsxtrp (§2.8 §2.8 Nested Links) instead.
@@ -4171,7 +4159,7 @@ href="#sec:nested">Nested Links
\ifmmode \setkeys{glslink}{counter=equation}\fi}
+
\ifmmode \setkeys{glslink}{counter=equation}\fi}
\renewcommand{\glsaddpostsetkeys}{%
-
\ifmmode \setkeys{glossadd}{counter=equation}\fi}
+
\ifmmode \setkeys{glossadd}{counter=equation}\fi}
\usepackage{glossaries-extra}
-
\newglossaryentry{sample}{name={sample},description={an example}}
+
\newglossaryentry{sample}{name={sample},description={an example}}
\renewcommand{\thepage}{S.\arabic{page}}
\begin{document}
-
First page.
+
First page.
\newpage
\gls{sample}.
\end{document}
@@ -3293,9 +3281,9 @@ example:
\documentclass{article}
\usepackage{glossaries-extra}
\makeglossaries
-
\newglossaryentry{sample}{name={sample},description={an example}}
+
\newglossaryentry{sample}{name={sample},description={an example}}
\begin{document}
-
Some \gls{sample} text.
+
Some \gls{sample} text.
\printglossaries
\glsadd[thevalue={S.2}]{sample}
\end{document}
@@ -3318,7 +3306,7 @@ class="cmss-10">externallocation
\glssetcategoryattribute{supplemental}{externallocation}{suppl.pdf}
\newglossaryentry{sample}{category=supplemental,
-
name={sample},description={an example}}
+
name={sample},description={an example}}
\ifglshasshort{\glslabel}{\glsfmttext{#1}}{\glsfmtname{#1}}%
+
\ifglshasshort{\glslabel}{\glsfmttext{#1}}{\glsfmtname{#1}}%
}
\ifglshasfield{see}{\glscurrententrylabel}
-
{, \glsxtrusesee{\glscurrententrylabel}}%
-
{}%
+
\ifglshasfield{see}{\glscurrententrylabel}
+
{, \glsxtrusesee{\glscurrententrylabel}}%
+
{}%
}
\glsifcategory{\glslabel}{general}{\textsf{#1}}{#1}}
+
\glsifcategory{\glslabel}{general}{\textsf{#1}}{#1}}
\renewcommand*{\glsxtrregularfont}[1]{%
-
\glsifattribute{\glslabel}{font}{sf}{\textsf{#1}}{#1}}
+
\glsifattribute{\glslabel}{font}{sf}{\textsf{#1}}{#1}}
or, as from v1.31, you can use @@ -4217,12 +4205,12 @@ class="cmtt-10">}
\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 @@ -4250,7 +4238,7 @@ class="cmss-10">symbol
@@ -4337,7 +4325,7 @@ class="cmss-10">general
@@ -4359,7 +4347,7 @@ href="#glo:bib2gls">bib2gls
\glsxtrifwasfirstuse{\footnote{\glsentrydesc{\glslabel}}}{}%
+
\glsxtrifwasfirstuse{\footnote{\glsentrydesc{\glslabel}}}{}%
}
For example, instead of just doing: @@ -4400,7 +4388,7 @@ entries assigned to other categories will be unchanged.
Further information about entry counting, including the new per-unit feature, is described in §7.1 §7.1 Entry Counting (First Use Flag).
@@ -4475,7 +4463,7 @@ href="#glo:firstuseflag">first use flag will have already been unset before class="cmtt-10">\glsxtrifwasfirstuse should be used, see §2.4 §2.4 Entry Display Style Modifications.)
There are two new commands provided with version 1.31+:
@@ -4513,7 +4501,7 @@ the commands provided with the
which just doesn’t work. Grouping the \gls{ssi} doesn’t work either as this
@@ -4909,7 +4897,7 @@ class="cmtt-10">\gls{ssi} doesn’t work either as this
This will upper case the label ssi so the entry won’t be recognised.
@@ -4950,7 +4938,7 @@ class="cmtt-10">shtml. For example:
This produces:
This produces:
This produces:
The next use of shtml produces “Shypertext markup language (HTML)”,
@@ -5088,8 +5076,8 @@ like:
with glossaries or:
@@ -5099,8 +5087,8 @@ class="cmss-10">glossaries or:
with glossaries-extra. This fixes all the above listed problems (as long as you don’t
@@ -5122,9 +5110,9 @@ class="cmtt-10">\glsabbrvfont:
This will pick up the font style setting of the outer entry (shtml, in the above case).
@@ -5152,7 +5140,7 @@ form
is treated as
@@ -5160,7 +5148,7 @@ form
This overcomes problems shtml entry had instead been defined as:
then (using the first use will be like
whereas if the entry is defined as:
@@ -5237,7 +5225,7 @@ href="#glo:firstuse">first use then the first use will be like:
Note that the first optional argument of \acrshort or field⟩ is the field label and corresponds to a command in the form \gls⟨field⟩
-(e.g. \glstext) or in the form \glsxtr⟨field⟩ (e.g. field⟩ (e.g. \glsxtrshort).
There’s a shortcut command for the most common fields:
in the main body of the document or
@@ -5387,7 +5375,7 @@ glossary. For example:
inside the glossary. (Note the post-link hook is locally disabled.)
@@ -5458,7 +5446,7 @@ class="cmti-10">really need but be aware that it may have some unexpected results occasionally.
@@ -5476,19 +5464,19 @@ class="cmti-10">really need nested commands, the safest method is
The
This uses a global assignment. If you need to scope the change you can
use
@@ -6149,7 +6137,7 @@ class="cmss-10">glossdescfont Alternatively, if you are using bib2gls you can use the TEX parser library to
+class="cmtt-10">bib2gls This stores the interpreted value of the symbol in the user1
\renewcommand{\glsentrypdfsymbol}[1]{\glsentryuseri{#1}}
(You may need XƎLATEX or LuaLATEX with this method.) This allows
+ (You may need XƎLATEX or LuaLATEX with this method.) This allows
\glossentrysymbol to be used in a section heading with standalone definitions.
If you want to adapt a style to use another field instead of }
first discuss \gls{ssi}.
+ The sample files are either \gls{html} or \gls{shtml}, but let's
+
first discuss \gls{ssi}.
[description={\acrshort{ssi} enabled \acrshort{html}}]
-
{shtml}{SHTML}{SSI enabled HTML}
+
[description={\acrshort{ssi} enabled \acrshort{html}}]
+
{shtml}{SHTML}{SSI enabled HTML}
[description={\glsxtrshort{ssi} enabled \glsxtrshort{html}}]
-
{shtml}{SHTML}{SSI enabled HTML}
+
[description={\glsxtrshort{ssi} enabled \glsxtrshort{html}}]
+
{shtml}{SHTML}{SSI enabled HTML}
\newabbreviation{ssi}{ssi}{server-side includes}
-
\newabbreviation{html}{html}{hypertext markup language}
-
\newabbreviation{shtml}{shtml}{\glsabbrvfont{ssi} enabled
+
\newabbreviation{ssi}{ssi}{server-side includes}
+
\newabbreviation{html}{html}{hypertext markup language}
+
\newabbreviation{shtml}{shtml}{\glsabbrvfont{ssi} enabled
\glsabbrvfont{html}}
{\glstext[hyper=false,noindex]{html}}
{\acronymfont{\glsentryshort{html}}} (SHTML)
+{\acronymfont{\glsentryshort{ssi}}} enabled
+
{\acronymfont{\glsentryshort{html}}} (SHTML)
\glsxtrshort{html}}
{\glsabbrvfont{\glsentryshort{html}}} (SHTML)
+{\glsabbrvfont{\glsentryshort{ssi}}} enabled
+
{\glsabbrvfont{\glsentryshort{html}}} (SHTML)
\glsxtrshort[hyper=false,noindex]{ssi}[]%
+
\glsxtrshort[hyper=false,noindex]{ssi}[]%
}
\glsxtrshort[noindex]{ssi}[]%
+
\glsxtrshort[noindex]{ssi}[]%
}
\glsxtrp{short}{html}}
\usepackage[nopostdot=false]{glossaries-extra}
\makeglossaries
\setabbreviationstyle{long-short-sc}
-
\newabbreviation{ssi}{ssi}{server-side includes}
-
\newabbreviation{html}{html}{hypertext markup language}
-
\newabbreviation{shtml}{shtml}{{}\glsps{ssi} enabled {}\glsps{html}}
+
\newabbreviation{ssi}{ssi}{server-side includes}
+
\newabbreviation{html}{html}{hypertext markup language}
+
\newabbreviation{shtml}{shtml}{{}\glsps{ssi} enabled {}\glsps{html}}
\pagestyle{headings}
\glssetcategoryattribute{abbreviation}{headuc}{true}
\glssetcategoryattribute{abbreviation}{glossdesc}{title}
\begin{document}
\tableofcontents
\chapter{\glsfmtfull{shtml}}
-
First use: \gls{shtml}, \gls{ssi} and \gls{html}.
-
Next use: \gls{shtml}, \gls{ssi} and \gls{html}.
+
First use: \gls{shtml}, \gls{ssi} and \gls{html}.
+
Next use: \gls{shtml}, \gls{ssi} and \gls{html}.
\newpage
-
Next page.
+
Next page.
\printglossaries
\end{document}
\usepackage[acronym,nopostdot,toc]{glossaries}
\makeglossaries
\setacronymstyle{long-short}
-
\newacronym{html}{HTML}{hypertext markup language}
+
\newacronym{html}{HTML}{hypertext markup language}
\begin{document}
\gls{html}
\printglossaries
@@ -5584,7 +5572,7 @@ class="cmss-10">glossaries-extra:
\usepackage[acronym]{glossaries-extra}
\makeglossaries
\setabbreviationstyle[acronym]{long-short}
-
\newacronym{html}{HTML}{hypertext markup language}
+
\newacronym{html}{HTML}{hypertext markup language}
\begin{document}
\gls{html}
\printglossaries
@@ -5597,7 +5585,7 @@ predefined acronym styles provided by glossaries, but note that the new styles use
different formatting commands. See §4.4 §4.4 Predefined Abbreviation Styles for further
details.
@@ -5898,7 +5886,7 @@ class="cmss-10">glossaries for that document or define an equivalent abbr
class="cmtt-10">\newabbreviationstyle. (See §4.5 §4.5 Defining New Abbreviation Styles for further
details.)
interpret-fields={user1}
+ replicate-fields={symbol=user1},
+
interpret-fields={user1}
See §8 §8 Auto-Indexing for further details.
As from version 1.04, the post-name hook \glsxtrpostnamehook will also use @@ -6330,7 +6311,7 @@ category:
For convenience, as from v1.31, you can use
This means you don’t have to define a custom glossary style, which you may find more complicated. (It also allows more flexibility if you decide to change the @@ -6453,7 +6434,7 @@ href="#styopt.nopostdot">nopostdot
option to suppress the terminating full stop.) See §2.10.1 §2.10.1 The glossaries-extra-stylemods Package to patch the predefined styles provided by pages⟩ is the text to display otherwise. For exampAn extra run is required when using this command.
will insert section-level bookmarks. The use of 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. +TeX.
The command \glsfindwidesttoplevelname provided by glossary-tree
or if you want the description (if set):
@@ -7548,8 +7528,8 @@ default. For example, if you want the symbol to be included:
(which picks up the post-description hook).
@@ -7721,23 +7701,23 @@ appended after the child entries using:
This uses
where
If you only want to mark the top-level entries, remember to redefine
@@ -7870,7 +7850,7 @@ class="cmtt-10">\glsxtrbookindexname
@@ -7883,11 +7863,11 @@ entry for the current page with:
@@ -8115,7 +8095,7 @@ to redefine this command:
@@ -8128,7 +8108,7 @@ class="cmtt-10">\glslongextraSetDescWidth
@@ -8152,8 +8132,8 @@ you can redefine this command. For example:
or
@@ -8163,7 +8143,7 @@ you can redefine this command. For example:
@@ -8340,10 +8320,10 @@ happen to be the same).
This ignores the first argument and just puts the group title in the first column
@@ -8870,8 +8850,8 @@ example:
Remember that if you use \setabbreviationstyle{footnote}
\glossentryname{#1}%
-
\ifglshassymbol{#1}{\space (\glossentrysymbol{#1})}{}%
+
\glossentryname{#1}%
+
\ifglshassymbol{#1}{\space (\glossentrysymbol{#1})}{}%
}
\glossentryname{#1}%
-
\ifglshasdesc{#1}{\space \glossentrydesc{#1}\glspostdescription}{}%
+
\glossentryname{#1}%
+
\ifglshasdesc{#1}{\space \glossentrydesc{#1}\glspostdescription}{}%
}
\glsxtrifhasfield{seealso}{#1}{\glstreesubitem\glsxtruseseealso{#1}}{}%
+
\glsxtrifhasfield{seealso}{#1}{\glstreesubitem\glsxtruseseealso{#1}}{}%
}
\renewcommand{\glsxtrbookindexbetween}[2]{%
-
\glsxtrbookindexatendgroup{#1}%
+
\glsxtrbookindexatendgroup{#1}%
}%
\renewcommand{\glsxtrbookindexsubatendgroup}[1]{%
-
\glsxtrifhasfield{seealso}{#1}{\glstreesubsubitem\glsxtruseseealso{#1}}{}%
+
\glsxtrifhasfield{seealso}{#1}{\glstreesubsubitem\glsxtruseseealso{#1}}{}%
}
\renewcommand{\glsxtrbookindexsubbetween}[2]{%
-
\glsxtrbookindexsubatendgroup{#1}%
+
\glsxtrbookindexsubatendgroup{#1}%
}
\renewcommand{\glsxtrbookindexsubsubatendgroup}[1]{%
-
\glsxtrifhasfield{seealso}{#1}%
-
{\glstreeitem\hspace*{40pt}\glsxtruseseealso{#1}}{}%
+
\glsxtrifhasfield{seealso}{#1}%
+
{\glstreeitem\hspace*{40pt}\glsxtruseseealso{#1}}{}%
}
\renewcommand{\glsxtrbookindexsubsubbetween}[2]{%
-
\glsxtrbookindexsubsubatendgroup{#1}%
+
\glsxtrbookindexsubsubatendgroup{#1}%
}
\par{\centering\glstreegroupheaderfmt{#1}\par}%
+
\par{\centering\glstreegroupheaderfmt{#1}\par}%
}
\glsxtrbookindexmarkentry{#1}%
-
\glossentryname{#1}%
+
\glsxtrbookindexmarkentry{#1}%
+
\glossentryname{#1}%
}
\glossentryname{#1}%
+
\glossentryname{#1}%
}
\lhead{\thepage}%
-
\lfoot{\glsxtrbookindexfirstmark}%
-
\cfoot{}%
-
\rfoot{\glsxtrbookindexlastmark}%
+ \pagestyle{fancy}%
+
\lhead{\thepage}%
+
\lfoot{\glsxtrbookindexfirstmark}%
+
\cfoot{}%
+
\rfoot{\glsxtrbookindexlastmark}%
\glslongextraUpdateWidest{#2}%
+
\glslongextraUpdateWidest{#2}%
}
\setlength{\glsdescwidth}{0.6\linewidth}%
+
\setlength{\glsdescwidth}{0.6\linewidth}%
}
\glslongextraSetDescWidth
-
\addtolength{\glsdescwidth}{-3cm}%
+
\glslongextraSetDescWidth
+
\addtolength{\glsdescwidth}{-3cm}%
}
\setlength{\glsdescwidth}{.5\linewidth}%
+
\setlength{\glsdescwidth}{.5\linewidth}%
}
\glsxtrgetgrouptitle{#2}{\thisgrptitle}%
-
\glslongextraHeaderFmt{\thisgrptitle}%
-
\tabularnewline
-
\noalign{\vskip\normalbaselineskip}%
+
\glsxtrgetgrouptitle{#2}{\thisgrptitle}%
+
\glslongextraHeaderFmt{\thisgrptitle}%
+
\tabularnewline
+
\noalign{\vskip\normalbaselineskip}%
}
\glsxtrgetgrouptitle{#1}{\thisgrptitle}%
-
\section*{\thisgrptitle}%
+
\glsxtrgetgrouptitle{#1}{\thisgrptitle}%
+
\section*{\thisgrptitle}%
}
\newabbreviation{ex}{EX}{Example}
\begin{document}
-
Compare \gls{ex}['s] with \glsfirst{ex}['s].
+
Compare \gls{ex}['s] with \glsfirst{ex}['s].
\end{document}
The shortplural key to just ⟨short⟩ (without appending the plural suffix). See §6 +class="tcrm-1000">§6 Categories for further details.
See §2.8 §2.8 Nested Links regarding the pitfalls of using commands like \gls or @@ -9205,7 +9185,7 @@ class="cmss-10">categoryacronym (see also §2.9 §2.9 Acronym Style Modifications) so
The accompanying sample file
The underlining of the tagged letters only occurs in the glossary and then only for
entries with the \RestoreAcronyms
[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 (i.e. the word)
-
{\itag{ra}dio \itag{d}etection \itag{a}nd \itag{r}anging}
+
[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 (i.e. the word)
+
{\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}
+
{e\itag{x}tensible \itag{m}arkup \itag{l}anguage}
Abbreviations can be used with the standard
@@ -10347,7 +10327,7 @@ class="cmss-10">noshortplural attributes. See §6 §6 Categories for further details.)
The small styles, such as short-long-user
On first use, \gls{tug} will appear as:
TEX User Group (TUG) TeX User Group (TUG)
\newacronym{tug}{TUG}{\TeX\ User Group}
+
\newacronym{tug}{TUG}{\TeX\ User Group}
\newacronym
-
[user1={German Speaking \TeX\ User Group}]
-
{dante}{DANTE}{Deutschsprachige Anwendervereinigung \TeX\ e.V}
+
[user1={German Speaking \TeX\ User Group}]
+
{dante}{DANTE}{Deutschsprachige Anwendervereinigung \TeX\ e.V}
whereas \gls{dante} will appear as:
Deutschsprachige Anwendervereinigung TEX e.V (DANTE, - German Speaking TEX User Group)
Deutschsprachige Anwendervereinigung TeX e.V (DANTE, + German Speaking TeX User Group)
The short form is formatted according to
or to include the short form with a hyperlink: @@ -12287,17 +12264,17 @@ class="cmtt-10">} (the first argument is ignored). For
Note that I haven’t used commands like \glsxtrshort to avoid interference (see §2.4 §2.4 Entry Display Style Modifications and §2.8 §2.8 Nested Links).
then @@ -12780,7 +12756,7 @@ class="cmtt-10">ip is defined using:
will do
Note that the firstsetup⟩:
This sets the glossaries-accsupp\glsaccess⟨xxx⟩ commands (§12.2 §12.2 Accessibility Support) within the definitions of \glsxtrfullformat etc instead of the analogous fmts⟩:
Since the inline full commands aren’t redefined, they default to the same as the display versions. @@ -13699,7 +13675,7 @@ class="cmti-10">fmts⟩:
Here’s an example of an abbreviation style that’s based on \textsf:
Note that this wouldn’t work if it was instead based on one of the modified versions @@ -13816,7 +13792,7 @@ this:
Or, if you are using hyperrefhyperref
@@ -13874,7 +13850,7 @@ for the table of contents and page header. For example:
Alternatively, you need to find a way to insert \glsxtrmarkhook and true
class="cmitt-10">part⟩}{⟨false part⟩ part⟩}
\texorpdfstring{\glsabbrvfont{\glsentryshort{html}}}{\glsentryshort{html}}}
Here the }
is essentially the same as @@ -14599,7 +14575,7 @@ class="cmtt-10">\glsxtrlong. You can provide your own
This setting will also adjust the long plural. This attribute is only applicable to @@ -14758,7 +14734,7 @@ class="cmtt-10">\glsxtrtagfont in the glossary (see §4.1 §4.1 Tagging Initials).
This does “NO HYPER” if the generalglossaries
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.
+ LaTeX run.
This method is extended by glossaries-extra and is described in §7.1 §7.1 Entry
Counting (First Use Flag).
As mentioned in §2.5 §2.5 Entry Counting Modifications, glossaries-extra modifies the \glsenableentrycount, but you also need to set the appropriate attribute (see §6 §6 Categories).
This means that if an entry is assigned to a category that has the entrycount\usepackage{glossaries-extra}
\makeglossaries
\GlsXtrEnableEntryCounting{abbreviation}{1}
-
\newabbreviation{html}{HTML}{hypertext markup language}
-
\newabbreviation{xml}{XML}{extensible markup language}
+
\newabbreviation{html}{HTML}{hypertext markup language}
+
\newabbreviation{xml}{XML}{extensible markup language}
\begin{document}
-
Used once: \gls{html}.
-
Used twice: \gls{xml} and \gls{xml}.
+
Used once: \gls{html}.
+
Used twice: \gls{xml} and \gls{xml}.
\printglossaries
\end{document}
@@ -16010,9 +15984,8 @@ be applied, ⟨value⟩ is the trigger value and ⟨counter-name⟩ is the name of the counter
used by the sectional unit.
-
@@ -16092,17 +16065,17 @@ which gives the maximum per-unit total from the previous run.
\usepackage{glossaries-extra}
\GlsXtrEnableEntryUnitCounting{abbreviation}{2}{chapter}
\makeglossaries
-
\newabbreviation{html}{HTML}{hypertext markup language}
-
\newabbreviation{css}{CSS}{cascading style sheet}
+
\newabbreviation{html}{HTML}{hypertext markup language}
+
\newabbreviation{css}{CSS}{cascading style sheet}
\newglossaryentry{sample}{name={sample},description={sample}}
\begin{document}
\chapter{Sample}
-
Used once: \gls{html}.
-
Used three times: \gls{css} and \gls{css} and \gls{css}.
-
Used once: \gls{sample}.
-
\chapter{Another Sample}
-
Used once: \gls{css}.
-
Used twice: \gls{html} and \gls{html}.
+
Used once: \gls{html}.
+
Used three times: \gls{css} and \gls{css} and \gls{css}.
+
Used once: \gls{sample}.
+
\chapter{Another Sample}
+
Used once: \gls{css}.
+
Used twice: \gls{html} and \gls{html}.
\printglossaries
\end{document}
In both cases, the redefinition should be implemented after \glstext).
\usepackage{glossaries-extra}
\makeglossaries
\renewcommand*{\glslinkpresetkeys}{%
-
\ifnum\GlsXtrLinkCounterValue{\glslabel}>1
-
\setkeys{glslink}{hyper=false}%
-
\fi
+
\ifnum\GlsXtrLinkCounterValue{\glslabel}>1
+
\setkeys{glslink}{hyper=false}%
+
\fi
}
\GlsXtrEnableLinkCounting{general}
-
\newglossaryentry{sample1}{name={sample1},description={an example}}
-
\newglossaryentry{sample2}{name={sample2},description={another example}}
+
\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}.
+
\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}
@@ -16415,7 +16388,7 @@ applied. If the test is changed to
Then the abbreviation will always have
After this macro is called, ⟨sort
@@ -16782,8 +16755,7 @@ class="cmtt-10">.glstex
\glsletentryfield{#1}{#2}{sort}%
+
\glsletentryfield{#1}{#2}{sort}%
}
\ifglshaslong{#2}%
-
{\glsletentryfield{#1}{#2}{long}}%
-
{\glsletentryfield{#1}{#2}{sort}}%
+
\ifglshaslong{#2}%
+
{\glsletentryfield{#1}{#2}{long}}%
+
{\glsletentryfield{#1}{#2}{sort}}%
}
This means that you can use a reference managing system, such as JabRef, to -maintain the database and it reduces the TEX overhead by only defining the entries +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 @@ -16820,18 +16792,18 @@ class="cmtt-10">bib2gls:
@@ -16841,22 +16813,22 @@ class="cmtt-10">bib2gls:
@@ -16868,19 +16840,19 @@ class="cmtt-10">bib2gls:
@@ -16958,7 +16930,7 @@ class="cmsy-10">} On subsequent use,9.1 this + id="x1-40019f1"> this command is a shortcut for
Since the .glstex file won’t exist on the first LATEX run, the .glstex file won’t exist on the first LaTeX run, the record package @@ -17118,8 +17089,8 @@ example:
The locale-sensitive sort methods usually ignore most punctuation so for lists of @@ -17142,7 +17113,7 @@ class="cmtt-10">\printunsrtglossary (or \printunsrtglossaries), described in §10.2 §10.2 Display All Entries Without Sorting or Indexing.
Suppose the .bib examples shown above 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: +TeX’s path. Then the document might look like: @@ -17175,9 +17145,9 @@ class="cmtt-10">mydoc) is:
This creates a single glossary containing the entries: bird, \setabbreviationstyle{long-short-desc}
\GlsXtrLoadResources[src={terms},sort={en-GB},type=main]
\GlsXtrLoadResources
-
[src={abbrvs},sort={letter-nocase},type=abbreviations]
+
[src={abbrvs},sort={letter-nocase},type=abbreviations]
\GlsXtrLoadResources
-
[src={symbols},sort={use},type={symbols}]
+
[src={symbols},sort={use},type={symbols}]
\begin{document}
\gls{bird}
\gls{shtml}
@@ -17252,11 +17222,11 @@ class="cmtt-10">type, which will produce a glossary with ordered sub-bloc
\usepackage[record,style=indexgroup]{glossaries-extra}
\setabbreviationstyle{long-short-desc}
\GlsXtrLoadResources
-
[src={abbrvs},sort={letter-nocase},type=main,
-
group={Abbreviations}]
+
[src={abbrvs},sort={letter-nocase},type=main,
+
group={Abbreviations}]
\GlsXtrLoadResources
-
[src={symbols},sort={use},type=main,
-
group={Symbols}]
+
[src={symbols},sort={use},type=main,
+
group={Symbols}]
\GlsXtrLoadResources[src={terms},sort={en-GB},type=main]
\begin{document}
\gls{bird}
@@ -17280,9 +17250,9 @@ class="cmtt-10">myDoc.tex:
The value of the groupgroup\glsxtrsetgrouptitle (see §2.10.1 §2.10.1 Glossary Style Modifications). 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 -XƎLATEX or LuaLATEX:
-This provides aliases for BibTEX’s standard entry types to bib2gls’s @bibtexentry entry type (requires at least bib2gls version 1.4). -
You may also want to provide storage keys for BibTEX’s standard fields rather +
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:
-Note that BibTEX’s type field clashes with the glossaries package’s \IfTrackedLanguageFileExists in the tracklang documentation for further details. -If this file is on TEX’s path and the tracklang package (automatically loaded by @@ -18419,42 +18383,42 @@ contains:
(The use of \string is in case the glossariesxtr-Cyrl.ldf could contain:
(Remember that the required document language scripts need to be tracked through @@ -18510,17 +18474,17 @@ class="cmtt-10">mapsymbols.sty might contain:
and the supplementary file bib2gls:
This rule block contains just the subscript digits (0 … 0 … 9).
This rule block contains just the superscript digits (0 … 0 … 9).
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 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 \glsxtrGeneralLatinVIIIrules
you can just use, for example, \u E6 instead of E6 instead of \string\uE6 in the custom rule.
This redefinition of \u is scoped so its original definition is restored after the write
@@ -19237,15 +19200,15 @@ example:
\usepackage[record,style=indexgroup]{glossaries-extra}
\setabbreviationstyle{long-short-desc}
\GlsXtrLoadResources
-
[src={abbrvs},sort={letter-nocase},type=main,
-
label-prefix={abr.},
-
group={Abbreviations}]
+
[src={abbrvs},sort={letter-nocase},type=main,
+
label-prefix={abr.},
+
group={Abbreviations}]
\GlsXtrLoadResources
-
[src={symbols},sort={use},type=main,
-
label-prefix={sym.},
-
group={Symbols}]
+
[src={symbols},sort={use},type=main,
+
label-prefix={sym.},
+
group={Symbols}]
\GlsXtrLoadResources[src={terms},sort={en-GB},type=main
-
label-prefix={trm.}]
+
label-prefix={trm.}]
\begin{document}
\gls{trm.bird}
\gls{abr.shtml}
@@ -19285,7 +19248,7 @@ class="cmtt-10">\gls
These should be listed in order of precedence. Since no entries are defined on the first -LATEX run, the final prefix should be the fallback. You can prepend a prefix to the +LaTeX run, the final prefix should be the fallback. You can prepend a prefix to the list using:
and suppose the document code is:
@@ -19631,18 +19593,18 @@ class="cmtt-10">entries.bib contains:
\usepackage{hyperref}
\usepackage[record,abbreviations,symbols]{glossaries-extra}
\newcommand{\bibglsnewdualindexsymbolsecondary}[5]{%
-
\longnewglossaryentry*{#1}{name={#3},category={symbol},
-
type={symbols},symbol={#4},#2}{#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}.
+
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 +class="cmtt-10">dual. for the dual prefix, so \gls{svm} is referencing the primary entry, which is (essentially) an @index type @@ -19658,7 +19620,7 @@ symbol.
or with @@ -19667,8 +19629,8 @@ symbol.
then only the entries without a dual need a prefix: @@ -19677,7 +19639,7 @@ symbol.
Using \glsxtrnewglslike, as earlier, this can be simplified to: @@ -19686,7 +19648,7 @@ class="cmtt-10">\glsxtrnewglslike, as earlier, this can be simplified to:
but this requires remembering which terms have duals.
An alternative is to use \dgls instead:
\usepackage{hyperref}
\usepackage[record,abbreviations,symbols]{glossaries-extra}
\newcommand{\bibglsnewdualindexsymbolsecondary}[5]{%
-
\longnewglossaryentry*{#1}{name={#3},category={symbol},
-
type={symbols},symbol={#4},#2}{#5}%
+
\longnewglossaryentry*{#1}{name={#3},category={symbol},
+
type={symbols},symbol={#4},#2}{#5}%
}
\GlsXtrLoadResources[src=entries]
\glsxtraddlabelprefix{dual.}
\glsxtraddlabelprefix{}
\begin{document}
-
First use: \dgls{duck}, \dgls{svm}, \dgls{pi}.
-
Next use: \dgls{duck}, \dgls{svm}, \dgls{pi}.
+
First use: \dgls{duck}, \dgls{svm}, \dgls{pi}.
+
Next use: \dgls{duck}, \dgls{svm}, \dgls{pi}.
\printunsrtglossaries
\end{document}
On the first LATEX call (when the .glstex file doesn’t exist), neither +
On the first LaTeX call (when the .glstex file doesn’t exist), neither dual.svm nor 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 -\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 \gls{duck}.
If you haven’t used combine-dual-locations an extra bib2gls+LATEX run +class="cmtt-10">bib2gls+LaTeX run may be required to correct the location lists.
If you change the label prefixes, remember to update the corresponding
As from version 1.8, bib2gls provides hooks that identify the label prefixes in the
+.glstex file:
@@ -20408,7 +20365,7 @@ class="cmtt-10">\glsxtrfmtdisplay
{⟨cs name⟩ name⟩}{⟨text⟩}text⟩.
\newcommand*{\mtxinv}[1]{\mtx{#1}\sp{-1}}
\newglossaryentry{matrix}{%
-
name={matrix},
-
symbol={\ensuremath{\mtx{M}}},
-
plural={matrices},
-
user1={mtx},
-
description={rectangular array of values}
+
name={matrix},
+
symbol={\ensuremath{\mtx{M}}},
+
plural={matrices},
+
user1={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}
+
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},
-
description={a square \gls{matrix} such that
-
$\mtx{M}\mtxinv{M}=\glssymbol{identitymatrix}$}
+
name={matrix inverse},
+
symbol={\ensuremath{\mtxinv{M}}},
+
user1={mtxinv},
+
description={a square \gls{matrix} such that
+
$\mtx{M}\mtxinv{M}=\glssymbol{identitymatrix}$}
}
If the default options are set to
As from v1.31, if a field represents a numeric (integer) value, you can use the
@@ -21258,12 +21215,12 @@ class="cmtt-10">save-child-count
{abbreviation,acronym}% set of labels
-
{true part}{false part}
+
{abbreviation,acronym}% set of labels
+
{true part}{false part}
For fields that contain a comma-separated list use text⟩. For example:
\usepackage{glossaries-extra}
\setabbreviationstyle{long-short-user}
\newabbreviation
-
[user1={Associa\c{c}\~ao Brasileria de Normas T\'ecnicas},
-
user2= {pt-BR}
-
]
-
{abnt}{ABNT}{Brazilian National Standards Organization}
+
[user1={Associa\c{c}\~ao Brasileria de Normas T\'ecnicas},
+
user2= {pt-BR}
+
]
+
{abnt}{ABNT}{Brazilian National Standards Organization}
\newabbreviation
-
[user1={Deutsches Institut f\"ur Normung e.V.},
-
user2={de-DE-1996}]
-
{din}{DIN}{German Institute for Standardization}
+
[user1={Deutsches Institut f\"ur Normung e.V.},
+
user2={de-DE-1996}]
+
{din}{DIN}{German Institute for Standardization}
\renewcommand*{\glsxtruserparen}[2]{%
-
\glsxtrfullsep{#2}%
-
\glsxtrparen
-
{#1%
-
\ifglshasfield{\glsxtruserfield}{#2}%
-
{, \emph{\GlsXtrForeignText{#2}{\glscurrentfieldvalue}}}%
-
{}%
-
}%
+
\glsxtrfullsep{#2}%
+
\glsxtrparen
+
{#1%
+
\ifglshasfield{\glsxtruserfield}{#2}%
+
{, \emph{\GlsXtrForeignText{#2}{\glscurrentfieldvalue}}}%
+
{}%
+
}%
}
\begin{document}
-
\gls{abnt}, \gls{din}.
+
\gls{abnt}, \gls{din}.
\end{document}
@@ -21549,7 +21506,7 @@ which is equivalent to
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 number list in this case, as that has to be set by a post-processor such as in this case, as that has to be set by a post-processor such as bib2gls (see §9 +class="tcrm-1000">§9 bib2gls: Managing Reference Databases). @@ -21592,7 +21548,7 @@ class="cmss-10">name field. The corresponding group title will be obtained as discussed in §2.10.1 §2.10.1 Glossary Style Modifications. This can lead to an odd effect if you are using a style that separates letter groups when the ordering isn’t alphabetical. @@ -21662,10 +21618,10 @@ will automatically deal with this.
The optional argument is as for \printnoidxglossary (except for the record.section field:
@@ -21833,11 +21788,11 @@ localise the change:
@@ -21853,18 +21808,18 @@ duplicate hypertarget names. For example:
Note that this will cause a problem if your descriptions contain commands like
@@ -21900,20 +21855,20 @@ the glossary header and add some vertical space afterwards:
@@ -21951,7 +21906,7 @@ so if you want to just make some minor modifications you can do
which will start the list with a subsection header with the title “Summary”
@@ -22001,10 +21956,10 @@ custom command:
define your entries
@@ -22014,7 +21969,7 @@ custom command:
and then later in the text:
@@ -22250,10 +22205,10 @@ class="cmtt-10">\glssymbolaccessdisplay
\renewcommand{\printunsrtglossaryhandler}[1]{%
-
\glsxtrfieldxifinlist{#1}{record.section}{\thesection}
-
{\glsxtrunsrtdo{#1}}%
-
{}%
-
}%
-
\ifcsundef{theHsection}%
-
{%
-
\setkeys{printgloss}{targetnameprefix={record.\csuse{thesection}.}}%
-
}%
-
{%
-
\setkeys{printgloss}{targetnameprefix={record.\csuse{theHsection}.}}%
-
}%
+
\renewcommand{\printunsrtglossaryhandler}[1]{%
+
\glsxtrfieldxifinlist{#1}{record.section}{\thesection}
+
{\glsxtrunsrtdo{#1}}%
+
{}%
+
}%
+
\ifcsundef{theHsection}%
+
{%
+
\setkeys{printgloss}{targetnameprefix={record.\csuse{thesection}.}}%
+
}%
+
{%
+
\setkeys{printgloss}{targetnameprefix={record.\csuse{theHsection}.}}%
+
}%
}
\renewcommand{\printunsrtglossaryhandler}[1]{%
-
\glsxtrfieldxifinlist{#1}{record.section}{\thesection}
-
{\glsxtrunsrtdo{#1}}%
-
{}%
-
}%
-
\ifcsundef{theHsection}%
-
{%
-
\renewcommand*{\glolinkprefix}{record.\csuse{thesection}.}%
-
}%
-
{%
-
\renewcommand*{\glolinkprefix}{record.\csuse{theHsection}.}%
-
}%
-
\renewcommand*{\glossarysection}[2][]{}%
-
\appto\glossarypostamble{\glspar\medskip\glspar}%
+
\renewcommand{\printunsrtglossaryhandler}[1]{%
+
\glsxtrfieldxifinlist{#1}{record.section}{\thesection}
+
{\glsxtrunsrtdo{#1}}%
+
{}%
+
}%
+
\ifcsundef{theHsection}%
+
{%
+
\renewcommand*{\glolinkprefix}{record.\csuse{thesection}.}%
+
}%
+
{%
+
\renewcommand*{\glolinkprefix}{record.\csuse{theHsection}.}%
+
}%
+
\renewcommand*{\glossarysection}[2][]{}%
+
\appto\glossarypostamble{\glspar\medskip\glspar}%
}
\renewcommand*{\glossarysection}[2][]{\subsection*{Summary}}%
+
\renewcommand*{\glossarysection}[2][]{\subsection*{Summary}}%
}
\par\medskip\par\noindent
-
Definition: \glsentryname{#1}.\par
-
\glsentrydesc{#1}
-
\par\medskip
+
\par\medskip\par\noindent
+
Definition: \glsentryname{#1}.\par
+
\glsentrydesc{#1}
+
\par\medskip
}
description={a relation or expression involving variables}
+
description={a relation or expression involving variables}
}
If I want numbered definitions, then I can use the package options subentrycounter
The counter label uses a dot after the number by default but this can be changed to
@@ -22297,13 +22252,13 @@ the following modification:
(Note the grouping to localise
@@ -22490,7 +22445,7 @@ class="cmss-10">document
\par\medskip\par\noindent
-
Definition \glsxtrglossentry{#1}.\par
-
\glsentrydesc{#1}
-
\par\medskip
+
\par\medskip\par\noindent
+
Definition \glsxtrglossentry{#1}.\par
+
\glsentrydesc{#1}
+
\par\medskip
}
\par\medskip\par\noindent
-
Definition \glsxtrglossentry{#1}.\par
-
\begingroup
-
\glsxtractivatenopost
-
\glossentrydesc{#1}\glspostdescription
-
\endgroup
-
\par\medskip
+
\par\medskip\par\noindent
+
Definition \glsxtrglossentry{#1}.\par
+
\begingroup
+
\glsxtractivatenopost
+
\glossentrydesc{#1}\glspostdescription
+
\endgroup
+
\par\medskip
}
\glsxtrindexaliased
-
\setkeys{glslink}{noindex}%
+
\glsxtrindexaliased
+
\setkeys{glslink}{noindex}%
}
category=\glsxtrcat,
+class="cmtt-10"> category=\glsxtrcat,
description= description={\nopostdesc},
⟨ ⟨dfn-options⟩}
@@ -22618,8 +22573,8 @@ below:
then don’t bother. It’s simpler and less problematic to just define the entries in the preamble with \glsxtr but uses \Glspl instead of \gls.
If you use UTF-8 and don’t want the inconvenient of needing to use an
-ASCII-only label, then it’s better to use XƎLATEX or LuaLATEX instead of
-LATEX (or pdfLATEX). If you really desperately want to use UTF-8 entry labels
-without switching to XƎLATEX or LuaLATEX then there is a starred version of
+ASCII-only label, then it’s better to use XƎLATEX or LuaLATEX instead of
+LaTeX (or pdfLATEX). If you really desperately want to use UTF-8 entry labels
+without switching to XƎLATEX or LuaLATEX then there is a starred version of
\GlsXtrEnableOnTheFly that allows you to use UTF-8 characters in ⟨label⟩, but it’s
@@ -22719,12 +22673,12 @@ example:
\usepackage{glossaries-prefix}
\makeglossaries
\newabbreviation
-
[prefix={an\space},
-
prefixfirst={a~}]
-
{svm}{SVM}{support vector machine}
+
[prefix={an\space},
+
prefixfirst={a~}]
+
{svm}{SVM}{support vector machine}
\begin{document}
-
First use: \pgls{svm}.
-
Next use: \pgls{svm}.
+
First use: \pgls{svm}.
+
Next use: \pgls{svm}.
\printglossaries
\end{document}
(glossaries-accsupp
@@ -23217,14 +23171,14 @@ class="description">Enable entry-use counting (only index if used more
than n times, see §7.1 §7.1 Entry Counting (First Use Flag)).
\glsnameaccessdisplay
-
{%
-
\Glsentryname{#1}%
-
}%
-
{#1}%
+
\glsnameaccessdisplay
+
{%
+
\Glsentryname{#1}%
+
}%
+
{#1}%
}
Or using babelpolyglossia
@@ -23440,7 +23393,7 @@ For example:
or
@@ -23448,7 +23401,7 @@ For example:
The other fixed text commands are the diagnostic messages, which shouldn’t
@@ -23491,27 +23444,27 @@ class="cmtt-10">glossariesxtr-french.ldf.
@@ -23526,13 +23479,12 @@ class="cmtt-10">.ldf file to provide rule blocks for a particular languag
href="#glo:bib2gls">bib2gls’s
\renewcommand*{\abbreviationsname}{List of Abbreviations}%
+
\renewcommand*{\abbreviationsname}{List of Abbreviations}%
}
\newcommand*{\glossariesxtrcaptionsfrench}{%
-
\def\abbreviationsname{Abr\'eviations}%
+
\def\abbreviationsname{Abr\'eviations}%
}
\glossariesxtrcaptionsfrench
\ifcsdef{captions\CurrentTrackedDialect}
{%
-
\csappto{captions\CurrentTrackedDialect}%
-
{%
-
\glossariesxtrcaptionsfrench
-
}%
+
\csappto{captions\CurrentTrackedDialect}%
+
{%
+
\glossariesxtrcaptionsfrench
+
}%
}%
{%
-
\ifcsdef{captions\CurrentTrackedLanguage}
-
{%
-
\csappto{captions\CurrentTrackedLanguage}%
-
{%
-
\glossariesxtrcaptionsfrench
-
}%
-
}%
-
{}%
+
\ifcsdef{captions\CurrentTrackedLanguage}
+
{%
+
\csappto{captions\CurrentTrackedLanguage}%
+
{%
+
\glossariesxtrcaptionsfrench
+
}%
+
}%
+
{}%
}
This .ldf file then needs to be put somewhere on TEX’s path so that it can be +class="cmtt-10">.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 @@ -23820,8 +23772,7 @@ class="cmtt-10">makeglossaries-lite (without the .lua extension) to the actual makeglossaries-lite.lua - script, and TEX distributions on Windows convert the script to an + script, and TeX distributions on Windows convert the script to an executable makeglossaries-lite.exe.
C
categories:
- abbreviation 445, 446, 447, 448, 449
- acronym 450, 451, 452, 453, 454
- general 455, 456, 459, 460, 461, 462
- glossnamefont 463
- index 464, 465
- number 466
- symbol 467, 468
category attributes:
- accessaposplural 469, 470, 471, 472
- accessinsertdots 473, 474
- accessnoshortplural 475, 476
- aposplural 477, 478, 481, 482, 483, 484
- discardperiod 485, 486, 487, 488, 489
- dualindex 490, 491, 493, 494, 495, 496
- entrycount 497, 498, 504, 505, 506, 507
- externallocation 508, 509, 510, 511
- firstshortaccess 512
- glossdesc 513, 514, 515
- glossdescfont 516, 517, 518
- glossname 519, 520, 521
- glossnamefont 522, 523, 524, 525
- glosssymbolfont 526, 527
- headuc 528, 529, 530, 531
- hyperoutside 532, 533
- indexname 534, 535, 536, 537, 538
- indexonlyfirst 539, 540, 541
- insertdots 542, 543, 544, 545
- linkcount 546, 547, 548
- linkcountmaster 549, 550
- markshortwords 551, 552
- markwords 553, 554, 555, 556, 557, 558
- nameshortaccess 559
- nohyper 560, 561, 562
- nohyperfirst 563, 564, 565, 566, 567
- noshortplural 568, 569, 570, 571, 572, 573
- pluraldiscardperiod 574, 575
- recordcount 576, 577, 578, 579
- regular 580, 581, 608, 609, 610, 611
- retainfirstuseperiod 612
- tagging 613, 614, 615, 616
- targetcategory 617
- targetname 618, 619
- targeturl 620, 621, 622, 623, 624
- textformat 625, 626, 627, 628, 629
- textshortaccess 630
- unitcount 631
- wrgloss 632, 633
@@ -25008,13 +24959,13 @@ class="cmbx-10">F
class="cmss-10">fancyhdr package 677
file types
- glg-abr 678
- glo-abr 679
- gls-abr 680
first use \glossariesextrasetup 825
glossary styles:
- altlist 826, 827
- alttree 828, 829, 837, 838, 839, 840
- bookindex 841, 842, 843, 844
- index 845
- inline 846, 847
- list 848, 849, 850
- listdotted 851, 852
- long 853
- long-desc-name 854
- long-desc-sym-name 855
- long-loc-desc-name 856
- long-loc-desc-sym-name 857
- long-loc-sym-desc-name 858
- long-name-desc 859, 860, 861
- long-name-desc-loc 862
- long-name-desc-sym 863, 864
- long-name-desc-sym-loc 865, 866
- long-name-sym-desc 867
- long-name-sym-desc-loc 868
- long-sym-desc-name 869
- long3col 870
- longragged-booktabs 871, 872
- mcolindexgroup 873
- topic 874, 875
- topicmcols 876
- tree 877, 878, 879, 880
- treenoname 881, 882, 937
\glsadd options
- format 938
- theHvalue 939, 940
- thevalue 941, 942, 1039
\glslink options
- counter 1040, 1041
- format 1042, 1043, 1044, 1045
- hyper 1046, 1047, 1048
- hyper=false 1049
- hyperoutside 1050, 1051
- noindex 1052, 1053, 1055, 1056, 1057, 1058
- prefix 1059, 1060
- textformat 1061, 1062
- theHvalue 1063, 1064
- thevalue 1065, 1066
- wrgloss 1067, 1068, 1662
\newglossaryentry options
- access 1663
- alias 1664, 1665, 1667, 1668, 1669, 1670
- category 1671, 1672, 1673, 1674, 1675, 1676
- counter 1677
- description 1678, 1679, 1700, 1701, 1702, 1703
- descriptionplural 1704, 1705, 1706, 1707, 1708, 1709
- first 1710, 1711, 1719, 1720, 1721, 1722
- firstaccess 1723
- firstplural 1724, 1725, 1730, 1731, 1732, 1733
- group 1734, 1735, 1736, 1737, 1738
- location 1739, 1740, 1741, 1742, 1743
- loclist 1744, 1745, 1746, 1747
- long 1748, 1749, 1753, 1754, 1755, 1756
- longplural 1757, 1758, 1759, 1760, 1761, 1762
- name 1763, 1764, 1816, 1817, 1818, 1819
- nameshortaccess 1820, 1821
- parent 1822, 1823, 1824
- plural 1825, 1826, 1834, 1835, 1836, 1837
- prefix 1838
- see 1839, 1840, 1862, 1863, 1864, 1865
- seealso 1866, 1867, 1873, 1874, 1875, 1876
- short 1877, 1878, 1889, 1890, 1891, 1892
- shortaccess 1893, 1894, 1895, 1896, 1897
-