jgm/pandoc

latex acronym gls command is not expanded.

Open

#5,663 opened on Jul 26, 2019

View on GitHub
 (3 comments) (1 reaction) (0 assignees)Haskell (44,133 stars) (3,850 forks)batch import
format:LaTeXgood first issuereader

Description

@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 !?

Contributor guide