Feature Tracker RSS feed

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

Return to Search Results

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
}
\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

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

Name (optional):

Are you human? Please confirm the feature request ID (which can be found at the top of this page) or login if you have an account. All guest comments have to be manually checked before they appear on the page. There are too many bots trying to spam the site to allow unauthenticated users to post without verification.

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/featuretracker.php?key=17

Return to Search Results