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

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

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