I would like to modify the bibliography style JHEP.bst to solve the following issue:
When a journal reference is included the arXiv reference appears in parentheses […], while there are no parentheses if there is no journal reference. How do I have to modify the .bst file if I want parentheses in any case?
MWEB (copy JHEP.bst in working directory, run LaTeX+BibTex+LaTeX+LaTeX):
\documentclass{article}
\usepackage[numbers]{natbib}
\usepackage{filecontents}
\begin{filecontents}{references.bib}
@article{a,
author = "Author, A.",
title = "{Title}",
journal = "Journal",
volume = "1",
pages = "1",
year = "2009",
eprint = "0904.0464",
}
@article{b,
author = "Author, B.",
title = "{Title}",
eprint = "0904.0464",
}
\end{filecontents}
\begin{document}
Reference \cite{a,b}
\bibliographystyle{JHEP}
\bibliography{references}
\end{document}
Best Answer
You can make a copy of JHEP.bst in your working directory, rename it to for example
JHEPmod.bst
and change in the article function the lineto
In your document you can use the renamed style with
\bibliographystyle{JHEPmod}
.