I'm using the latest version of RevTex (4.1r) and bibentry (part of
the natbib package, 8.31b).
The attached minimal example yields this error:
Runaway argument?
{\bibinfo {author} {\bibfnamefont {f.~n.}\ \bibnamefont {Last~name}}\
\ETC.
! File ended while scanning use of \BR@c@bibitem.
<inserted text>
\par
l.8 \nobibliography*
It works for the bib style "plainnat". I could trace back the issue to
this somewhat weird definition in bibentry.sty:
\def\BR@c@bibitem#1 #2 \par{{\let\protect\@unexpandable@protect
\expandafter \gdef\csname BR@r@#1\@extra@b@citeb\endcsname
{\BR@nodot#2\relax.\relax\relax}}}
This command expects bibitems to be separated by a new paragraph. But
the new bib style "apsrev4-1" uses \BibitemOpen and \BibitemShut
{NoStop} to delimit the items. Is there a way to adjust the faulty
command to this new scheme?
Any help is appreciated.
Regards,
Erwin
=== file minimal.tex ===
\documentclass{revtex4-1}[2010/07/25]
\usepackage{bibentry}[2007/10/30 1.5 (PWD)]
\begin{document}
% this fails
\nobibliography*
% this works
\makeatletter\BR@c@bibitem{KEY} Text \par\makeatother
Bibentry: \bibentry{KEY}
Ref. \onlinecite{KEY}
\textcite{KEY}
% \bibliographystyle{plainnat}
\bibliography{minimal}
\end{document}
=== file minimal.bib ===
@ARTICLE{KEY,
author = {Last name, first name and second author, a},
title = {The article title},
journal = {J. TeXnology},
year = {2011},
volume = {1},
pages = {1-3},
doi = {10.1213/jtex.1.1},
eprint = {http://jtex.org/doi/10.1213/jtex.1.1/pdf},
url = {http://jtex.org/doi/10.1213/jtex.1.1}
}
====