Pandoc: latex acronym gls command is not expanded.

Created on 26 Jul 2019  路  3Comments  路  Source: jgm/pandoc

@jgm
@schrieveslaach

See the example below when tex->docx via pandoc-2.7.3:

\documentclass{article}
\usepackage[acronym]{glossaries}
\newacronym{PITA}{PITA}{pain in the ass}
\begin{document}
   This is a \gls{PITA}. The second time is also \gls{PITA}. The plural \glspl{PITA} also is.
\end{document}

I'm receiving

This is a PITA. The second time is also PITA. The plural PITAs also is.

or

This is a [PITA]{acronym-label="PITA" acronym-form="singular+short"}.
The second time is also [PITA]{acronym-label="PITA"
acronym-form="singular+short"}. The plural [PITAs]{acronym-label="PITA"
acronym-form="plural+short"} also is.

in txt format.

I'm expecting the typical latex->pdf behaviour of expanding the first entry. Wasn't this added in PR#3589 !?

LaTeX good first issue reader

Most helpful comment

I wrote a filter that converts the acronyms.

All 3 comments

The PR advertised "rudimentary" support; I take it that \newacronym is not supported.
If you want to avoid [PITA]{acronym-label=..., you can disable the bracketed_spans extension in your markdown output.

ok!
So you saying there is nowhere to run? Or there is a quick latex hack to make pandoc recognize the bit and expand the entries?
thanks

I wrote a filter that converts the acronyms.

Was this page helpful?
0 / 5 - 0 ratings