LyXFinding Unused Citations - How?

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
BenBBB
Posts: 8
Joined: Mon Jan 17, 2011 9:20 pm

Finding Unused Citations - How?

Post by BenBBB »

Dear Friends,

could you help me with the following?

I need to eliminate unused citations from my references.
But how do I identify those that are indeed unused over those
that are not?



Is there any facile way to do this?
The manual method is quite inconvenient due to the long list
of refs. The options under 'navigate' display the used citations,
but otherwise help me no further. Is there maybe an inbuilt function
in Lyx I have so far overseen or a nice add-on that does the job?


Vice versa - is there a way I could find citation marks within in my
text that no longer possess there respective entry in the ref list?

Thank you very much in advance!

Best wishes,
Ben

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

Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Finding Unused Citations - How?

Post by Johannes_B »

The LaTeX default is to only use cited entries in the bibliography. You can print them all by adding \nocite{*} in your document. I guess that this line in somewhere in your LyX-file.


New Features in LyX 1.6: Bernhard Reiter implemented support for both, \nocite{<key>} (in the citation dialog) for adding specific entries to the bibliography without citing, and \nocite{*} (in the bibtex inset dialog) for citing all entries of specific bibtex databases.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
BenBBB
Posts: 8
Joined: Mon Jan 17, 2011 9:20 pm

Re: Finding Unused Citations - How?

Post by BenBBB »

Dear Johannes,

have many thanks for your fast reply!

I have neither manually put the \nocite{*} into my document,
nor does it appear anywhere within the source code of my document.

Could it be that this command is somewhere hidden in the document type
file? I use book{memoir}
(I unfortunately can only use this document type.)

Thanks!

-Ben
BenBBB
Posts: 8
Joined: Mon Jan 17, 2011 9:20 pm

Finding Unused Citations - How?

Post by BenBBB »

I searched the source files for the memoir class, yet did not
find any nocite command. Also I switched the class / document type
yet still all references appeared in the compiled document disregarding
their actual usage.

Is there any other place where the command might be hiding?

Any additional suggestions?


Thanks!


-Ben
StarValkyrie
Posts: 89
Joined: Fri Jan 24, 2014 12:42 am

Re: Finding Unused Citations - How?

Post by StarValkyrie »

It could be in your .bst file. Have you checked that yet?
Post Reply