Bug Tracker RSS feed

I’m currently working on a major new version of the datatool package. This may take a while. Please be patient. (Experimental version available for testing.)

ID 156🔗
Submitted by: Nicola Talbot 🦜
Date: 2020-03-21 19:31:11
Status Closed (Fixed)
Category glossaries-extra
Version 1.43
Summary indexonlyfirst doesn't work with bib2gls

Sign in to subscribe to notifications about this report.

Description

The indexonlyfirst option doesn't work with bib2gls. This is because \glswriteentry uses \ifglsused which does neither the true nor false part if the entry is undefined (which occurs on the first LaTeX run before bib2gls is called). This means that the entry doesn't have a record in the aux file when it doesn't exist, so bib2gls doesn't select it.

MWE

Download (257B)

% arara: pdflatex
% arara: makeglossaries
% arara: pdflatex
\documentclass{article}

\usepackage[record,indexonlyfirst]{glossaries-extra}

\GlsXtrLoadResources[src=example-glossaries-brief]

\begin{document}
\gls{lorem}.

\printunsrtglossary
\end{document}

Evaluation

Fixed in v1.44, which now uses \GlsXtrIfUnusedOrUndefined instead of \ifglsused.

Comments

0 comments.


Add Comment

Name (optional):

Are you human? Please confirm the bug report ID (which can be found at the top of this page) or login if you have an account.

Comment:


You can use the following markup:

Block:

[pre]Displayed verbatim[/pre]
[quote]block quote[/quote]

In line:

[tt]code[/tt]
[file]file/package/class name[/file]
[em]emphasized text[/em]
[b]bold text[/b]
[url]web address[/url] [sup]superscript[/sup]
[sub]subscript[/sub]

Ordered list:
[ol]
[li]first item[/li]
[li]second item[/li]
[/ol]

Unordered list:
[ul]
[li]first item[/li]
[li]second item[/li]
[/ul]

You can use the Preview button to review your message formatting before submitting.

Page permalink: https://www.dickimaw-books.com/bugtracker.php?key=156