Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

latex acronym gls command is not expanded. #5663

Open
ocehugo opened this issue Jul 26, 2019 · 3 comments

Comments

@ocehugo
Copy link

commented Jul 26, 2019

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

@jgm

This comment has been minimized.

Copy link
Owner

commented Jul 26, 2019

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.

@ocehugo

This comment has been minimized.

Copy link
Author

commented Jul 29, 2019

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

@schrieveslaach

This comment has been minimized.

Copy link
Contributor

commented Jul 30, 2019

I wrote a filter that converts the acronyms.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants
You can’t perform that action at this time.