我正在使用markdown编写我的简历,并希望有多个参考文献部分(一个用于期刊文章,另一个用于书籍章节等)。 我使用RefManagerR
软件包来实现这一点,效果非常好。
library("RefManageR")
BIB <- structure(list(structure(list(title = "Quantitative palaeotemperature records inferred from fossil pollen and chironomid assemblages from Lake Gilltjarnen, northern central Sweden", author = structure(list(structure(list(given = "K", family = "Antonsson", role = NULL, email = NULL, comment = NULL), .Names = c("given", "family", "role", "email", "comment")), structure(list(given = "SJ", family = "Brooks", role = NULL, email = NULL, comment = NULL), .Names = c("given", "family", "role", "email", "comment")), structure(list(given = "H", family = "Seppa", role = NULL, email = NULL, comment = NULL), .Names = c("given", "family", "role", "email", "comment"))), class = "person"), journal = "Journal of Quaternary Science", year = "2006", number = "8", pages = "831-841", volume = "21"), .Names = c("title", "author", "journal", "year", "number", "pages", "volume"), bibtype = "Article", key = "RID:0428130725771-5", dateobj = structure(1136070000, class = c("POSIXct", "POSIXt"), tzone = "", day.mon = 0L))), strings = structure(character(0), .Names = character(0)), class = c("BibEntry", "bibentry"))
NoCite(BIB)
PrintBibliography(BIB, .opts = list(style = "latex", bib.style = "authoryear",
sorting = "ydnt"))
在pdf中呈现为:
Antonsson, K,S. Brooks和H. Seppa(2006)。 “Quantitative palaeotemperature records inferred from fossil pollen and chironomid assemblages from Lake Gilltjarnen, northern central Sweden”. In:Journal of Quaternary Science 21.8,pp. 831-841。
我想改变参考文献的风格。基本上,我想删除引号和In:
,并在名称后加上缩写。我知道可以使用tools :: bibstyle
来设置样式,并且需要创建一个名为formatArticle
的程序,但是tools :: bibstyle
的示例仅显示如何更改排序顺序,我无法找到如何查看默认的JSS样式。
请问有人能向我展示如何使用bibstyle
吗?
或者,有人能向我展示如何使用内置于rmarkdown的参考书目生成器在单个文档中制作多个参考书目部分,以便我可以使用csl文件吗?
pdf
之外的输出格式吗?如果不是的话,你可以直接使用latex
来实现你想要的效果,尽管你需要驯服那个野兽,并根据个人经验,这并不是一件有趣的事情。 - Kevin Arseneau