Is it possible to use unsrt
style for bibtex that will show arxiv links? I remember using apsrev4-1
for one seminar before and that showed arxiv links, even combined them with hyperref so you could easily click on them in pdf. But Now when I use that I get errors (I guess it's because I'm not using revtex
as document class).
The issue is that some articles I cited are only on arxiv, not in any journal, and unsrt
just lists author, name of the article and the year of publishing. I'd like to also add arxiv link so that it's not empty looking.
EDIT:
I managed the look I want (sort of, I still get semi colon instead of colon, when citing multiple sources), this is the mwe that resembles the most to my original file:
\documentclass[a4paper,12pt,oneside,openright]{book}
\usepackage[utf8x]{inputenc}
\usepackage{ucs}
\usepackage[T1]{fontenc}
\usepackage{tgtermes}
\usepackage[croatian]{babel}
\usepackage[usenames,dvipsnames,svgnames]{xcolor}
\usepackage{natbib}
\setcitestyle{square,numbers,colon}
\usepackage[colorlinks=true, linkcolor=DarkGray, citecolor=DarkGray, urlcolor=DarkGray, plainpages=false, pdfpagelabels, hypertexnames=false, unicode]{hyperref}
\usepackage{setspace}
\onehalfspacing
\hypersetup{linkcolor=DarkGray}
\begin{document}
This is an example \cite{Anninos:2008fx}\cite{Arnowitt:1962hi}\cite{Banados:1992gq,Bardeen:1999px}
And another \cite{Bekenstein73,Cardy1,Cardy2}\cite{lrr-2004-1,de1998lie}
\bibliographystyle{apsrev4-1}
\bibliography{mybib}
\end{document}
The bibliography is badly stretched, and in my original file (which I won't post here since its preamble is massive alone) I get this:
The last reference even goes out of bounds :S
EDIT2:
This did it:
\begingroup
\raggedright
\sloppy
\bibliographystyle{apsrev4-1}
\bibliography{mybib}
\endgroup
Best Answer
Instead of using the
unsrt
bibliography style -- which is well more than 20 years old and thus (unsurprisingly, in my view) lacks any awareness of what to do with electronic record fields such asurl
,doi
, andeid
-- I would recommend you use theunsrtnat
bibliography style, which does know what to do with fields such asdoi
(short for digital object identifier). See also http://arxiv.org/help/jref for suggestions on how to provide doi-related information for arxiv-published papers.The
unsrtnat
bibliography style can be used independently of thenatbib
package.