Skip to content
Discussion options

You must be logged in to vote

PDF metadata can't contain LaTeX commands, so when we encounter a RawInline "latex", we strip it out.
https://github.com/jgm/pandoc/blob/main/src/Text/Pandoc/Writers/LaTeX.hs#L187-L188
stringify is what is getting rid of the RawInline "latex" element.
https://github.com/jgm/pandoc/blob/main/src/Text/Pandoc/Shared.hs#L364-L375

Now, you might say, "A" is not a command, it's just regular text. But it's still in a RawInline "latex" element. Perhaps stringify could be taught to make some fine distinctions, but it's the kind of thing that could have unexpected consequences.

I'd suggest using a different approach, e.g. a Lua filter and a span with a class.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@hendriktews
Comment options

Answer selected by hendriktews
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants