Closed jmigual closed 3 weeks ago
you can write this:
#import "@preview/glossarium:0.4.1": *
#show: make-glossary
#let acrlong(ref) = {
gls(ref, long: true)
}
We define the #acrlong("gosp") as the tuple ...
#print-glossary(
(
(key: "gosp", short: "GOSP", long: "generic operation scheduling problem"),
)
)
Let me know if that works for you.
Hey! Thanks for your reply, unfortunately, this doesn't work because this still inserts the "(GOSP)" at the end of the long command.
In the glossaries package of LaTeX the "acrlong" command always displays the long version without the short and it doesn't change the "first appearance" flag. So, if you type this in LaTeX:
\acrlong{gosp}
\gls{gosp}
You would get:
generic operation scheduling problem
generic operation scheduling problem (GOSP)
This is the behavior I'm trying to recreate.
I think I can fix it myself and make a PR with the change
I believe you could use the gls-long
function to achieve what you want to do but it it only available on the master branch for now
Yes! That's exactly what I was looking for. I guess I'll have to wait 😊
@jmigual You can now use it with 0.4.2
So, I usually like to write the long form only of a term in figures and places before it's "officially" introduced in the main text. E.g.,
This should generate the text:
TLDR: Can we have something similar to the
\acrlong
command in LaTeX glossaries?