[Tex/LaTex] How to get eprint, hplain, bibtex, hyperref, and pdflatex to work

bibtexhyperref

After reading https://arxiv.org/help/hypertex/bibstyles/ I thought that I would try to get the bibtex field "eprint" working in my Latex files. So I downloaded hplain.bst, changed \bibliographystyle{plain} to \bibliographystyle{hplain}, added the eprint field to a bibtex entry, and ran pdflatex. The eprint field shows up in the pdf file, but is not a link. Here is a bit of the header from my .tex file:

\documentclass[12pt]{amsart}

\usepackage[hidelinks,pagebackref,pdftex]{hyperref}

What am I doing wrong?

Best Answer

Following egreg's advice I looked at kp.bst (linked to from the arXiv page). This works, in that the arxiv references are now clickable; the .bst file automatically generates the correct \href commands for hyperref from the bibtex fields specified by the arXiv.

As I prefer the plain.bst style (numbers instead of names, etc) I pulled the relevant functions out of kp.bst, dropped them into hplain.bst, fiddled a bit, and renamed the mash-up, hyperplain.bst. If there is any interest I can email the file to the arXiv admins.

Related Question