# Feature Request Tracker

ID: 17 🔗 Closed (Implemented) glossaries 2013-10-05 03:42:36 Improve counter=equation

## Report

It would be nice, if one could use brackets (or other symbols) around the equation numbers (or other counters).

\newcommand*{\hyperbracket}[1]{(\glshypernumber{#1})} doesn't work, because it produces e.g. (2.4,2.5) and not (2.4),(2.5).

An option would be to introduce something along the lines of

\newcommand{\leftsideofnumber}{(}
\newcommand{\rightsideofnumber}{)}
\makeatletter
\def\@@delimN#1\delimN #2\delimN#3\\{%
\ifx\\#3\\%
\else
\fi
}
\makeatother

It would be nice if this could be implemented as an option to the \printglossary command, e.g. as \printglossary[title=test,surroundnumbers={(}{)}], this way it would allow to have the equations in the list of symbols in brackets, while having the page numbers in the index without the brackets.

Udo Höfel

## Evaluation

2013-11-12

This may be complicated to implement as xindy and makeindex don't write the numberlists in exactly the same format, but I'll leave this feature request open and see if I can find a way to implement it that will work with either indexing application.

Update 2020-02-29

This is now possible with bib2gls and glossaries-extra.sty's record=nameref option and commands in the form \glsxtrcounterlocfmt, such as \glsxtrequationlocfmt. I don't think it's possible to implement this more generally for other indexing options, but I'm going to close this feature request now that there is actually an option to do this.

## 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 Topic ID" field helps to protect against spambots. Please enter the feature request ID (which you can find at the top of this page).

Name: (Optional.)