本文介绍了如何在书本上指定csl参考书目样式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

如何在中文书本上指定csl参考书目样式中文书本示例,例如zotero一个 CSL .

how to specify a csl bibliography style on bookdown Chinese Bookdown Chinese example, for example a zotero one CSL.

我将csl文件下载到工作目录,并在index.Rmd YAML标头中将其指定为

I downloaded the csl file to the working directory, and specify it in index.Rmd YAML header as

bibliography: book.bib
biblio-style: chinese-gb7714-2005-numeric

bibliography: book.bib
biblio-style: chinese-gb7714-2005-numeric.csl

但是Rstudio向我提示:

but Rstudio promted me:

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期望的样式.

I can build the book, however the reference list style was not the one the CSL expected.

所有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
---

已更新:

今天,我发现章节引用"的标题不正确.它应该是参考",而不是上一章的内容.

today I found the header of Chapter reference was not correct. It should be "Reference" instead of the previous chapter's.

推荐答案

您可能错过了两行:

请参阅使用csl文件的完整过程用于Bookdown中的pdf输出

这篇关于如何在书本上指定csl参考书目样式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-08 11:00