Car*_*arl 6 markdown latex r pandoc r-markdown
我正在使用自定义 R Markdown Latex 模板和 BibTex,但我无法使参考书目正常工作。
使用默认的 pandoc-citeproc 我得到错误:
pandoc-citeproc: Error parsing references: expected [a], encountered Object
Run Code Online (Sandbox Code Playgroud)
这发生在 .tex 文件生成之前,而不是在 .tex 文件编译期间。我试过卸载并重新安装 pandoc,这没有帮助。
当我添加--biblatex为 pandoc 参数时,在生成 .tex 文件后出现一个新错误:
! Undefined control sequence.
l.41 We are writing this using LaTeX \autocite
Run Code Online (Sandbox Code Playgroud)
如果我在 .tex 文件中用 \cite 替换 \autocite ,它会很好地编译。如果我能让 pandoc/biblatex 使用 \cite 而不是 \autocite 那就太好了,这样我就不必手动干预了。我误解了什么吗?