【问题标题】:In R Markdown, how do I create citations to references with a hyperlink?在 R Markdown 中,如何使用超链接创建对引用的引用?
【发布时间】:2020-02-06 03:33:13
【问题描述】:

现在我有一个 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].

我希望效果可以是这样的:

这是.bib 文件:

@article{Breiman2001,
  title={Random Forests},
  author={Breiman, Leo},
  journal={Machine Learning},
  volume={45},
  number={1},
  pages={5-32},
  year={2001},
}

【问题讨论】:

    标签: r latex r-markdown


    【解决方案1】:

    您应该可以通过在 YAML 中添加 link-citations: true 来解决此问题。

    有关更多详细信息,请参阅关于 SO 的其他问题:Rmarkdown removes citation hyperlink

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2022-01-15
      • 1970-01-01
      • 2019-01-10
      • 1970-01-01
      • 2021-01-31
      • 1970-01-01
      • 1970-01-01
      • 2015-01-04
      相关资源
      最近更新 更多