如何在 bookdown 中文上指定 csl 引用书目样式 Bookdown Chinese example ,例如 zotero one CSL .
我将csl文件下载到工作目录,并在index.Rmd YAML header 中将其指定为
bibliography: book.bib
biblio-style: chinese-gb7714-2005-numeric
或
bibliography: book.bib
biblio-style: chinese-gb7714-2005-numeric.csl
但 Rstudio 提示我:
Error: Failed to build the bibliography via bibtex
Please delete bookdown.Rmd after you finish debugging the error.
Execution halted
Exited with status 1.
当我将其更改为
bibliography: book.bib
csl: chinese-gb7714-2005-numeric
或
bibliography: book.bib
csl: chinese-gb7714-2005-numeric.csl
我可以编写这本书,但是引用列表的样式不是 CSL 所期望的。
所有 YAML header
---
title: "题名"
author: "姓名"
date: "`r Sys.Date()`"
bibliography: book.bib
description: "矮脚黄"
documentclass: ctexbook
geometry:
- b5paper
- tmargin=2.5cm
- bmargin=2.5cm
- lmargin=3.5cm
- rmargin=2.5cm
github-repo: yihui/bookdown-chinese
indent: 2m
link-citations: yes
lof: no
lot: no
colorlinks: yes
site: bookdown::bookdown_site
biblio-style: unsrt
whitespace: none
---
更新:
最佳答案
您可能错过了两行:
- Set in _output.yml
citation_package: none
- Add in all formats (gitbook, pdf_book, epub_book) in _output.yml the line
pandoc_args: [ "--csl", "chinese-gb7714-2005-numeric.csl" ]
关于r - 如何在 bookdown 上指定 csl 引用书目样式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50652853/