我要呈现以下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
---
答案 0 :(得分:1)
似乎您未在标题中指出正确的路径。
您说“ bib文件和我的csl文件与我的Rmd文件位于同一目录”,因此,正确的标头必须包含:
bibliography: ./ab.bib
csl: ./abnt_italico.csl
# please, note the './' characters, for both, and the absence of quoting marks (" or ').
PS:您不必引用bibliography: ./ab.bib
和csl: ./abnt_italico.csl
:正确的标头样式就像您提供的第一个代码样本,而不是第二个代码样本(您的更新)。
美好的一天