I am trying to use \bibentry
(with natbib) to have the full reference appear in the text, based on the example here (and others). However, this is generating an error Paragraph ended before \citeauthoryear was complete.<to be read again>\par
.
I don't have any \citeauthoryear
style citations in my full document. I have tried removing packages and changing memoir to book, thinking it was an incompatibility. I have also tried the suggestion here to evade the error with \renewcommand{\citeauthoryear}{}
.
This document generates the error:
\documentclass[12pt,a4paper]{memoir}
\usepackage{natbib}
\usepackage{bibentry} % allows full ref text in body
\nobibliography* % needed with bibentry
\title{TITLE}
\author{authors}
\date{}
\begin{document}
\maketitle
Want a full reference in the text here: \bibentry{Bunch2003}
and a normal reference \citep{Bunch2003}
\bibliographystyle{chicago}
\bibliography{mytestbib}
\end{document}
This is mytestbib contents:
@Article{Bunch2003,
Title = {{S}oft systems methodology and the ecosystem approach: {A} system study of the {C}ooum {R}iver and environs in {C}hennai, {I}ndia},
Author = {Bunch, M. J.},
Journal = {Environmental Management},
Year = {2003},
Number = {2},
Pages = {182-197},
Volume = {31}
}
Can anyone see what I am doing wrong?
UPDATE It appears the incompatibility is with the chicago
bibstyle. The error disappears with apalike
. Any guidance on how to fix it so I could continue to use chicago
?
Best Answer
It seems to work if you add
before
\nobibliography
.