Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possibility to print only certain groups with print-glossary #66

Closed
JKRhb opened this issue Oct 14, 2024 · 2 comments · Fixed by #75
Closed

Possibility to print only certain groups with print-glossary #66

JKRhb opened this issue Oct 14, 2024 · 2 comments · Fixed by #75
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@JKRhb
Copy link
Contributor

JKRhb commented Oct 14, 2024

At the moment, it seems to me as if it is not possible to specify a filter for print-glossary so that only the members of certain groups are being printed. It would be great if that feature could be added to the package, as it would open up a lot of possibilities for customizing the behavior of the glossary creation.

@quachpas quachpas self-assigned this Oct 24, 2024
@quachpas quachpas added the wontfix This will not be worked on label Oct 24, 2024
@quachpas
Copy link
Collaborator

quachpas commented Oct 24, 2024

Hello, you can do that by using print-glossary with only the entries you want to print.

#let entries = (...)
#let grp = "group 1"
#let f = entries.map(e => {e.group == grp})
#print-glossary(f)

would print only the entries with group "group 1"

if your requests concerns adding a specific parameter to print-glossary for filtering groups, that's possible! I'd be willing to accept a PR for that, or I'll do that at some point

@quachpas quachpas added enhancement New feature or request and removed wontfix This will not be worked on labels Oct 24, 2024
@JKRhb
Copy link
Contributor Author

JKRhb commented Oct 24, 2024

if your requests concerns adding a specific parameter to print-glossary for filtering groups, that's possible! I'd be willing to accept a PR for that, or I'll do that at some point

If that became a parameter, it would be very convenient, but the workaround you've posted above should already work very well :) Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants