r - Why is 'et al' appearing in markdown bibliography? -


i'm trying make bibliography in markdown. build bibliography, i'm using knitr package , pandoc in r convert .rmd file pdf.

the entries in .bib file these, taken http://johnmacfarlane.net/pandoc/demo/biblio.bib:

@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" } 

to build bibliography, i'm using following function, taken from: 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")) } 

the contents of .rmd file is

this text [@item1]  more text [@item2]  references 

and contents of output pdf is:

this text (doe 2005) 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. 

note 'et al' appearing in bibliography. why et al appearing , how can stop appearing? need bibliography be:

bibliography     doe, j., 2005. first book. cambridge: cambridge university press.       doe, j., 2006. article. journal of generic studies, 6, 33–34. 

indeed problem style file. downloading style file: http://www.zotero.org/styles/harvard-durham-university-business-school

and changing code

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")) } 

solved problem


Comments