我正在使用R Markdown
创建带引文的文档。但引文并未反映所生成的pdf文档。使用RStudio Version 0.98.994
和R 3.1
这是.rmd
文件
---
title: "Untitled"
author: "keniajin"
date: "Tuesday, October 14, 2014"
output: pdf_document
---
This is an R Markdown document.
```{r}
require(knitcitations)
summary(cars)
bib <- read.bibtex("ieetutorial.bib")
```
You can also embed citations, for example:
Smith says blah [-@author00]
BibTeX
文件是
@Book{author00,
author = {Author},
title = {Title},
publisher = {Publisher},
year = 2000}
答案 0 :(得分:2)
尝试将rmd文件的最后一行更改为
Smith says blah `r citep(bib[["author00"]])`