From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/28533 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ioan Muntean Newsgroups: gmane.text.pandoc Subject: Escape sequence in LUA filters, problems multiple citations conversion of docx to Latex Date: Fri, 4 Jun 2021 10:01:53 -0700 (PDT) Message-ID: <3e06a866-8075-4031-886e-8c45cc4ab8bdn@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_228_885601684.1622826113331" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31813"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDFZBUNSQQLBBAVZ5GCQMGQERDWDPOY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Jun 04 19:01:57 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oo1-f58.google.com ([209.85.161.58]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lpDCm-00081Q-Ot for gtp-pandoc-discuss@m.gmane-mx.org; Fri, 04 Jun 2021 19:01:56 +0200 Original-Received: by mail-oo1-f58.google.com with SMTP id c25-20020a4ad7990000b029020e67cc1879sf5923352oou.18 for ; Fri, 04 Jun 2021 10:01:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:message-id:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=F1IsvgErFigLtLhXMB0fbTToRryGNZZMX46B5Wvn5OQ=; b=et8Saxh2wgOcoXtp1ulJnjhrs5YAXtY9vzFp7pndPvojGZqBLTBlT24J5WfzPCCUO0 6HlW8VprGGmjhFzMwe+nFOIj5QxPP2AVI2OY/tRd37VHKPlEd7P0uLgVGuoUi0SC8BgX qtpJkeCa3dSDM23uOJuUWpS1I9jounFkoMIUzTgZzP/lXEz1m8mw70NrBazpu720feLH Fm+pgvHC4uVfGh643aD7P7LcyjlDd1YlPd067SUX1VLPdoqMd/atvo+L1nwbneXj9gLJ Bmbt5FpNeZCgldePlaZt6YEFgSTxqnUBnv8+/TmtLYzjUkejzBAviimJG0FWlkuPPkV2 S5Kg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:message-id:subject:mime-version:x-original-sender :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=F1IsvgErFigLtLhXMB0fbTToRryGNZZMX46B5Wvn5OQ=; b=op3vyv5yaZhEeLu5RpKioPaTmYvt+PmcTgkEKpivCL4KYPPNqPVTHx3aHyNM5wpPPU 5U8L3N57G0ppn5BnzoRSpgwO2PpM95lrOaY4K3NFFoE9W28CZA1/tCcAh2dVneSuq8+K SuJ78kY+F9gdVNxwTGKBlGW27DlNfm73oG3w/dsvX065zBtoewomDK6a6xXuZIlf3qn3 YsC+/BfXNGZAj+I/OVdQSxHTReyDFHMW57jjv5Cc0Y8XHXDxuaZ0QvC/cdB5RqvCT6pa QvAxDpAOz5TtRUPZgmN2qxvXK6g8o2zwamc1evaGHIyRgtAJKxqrCb0u6yPIh7eoLQHa uKfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:date:from:to:message-id:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=F1IsvgErFigLtLhXMB0fbTToRryGNZZMX46B5Wvn5OQ=; b=IBtGPWy8RpTwwoBR6rPAK8AS9C7QG7JtuJCLUImqk/qFFRubnpyEL6U3o1K503Bi5+ OtIru/VLr3Fav4WYmEzj2IjEGPes04iuUo1lt/Yh+gsrlXHm1tKTNmttIyqUEB9cdQac 9kmJW6AzlylsXNevy8O2NZ1gPz+ZvBaA/WojlGfD6ZduXM9fv3OGoVskWW9jhVGBHIAa kTzqQIMeFH+Ud53Sd4RBrDrZ/y+nK3vTWlJXB7B1y4vW5SVAvuOGrehlVnF5yFAILZwU JQG/d5BoiFJ9lMKW9nEhrbW7+O66fiUFjb5oBER7npEDIgADhZXva9atMrLuvTJ0mEUl fCsA== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM533lDpnhjUpt0nhKhhAw+mTw9obP4cgIW7EGXcJGqulxrpja/qUY P4lLC/Or3ix0v1ZyvowDHsA= X-Google-Smtp-Source: ABdhPJwmFWf1fbfVlrrxzGuSB0csxkoVQ+6ym974U2syBTIoKfJPobYqMWvlOcxB6vwo8XgD/Ybt/A== X-Received: by 2002:a05:6808:488:: with SMTP id z8mr11782119oid.135.1622826115788; Fri, 04 Jun 2021 10:01:55 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6820:619:: with SMTP id e25ls645021oow.8.gmail; Fri, 04 Jun 2021 10:01:54 -0700 (PDT) X-Received: by 2002:a4a:9451:: with SMTP id j17mr4318235ooi.93.1622826114072; Fri, 04 Jun 2021 10:01:54 -0700 (PDT) X-Original-Sender: imuntean-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:28533 Archived-At: ------=_Part_228_885601684.1622826113331 Content-Type: multipart/alternative; boundary="----=_Part_229_282576120.1622826113331" ------=_Part_229_282576120.1622826113331 Content-Type: text/plain; charset="UTF-8" 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@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. ------=_Part_229_282576120.1622826113331 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
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 i= s 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 cr= eate references for pandoc.
The --citedoc --natlib --bibliogr= aphy=3D<.bib file> options works with single reference in DOCX <= /div>
The entry: [@parker2009computinguncomputablediscrete]
i= s converted to \cite{parker2009computinguncomputablediscrete}

[@cartwright2006wellorderedscience; @cichy2019deepneuralnet= works; @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 the= re is some difference on how the docx and markdown converter works.

<= br>

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

\cite{cartwright2006wellorder= edscience, cichy2019deepneuralnetworks, parker2009computinguncomputabledisc= rete}

Thanks in advance!

Ioan


=

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-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.
------=_Part_229_282576120.1622826113331-- ------=_Part_228_885601684.1622826113331--