与包 Hyperref 冲突

问题描述 投票:0回答:0

请考虑下面的小型可重现示例。尝试使用 hyperref 链接时出现错误。我收到一条错误消息,指出存在冲突,但是,我只调用了一次该包。我想知道是否有人可以帮助解决这个问题。这个想法是从引文到参考文献再返回。

---
title: "References"
output:
  pdf_document: 
    number_sections: yes
    toc: yes
    toc_depth: 4
header-includes:
- \usepackage[backref,colorlinks=true,breaklinks=true,linkcolor=red,citecolor=blue]{hyperref} 
---

```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```

## R Markdown

This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see <http://rmarkdown.rstudio.com>.

And this is an instance to cite authors \cite{Mills94}.

\newpage
\addcontentsline{toc}{section}{References} 

\color{black}
\bibliography{bib}
\bibliographystyle{apalike}

这是我要引用的参考资料。文件名为 bib.bib

@misc{Mills94,
  author = {{Mills, T.J., and R. Fisher}},
  year = {1994},
  title = {{Central Valley Anadromous Sport Fish Annual Run-Size, Harvest, and Population Estimates, 1967 through 1991. Inland Fisheries Technical Report prepared for the California Department of Fish and Game}},
  howpublished = {\url{http://www.fws.gov/}},
  note = {Report}

}

r latex r-markdown biblatex hyperref
© www.soinside.com 2019 - 2024. All rights reserved.