4

I'm trying to create isolated biblography entries without an actual biblography, but they don't show up in the final compiled document at all.

MWE:

document.tex

\documentclass{article}
\usepackage{bibentry}

\begin{document}
    Some text
    \bibentry{thing}
    \bibliographystyle{alpha}
    \nobibliography{biblography}
    \nocite{*}
\end{document}

biblography.bib

@Article{thing,
author="Someone",
title="Something",
journal="Some Journal",
year="2018",
month="Feb",
day="12",
}

The output is a document that only contains "Some text" but no biblography entry. I want the entry to show up.

2
  • Oh, sorry. I missed that. You need to issue \nobibliography{...} before you use any \bibentry commands – moewe Feb 12 '18 at 11:07
  • Thanks, that fixed it. Documentation was sparse on that. I could delete the question, but it's best to leave it up, so could you make that into an answer? – Hameer Abbasi Feb 12 '18 at 11:10
4

You must issue \nobibliography before any use of \bibentry.

The bibentry documentation says

These [\bibentry] commands may only be issued after \nobibliography, for otherwise the reference texts are not known.

\documentclass{article}
\usepackage{bibentry}

\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@Article{thing,
author="Someone",
title="Something",
journal="Some Journal",
year="2018",
month="Feb",
day="12",
}
\end{filecontents}


\begin{document}
  \nobibliography{\jobname}
  Some text
  \bibentry{thing}
  \bibliographystyle{alpha}
\end{document}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.