Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

After reading http://arxiv.org/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:



What am I doing wrong?

share|improve this question
Did you run bibtex, and might need to run pdflatex twice. Also, tt is always best to compose a MWE that illustrates the problem so that those trying to help don't have to recreate it. –  Peter Grill Oct 21 '11 at 22:24
The page make rather clear that only the last mentioned bib styles support link creation: utphys.bst, utcaps.bst and kp.bst –  egreg Oct 21 '11 at 22:40
@PeterGrill - Yes I ran bibtex and pdflatex several times. –  Sam Nead Oct 21 '11 at 23:11
@egreg - Immediately above that it says "The following bibtex styles have been modified to support an eprint field." and gives a long list, including hplain. I'll look at kp.bst. –  Sam Nead Oct 21 '11 at 23:14
Supporting an eprint field doesn't mean that an href is built. Indeed, hplain.bst just prints it if present (look for format.eprint in it). –  egreg Oct 21 '11 at 23:18
show 6 more comments

3 Answers

utphys.bst and kp.bst are indeed the ones that support clickable URL's. I also struggled a long time before figuring this out. It is indeed indicated in the arxiv page, however a bit vague..

share|improve this answer
add comment
up vote 4 down vote accepted

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.

share|improve this answer
add comment

I think you need the function format.eprint as in utphys.bst. Then the eprint field should be a link.

share|improve this answer
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.