我也有同样的问题。以下程序对我有效:
-
使用RStudio创建新项目并选择“Book project using
“bookdown”作为选项。
-
下载一些。csl文件来自
https://www.zotero.org/styles
并复制到项目的根目录。就我而言:
chicago-author-date-de.csl
-
在输出中设置。yml公司
citation_package: none
-
在输出中添加所有格式(gitbook、pdf\u book、epub\u book)。yml线路
pandoc_args: [ "--csl", "chicago-author-date-de.csl" ]
-
在索引中删除或注释掉。Rmd线路
biblio-style: apalike
-
替换06参考文献的内容。Rmd带
# References {-}
这是我的\u输出。yml文件:
bookdown::gitbook:
css: style.css
pandoc_args: [ "--csl", "chicago-author-date-de.csl" ]
config:
toc:
before: |
<li><a href="./">A Minimal Book Example</a></li>
after: |
<li><a href="https://github.com/rstudio/bookdown" target="blank">Published with bookdown</a></li>
download: ["pdf", "epub"]
bookdown::pdf_book:
includes:
in_header: preamble.tex
latex_engine: xelatex
citation_package: none
pandoc_args: [ "--csl", "chicago-author-date-de.csl" ]
keep_tex: yes
bookdown::epub_book:
pandoc_args: [ "--csl", "chicago-author-date-de.csl" ]