这应该是相对简单的,但我找不到一个清晰的答案来解释如何实现它。
我正在使用以下命令:
但是outfile.md最终没有参考文献。发生了什么事?
我正在使用以下命令:
pandoc -s myfile.tex -o outfile.md --bibliography mybib.bib
但是outfile.md最终没有参考文献。发生了什么事?
pandoc -s myfile.tex -o outfile.md --bibliography mybib.bib
citations
扩展 默认开启。Pandoc 试图生成尽可能干净的输出,因此当启用此扩展时,它使用 @citeid
语法而不是添加完整的引文。禁用它就能解决问题:
pandoc -t markdown-citations -s myfile.tex -o outfile.md --bibliography mybib.bib
markdown-citations
作为一种可能的格式,并且你提供的链接中也没有提到这种语法? - Joshua Meyerspandoc --list-extensions=markdown
来查看Markdown支持的扩展列表。以-
为前缀的扩展名是禁用的,以+
为前缀的扩展名是启用的。因此,要在禁用引用的情况下设置自动链接裸的URI,您需要编写-t markdown+autolinks_bar_uris-citations
。请参阅https://pandoc.org/MANUAL.html#extensions - tarleb