kprussing / pandoc-acro

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

Not generating the acronyms when exporting Markdown files to PDF using pandoc #12

Open TheFermi0n opened 1 year ago

TheFermi0n commented 1 year ago

Dear kprussing,

I am currently facing an issue with the pandoc-acro filter when exporting Markdown files to PDF using Pandoc.

I have added an acronym as follows,

acronyms:
  afaik:
    short: AFAIK
    long: as far as I know

inside a YAML file named abbreviations.yaml and included it in the defaults.yaml as follows,

metadata-files:
  - abbreviations.yaml

However, when I type +afaik in my markdown file and export it to PDF through Pandoc, it results in afaik!(afaik!) in the resulting document.

To confirm the issue, I exported it to LaTeX and noticed that the filter only added the \ac{afaik} command within the LaTeX file's body. It seems that the necessary LaTeX statements, such as \DeclareAcronym and \usepackage{acro} are not being generated.

While I understand that adding \usepackage{acro} to my default LaTeX template might help, I initially expected the filter to create the \DeclareAcronym statements automatically. Can you offer guidance, or provide any other suggestions to address this issue?

Any assistance is greatly appreciated. Thank you very much

P.S. Is there a way to use the acronym package instead of the acro package?