I am currently writing my PhD thesis using the {report} class on Texshop (LaTex) for Mac. I have used BibTex to compile my reference list, in which I have created a library called 'database' which has in it all of the texts that I have read.
Using the command:
\bibliography{database}
in the preamble, I can generate a bibliography of the references that I have cited within the text.
OR
using the command:
\nocite{database}
in the preamble, I can generate a bibliography of all of the references I have compiled in my library (including cited references and additional reading).
How do I get two distinct sections, one for cited references and one for additional reading?
Best Answer
I agree that there are better ways to go. However, here is a rather convoluted way to do it within the constraints given by the OP.
Assuming your document is named
document.tex
, your citations are indatabase.bib
, and that you want all of the references indatabase.bib
that are not explicitly cited to be in Additional Reading:1. Compile your document as is
This results in the
document.aux
file containing\citation{key}
entries for each of the citations. In this case it contains an entry\citation{Acevedo12}
.2. Run
BibTex
This creates the
document.bbl
file which is the formatted references section. The\bibliography
command is akin to\input{document.bbl}
and will be used as such below.3. Rename
document.bbl
tocited.bbl
This will save the formatted bibliography for the cited references.
4. Add
\nocite{*}
and recompile your documentThis results in the
document.aux
file containing the\citation{*}
command, which will instructBibTex
to include all of the references in the library.5. Run
BibTex
This creates a new
document.bbl
file containing all of the references in the library formatted for the references section.6. Create a new
.tex
document (assumed to be calledaddreading.tex
) with the following and compileThis compares the citation keys in the
document.bbl
file to those in thecited.bbl
file, adding\citation{key}
to theaddreading.aux
file only for citation keys not in thecited.bbl
(i.e., not cited in the original document).7. Run
BibTex
on the addreading file.This results in
addreading.bbl
, which is the formatted references section for the references not cited in the original document.8. Finally, modify the original document to reference the two .bbl files
Edit:
Redefining
the bibliography
environment to account for maximum number of references in either of the references sections allows for the enumeration to continue and the alignment to be correct after a couple runs.