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-/JYPxA39Uh5TLH3MbocFFw@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.