# Bug Tracker

ID: 156 🔗 Closed (Fixed) glossaries-extra 1.43 Nicola Talbot 2020-03-21 19:31:11 indexonlyfirst doesn't work with bib2gls

## Report

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

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

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

\begin{document}
\gls{lorem}.

\printunsrtglossary
\end{document}


## Evaluation

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

## Watch This Report

If you supply your name, it will be used in the email greeting, which provides a more personal message, otherwise you'll just get a generic greeting. If you have previously supplied your name when signing up for notifications, you don't need to resupply it unless you want to change it.

If you have previously subscribed to notifications for this report, you can unsubscribe by clicking on the "Stop Notification" button.

The "Confirm Bug ID" field helps to protect against spambots. Please enter the bug ID (which you can find at the top of this page).

Name: (Optional.)