Is there any way to have BibTeX or biblatex insert a bibliography without having citations in the body of the document itself? Maybe a way to hide the in-text citations, so that BibTeX still sees them and includes them in the bibliography, but does not print them in the body?
2 Answers
Use \nocite{*} in the body of your document to include all the references in the .bib database. To include only some bibliographical entries, you can use \nocite{key1,key2,...,keyn} to include only the entries corresponding to key1,key2,...,keyn.
- 5Ah, I actually hadn't realized that the exact command \nocite{*} worked -- I took * as a wildcard standing in for the citation name i wanted to include -- I added a \nocite{} for each reference I wanted, worked great!Tara– Tara2011-05-01 23:16:35 +00:00Commented May 1, 2011 at 23:16
- 1@Alan Munn: I've edited my answer to reflect your comment.Gonzalo Medina– Gonzalo Medina2011-05-01 23:28:08 +00:00Commented May 1, 2011 at 23:28
- 1I'm using biblatex package and I' adding author names to author index using this
\DeclareIndexNameFormat{default}{% \usebibmacro{index:name}{\index[cite]}{#1}{#3}{#5}{#7}}. What should I do if I want to add authors to author index with\nocitemacro? I could catch...saldenisov– saldenisov2014-06-09 19:37:06 +00:00Commented Jun 9, 2014 at 19:37 - 1Does
\nocite{*}work usingBibTeX? It doesn't work for me. If not, is there a similar command forBibTeX?C.F.G– C.F.G2022-06-28 07:19:41 +00:00Commented Jun 28, 2022 at 7:19 - I did put \nocite{*} but it doesnt work for me...Vuk Stojiljkovic– Vuk Stojiljkovic2023-06-29 14:09:27 +00:00Commented Jun 29, 2023 at 14:09
Using the apacite package, the following code works for me:
\usepackage{url} % Link bibliography links (avoid long links for clarity) \usepackage{breakurl} % Break URLs over multiple lines \usepackage{hyperref} % Link bibliography links (avoid long links for clarity) \usepackage{natbib} \usepackage{etoolbox} \bibliographystyle{apacite} \begin{document} \bibliography{ref/lib} % References a "lib.bib" file inside of the "ref" folder \bibliographystyle{apacite} \nocite{*} \end{document} - 4Hrmmm, at the core of the answer is the
\nocite{*}which is already discussed in the other answer. Apart from that I can't see the need to loadetoolboxin this particular example. You also have\bibliographystyletwice (which is probably not an error on the LaTeX side, but BibTeX doesn't like that). Plusnatbibandapaciteshould ideally not be used together like this (they can be used together, but then that should be done with\usepackage[natbibapa]{apacite}). ...moewe– moewe2020-09-05 05:06:51 +00:00Commented Sep 5, 2020 at 5:06 - ...
\usepackage{breakurl}is not recommendable with all toolchains (I'd say it's only useful in a minority of cases). Generally it is recommended to loadhyperreflast (subject to a few documented exceptions; I'm not aware thatnatbibis such an exception).moewe– moewe2020-09-05 05:08:35 +00:00Commented Sep 5, 2020 at 5:08 - Thanks for the feedback!Pablo Díaz– Pablo Díaz2020-09-06 00:10:07 +00:00Commented Sep 6, 2020 at 0:10