2

基本上,有一个由 Zotero 4.0.17 自动生成的 bibtex 文件,我正在使用它在降价文件中生成参考书目。使用的工具是 pandoc-1.12.1 和 pandoc-citeproc-0.2 。

这是名为的降价文件notes.md

# State of the art

 - Wikipathways [@pico_wikipathways\:_2008]

# Bibliography

<!-- TODO is this usefull?
bibliography::research.bib -->
<!-- \bibliography{research} So that RefTeX knows about the bibliography -->

这是名为 bibtex 的文件research.bib

@ARTICLE{pico_wikipathways:_2008,
 author = {Pico, Alexander R and Kelder, Thomas and van Iersel, Martijn P and Hanspers, Kristina and Conklin, Bruce R and Evelo, Chris},
 title = {{WikiPathways:} Pathway Editing for the People},
 journal = {{PLoS} Biol},
 year = {2008},
 volume = {6},
 pages = {e184},
 number = {7},
 month = jul,
 abstract = {{WikiPathways} provides a collaborative platform for creating, updating, and sharing pathway diagrams and serves as an example of content  curation by the biology community.},
 doi = {10.1371/journal.pbio.0060184},
 keywords = {\_tablet},
 shorttitle = {{WikiPathways}},
 url = {http://dx.doi.org/10.1371/journal.pbio.0060184},
 urldate = {2013-11-20}
}

这是我运行的命令

pandoc --bibliography=research.bib notes.md -o notes.md.pdf

我期待一切顺利,但:字符的存在使 PDF 的生成成功,但出现以下错误

pandoc-citeproc: reference pico_wikipathways not found

PDF 将包含不正确的参考书目。

知道如何逃避:innotes.md以便书目参考得到认可吗?

4

2 回答 2

4

你必须改变你的钥匙。Pandoc 的引用键解析器目前不允许连续使用多个非字母数字符号,因此带有:_失败的键。此外,不要:在引用键之前使用反斜杠。

于 2014-01-08T16:18:29.153 回答
0

从版本 1.12.3 开始,此问题似乎已得到修复。使用卸载当前版本

sudo rm -f /usr/local/bin/pandoc /usr/local/doc/pandoc-1.9.4.2 /usr/local/share/man/man1/pandoc.1.gz /usr/local/share/man/man5/pandoc_markdown.5.gz /usr/local/share/pandoc-1.9.4.2

然后重新安装 pandoc,你应该很高兴。

于 2014-02-20T15:46:07.253 回答