Hello, I added a new style for the list of abbreviation of the abbr package but the maintainer is making it quite difficult to contribute so I will post it here hoping it can be helpful or that the maintainer themselves will find it.
The function is a rewritten #abbr.list which shows the items sorted alphabetically and divided by initial letter.
Hey!
maintainer of the abbr package here, just saw this post. Thank you for your feedback! Could you elaborate on the ‘making it quite difficult’? I’m trying to be open and reachable, would be happy to get some pointers on how I could make contributing easier ![]()
Would be happy to get this upstream as an option if you could explain the use-case, or maybe I could find a way to let the user style the listing themselves without having to shoehorn it into the package.
Hello, thank you for the reply and forgive me for my provocation. Before writing this post I tried creating an account on sourcehut, since I never used it before but after multiple attempts I never received the confirmation email. IRC is a bit inconvenient due to it’s nature and the emails I tried to send always got rejected due to not being plain text only (although I selected this option in Thunderbird).
The usecase is simply a matter of aesthetic for the list, instead of having all the entries together I prefer having them visually separated by their initial. I will post a screenshot of what I mean as soon as I get to my PC
Hello @slowjo, sorry for the long wait.
I attached a screenshot of the list of the abbreviation created with my modified script, let me know if you think that it could be of interest.
Moreover, I realized after posting my first message that the script was displaying the proper list but links were not working properly, I have fixed it now and can upload the new version
hey thanks for the update, and for including a picture of the updated listing!
I’m sorry to hear about the difficulties of sending plaintext emails, even with thunderbird (in case you may ever want to try again, there’s https://useplaintext.email that tries to guide through this).
I like your listing style, I’m just unsure how it fits into the whole package, regarding e.g. the alternative definitions which can be registered (see the TGV example in abbr – Typst Universe).
I believe the best way to solve this is to let the user provide a function that styles the listing, and then include a few example styles in the package, of which yours could be one. I’ll have to think about how this could work.
Hi, thanks for the reply. I agree that my style is not very well suited for the alternative definition and I really like the idea of letting the user pass a style function. Another idea I had (but I don’t know if it is better or even doable) is to let the user import something like raw-list which is an array of dictionaries which they can then use as they want. Something like
(
("short": "PIP",
"long": "Picture in Picture",
"alternative": "..."),
("short": "...",
"long": "...",),
(...),
)
Edit: basically I think exporting lst you are using in the list function is enough to do anything the user wants. Maybe it’s not the most user friendly way possible but I think it would be good enough
