Latest news 2024-10-15: New blog post: Tales for Our Times Book Launch.

Feature 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 40🔗
Date: 2016-06-07 03:54:49
Status Closed (Not Implemented)
Category glossaries-extra
Summary Enhancement Request for indexonlyfirst

Sign in to subscribe to notifications about this report.

Description

Hello,

Glossary entries are usually used (by \gls) with different times in a document. Thus, the number of "page numbers" following each entry is different (might be too long). The package option "indexonlyfirst=true" can restrict page numbers of each entry to 1. However, I want to restrict them to 3 at most. Could you redesign the package option "indexonlyfirst" so that it accepts an integer number instead of a Boolean value, and it restrict page numbers to e.g. 3 at most by "indexonlyfirst=3?"

MWE

No mwe.tex

Evaluation

I think that would be too complicated to implement. It's not just a matter of counting the number of times \gls has been used. For example, it may be used three times on one page, which leads to just one location. Neither makeindex nor xindy have this capability, and the location lists created by them are difficult for TeX to parse. Since you're using glossaries-extra, it's simpler to use the noindex option in \gls and only index the places that are pertinent. For example, like sample-altmodifier.tex.

Comments

1 comment.

🔗Comment from Meng-Yuan Huang
Date: 2016-06-07 16:12:07

Ok, thank you.

Replying to Comment #24:

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.

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.


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.

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=40