Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/logging/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
R csl允许日期字段中的文本_R_R Markdown_Citations_Csl - Fatal编程技术网

R csl允许日期字段中的文本

R csl允许日期字段中的文本,r,r-markdown,citations,csl,R,R Markdown,Citations,Csl,我正在用R markdown写一篇手稿,我想引用另一篇目前“被接受”但尚未发表的文章。目前引文显示n.d.(无日期),我希望它显示“已接受” 当我引用已接受的文章时,文本引用是(Author1和Author2,n.d.),我想将其更改为(Author1和Author2,已接受) 在.bib文件中,我将“accepted”放在了日期通常出现的位置,但它仍然显示(Author1和Author2,n.d.),我想这是因为我的.csl无法识别日期字段中的文本 那么,是否可以编辑.csl文件以允许日期字段

我正在用R markdown写一篇手稿,我想引用另一篇目前“被接受”但尚未发表的文章。目前引文显示n.d.(无日期),我希望它显示“已接受”

当我引用已接受的文章时,文本引用是(Author1和Author2,n.d.),我想将其更改为(Author1和Author2,已接受)

在.bib文件中,我将“accepted”放在了日期通常出现的位置,但它仍然显示(Author1和Author2,n.d.),我想这是因为我的.csl无法识别日期字段中的文本

那么,是否可以编辑.csl文件以允许日期字段中的文本(或者是否有其他解决方法)

此外,我希望参考书目中的相应参考在日期字段中显示“已接受”,例如

作者1,A.和作者2,B.(接受)。文章标题。日记账名称。第卷(期)

这是我的R标记文件:

---
title: "example"
author: "My name"
site: bookdown::bookdown_site
documentclass: book
output:
  bookdown::pdf_book:
    toc: false
bibliography: "refs.bib"
csl: "ecology-of-freshwater-fish.csl" 
---

# Hello World

I think the world is flat [@firt_accepted]

### References 
这是围兜:

@incollection{firt_accepted,
    title = {Chapter title},
    booktitle = {The book},
    publisher = {publisher name},
    author = {First, A and Second, A},
    editor = {First, E and Second, E},
    date = {"accepted"}
}
我使用的是淡水鱼生态.csl模板,可以下载