title: how to specify a csl bibliography style on bookdown
body: <p>how to specify a csl  bibliography style on bookdown Chinese <a href="https://github.com/yihui/bookdown-chinese" rel="nofollow noreferrer">Bookdown Chinese example</a>, for example a zotero one <a href="https://www.zotero.org/styles?q=7714-2005-numeric" rel="nofollow noreferrer">CSL</a>.</p>
  
  <p>I downloaded the csl file to the working directory, and specify it in index.Rmd YAML header as </p>
  
  <pre><code>bibliography: book.bib    
  biblio-style: chinese-gb7714-2005-numeric
  </code></pre>
  
  <p>or</p>
  
  <pre><code>bibliography: book.bib
  biblio-style: chinese-gb7714-2005-numeric.csl
  </code></pre>
  
  <p>but Rstudio promted me:</p>
  
  <pre><code>Error: Failed to build the bibliography via bibtex
  Please delete bookdown.Rmd after you finish debugging the error.
  Execution halted
  
  Exited with status 1.
  </code></pre>
  
  <p>when I changed it to</p>
  
  <pre><code>bibliography: book.bib
  csl: chinese-gb7714-2005-numeric
  </code></pre>
  
  <p>or</p>
  
  <pre><code>bibliography: book.bib
  csl: chinese-gb7714-2005-numeric.csl
  </code></pre>
  
  <p>I can build the book, however the reference list style was not the one the CSL expected.</p>
  
  <p>All the YAML header</p>
  
  <pre><code>--- 
  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
  ---
  </code></pre>
  
  <p>updated:</p>
  
  <p>today I found the header of Chapter reference was not correct. It should be "Reference" instead of the previous chapter's.
  <a href="https://i.stack.imgur.com/q772t.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/q772t.png" alt="Incorrect header"></a></p>