[Tex/LaTex] Pandoc – Abbreviations in Latex

acronymspandoc

I would like to create a list of abbreviations with pandoc. I found out that the standard markdown convert doesn't support abbreviations. But then I found markdown_phpextra which supports abbreviations. But I can't make it work for me.

I am using an abbreviation this way:

*[e.g.]: for example

My pandoc command is this:

pandoc --standalone --from=markdown_phpextra --output=example.pdf example.md

But pandoc doesn't even seem to convert abbreviations. Any suggestion how to solve my problem or a workaround for this?

Best Answer

According to the Pandoc Manual,

Note that the pandoc document model does not support abbreviations, so if this extension is enabled, abbreviation keys are simply skipped (as opposed to being parsed as paragraphs).

As @wilx suggested, it's better to bring this up as an issue on Pandoc's Github page.

However, you may try MultiMarkdown's implementation of abbreviations which uses the acronym package.

The following markdown source,

The HTML specification
is maintained by the W3C.

*[HTML]: Hyper Text Markup Language
*[W3C]:  World Wide Web Consortium

provides the resultant LaTeX code:

\newacro{w3cworldwidewebconsortium}[W3C]{World Wide Web Consortium}
\newacro{htmlhypertextmarkuplanguage}[HTML]{Hyper Text Markup Language}
The \ac{htmlhypertextmarkuplanguage} specification
is maintained by the \ac{w3cworldwidewebconsortium}.