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?
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,
inside a YAML file named
abbreviations.yaml
and included it in thedefaults.yaml
as follows,However, when I type
+afaik
in my markdown file and export it to PDF through Pandoc, it results inafaik!(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 theacro
package?