【发布时间】:2014-01-25 15:25:25
【问题描述】:
基本上,有一个由 Zotero 4.0.17 自动生成的 bibtex 文件,我正在使用它在 markdown 文件中生成参考书目。使用的工具是 pandoc-1.12.1 和 pandoc-citeproc-0.2 。
这是名为notes.md的markdown文件
# 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 -->
这是名为research.bib的bibtex文件
@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 的参考书目不正确。
知道如何在notes.md 中转义: 以便识别书目参考吗?
【问题讨论】:
-
仅供参考。我在forums.zotero.org/discussion/34228/… 得到了一些有趣的解决方法建议
-
仅供参考。这个问题现在已经在 pandoc 的 master 分支中修复了。详情请查看github.com/jgm/pandoc/commit/…。
-
仅供参考。此问题已在 pandoc 1.12.3.1 中永久修复。
标签: haskell markdown pandoc bibtex bibliography