要使用 bibtex 参考书目编译 pdf,我认为将 YAML 编写为就足够了
---
title: super awesome paper
author: albert enstein
bibliography: /path/to/bib/file.bib
---
并将此命令输入终端:
pandoc test.md -o test.pdf
但这不起作用。相反,我必须手动将 bib 文件添加到终端命令中:
pandoc test.md --bibliography=/path/to/bib/file.bib -o test.pdf
我究竟做错了什么?
我相信你需要使用该标志--filter pandoc-citeproc
如果你不想使用该标志--bibliography=/path/to/bib/file.bib
。这是因为使用--bibliography=
flag 相当于写--metadata bibliography=FILE --filter pandoc-citeproc
(https://pandoc.org/MANUAL.html#itation-rendering https://pandoc.org/MANUAL.html#citation-rendering).
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)