GeneralBibTex - showing all even if they are not referenced?

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
ijc
Posts: 25
Joined: Mon Feb 04, 2008 4:26 pm

BibTex - showing all even if they are not referenced?

Post by ijc »

Hi all,

In my bilbiography I want to include all the things in the bib file, including things I haven't referenced in my document.

How do I do this?

Is there specific style file for this? I'm currently using is-unsrt.bst

Thanks
IJC

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

BibTex - showing all even if they are not referenced?

Post by gmedina »

Use the

Code: Select all

\nocite
command.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
ijc
Posts: 25
Joined: Mon Feb 04, 2008 4:26 pm

BibTex - showing all even if they are not referenced?

Post by ijc »

Where should the \nocite command go?

Code: Select all

...
\nocite{*}

\bibliographystyle{is-unsrt}
\bibliography{MainReport}

\end{document}
I tried googling some example but they aren't very clear.

Thanks again gmedina :)
ijc
Posts: 25
Joined: Mon Feb 04, 2008 4:26 pm

BibTex - showing all even if they are not referenced?

Post by ijc »

That code error'ed by the way

[BibTeX] MainReport.aux => MainReport.bbl (bibtex)
[BibTeX] finished with exit status 2
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

BibTex - showing all even if they are not referenced?

Post by gmedina »

You have to place this command anywhere after the \begin{document} line. You use it like this:

Code: Select all

\nocite{key1,key2,...}
where key1,key2 are the keys corresponding to the entries of the .bib file that will appear in the bibliography even if they were not cited in your document.
The special variant

Code: Select all

\nocite{*}
includes all entries of the chosen .bib file in the bibliography.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
ijc
Posts: 25
Joined: Mon Feb 04, 2008 4:26 pm

Re: BibTex - showing all even if they are not referenced?

Post by ijc »

It works if I do

\nocite{key1}

whether it's at the top or the bottom of the document...

But

\nocite{*}

doesn't work at the top or bottom...

I think I will just list the keys.

Thanks gmedina
Post Reply