rmarkdown 和 pandoc 引用问题

rmarkdown and pandoc reference problems

我要呈现以下 rmarkdown 文件(只是整篇文章的一个示例):

---
title: 'Some Title'
author: 'Author Surname'
biliography: ab.bib
csl: abnt_italico.csl
output:
  bookdown::word_document2:
    fig_width: 4
    fig_height: 3
    fig_caption: true
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```
# Introdução 

 Some text [@la01] some text

#References

我的 ab.bib 是:

@incollection{la01,
  title = {Videogames and {{Literacies}}},
  booktitle = {The {{Routledge Handbook}} of {{Literacy Studies}}},
  author = {Abrams, Sandra Schamroth},
  editor = {Rowsell, Jennifer and Pahl, Kate},
  year = {2015},
  pages = {251--266},
  publisher = {{Routledge Handbooks Online}},
  doi = {10.4324/9781315717647.ch16},
  file = {/Volumes/GoogleDrive/My Drive/biblioteca_digital/pdf_categorizados/abrams_2015_.pdf},
  isbn = {978-0-415-81624-3 978-1-315-71764-7 978-1-317-51061-1},
  keywords = {Literacy,Multimodality,SFL,Systemic Functional Linguistics,Systemic-Functional Linguistics,Videogames},
  language = {en}
}

尽管我的 *bib 文件和我的 csl 文件与我的 Rmd 文件位于同一目录中,但我有以下错误:

==> rmarkdown::render('/Volumes/GoogleDrive/My Drive/Profissional/Pesquisa/Artigos/livro_kleber_2020/artigo/v01_livro.Rmd',  encoding = 'UTF-8');


processing file: v01_livro.Rmd
  |.......................                                               |  33%
  ordinary text without R code

  |...............................................                       |  67%
label: setup (with options) 
List of 1
 $ include: logi FALSE

  |......................................................................| 100%
  ordinary text without R code


output file: v01_livro.knit.md

pandoc-citeproc: reference la01 not found
/usr/local/bin/pandoc +RTS -K512m -RTS v01_livro.utf8.md --to docx --from markdown+autolink_bare_uris+tex_math_single_backslash+smart --output v01_livro.docx --highlight-style tango --lua-filter /Library/Frameworks/R.framework/Versions/3.6/Resources/library/rmarkdown/rmd/lua/pagebreak.lua 

Output created: v01_livro.docx

没有生成任何引用列表。谁能告诉我有什么问题吗?

更新 我也试过没有成功:


title: 'Some Title'
author: 'Author Surname'
biliography: 'ab.bib'
csl: 'abnt_italico.csl'
output:
  bookdown::word_document2:
    fig_width: 4
    fig_height: 3
    fig_caption: true
---

您似乎没有在 header 中指明正确的路径。

你说“bib 文件和我的 csl 文件与我的 Rmd 文件在同一个目录”,所以,正确的 header 必须包括:

bibliography: ./ab.bib  
csl: ./abnt_italico.csl 
# please, note the './' characters, for both, and the absence of quoting marks (" or '). 

PS :您不必引用 bibliography: ./ab.bibcsl: ./abnt_italico.csl :正确的 header-style 就像您提供的第一个 code-sample,而不是第二个(您的更新)。

美好的一天