I just started to use BibTeX and have found it amazingly convenient. So far I have tried to use the style file h-physrev.bst
from arXiv, and copied the BibTeX information directly from the site of inspire. It works well since it produced the closest reference style that I wanted. However, I still am facing two problems:
- The field
archiveprefix
was not handled correctly, I have to manually add arXiv to the field eprint to have the proper output, eg,arXiv:1001.1001
. - In fact, sometimes I don't want to display the
eprint
field.
Since I knew very little about BibTeX so I was really confused by looking at the content of the the bst file. It seems to take an expert to the modify it in order to achieve what I wanted above.
On the other hand, I understood that RevTeX provides certain BibTeX style files that suit the corresponding journals. So I downloaded the RevTeX package, from it I found several style files and used aipauth4-1.bst
in the place of h-physrev.bst
. However, I get some really strange results.
I tried to use MiKTeX in windows (and also TeXLive in linux, the later compiles well when I used h-physrev.bst
), but it doesn't work as desired, I got some uninterpreted TeX markup in the reference section of the resulting .dvi
/.pdf
file. To sum up my configurations:
- MiKTeX in Windows
- BibTeX style file aipauth4-1.bst
- BibTeX information are directly from the inspire site
- I used the following in my LaTeX file head section:
\documentclass[secnumarabic, graphics,floatfix, nofootinbib,tightenlines,nobibnotes, aps, prl, 12pt]{revtex4}
- I use the following to call invoke the BibTeX style file
\bibliographystyle{h-physrev}
I would like to know how to get the style file aipauth4-1.bst
to work?
Best Answer
For the
aipauth4-1
and related bibliography styles, you should be using the4-1
version of the documentclass, i.e..revtex4-1
instead ofrevtex4
. These new bibliography styles are one of the main features of the4-1
release. See revtex4-1 on ctan.Here is a minimal working pair of documents:
with
bibl.bib
containingCompile via
where you
tex
file ismainfile.tex
.As the first entry has no journal infomation, it will generate a warning, but this is the data collected from the inspire site you mention. It would be better to change this entry to
@misc
instead of@article
in the bibliography file.If you don't want the archive information, the simplest thing is to remove the lines
eprint
,archivePrefix
andprimaryClass
from thebib
file, but you had probably better tell the reader where the paper can be found, e.g. vianote
field if it is not in a journal.