public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* generate bibliography from citations keys in docx?
@ 2020-03-25 12:01 Andrzej Wodecki
       [not found] ` <4d035407-d692-4ada-ac1a-b2668c8c80bc-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 10+ messages in thread
From: Andrzej Wodecki @ 2020-03-25 12:01 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 2633 bytes --]

Hi, 

I just wrote a book with hundreds of references stored in mylibrary.lib 
file.
Due to my original workflow (Scrivener > Markdown > pandoc-citeproc > MS 
Word)
at the moment I have everything in an MS Word file, where each citation is 
in the form [@citation_key], like below:

From [@andy2020] we can see that...
 
My goal is to generate the bibliography (I use Zotero as a reference 
manager). 

And here comes the problem: I tried many options with pandoc-citeproc and 
nothing worked...

Below is a simplified version of my trials and errors.

The mylibrary.bib file has only one entry looks like this:
*@article{andy2020,*
*  title = {Reinforcement Learning: {{A}} Survey},*
*  volume = {4},*
*  shorttitle = {Reinforcement Learning},*
*  journaltitle = {Journal of artificial intelligence research},*
*  date = {1996},*
*  pages = {237--285},*
*  author = {Kaelbling, Leslie Pack and Littman, Michael L. and Moore, 
Andrew W.}*
*}*


1. First trial

with in.md:

*From [@andy2020]  we can see that...*

command:
pandoc in.md --filter pandoc-citeproc --bibliography mylibrary.bib -o 
out.docx

correctly generates docx:

*From (Kaelbling, Littman, and Moore 1996) we can see that…*
*Kaelbling, Leslie Pack, Michael L. Littman, and Andrew W. Moore. 1996. 
“Reinforcement Learning: A Survey.” Journal of Artificial Intelligence 
Research 4: 237–85.*


2. Second trial
 
with in.docx:

*From [@andy2020] we can see that...*

pandoc in.docx --filter pandoc-citeproc --bibliography mylibrary.bib -o 
out.docx

generates out.docx with:
*From [@andy2020] we can see that...*

*No bibliography generated.*

3. 
with in.docx:
*From [@andy2020] we can see that...*

command:
pandoc in.docx --filter pandoc-citeproc --bibliography mylibrary.bib -o 
out.md

generates out.md with:

*From \[\@andy2020\] we can see that\...*

Note some escape \ characters...

My goal is to successfully generate a bibliography from in.docx to 
out.docx, like in the second trial.

Any ideas? That extremely important to me, I have literally hundreds of 
references...

I would really appreciate Your help, 

Many thanks in advance :)

Andy

-- 
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/4d035407-d692-4ada-ac1a-b2668c8c80bc%40googlegroups.com.

[-- Attachment #1.2: Type: text/html, Size: 3819 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2021-05-24  3:02 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-25 12:01 generate bibliography from citations keys in docx? Andrzej Wodecki
     [not found] ` <4d035407-d692-4ada-ac1a-b2668c8c80bc-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2020-03-25 13:10   ` Joseph Reagle
     [not found]     ` <30f53079-9e7a-2046-f458-b23f9736ac48-T1oY19WcHSwdnm+yROfE0A@public.gmane.org>
2020-03-25 16:14       ` Andrzej Wodecki
     [not found]         ` <7e7dfd7e-1bf1-4557-a5f0-e686d48e2438-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2020-03-25 16:35           ` John MacFarlane
     [not found]             ` <m28sjotmsv.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
2020-03-25 17:09               ` Andrzej Wodecki
     [not found]                 ` <db7c031a-9b53-42e5-b073-f70fa0c16de1-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2020-03-25 20:21                   ` John MacFarlane
     [not found]                     ` <m2wo78rxrl.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
2020-03-26  6:13                       ` Andrzej Wodecki
     [not found]                         ` <23e7c785-0f67-4b15-92b6-5c05cf2be2f7-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2020-03-26 16:35                           ` John MacFarlane
     [not found]                             ` <m2imirm5uo.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
2020-03-27  5:34                               ` Andrzej Wodecki
     [not found]                                 ` <371930ea-0898-4ab1-a3dc-ad0af946fd30-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2021-05-24  3:02                                   ` Ioan Muntean

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).