I'd like to include some full citations in the text of my document, using BibTeX. The bibentry
package provides this. However, I would like not to have these items also appear in the bibliography.
Here is a minimal not-working example:
\begin{filecontents}{mytestbib.bib}
@book{test1,
author = "A. Scientist",
title = "Science in Action",
year = "1967"
}
@book{test2,
author = "T. Testing",
title = "This is a test",
year = "1234"
}
\end{filecontents}
\documentclass{article}
\usepackage{filecontents}
\usepackage{natbib}
\usepackage{bibentry}
\nobibliography*
\begin{document}
A full in-text citation: \bibentry{test1}.
A normal citation: \cite{test2}.
\bibliographystyle{plainnat}
\bibliography{mytestbib}
\end{document}
This gives me
What I want is for the body of the document to look as it does, but for the bibliography section to contain only "T. Testing" and not "A. Scientist." How can I achieve this?
Best Answer
You can use
biblatex
categories. By manually adding a category like follows you can suppress some entries in the bibliography:Try this (note I used biber instead of bibtex as the engine):
I obtain: