如何在中文简编中文示例上指定csl书目样式,例如zotero CSL。
我将csl文件下载到工作目录,并在index.Rmd YAML头中指定它为
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头
---
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
---更新:
今天我发现章节引用的标题是不正确的。它应该是“参考”而不是前一章。

发布于 2018-06-02 08:48:37
你可能漏掉了两行:
citation_package: nonepandoc_args: [ "--csl", "chinese-gb7714-2005-numeric.csl" ]参见使用csl-file for pdf-输出在预订的完整过程
https://stackoverflow.com/questions/50652853
复制相似问题