Hello all,

I have some troubles with escaping sequence in a Lua filter. I am using the function Str() and I simply want to generate the text "\cite" in a Latex output . 
This is the function:
return pandoc.Str([[\cite{]]..latex_citekey.."}")

The output is: \textbackslash cite\{
How do I escape the converter if I want to get an output like "\cite"? I think it has something to do with inline characters, but I do not know how to use them.

Here is the bigger picture: 

I am trying to convert with Pandoc DOCX files to Latex. I use Zotero references and a Better than Bibtex style in docx to create references for pandoc.
The --citedoc --natlib --bibliography=<.bib file> options works with single reference in DOCX 
The entry: [@parker2009computinguncomputablediscrete]
is converted to \cite{parker2009computinguncomputablediscrete}

[@cartwright2006wellorderedscience; @cichy2019deepneuralnetworks; @parker2009computinguncomputablediscrete]

is not converted but kept exactly like that in the Latex file. But the Docx conversion does not work for multiple references or for prefixes or suffixes of citations. But the same pandoc command for a markdown input works fine. I suspect there is some difference on how the docx and markdown converter works.


I am currently almost done with writing a Lua filter and the intention is to generate the correct output

\cite{cartwright2006wellorderedscience, cichy2019deepneuralnetworks, parker2009computinguncomputablediscrete}

Thanks in advance!

Ioan



--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/3e06a866-8075-4031-886e-8c45cc4ab8bdn%40googlegroups.com.