From: Andrzej Wodecki <andrzej.wodecki-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: pandoc-discuss <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Subject: generate bibliography from citations keys in docx?
Date: Wed, 25 Mar 2020 05:01:05 -0700 (PDT) [thread overview]
Message-ID: <4d035407-d692-4ada-ac1a-b2668c8c80bc@googlegroups.com> (raw)
[-- 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 --]
next reply other threads:[~2020-03-25 12:01 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-25 12:01 Andrzej Wodecki [this message]
[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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4d035407-d692-4ada-ac1a-b2668c8c80bc@googlegroups.com \
--to=andrzej.wodecki-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
--cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).