编辑:经过一些调查,这个问题实际上是关于输出yml中的以下选项:
citation-package: biblatex如果没有这个选项,bookdown将使用默认的citeproc,并且不清楚如何修改作者的数量。但是,当使用此选项时,引用将不再起作用,并且我的文档只包含粗体的引用名称,而不是行内引用。所以我真的需要知道为什么引用包: biblatex不能工作
=====原始问题如下
我无法使用bookdown来实现我的maxcitename=2设置。我已经尝试使用这个输出yml
output:
bookdown::pdf_book:
includes:
in_header: preamble.tex
keep_tex: yes
toc_depth: 3
toc_appendix: yes在preamble.tex文件中使用以下行:
\usepackage[backend=bibtex, maxcitenames=2, style=authoryear]{biblatex}我还尝试使用下面的输出yml:
bibliography: [likertimputebiblio.bib, packages.bib]
biblatexoptions: [maxcitenames=2]
csl: harvard-university-of-wolverhampton.csl
link-citations: true
nocite: |
@R-bookdown我还尝试了下面的输出yml:
site: bookdown::bookdown_site
documentclass: book
header-includes:
- \usepackage[backend=bibtex, maxcitenames=2, style=authoryear]{biblatex}但似乎什么都不起作用。
请帮帮忙。谢谢。
发布于 2017-06-21 21:06:33
经过坚持不懈的努力,终于找到了解决这个问题的办法!
当设置输出yml时,在output: etc下缩进...
citation_package: biblatex..。行内引用无法链接到.bib文件,因此引用名以粗体显示,无法进行任何行内引用。
预期的解决方案应该是使用附加选项:
biblatexoptions: [backend=bibtex, maxcitenames=2](maxcitenames=2是我想使用biblatex的主要原因),但它失败了,并显示错误"option backend not recognized“。最后,解决方案是修改目录中的默认模板
C:\Program Files\R-3.4.0\library\rmarkdown\rmd\latex在第100行,从
\usepackage$if(biblio-style)$[style=$biblio-style$]$endif${biblatex}至
\usepackage$if(biblio-style)$[backend=bibtex, style=$biblio-style$]$endif${biblatex}我想向包的作者建议,这是一个需要修复的bug,因为backend=bibtex是一个有效的选项,应该已经传递
https://stackoverflow.com/questions/44633939
复制相似问题