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

Add functionality similar to \acused in Latex #57

Open
pohlm01 opened this issue Sep 22, 2024 · 1 comment
Open

Add functionality similar to \acused in Latex #57

pohlm01 opened this issue Sep 22, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers
Milestone

Comments

@pohlm01
Copy link

pohlm01 commented Sep 22, 2024

In my text, I use a few abbreviations that I assume the reader to know already, but nevertheless, want to print them in the glossary. Therefore, it would be great to have an option to mark an entry as used even before it was actually used for the first time, such that in the text, only the short term is written.

I could imagine a flag like short-only in the print-glossary, e.g.

(key: "http", short: "HTTP", long: "Hypertext Transfer Protocol", short-only: true),

but I don't have a strong opinion on that.

@quachpas
Copy link
Collaborator

quachpas commented Oct 1, 2024

Hello @pohlm01,
I am in the process of adding more user control for first appeareance. For now, you can use

#gls(key, long: false)

For the first appeareance. It should work, and further calls to the same key won't print the long form anymore.

Note to self: land this with themes switching

@quachpas quachpas added enhancement New feature or request good first issue Good for newcomers labels Oct 1, 2024
@quachpas quachpas added this to the 0.5.0 milestone Oct 1, 2024
@quachpas quachpas self-assigned this Oct 6, 2024
@quachpas quachpas removed this from the 0.5.0 milestone Oct 8, 2024
@quachpas quachpas added this to the 0.6.0 milestone Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants