Feature Tracker 
ID | 17🔗 |
---|---|
Date: | 2013-10-05 03:42:36 |
Status | Closed (Implemented) Sign in if you want to like this report. |
Category | glossaries |
Summary | Improve counter=equation |
Sign in to subscribe to notifications about this report.
Description
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\\% \leftsideofnumber\@gls@numberlink{#1}\rightsideofnumber% \else \leftsideofnumber\@gls@numberlink{#1}\rightsideofnumber\delimN\leftsideofnumber\@gls@numberlink{#2}\rightsideofnumber% \fi } \makeatotherIt 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
MWE
No mwe.tex
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.
Comments
0 comments.
Add Comment
Page permalink: https://www.dickimaw-books.com/featuretracker.php?key=17