[英]In R Markdown, how do I create citations to references with a hyperlink?
Now I have a RMarkdown file, when the citation for the reference is clicked, I want the reader to be navigated to the corresponding reference in the bibliography.现在我有一个 RMarkdown 文件,当点击参考文献的引文时,我希望读者可以导航到参考书目中的相应参考文献。
---
title: "My Title"
author: "my name"
date: "2020/2/6"
output:
pdf_document:
keep_tex: true
header-includes:
- \hypersetup{colorlinks = false,pdfborder={1 1 1}}
bibliography: bibfile.bib
---
[Stack Overflow](https://stackoverflow.com/)
This is my reference[@Breiman2001].
I want the effect could be like this:我希望效果是这样的:
this is the .bib
file:这是
.bib
文件:
@article{Breiman2001,
title={Random Forests},
author={Breiman, Leo},
journal={Machine Learning},
volume={45},
number={1},
pages={5-32},
year={2001},
}
You should be able to fix this by adding link-citations: true
in your YAML.您应该能够通过在 YAML 中添加
link-citations: true
来解决此问题。
See this other question on SO for more details: Rmarkdown removes citation hyperlink有关更多详细信息,请参阅 SO 上的另一个问题: Rmarkdown 删除引用超链接
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.