TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This is a question about how to use bibtex to cite a preprint from Arxiv. Suppose I have:

   AUTHOR  = {First, Author AND Second, Author},
   TITLE   = {The title of this article},
   YEAR    = {2035},
   JOURNAL = What exactly do I put here?,
   VOLUME  = {},
   NUMBER  = {},
   PAGES   = {}

Where exactly do I put the code of the article in arxiv? Suppose the code is arXiv:1234:5678v1

I am using

\bibliographystyle{alpha}  % (uses file "plain.bst")amsplain
\bibliography{myrefs}    % expects file "myrefs.bib"

*EDIT:*Actually there is a BibTeX entry that is @unpublished which is the one I am using. I didn't noticed and I put @article in the example above. It has fields: author, title, note, month, year and key. So the question is more about whether to put the arxiv code of the article in note or in key.

share|improve this question
This seems rather off-topic to me: it's about AMS house style more than (La)TeX or BibTeX – Joseph Wright Oct 6 '10 at 20:42
A good start might be the following script I've just created: automatically create BibTeX entry from arXiv (and hacky php source) – Martin Thoma Dec 26 '13 at 12:37
up vote 38 down vote accepted

It's also worth mentioning biblatex, which has proper support for eprints with all styles. For arXiv, specifically, you can use

archivePrefix = "arXiv",
       eprint = {0902.0885},
 primaryClass = "quant-ph",

which I took directly from the NASA ADS database. The journal field you left empty, except of course if has actually been published elsewhere. As for the template, I wouldn't worry about it; I just use @article and the formatting is good. You can also use @unpublished or @online, with similar results.

share|improve this answer
I disagree that the formatting as @article is good. You get something of the form ... In: (2015) if you omit the journal field, which looks strange... – Jonathan Nov 19 '15 at 16:28
Yeah the missing "in" is really odd. – Andreas Mueller Apr 26 at 15:57

General arXiv citations are explained in the arXiv help. The correct citation format depends on whether it is an "old style" arXiv reference (eg arXiv:hep-ph/9609357) or "new style" (eg arXiv:0807.2882 [cond-mat.mes-hall]).

The REVTeX4.1 bibstyles also support arXiv references.

AMS styles, I can't help....

share|improve this answer
+1 for eprint, that's as much of a standard as I've ever seen. If the AMS styles don't use it, then that's an AMS-specific issue. You can modify the Bibtex style to include the eprint field if it's important to you. – David Z Oct 6 '10 at 22:36
Neither eprint nor url are standard fields in the current BibTeX. You can't hardly fault a style for not implementing a non-standard field. (Though I thought I heard a rumour here that the next version of BibTeX will have proper support of electronic documents.) – Willie Wong Oct 6 '10 at 23:02
Just a comment on David Zaskavsky's comment: There is a lovely little script called urlbst that adds support for the eprint and url fields (and various other kinds of web link e.g. DOI's and PubMed) to an existing bst file. It works fine on the AMS styles. – David Loeffler Oct 7 '10 at 11:14

I usually leave journal blank, or put in the word "pre-print". The arXiv information I usually put in note, since the AMS styles ignore the eprint field. When I get less lazy I sometimes use, instead of the @article document type, @misc.

share|improve this answer
This more like what I was asking. Now, it would be good to know if this is standard and even more if AMS has some guideline in this case. – Mlazhinka Shung Gronzalez LeWy Oct 6 '10 at 21:17
Actually there is a bibtex entry that is @unpublished which is the one I am using. I didn't noticed and I put @article in the example above. It has fields: author, title, note, month, year and key. So the question is more about whether to put the arxiv code of the article in note or in key. – Mlazhinka Shung Gronzalez LeWy Oct 6 '10 at 21:27
Nevermind. Key is a field that is ignored and not printed, so it can not be there. Then I think it should be in NOTE as you said. – Mlazhinka Shung Gronzalez LeWy Oct 6 '10 at 21:39
What exactly should be in the note field? The full URL or just the arXiv id? – Erel Segal-Halevi Feb 16 '15 at 17:40
@ErelSegalHalevi: there is no "should", since I don't think it is standardized. But I generally just put the arXiv id such as arXiv:gr-qc/XXXXXXX or arXiv:XXXX.XXXX Remember, absent an actual style guide from a journal, the main goal of the bibliography is to make the references findable by readers. The arXiv id (properly formatted) is sufficient to uniquely identify a pre-print, so it is generally good enough. – Willie Wong Feb 17 '15 at 8:19

DBLP, which generally produces good BibTeX files, formats an archive entry as:

  author    = {Ruchen Duan Yingbin Liang},
  title     = {Bounds and Capacity Theorems for Cognitive Interference
               Channels with State},
  journal   = {CoRR},
  volume    = {abs/1207.0016},
  year      = {2012},
  ee        = {http://arxiv.org/abs/1207.0016},
  bibsource = {DBLP, http://dblp.uni-trier.de}


share|improve this answer
This format does not follow the guideline given on arxiv.org, and I won't understand the reference personally if the URL is not shown. – xuhdev Mar 9 at 4:32

For compiling my list of publications I use the bibtex entry that Spires provides for each record. You can search the author and date to find the Spires entry.

share|improve this answer

This is what I do

  1. Go to Arxiv site: e.g. https://arxiv.org/abs/q-alg/9503002
  2. Click NASA ADS link under References and Citations e.g. http://adsabs.harvard.edu/cgi-bin/bib_query?arXiv:q-alg/9503002
  3. Click Bibtex entry for this abstract e.g. http://adsabs.harvard.edu/cgi-bin/nph-bib_query?bibcode=1995q.alg.....3002B&data_type=BIBTEX&db_key=PRE&nocookieset=1
  4. Copy/paste into Bibtex file.
  5. Delete everything before @ symbol.
share|improve this answer

protected by Christian Hupfer Mar 24 '15 at 15:44

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

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