I am using natbib
with apsrev
style for references in article document class:
\documentclass{article}
\usepackage[]{natbib}
\usepackage{hyperref}
\hypersetup{colorlinks = true}
\bibliographystyle{apsrev}
\begin{document}
This is referring to \cite{example}.
\bibliography{eprint_ref}
\end{document}
I am trying to show doi and arXiv links, as written in my eprint_ref.bib
file:
@article{example,
author = {A. Author},
title = {The title of this article},
journal = {JCAP},
volume = {1212},
pages = {022},
year = {2035},
doi = {10.1088/1475-7516/2012/12/022},
url = {https://doi.org/10.1088/1475-7516/2012/12/022},
archivePrefix = {arXiv},
eprint = {1210.6104},
primaryClass = {astro-ph.CO}
}
However, the arXiv link is shown wrong pointing to an incorrect address 1210.6104
which is not a url.
doi is printed correctly but after an ugly URL https://doi.org/
term.
It is really helpful to me if someone can suggest how to print the arXiv link correct.