I'm using Mendeley as article-library. How can I format the citations as follows ?
In particular I would like the Arxiv-link to be displayed…
PS: I already saw a previous similar question No arXiv id showing in bibtex generated by Mendeley
However Mendeley asks a CSL document for importing a new style, but arxiv only provides a bst-document…. (Whatever these two styles might be.)
Best Answer
You need to collect a few pieces of information for your document. The first is to make sure that you have enabled showing the arXiv ID for documents. This should be on by default (I think), but if not, you can follow this question to enable it: https://tex.stackexchange.com/a/180216/32374
Then, export whatever documents you want (or perhaps the whole library) to a
.bib
file. You can set this up automatically in the options, or you can select a particular article, right click and choose "Export" (or press CTRL+e). Save the file WITHOUT SPACES IN THE NAME in the same folder as your TeX document.Then, download the
utphys.bst
from http://golem.ph.utexas.edu/~distler/TeXstuff/utphys.bst, and save that in the same folder as your TeX file as well. Now, when you set up your bibliography at the end of your document, simply set the\bibliographystyle{utphys}
, and the arXiv ID should be produced in the output. If you load thehyperref
orbookmark
packages in your preamble, there will even be links to the appropriate places. Be aware that if you use that particular.bst
file, you'll get duplicatedarXiv:arXiv:ID
in your output. Simply delete thearXiv:
in theeprint
field of your.bib
file to fix it.Don't worry about the
filecontents
environment in the following example, that's just what I'm using instead of the direct output from Mendeley. Just delete that environment and substitutethe-name-of-your-bib-file
fortest
in\bibliography{the-name-of-your-bib-file}