April Fool
Back in 1996, I created a Bibtex style file, which would generate hypertex links to the referenced paper at the arXivs. And I coaxed Harv Galic at SPIRES, who was working on a Bibtex output format, to support it.
With a few minor tweaks, this worked quite satisfactorily for over a decade, until the arXivs introduced their new identifier format. The change in format made it rather tricky to craft something that would work seamlessly with both old- and new-style identifiers. And SPIRES’s lackadaisical implementation (lumping everything into the eprint
field) didn’t help.
I no longer knew who to contact at SPIRES, and folks at the arXivs didn’t seem too interested in taking up the issue. So things languished … for a year.
But, then, last week, the arXiv Admins contacted me, and the ball started rolling. After some back-and forth discussions, Travis Brooks implemented the new scheme at SPIRES. So, just in time for the 1st anniversary of the new arXiv identifier scheme, there’s a new version of utphys.bst.
The following (optional) fields are recognized:
archive
- A Base-URL (defaults to “http://arxiv.org/abs”, if absent).
eprint
- The eprint identifier. For an old-style eprint, this would be something like
For a new-style eprint, this would be something likeeprint = "hep-th/9605023"
eprint = "0707.3168"
primaryClass
- The primary classification of new-style eprints; should be omitted for old-style eprints.
archivePrefix
- The “archive prefix,” usually, the string “arXiv”.
Here are some examples.
Old-style arXiv identifier (the previous behaviour):
eprint = "hep-th/9605023",
produces
\href{http://arxiv.org/abs/hep-th/9605023}{{\tt hep-th/9605023}}
New-style arXiv identifier:
archivePrefix = "arXiv", eprint = "0707.3168", primaryClass = "hep-th",
produces
\href{http://arxiv.org/abs/0707.3168}{{\tt arXiv:0707.3168 [hep-th]}}
Old-style arXiv identifier, with a prefix:
archivePrefix = "arXiv", eprint = "hep-th/9605023",
produces
\href{http://arxiv.org/abs/hep-th/9605023}{{\tt arXiv:hep-th/9605023}}
-
A different eprint archive
archive = "http://cogprints.org", eprint = "5542", archivePrefix = "Cogprints",
produces
\href{http://cogprints.org/5542}{{\tt Cogprints:5542}}
-
Yet another eprint archive
archive = "http://www.ncbi.nlm.nih.gov/pubmed", eprint = "2277438", archivePrefix = "PMID",
produces
\href{http://www.ncbi.nlm.nih.gov/pubmed/2277438}{{\tt PMID:2277438}}
Enjoy version 2.0. Sorry it took this long to get it out the door.
Update:
It may be that, while you were waiting, you have amassed some.bib
files with SPIRES’s previous incarnation of the new-style arXiv identifiers. This Perl script will convert such .bib
files to the new format.Update (4/3/2008):
Per AF’s request, I’ve added automatic hyperlinking for theurl
field to utphys.bst
. I had an ulterior motive: this will make it easier to cite things like, well, this blog. For intance:@Misc{Distler:Lisi1, author = "Distler, Jacques", title = "A Little Group Theory", howpublished ="weblog entry", month = "November", year = "2007", url = "http://golem.ph.utexas.edu/~distler/blog/archives/001505.html", note = "See also \cite{Distler:Lisi2}." }
@Misc{Distler:Lisi2, author = "Distler, Jacques", title = "A Little More Group Theory", howpublished ="weblog entry", month = "December", year = "2007", url = "http://golem.ph.utexas.edu/~distler/blog/archives/001532.html", note = "Followup to \cite{Distler:Lisi1}." }
Of course, no one has the slightest interest in citing those two particular posts, but you get the idea …
Enjoy version 2.1.
Update (4/7/2008): DOI Support
Niklas Beisert suggested adding DOI support. So, in version 2.2, a bibtex entry, like
@Article{Distler:2006if, author = "Distler, Jacques and Grinstein, Benjamin and Porto, Rafael A. and Rothstein, Ira Z.", title = "Falsifying Models of New Physics via {WW} Scattering", journal = "Phys. Rev. Lett.", volume = "98", year = "2007", pages = "041601", eprint = "hep-ph/0604255", doi = "10.1103/PhysRevLett.98.041601", SLACcitation = "%%CITATION = HEP-PH/0604255;%%" }
turns the journal-reference into a clickable link to the online-journal version of the paper. SPIRES outputs a doi
field for all published papers for which a DOI identifier is available.
Re: April Fool
Hi,
It is hypercool that I can hyperlink to papers in the arXivs using utphys. Can one do the same for SLAC as well, say this SPIRES entry?
The two option seem to be:
1) Not use utphys.bst, and use the CV format produced by SPIRES, or
2)Put in hyperlinks by hand in url field for each bibtex entry.
There must be an easier way…