15

I am using bibentry package to insert references in the text of the document. This is a CV and the references are my own publications. I want to remove the bibliography listed at the end of the document. So far, I have had no success. Here is an example .tex file:

\documentclass{article}

\usepackage{natbib}
\usepackage{bibentry}

\begin{document}

\nobibliography*

Some text here. My publications:
\begin{itemize}
\item \bibentry{pub1} 
\item \bibentry{pub2}
\end{itemize}

Some other text.

\bibliographystyle{plain}
\bibliography{my_pubs}

\end{document}
  • 2
  • 1
    @Closers Why would this question be a duplicate of the linked one? – karlkoeller Nov 8 '13 at 17:11
  • I agree with @karlkoeller; the linked question wants a bibliography at the end whereas this one wants to remove it. – Sean Allred Nov 8 '13 at 17:32
  • @karlkoeller, I added a comment to your solution. Thanks. – passerby51 Nov 11 '13 at 14:10
15

You are misusing the package bibentry.

When you DON'T want the bibliography to be printed you have to use \nobibliography{my_pubs} instead of \nobibliography* \bibliography{my_pubs} in this way:

\documentclass{article}

\usepackage{natbib}
\usepackage{bibentry}

\begin{document}

\bibliographystyle{plain}
\nobibliography{my_pubs}

Some text here. My publications:
\begin{itemize}
\item \bibentry{pub1}
\item \bibentry{pub2}
\end{itemize}

Some other text.

\end{document} 
  • 3
    Thanks. I tried your solution, but I get empty lines for \bibentry references. However, if I use \nobibliography{my_pubs} instead of \bibliography{my_pubs} , in my original .tex file, it works. That is, I need \nobibliography* before using \bibentry{pubs1}, etc. and \nobibliography{my_pubs} at the end of the document. – passerby51 Nov 11 '13 at 14:06
  • @passerby51 This shouldn't happen. The one described in the answer should be the right way to go (according to the bibentry manual) and works for me. – karlkoeller Nov 11 '13 at 16:05
  • 1
    Same behaviour observed on a personal example: empty lines for \bibentry, except if I add \nobibliography{my_pubs}. – anderstood May 28 '15 at 21:51
  • One thing I realized after some trial and error is that the \nobibliogrpahy command must be placed before the \bibentry commands. If not, nothing will "fail" during compilation, but no text will appear in place of \bibentry. Might explain some of the odd behavior mentioned in some of the other comments. – GJStein Oct 31 at 0:42
0

I wanted both the list of references and the \bibentry tag to work. @karlkoeller's answer didn't work for me, but this did:

\documentclass{article}

\usepackage{natbib}
\usepackage{bibentry}

\begin{document}

\bibliographystyle{plain}
\nobibliography*{my_pubs}

Some text here. My publications:
\begin{itemize}
\item \bibentry{pub1}
\item \bibentry{pub2}
\end{itemize}

Some other text.
\bibliography*{my_pubs}
\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.