Skip to main content
13 votes
Accepted

Glossaries - expand acronyms for first-time use within each chapter

The simplest method is to insert \glsresetall at the start of each chapter. Since etoolbox is automatically loaded (by the base glossaries package), you can use etoolbox's \preto command: \...
Nicola Talbot's user avatar
10 votes

Glossaries links with non-latin labels in LuaLaTeX refer to wrong place

Not a solution but an explanation. The problem is hyperref. hyperref uses with lualatex \pdf@escapestring to convert the name to something that can be safely used as a destination in the pdf. But the ...
Ulrike Fischer's user avatar
8 votes
Accepted

glossaries: hyperlink only at the first occurrence in every chapter

With glossaries-extra v1.26 (2018-01-05)¹ you can do: \documentclass{article} \usepackage{hyperref} \usepackage[acronym]{glossaries-extra} \makeglossaries \GlsXtrEnableLinkCounting[section]{...
Nicola Talbot's user avatar
8 votes
Accepted

Glossaries links with non-latin labels in LuaLaTeX refer to wrong place

As Ulrike Fischer described the problem is that non-ASCII characters are dropped by \pdf@escapestring. To avoid this, you can change \pdf@escapestring to encode Unicode characters in UTF-8: \...
Marcel Krüger's user avatar
8 votes
Accepted

How to use `glossaries` together with `ProvidesPackage`

Don't name your package "doc". doc.sty exists already (in latex/base) and glossaries contains special code when it detect that it has been used: \@ifpackageloaded{doc}% {% \@gls@docloadedtrue }% {% ...
Ulrike Fischer's user avatar
7 votes
Accepted

glossaries automake not working lualatex

You need to use automake=immediate in this situation. (New to glossaries version 4.22 2019-01-06.) This executes the system command at the start of \makeglossaries (before the glossary files are ...
Nicola Talbot's user avatar
7 votes
Accepted

define plural for new acronym

With the \newacronym options shortplural and longplural set it works as intended: \documentclass{scrartcl} \usepackage[ngerman]{babel} \usepackage[autostyle]{csquotes} \usepackage{glossaries-extra} \...
Lukas's user avatar
  • 659
6 votes

glossaries automake not working lualatex

The problem is that with luatex (and the shellesc package) \write18 is actually an \immediate\write18 (see the documentation of shellesc). And this means that the makeindex command is executed before ...
Ulrike Fischer's user avatar
5 votes
Accepted

How to effectively use List of Symbols for a thesis using .bib files?

I will demonstrate using some of the example .bib files provided with bib2gls. mathgreek.bib defines some sample symbols that are all mathematical Greek characters. The LaTeX kernel doesn't provide ...
Nicola Talbot's user avatar
5 votes
Accepted

Manage multiple glossaries in one bib file

Most of the resource options aren't cumulative. That is, if used multiple times the last option usually overrides the previous option of the same name. This means that: entry-type-aliases={symbol=...
Nicola Talbot's user avatar
5 votes
Accepted

Is it possible to show a custom text for the long part of an abbreviation?

There are two commands that allow you to display custom text encapsulated by the abbreviation formatting commands for a particular category: \glsuseabbrvfont{text}{category} \glsuselongfont{text}{...
Nicola Talbot's user avatar
5 votes
Accepted

All-cap abbreviations lead to undefined control sequence when used chapters/sections of books

glossaries-extra stores certain definitions before \markboth and \markright to prevent case-changing from being applied in headings when \glsfmt<field> is used in \section (see "5.3. ...
Dai Bowen's user avatar
  • 6,222
4 votes
Accepted

glossaries-extra - Problem creating new style for acronyms

I recommend a different approach that uses a custom entry type and fields. This makes it more flexible so you can use the same .bib file across different documents, and with a different set of aliases ...
Nicola Talbot's user avatar
4 votes
Accepted

Reset of the acronym with glossaries-extra

I think the simplest method is to add \glsresetall to the start of each chapter with etoolbox's \preto command. (etoolbox is automatically loaded by glossaries and therefore by glossaries-extra but I'...
Nicola Talbot's user avatar
4 votes

glossaries: acronyms: How to display only the first appearance of an acronym among the Abbreviations if only its short form is used in the text?

The simplest method is to use the short style for acronyms that shouldn't expand on first use and the long-short style for the ones that should. Since the abbreviation category has long-short as the ...
Nicola Talbot's user avatar
4 votes
Accepted

Why does glossaries-extra not show the long form of an abbreviation on first use?

A quick search in the manual suggests that you need to add \setabbreviationstyle[acronym]{long-short}: \documentclass{report} \usepackage{blindtext} \usepackage{siunitx} \sisetup{detect-all} \...
cgnieder's user avatar
  • 66.9k
4 votes
Accepted

What triggers latexmk to invoke makeglossaries?

The suggestion you mention for the .latexmkrc file is out-of-date. See the file glossary_latexmkrc in the example_rcfiles for the current recommendation. From what's in that file, the code for you ...
John Collins's user avatar
  • 11.3k
4 votes
Accepted

How to Capitalize Symbol in Glossary Print only using a New Entry Field?

UPDATE (2) after follow-up question. There is now a new key-defined symbol name (symbolname) that will be used to print the glossary. You can use any other "symbol" you want, not just ...
Simon Dispa's user avatar
  • 39.6k
4 votes

Vietnamese alphabetical sorting with glossaries-extra

If you read the glossaries package documentation, you'll see that the package recommends that you use xindy for indexing: If you are writing in a language that uses an extended Latin alphabet or non-...
bonk's user avatar
  • 875
3 votes
Accepted

How to fix superscripts in glossaries with parameters

You essentially have this: \documentclass{article} \begin{document} \newcommand{\glsarg}{ij^T} \[A_{\glsarg}\] \end{document} which puts ij^T as the subscript (that is, A_{ij^T}) where ^T is the ...
Nicola Talbot's user avatar
3 votes
Accepted

Command for obtaining plural form of forced short & long use of acronyms in glossaries-extra

For using in headings and captions, the short plural form is obtained with \glsfmtshortpl and the long plural form is obtained with \glsfmtlongpl. For example: \documentclass{article} \usepackage{...
Nicola Talbot's user avatar
3 votes
Accepted

How to get \glsadd to work with sort=use?

UPDATE: In the lates versions 1.24 and 4.35 of glossaries-extra and glossaries respectively, the bug is fixed and the patch I have presented in this answer is no longer needed. UPDATE: Since version ...
leandriis's user avatar
  • 63k
3 votes
Accepted

glossaries-extra not displaying page numbers

\printunsrtglossary doesn't show the numbers unless you use it with bib2gls. (See glossaries-extra and bib2gls: An Introductory Guide.) If you want to use makeindex then you need to use \printglossary ...
Nicola Talbot's user avatar
3 votes
Accepted

glossaries-extra – usage of \ifglsused with acronyms loaded from external file causes error

This bug is now fixed in version 1.33 of glossaries-extra (2018-07-26). A patch for older versions is to redefine \ifglsused as follows: \renewcommand*{\ifglsused}[3]{% \glsdoifexists{#1}{\ifbool{...
Nicola Talbot's user avatar
3 votes
Accepted

Non-breaking space between long and short form of acronyms with glossaries/glossaries-extras

The command \acrfullformat is provided with the base glossaries acronym styles. The glossaries-extra extension package uses a different abbreviation mechanism, which is much more flexible. The long-...
Nicola Talbot's user avatar
3 votes
Accepted

Suppress text (space) output when using \glsadd{}

glossaries keeps track of on which pages the glossary entries are used. In order to this, the page on which this happens needs to be well defined, i.e. \glsadd has to be part of a line of text. This ...
schtandard's user avatar
  • 15.2k
3 votes
Accepted

Defining an abbreviation style in glossaries that shows only long version first and short version afterwards

New abbreviation styles are defined with \newabbreviationstyle, as mentioned in the glossaries-extra manual (Section 3.5, page 112, unfortunately without many details). There are a few aspects to ...
Marijn's user avatar
  • 38.6k
3 votes
Accepted

Hyperref and nested \glsxtrshort and \glsfmtlong

You can access the short description like this: \documentclass{article} \usepackage{hyperref} \usepackage{glossaries-extra} \newabbreviation{ara}{ARA}{a random abbreviation} \newabbreviation{aaca}{...
Ulrike Fischer's user avatar
3 votes
Accepted

Why do glossaries-extra package and bib2gls application give incorrect utf8 cyrillic characters?

On windows I had to inform java that utf8 is wanted by setting an environment variable JAVA_TOOL_OPTIONS="-Dfile.encoding=UTF8" After this setting bib2gls reports: Picked up ...
Ulrike Fischer's user avatar
3 votes

don´t show glossaries in table of content

glossaries-extra has the package option toc=true by default, which adds the glossaries to the table of contents. As the package documentation says: Use toc=false to switch this back off. So add toc=...
imnothere's user avatar
  • 14.3k

Only top scored, non community-wiki answers of a minimum length are eligible