# Tag Info

10

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 current implementation of \pdf@escapestring handles only ascii, everything else is simply dropped. And this means that glossaries creates for the two entries ...

8

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: \documentclass{report} \usepackage{glossaries-extra} \preto\chapter{\glsresetall} \setabbreviationstyle[acronym]{long-short} \newacronym{tla}{TLA}{three letter acronym} \...

8

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: \documentclass{article} \usepackage{polyglossia} \setmainfont{Liberation Serif} \usepackage{hyperref} \usepackage[nonumberlist]{glossaries-extra} \newglossaryentry{...

8

6

5

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 commands for Greek characters that look the same as Latin character. This stems back to the days of limited resources and, for example, omicron could simply be ...

4

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 you can get different results according to particular document requirements. For comparison, I've also added a Brazilian abbreviation: @acronym{ABNT, short =...

4

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 the acn-file has been written and closed. This is imho a bug in glossaries and should be reported. You can patch the command like this: \documentclass{article}...

3


3

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 1.13 of glossaries-extra leads to the desired output shown in the image in this answer, the latest version 1.23 leads to potato and cucumber being written in ...

3

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 default style and the acronym category has short as the default style, you could just use \newacronym for the terms that should show the full form on first use ...

3

\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 instead. However, you've actually used the xindy package option, which means the associated files need to be processed using xindy instead of makeindex. With ...

3


3

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-short style uses \glsxtrfullsep{label} as the separator between the long form and the parenthetical short form. This is simply defined as: \newcommand*{\...

3

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 opened) using \immediate. You will get a warning on the first LaTeX run when the files don't exist. With automake=true (or simply automake), the system command is ...

3

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=symbols}, entry-type-aliases={notation=notation}, is equivalent to just: entry-type-aliases={notation=notation}, You need to have all the aliases in ...

3

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}{category} However, these use the subsequent (non-first-use) formatting commands. In your example, you've only set the first use long formatting command to \emph. ...

3

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 is why glossaries adds an empty \mbox to the document using \@gls@adjustmode when you call \glsadd in vertical mode. You should decide to which paragraph every \...

3

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 consider. Formatting abbreviations is done by redefining \CustomAbbreviationFields. The first use of an abbreviation is formatted with the key first that is set ...

3

You can access the short description like this: \documentclass{article} \usepackage{hyperref} \usepackage{glossaries-extra} \newabbreviation{ara}{ARA}{a random abbreviation} \newabbreviation{aaca}{AACA}{another abbreviation containing \glsxtrshort{ara}} \pdfstringdefDisableCommands{% \def\glsxtrshort#1{\csname glo@#1@short\endcsname}% } \begin{document} ...

3

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 JAVA_TOOL_OPTIONS: "-Dfile.encoding=UTF8" bib2gls version 2.7 (2020-07-11) Reading test-utf8.aux Reading test-gloss.bib and the glstex contains the correct utf8.

3

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=false to your \usepackage[...]{glossaries-extra}.

2

You can do this by defining a new ignored glossary and assigning acronyms to this ignored glossary. The following is a MWE assuming that xindy is used to alphabetically sort the list of acronyms. The resulting list of acronyms of this MWE only contins 'A', while 'H' is not listed. \documentclass{scrreprt} \usepackage[xindy,acronyms,shortcuts]{glossaries} ...

2

Your version of glossaries is too old. The sort=none option was introduced to glossaries v4.30 (2017-06-11), so you need to update if you want to use it.

2

\glsadd doesn't recognise the noindex key. (The purpose of \glsadd is to index without generating any text, so noindex doesn't make sense in this context.) This means that any instance of \glsadd that ends up in the glossary (through the short form appearing in the entry's name field) won't be affected by \GlsXtrSetDefaultGlsOpts{noindex}. In this case a ...

2

The super style uses a (super)tabular with {lp{\glsdescwidth}} as tabular preamble. This gives a default margin of a \tabcolsep. You can suppress the margin with @{}: \documentclass[]{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[ngerman]{babel} \usepackage[ automake, acronym, nomain, nopostdot=true, nonumberlist, ]{glossaries-...

2

I don't think it's a good idea to index every appearance of an object. Anyway, the problem is that an ordinary atom is inserted in an inappropriate spot, which you can cure with \! \documentclass{article} \usepackage{mathtools}%%% loads amsmath internally \mathtoolsset{mathic=true} %%% See https://tex.stackexchange.com/a/3496/ \usepackage[hidelinks]{...

2

The error persists in glossaries-extra v1.34 (MiKTeX + TeXstudio on Windows 10). Simplified MWE: \documentclass{article} %\usepackage[automake=true]{glossaries} \usepackage[automake=true]{glossaries-extra} \makeglossaries \newglossaryentry{a}{ name={name}, description={desc} } \begin{document} % \glsdisp{a}{disp} \glslink{a}{link} \...

2

Just assign it a different category attribute (that doesn't have the dualindex attribute set). For example: \documentclass{memoir} \usepackage[xindy,abbreviations,nomain,nonumberlist]{glossaries-extra} \makeglossaries \makeindex \glssetcategoryattribute{abbreviation}{dualindex}{true} \newabbreviation{html}{html}{hypertext markup language} \...

2