为什么'et al'出现在降价书目中?

问题描述:

我正在试图在降价中做出参考书目。为了构建参考书目,我使用R中的knitr包和pandoc将.Rmd文件转换为PDF。为什么'et al'出现在降价书目中?

在我的名为.bib文件看起来像这些,从http://johnmacfarlane.net/pandoc/demo/biblio.bib采取的条目:http://quantifyingmemory.blogspot.co.il/2013/02/reproducible-research-with-r-knitr.html

knitsPDF <- function(name) { 
    library(knitr) 
    knit(paste0(name, ".Rmd"), encoding = "utf-8") 
    system(paste0("pandoc -o ", name, ".pdf ", name, ".md --bibliography /Users/.../Desktop/test.bib --csl /Users/.../Desktop/taylor-and-francis-harvard-x.csl")) 
} 

@Book{item1, 
author="John Doe", 
title="First Book", 
year="2005", 
address="Cambridge", 
publisher="Cambridge University Press" 
} 

@Article{item2, 
author="John Doe", 
title="Article", 
year="2006", 
journal="Journal of Generic Studies", 
volume="6", 
pages="33-34" 
} 

要建立我的书目中,我使用下面的函数,取自我.Rmd文件的内容是

This is some text [@item1] 

This is more text [@item2] 

References 

而输出PDF的内容为:

This is some text (Doe 2005) 
This is more text (Doe 2006) 

Bibliography 
Doe, J. et al., 2005. First Book. Cambridge: Cambridge University Press. 

Doe, J. et al., 2006. Article. Journal of Generic Studies, 6, 33–34. 

注意出现在参考书目中的'et al'。为什么等人出现,我该如何阻止它出现?我需要参考书目:

Bibliography 
    Doe, J., 2005. First Book. Cambridge: Cambridge University Press. 

    Doe, J., 2006. Article. Journal of Generic Studies, 6, 33–34. 
+2

我不与pandoc经历,但你尝试过不同的风格?我想这是你使用的风格的问题。 – 2013-05-06 09:43:59

事实上,这只是一个风格文件的问题。下载此样式文件:http://www.zotero.org/styles/harvard-durham-university-business-school

和改变这种代码

knitsPDF <- function(name) { 
    library(knitr) 
    knit(paste0(name, ".Rmd"), encoding = "utf-8") 
    system(paste0("pandoc -o ", name, ".pdf ", name, ".md --bibliography /Users/.../Desktop/test.bib --csl /Users/.../Desktop/harvard-durham-university-business-school.csl")) 
} 

解决了这个问题

+0

由于您使用的默认样式永远不会是正确的,我会认为它是一个错误并将其提交给作者。 – 2013-05-06 14:22:23

+0

我认为这是citeproc-hs中的一个bug,它是pandoc的CSL处理器。 https://github.com/citation-style-language/styles/blob/master/taylor-and-francis-harvard-x.csl和https://github.com/citation-style-language之间唯一明显的区别/styles/blob/master/harvard-durham-university-business-school.csl是前者将斜体应用于“等”。在参考书目中。可以在https://code.google.com/p/citeproc-hs/issues/list报告citeproc-hs错误 – 2013-05-09 14:11:24