LavaTyper wrote:Alright but I'm really doing this for my dissertation (which uses Chapters), and I need to have the references file separate. The other thing is that I don't want all of the references in my actual references file to be included if I don't cite them all...just the ones that I do cite. […]
The filecontents package and its corresponding
filecontents*
environment creates an external file. I only embedded this into the example to make it self-contained. That's a common procedure and won't do any harm here. And the \nocite
{*}
command simply provides a printed bibliography without doing a mass of citations. By the way, your \cite
command here contains all the entries from your provided database file. So there is no difference. And if you want all this in your document which contains chapters, why do you provide an example that is based on the article
class without chapters?LavaTyper wrote:[…] I'd naturally adopt the script that you wrote and just add it into my thesis, but then it doesn't work. I get a chapter title that says "References," a line below it that says "References," and then a blank page. I also end up with a series of error messages in TeXShop. If I keep the \chapter and "book" options, then the first LaTeX typeset and first BiBTeX typeset works, but the second LaTeX typeset fails with error messages.[…]
Your example works fine for me even with the
book
class (except for some warnings about bad boxes). So, at this point I can't help any further without knowing the exact error messages from the log file (*.log). Perhaps you just need to delete the auxiliary files (*.aux, *.bbl,…) and start again.