来自docx中引文关键字的书目引文?

时间:2020-03-25 11:55:44

标签: pandoc citations pandoc-citeproc

我刚刚写了一本书,其中包含存储在mylibrary.lib文件中的数百个参考。 由于我原来的工作流程(Scrivener> Markdown> pandas-citeproc> MS Word) 目前,我将所有内容保存在MS Word文件中,其中每个引用的格式均为[@citation_key],如下所示:

从[@ andy2020]中我们可以看到...

我的目标是生成书目(我使用Zotero作为参考管理器)。

问题来了:我用pandoc-citeproc尝试了许多选项,但没有任何效果...

下面是我的尝试和错误的简化版本。

mylibrary.bib文件只有一个条目,如下所示:

@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. 初审 与in.md:

从[@ andy2020]中我们可以看到...

命令:

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

正确生成docx:

从(Kaelbling,Littman和Moore 1996)中我们可以看到…… Kaelbling,Leslie Pack,Michael L.Littman和Andrew W.Moore。 1996年。“强化学习:调查”。人工智能研究杂志4:237–85。

  1. 第二次审判

with in.docx:

从[@ andy2020]中我们可以看到...

命令:

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

使用以下命令生成out.docx: 从[@ andy2020]我们可以看到...

未生成参考书目。

  1. 第三次审判 使用in.docx:

从[@ andy2020]中我们可以看到...

命令:

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

通过以下方式生成out.md:

从[@ andy2020]中我们可以看到...

请注意一些转义\字符...

我的目标是像第二次试验一样,成功地生成从in.docx到out.docx的书目。

有什么想法吗?这对我来说非常重要,我确实有数百篇参考文献...

非常感谢您的帮助

非常感谢:)

安迪

0 个答案:

没有答案