How to cite all elements in a bibliography
by using nocite in a smart way.
Say one one has a few citations and a large no of bib entries are not directly used. But you still want to cite them. So what do you do?
Enter \nocite{}
But this will force you to copy the keys of every bibentry.
I try to be lazy if possible in such matters, so I tried to find how I could
avoid the repetitive headache.
Turns,out \nocite{*}
works perfectly for this.
I forget now where I read it, though.
\documentclass{article}
\usepackage[utf8]{inputenc}
\title{cite-all-in-bib-without-nocite-for-each-one}
\author{Tejas Shetty}
\date{January 2022}
\begin{document}
\maketitle
\section{Introduction}
\cite{khaneja2005optimal}
\nocite{*}
\bibliographystyle{apsrev4-1}
\bibliography{tops-ref}
\end{document}