[Tex/LaTex] Bibentry producing no citation

bibentrybibliographies

I can't get the \bibentry command to produce a full citation in the body of the text. The reference in the bibliography at the end works perfectly, but in the body of the text there is no output whatsoever. Here is a minimal example that illustrates the problem.

\documentclass{article}
\usepackage{natbib, bibentry}
\bibliographystyle{agsm}
\begin{document}
   This is supposed to cite in full. Instead I get nothing! \bibentry{Bloggs1950}
\bibliography{fict}
\end{document}

The contents of the fict.bib are

@article{Bloggs1950,
    author = "{Bloggs}, {Joseph K.}",
    journal = "International Journal of Dubious Assertions",
    pages = "337-629",
    title = "{Misusing Scientific Terminology for Fun and Profit}",
    volume = "202",
    year = "1950"
}

How can I fix this problem?
Thanks.

Best Answer

See comments on switching to biblatex and biber - if you want to keep using bibtex, read on.

You're missing a \nobibliography* command - see the documentation and here for details.

But even with the \nobibliography* command there is no output of \bibentry - this seems to be a problem with the agsm style since switching to plain style does fix the problem:

\documentclass{article}
\usepackage{natbib, bibentry}
%\bibliographystyle{agsm}
\bibliographystyle{plain}
\begin{filecontents}{\jobname.bib}
    @article{Bloggs1950,
        author = "{Bloggs}, {Joseph K.}",
        journal = "International Journal of Dubious Assertions",
        pages = "337-629",
        title = "{Misusing Scientific Terminology for Fun and Profit}",
        volume = "202",
        year = "1950"
    }
\end{filecontents}
\begin{document}
    \nobibliography*
    Citation: \cite{Bloggs1950}.
    This is supposed to cite in full. Instead I get nothing! \bibentry{Bloggs1950}
    \bibliography{\jobname}
\end{document}

fixed result

The problem is indeed with the format of the .bbl file created with the agsm style - compare the created .bbl:

\begin{thebibliography}{1}

\bibitem{Bloggs1950}
{Joseph K.} {Bloggs}.
\newblock {Misusing Scientific Terminology for Fun and Profit}.
\newblock {\em International Journal of Dubious Assertions}, 202:337--629,
  1950.

\end{thebibliography}

with the format mentioned in the documentation under '4. Caveats':

\bibitem[<label>]{<key>}
Text of the reference entry.
\bibitem

they obviously don't fit.