From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/28428 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ioan Muntean Newsgroups: gmane.text.pandoc Subject: Re: generate bibliography from citations keys in docx? Date: Sun, 23 May 2021 20:02:25 -0700 (PDT) Message-ID: References: <4d035407-d692-4ada-ac1a-b2668c8c80bc@googlegroups.com> <30f53079-9e7a-2046-f458-b23f9736ac48@reagle.org> <7e7dfd7e-1bf1-4557-a5f0-e686d48e2438@googlegroups.com> <23e7c785-0f67-4b15-92b6-5c05cf2be2f7@googlegroups.com> <371930ea-0898-4ab1-a3dc-ad0af946fd30@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_242_478486557.1621825345635" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37085"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDFZBUNSQQLBBQVOVSCQMGQEHFUAU5Q-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon May 24 05:02:30 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oo1-f55.google.com ([209.85.161.55]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1ll0rN-0009Tx-RB for gtp-pandoc-discuss@m.gmane-mx.org; Mon, 24 May 2021 05:02:29 +0200 Original-Received: by mail-oo1-f55.google.com with SMTP id o1-20020a4adb610000b029020660e40b70sf17072226ood.22 for ; Sun, 23 May 2021 20:02:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:message-id:in-reply-to:references:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=T0p7k+S8iG7gggeSWY5GxpdHYL7hnnVB68rvlmoR374=; b=Tyv8hoqfyC9/y81pICldHa97Ha0saDFsF7z0951+cpUaR35Vev9IcJK1/lxN932IhB 6gN+9/D4UlcBUvf5OOipN4vn6J7mhqF2u+dYLzhGiVgd0L4ugs1WCXfAX+AGz9bdXv8N SlRsPXLXIbGEZGIOcZyX9EFmUOWipu1G7SGN4HeSjZvRUTG1lxGHW3Tr7x9+gzjZiSJZ dCWu2v6R7MBbqQVnk7OdPTe1/uhJd6S53Y5VrwiUxH3Mn+2EPOQ5rRm7wmd+jSV1sPH1 ckXxQHsEnUp7ta9RV9EJ/m7LTAIojnMBiqhIgooHYzW/DP+3hW9cxp6fKVbLirPjJdZW ah7Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=T0p7k+S8iG7gggeSWY5GxpdHYL7hnnVB68rvlmoR374=; b=n8LmA5DUuHfNJG+2YrCfVb7w3P7ope0ZH2JK+swfokPN+Kt9pkLZNHN2ZY+1G01hF5 OOIOP0Xt8D47hOGRtKSWIGTTtfq7fzf1MSi2cJCWYYmUfQQ7xpsA9uBRbXf0HJGWJQJC 5aI175WEB3TcNspxnpo/Wua6SahFl6VgdLN/pM2tYReI+KeNjyMuZk4uaFld+e5cexQW uD7NLkBPSzuvJeZDxoyyrG47aRMF5547GVuGenhu5KOirInvabV2lDSD8xUvH37MtYaj A/k6s2kak0x591xmUEIIZpVykS5i0nRgeA8Ivh4DLkbof+YScfzDn/k7CZOCxnGOf80u JMBw== 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:in-reply-to :references: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=T0p7k+S8iG7gggeSWY5GxpdHYL7hnnVB68rvlmoR374=; b=Y8g0X6TU1IoLjWJmIIc0eGt1latYwneoZEp/83UhO7olBJ0JFQcNw21e3fx2oGJ0T/ uHpHc5DleEYwPjHRLPtztRiTEyoVBDoksTheOtAgcG63JYHsiPTXa5pe55eVTZSk64c1 KSvffDRf+iFQT4YuHTygYgpYwva4Orbf9aF+4Bxpw1Tf5zP5d95ViA6E1TChh8pOE6jL D4t8TS8EK6Ya5tvPLPfC+6CLXhsAB1X4a65n9Rz+3UOS8MLpG6pcFQAzasypJzBdtL7t VPw+d7SJM8tl8gIHItTY4RdEPa5N+fxFm/yz8hwpZ+oVgWJ2exoy2hnVHN/EvAtV5YrS HB2A== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM532exGhGZ8ze1MZ5xrTlEDchFYqpnEoV4q51N8VGzwSSdqw8SSWl w3EESjd3V4ijDTJ8GCU8ytQ= X-Google-Smtp-Source: ABdhPJx0lHNYjBFIhiMRc3hr/VpZMwUTC8RzgJoZVIjduH472u50mNO5Mwnrlnr60gzoVe8O92zfdA== X-Received: by 2002:a9d:dc2:: with SMTP id 60mr16564252ots.160.1621825348831; Sun, 23 May 2021 20:02:28 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6830:1d6e:: with SMTP id l14ls3842032oti.10.gmail; Sun, 23 May 2021 20:02:26 -0700 (PDT) X-Received: by 2002:a9d:80f:: with SMTP id 15mr3233423oty.168.1621825346343; Sun, 23 May 2021 20:02:26 -0700 (PDT) In-Reply-To: <371930ea-0898-4ab1-a3dc-ad0af946fd30-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 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:28428 Archived-At: ------=_Part_242_478486557.1621825345635 Content-Type: multipart/alternative; boundary="----=_Part_243_561552295.1621825345635" ------=_Part_243_561552295.1621825345635 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable John and Andrzej Thanks for your solution. I managed to replicate it and it works! John, I= =20 have exactly the same idea as Andrzej, but in my word document generated by= =20 Better Bibtex citekeys I have multiple citation in one reference: [@abi2021measurementpositivemuon;=20 @lhcbcollaboration2021testleptonuniversality] I would like to do the same as above, but generate a \cite field in Latex= =20 like: \cite {abi2021measurementpositivemuon,=20 lhcbcollaboration2021testleptonuniversality}. Of course, when there is a=20 page reference the lua filter needs to do some extra work. I may need to do= =20 a loop inside the field and search /skip the ";" sign Thanks guys for your amazing ideas! Ioan Muntean On Friday, March 27, 2020 at 1:34:11 AM UTC-4 Andrzej Wodecki wrote: > Many thanks, works perfectly :) > > You saved me hours of work... > > Have a nice day! > > Andy > > > W dniu czwartek, 26 marca 2020 17:36:03 UTC+1 u=C5=BCytkownik John MacFar= lane=20 > napisa=C5=82: > >> >> Whoops, that was a big oversight! Try this one:=20 >> >> function Str(el)=20 >> local citekey =3D el.text:match("[[]@(%w+)[]]")=20 >> if citekey then=20 >> local citation =3D pandoc.Citation(citekey, 'NormalCitation')=20 >> return pandoc.Cite({pandoc.Str(citekey)},=20 >> {citation})=20 >> end=20 >> end=20 >> >> >> >> Andrzej Wodecki writes:=20 >> >> > Dear John,=20 >> >=20 >> > many many thanks, You helped me a lot. I *almost* there - and as alway= s=20 >> *almost=20 >> > *makes a difference...=20 >> >=20 >> > At the moment, having=20 >> >=20 >> > *From [@andy2020] we can see that...*=20 >> >=20 >> > in in.docx, and Your snippet in cite.lua, when I run:=20 >> > pandoc in.docx --lua-filter=3Dcite.lua --filter pandoc-citeproc=20 >> > --bibliography mylibrary.bib -o out.docx=20 >> >=20 >> > I get out.docx as:=20 >> >=20 >> > *(Kaelbling, Littman, and Moore 1996) Kaelbling, Leslie Pack, Michael= =20 >> L.=20 >> > Littman, and Andrew W. Moore. 1996. =E2=80=9CReinforcement Learning: A= Survey.=E2=80=9D=20 >> > Journal of Artificial Intelligence Research 4: 237=E2=80=9385.*=20 >> >=20 >> > So, the only thing left is citation [@andy2020], but all other texts= =20 >> are=20 >> > gone...=20 >> >=20 >> > Sorry for bothering You, but *what should I do to just replace=20 >> [@andy2020]=20 >> > with reference and create Bibliography at the end, but having all othe= r=20 >> > texts intact?*=20 >> >=20 >> > Many thanks for the support,=20 >> >=20 >> > Andy=20 >> >=20 >> > PS. I spent some time on pandoc-lua page, but didn't make it...=20 >> >=20 >> >=20 >> > W dniu =C5=9Broda, 25 marca 2020 21:21:51 UTC+1 u=C5=BCytkownik John M= acFarlane=20 >> > napisa=C5=82:=20 >> >>=20 >> >>=20 >> >> function Str(el)=20 >> >> local citekey =3D el.text:match("[[]@(%w+)[]]")=20 >> >> local citation =3D pandoc.Citation(citekey, 'NormalCitation')=20 >> >> return pandoc.Cite({pandoc.Str(citekey)},=20 >> >> {citation})=20 >> >> end=20 >> >>=20 >> >> Andrzej Wodecki > writes:=20 >> >>=20 >> >> > DearJohn,=20 >> >> >=20 >> >> > many thanks. I've tried, and with:=20 >> >> >=20 >> >> > pandoc in.docx --filter pandoc-citeproc --bibliography mylibrary.bi= b=20 >> -t=20 >> >> > native=20 >> >> >=20 >> >> > I get=20 >> >> >=20 >> >> > [Para [Str "From",Space,Str "[@andy2020]",Space,Str ...=20 >> >> >=20 >> >> > as you suggested. I've looked at:=20 >> https://pandoc.org/lua-filters.html=20 >> >> > and successfully run the first example "smallcaps.lua". But here I'= m=20 >> >> stuck:=20 >> >> > I don't know how to write the filter for=20 >> >> > Str "[@ > Cite "[=20 >> >> > replacement.=20 >> >> >=20 >> >> > If its not a problem, I would appreciate any tip/help, or just a=20 >> >> snippet,=20 >> >> >=20 >> >> > many thanks in advance,=20 >> >> >=20 >> >> > Andy=20 >> >> >=20 >> >> >=20 >> >> > W dniu =C5=9Broda, 25 marca 2020 17:36:06 UTC+1 u=C5=BCytkownik Joh= n=20 >> MacFarlane=20 >> >> > napisa=C5=82:=20 >> >> >>=20 >> >> >>=20 >> >> >> You could use a lua filter.=20 >> >> >>=20 >> >> >> If you do `pandoc your.docx -t native` you'll see how pandoc=20 >> >> >> parses these faux markdown citations.=20 >> >> >>=20 >> >> >> If they appear as=20 >> >> >>=20 >> >> >> Str "[@jones]"=20 >> >> >>=20 >> >> >> then you could use a filter to replace any Str elements=20 >> >> >> fitting this pattern with a Cite element. I can't explain=20 >> >> >> the whole thing here -- if you want to pursue this, see=20 >> >> >> the lua filter docs on the website.=20 >> >> >>=20 >> >> >> Andrzej Wodecki > writes:=20 >> >> >>=20 >> >> >> > The reason I have citation keys in MS Word is a consequence of m= y=20 >> >> >> original=20 >> >> >> > workflow:=20 >> >> >> > Scrivener > markdown > pandoc-citeproc > MS Word, BTW described= =20 >> here:=20 >> >> >> >=20 >> >> >>=20 >> >>=20 >> https://medium.com/@andrzej.wodecki/scrivener-for-scientific-writing-set= up-af5edf4482b8=20 >> >> >> >=20 >> >> >> > But at the final stage of my writings I escaped from Scrivener= =20 >> >> (export=20 >> >> >> to=20 >> >> >> > MS Word), with only citation keys left in my doc.=20 >> >> >> > If only I start from scratch in MS Word that wouldn't be a=20 >> problem,=20 >> >> >> but...=20 >> >> >> >=20 >> >> >> > My temporary workaround (very primitive, but works) is:=20 >> >> >> > 1. docx > pandoc > markdown=20 >> >> >> > 2. markdown: replace all \@ by @=20 >> >> >> > 3. markdown > pandoc-citeproc > docx=20 >> >> >> >=20 >> >> >> > Anyway, if you have any ideas for anything smarter would be nice= =20 >> to=20 >> >> hear=20 >> >> >> :)=20 >> >> >> >=20 >> >> >> > Yours,=20 >> >> >> >=20 >> >> >> > Andy=20 >> >> >> >=20 >> >> >> >=20 >> >> >> > W dniu =C5=9Broda, 25 marca 2020 14:11:06 UTC+1 u=C5=BCytkownik = Joseph=20 >> napisa=C5=82:=20 >> >> >> >>=20 >> >> >> >>=20 >> >> >> >> On 3/25/20 8:01 AM, Andrzej Wodecki wrote:=20 >> >> >> >> > Second trial =20 >> >> >> >> > with in.docx:=20 >> >> >> >>=20 >> >> >> >> Pandoc doesn't expect to find markdown (including pandoc's=20 >> citation=20 >> >> >> >> syntax) in a Word file. That only works in markdown files (and= =20 >> >> perhaps=20 >> >> >> org=20 >> >> >> >> files). So when it sees a citation in word->markdown, it takes= =20 >> it=20 >> >> >> >> literally, and escapes the brackets so it remains so in the=20 >> >> markdown.=20 >> >> >> >>=20 >> >> >> >> Perhaps someone else can recommend a configuration that won't= =20 >> escape=20 >> >> >> >> citation syntax, allowing you to go to markdown, and then from= =20 >> that=20 >> >> >> back to=20 >> >> >> >> Word.=20 >> >> >> >>=20 >> >> >> >> This seems convoluted though. If you're using Zotero, why not= =20 >> use=20 >> >> the=20 >> >> >> Word=20 >> >> >> >> plugin for that? Or, why not stay in markdown as your source=20 >> >> document?=20 >> >> >> >>=20 >> >> >> >>=20 >> >> >> >=20 >> >> >> > --=20 >> >> >> > You received this message because you are subscribed to the=20 >> Google=20 >> >> >> Groups "pandoc-discuss" group.=20 >> >> >> > To unsubscribe from this group and stop receiving emails from it= ,=20 >> >> send=20 >> >> >> an email to pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org .=20 >> >> >> > To view this discussion on the web visit=20 >> >> >>=20 >> >>=20 >> https://groups.google.com/d/msgid/pandoc-discuss/7e7dfd7e-1bf1-4557-a5f0= -e686d48e2438%40googlegroups.com.=20 >> >> >>=20 >> >> >>=20 >> >> >>=20 >> >> >=20 >> >> > --=20 >> >> > You received this message because you are subscribed to the Google= =20 >> >> Groups "pandoc-discuss" group.=20 >> >> > To unsubscribe from this group and stop receiving emails from it,= =20 >> send=20 >> >> an email to pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org .=20 >> >> > To view this discussion on the web visit=20 >> >>=20 >> https://groups.google.com/d/msgid/pandoc-discuss/db7c031a-9b53-42e5-b073= -f70fa0c16de1%40googlegroups.com.=20 >> >> >>=20 >> >>=20 >> >=20 >> > --=20 >> > You received this message because you are subscribed to the Google=20 >> Groups "pandoc-discuss" group.=20 >> > > To unsubscribe from this group and stop receiving emails from it, send= =20 >> an email to pandoc-...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org=20 >> > > To view this discussion on the web visit=20 >> https://groups.google.com/d/msgid/pandoc-discuss/23e7c785-0f67-4b15-92b6= -5c05cf2be2f7%40googlegroups.com.=20 >> >> > --=20 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 e= mail 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/bc948bae-0b65-4b2e-8cac-bea115c19134n%40googlegroups.com. ------=_Part_243_561552295.1621825345635 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable John and Andrzej
Thanks for your solution. I managed  to replicate= it and it works! John, I have exactly the same idea as Andrzej, but in my = word document generated by Better Bibtex citekeys I have multiple citation = in one reference:
[@abi2021measurementpositivemuon; @lhcbcollaboration2021testleptonuniversality]
 I would like = to do the same as above, but generate a \cite field in Latex like:
\cite {abi2021measurementpositivemuon, lhcbcollaboration2021testleptonuni= versality}. Of course, when there is a page reference the lua filter needs = to do some extra work. I may need to do a loop inside the field and search = /skip the ";" sign
Thanks guys for your amazing ideas!
= Ioan Muntean

On Friday, March 27, 2020 at 1:34:11 AM UTC-4 Andrz= ej Wodecki wrote:
Many thanks, works perfectly :)

Yo= u saved me hours of work...

Have a nice day!
=

Andy


W dniu cz= wartek, 26 marca 2020 17:36:03 UTC+1 u=C5=BCytkownik John MacFarlane napisa= =C5=82:

Whoops, that was a big oversight! =C2=A0Try this one:

function Str(el)
=C2=A0 local citekey =3D el.text:match("[[]@(%w+)[]]")
=C2=A0 if citekey then
=C2=A0 =C2=A0 local citation =3D pandoc.Citation(citekey, 'NormalCi= tation')
=C2=A0 =C2=A0 return pandoc.Cite({pandoc.Str(citekey)},
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0{citation})
=C2=A0 end
end



Andrzej Wodecki <andrzej...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wr= ites:

> Dear John,=20
>
> many many thanks, You helped me a lot. I *almost* there - and as a= lways *almost=20
> *makes a difference...
>
> At the moment, having=20
>
> *From [@andy2020] we can see that...*
>
> in in.docx, and Your snippet in cite.lua, when I run:
> pandoc in.docx --lua-filter=3Dcite.lua --filter pandoc-citeproc=20
> --bibliography mylibrary.bib -o out.docx
>
> I get out.docx as:
>
> *(Kaelbling, Littman, and Moore 1996) Kaelbling, Leslie Pack, Mich= ael L.=20
> Littman, and Andrew W. Moore. 1996. =E2=80=9CReinforcement Learnin= g: A Survey.=E2=80=9D=20
> Journal of Artificial Intelligence Research 4: 237=E2=80=9385.*
>
> So, the only thing left is citation [@andy2020], but all other tex= ts are=20
> gone...
>
> Sorry for bothering You, but *what should I do to just replace [@a= ndy2020]=20
> with reference and create Bibliography at the end, but having all = other=20
> texts intact?*
>
> Many thanks for the support,=20
>
> Andy
>
> PS. I spent some time on pandoc-lua page, but didn't make it..= .
>
>
> W dniu =C5=9Broda, 25 marca 2020 21:21:51 UTC+1 u=C5=BCytkownik Jo= hn MacFarlane=20
> napisa=C5=82:
>>
>>
>> function Str(el)=20
>> =C2=A0 local citekey =3D el.text:match("[[]@(%w+)[]]"= ;)=20
>> =C2=A0 local citation =3D pandoc.Citation(citekey, 'Normal= Citation')=20
>> =C2=A0 return pandoc.Cite({pandoc.Str(citekey)},=20
>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0{citation})=20
>> end=20
>>
>> Andrzej Wodecki <andrzej...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <javascript:>> writes:=20
>>
>> > DearJohn,=20
>> >=20
>> > many thanks. I've tried, and with:=20
>> >=20
>> > pandoc in.docx --filter pandoc-citeproc --bibliography my= library.bib -t=20
>> > native=20
>> >=20
>> > I get=20
>> >=20
>> > [Para [Str "From",Space,Str "[@andy2020]&q= uot;,Space,Str ...=20
>> >=20
>> > as you suggested. I've looked at:
https://pandoc.org/lua-filters.html= =20
>> > and successfully run the first example "smallcaps.lu= a". But here I'm=20
>> stuck:=20
>> > I don't know how to write the filter for=20
>> > Str "[@ > Cite "[=20
>> > replacement.=20
>> >=20
>> > If its not a problem, I would appreciate any tip/help, or= just a=20
>> snippet,=20
>> >=20
>> > many thanks in advance,=20
>> >=20
>> > Andy=20
>> >=20
>> >=20
>> > W dniu =C5=9Broda, 25 marca 2020 17:36:06 UTC+1 u=C5=BCyt= kownik John MacFarlane=20
>> > napisa=C5=82:=20
>> >>=20
>> >>=20
>> >> You could use a lua filter.=20
>> >>=20
>> >> If you do `pandoc your.docx -t native` you'll see= how pandoc=20
>> >> parses these faux markdown citations.=20
>> >>=20
>> >> If they appear as=20
>> >>=20
>> >> Str "[@jones]"=20
>> >>=20
>> >> then you could use a filter to replace any Str elemen= ts=20
>> >> fitting this pattern with a Cite element. =C2=A0I can= 't explain=20
>> >> the whole thing here -- if you want to pursue this, s= ee=20
>> >> the lua filter docs on the website.=20
>> >>=20
>> >> Andrzej Wodecki <andrzej...@gm= ail.com <javascript:>> writes:=20
>> >>=20
>> >> > The reason I have citation keys in MS Word is a = consequence of my=20
>> >> original=20
>> >> > workflow:=20
>> >> > Scrivener > markdown > pandoc-citeproc >= ; MS Word, BTW described here:=20
>> >> >=20
>> >>=20
>> https://medium.com/@andrzej.wodecki/scrivener-for-scien= tific-writing-setup-af5edf4482b8=20
>> >> >=20
>> >> > But at the final stage of my writings I escaped = from Scrivener=20
>> (export=20
>> >> to=20
>> >> > MS Word), with only citation keys left in my doc= .=20
>> >> > If only I start from scratch in MS Word that wou= ldn't be a problem,=20
>> >> but...=20
>> >> >=20
>> >> > My temporary workaround (very primitive, but wor= ks) is:=20
>> >> > 1. docx > pandoc > markdown=20
>> >> > 2. markdown: replace all \@ by @=20
>> >> > 3. markdown > pandoc-citeproc > docx=20
>> >> >=20
>> >> > Anyway, if you have any ideas for anything smart= er would be nice to=20
>> hear=20
>> >> :)=20
>> >> >=20
>> >> > Yours,=20
>> >> >=20
>> >> > Andy=20
>> >> >=20
>> >> >=20
>> >> > W dniu =C5=9Broda, 25 marca 2020 14:11:06 UTC+1 = u=C5=BCytkownik Joseph napisa=C5=82:=20
>> >> >>=20
>> >> >>=20
>> >> >> On 3/25/20 8:01 AM, Andrzej Wodecki wrote:= =20
>> >> >> > Second trial =C2=A0=20
>> >> >> > with in.docx:=20
>> >> >>=20
>> >> >> Pandoc doesn't expect to find markdown (= including pandoc's citation=20
>> >> >> syntax) in a Word file. That only works in m= arkdown files (and=20
>> perhaps=20
>> >> org=20
>> >> >> files). So when it sees a citation in word-&= gt;markdown, it takes it=20
>> >> >> literally, and escapes the brackets so it re= mains so in the=20
>> markdown.=20
>> >> >>=20
>> >> >> Perhaps someone else can recommend a configu= ration that won't escape=20
>> >> >> citation syntax, allowing you to go to markd= own, and then from that=20
>> >> back to=20
>> >> >> Word.=20
>> >> >>=20
>> >> >> This seems convoluted though. If you're = using Zotero, why not use=20
>> the=20
>> >> Word=20
>> >> >> plugin for that? Or, why not stay in markdow= n as your source=20
>> document?=20
>> >> >>=20
>> >> >>=20
>> >> >=20
>> >> > --=20
>> >> > You received this message because you are subscr= ibed to the Google=20
>> >> Groups "pandoc-discuss" group.=20
>> >> > To unsubscribe from this group and stop receivin= g emails from it,=20
>> send=20
>> >> an email to pandoc-...@googlegrou= ps.com <javascript:>.=20
>> >> > To view this discussion on the web visit=20
>> >>=20
>> https://groups.goog= le.com/d/msgid/pandoc-discuss/7e7dfd7e-1bf1-4557-a5f0-e686d48e2438%40google= groups.com.=20
>>
>> >>=20
>> >>=20
>> >=20
>> > --=20
>> > You received this message because you are subscribed to t= he Google=20
>> Groups "pandoc-discuss" group.=20
>> > To unsubscribe from this group and stop receiving emails = from it, send=20
>> an email to pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <javascript:>.=20
>> > To view this discussion on the web visit=20
>>
https://groups.goog= le.com/d/msgid/pandoc-discuss/db7c031a-9b53-42e5-b073-f70fa0c16de1%40google= groups.com.=20
>>
>>
>
> --=20
> You received this message because you are subscribed to the Google= Groups "pandoc-discuss" group.
> To unsubscribe from this group and stop receiving emai= ls from it, send an email to pandoc-...-/JYPxA39Uh4Ykp1iOSErHA@public.gmane.org= m.

--
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/bc948bae-0b65-4b2e-8cac-bea115c19134n%40googlegroups.= com.
------=_Part_243_561552295.1621825345635-- ------=_Part_242_478486557.1621825345635--