kprussing / pandoc-acro

Pandoc filter for managing acronyms
BSD 2-Clause "Simplified" License
9 stars 4 forks source link

Feature Request - Separate shorthand acro from documented ones #7

Open acorreya opened 2 years ago

acorreya commented 2 years ago

I was doing my thesis, and it seems there are two categories of acronyms I use; one would be an "official" acronym like AFM - Atomic Force Microscopy, and the other would be a shorthand (like +nt: nanotechnology) that I use to ease typing. A way to filter out the shorthand acronyms from showing up on the List of Acronyms would be great. Thanks for the awesome filter!

acorreya commented 2 years ago

I was reading through the \acro related forums and found the below. Can it be implemented viably?

https://tex.stackexchange.com/a/39981

printonlyused Only list used acronyms ... dua The option dua stands for “don’t use acronyms”. It leads to a redefinition of \ac and \acp, making the full name appear all the time and suppressing all acronyms but the explicity requested by \acf or \acfp.

nolist The option nolist stands for “don’t write the list of acronyms”.

kprussing commented 2 years ago

Hi! Sorry for the delayed response. It's been a very busy year.

If you're aiming for LaTeX output, anything passed to the options keyword should be transferred to the \acsetup call in the generated LaTeX. If you are aiming for any other output, that's a bit trickier because the filter would need to really understand acro's behavior. It's doable, but I'm strapped for time at the moment. A pull request would be welcome if you're up to it.