I'm a doctoral candidate in the humanities who can claim only the osmotic tech savy that comes from living with people who know what they're doing. I'm just beginning my dissertation and hoping to set up BibDesk as a reference management system that integrates with TexShop. So far, I've not been successful in typesetting references or in producing a bibliography. My field requires formatting according to the Chicago Manual of Style, for which I am trying to use Biblatex-Chicago.
I have a file which begins:
\documentclass[letterpaper,12pt]{article}
%\documentclass[letterpaper,11pt]{article}
\usepackage{fullpage}
\usepackage{fancyhdr}
\usepackage{nameref}
\usepackage{marginnote}
\usepackage[top=1in, bottom=1in, inner=0.25in, outer=2.75in, marginparwidth=2.50in]{geometry}
\usepackage{setspace}
\usepackage[
notes,
backend=biber,
hyperref=true
]{biblatex-chicago}
\addbibresource{DissCh2-Bibliography}
\title{Half-Draft}
\author{Dissertation Chapter 2}
\date{6 November, 2013} % Activate to display a given date or no date
\begin{document}
When typeset, I still see only a cite key in the footnote. I see no error when typesetting in LaTeX. When I switch to BibTex (to do the Latex+Bibtex+Latex+Latex typesetting sequence I've seen recommended) I get the following error:
INFO - This is Biber 1.6
INFO - Logfile is '20131021-Hist934-SeminarPaper-SFD-HalfDraft.blg'
INFO - Reading '20131021-Hist934-SeminarPaper-SFD-HalfDraft.bcf'
INFO - Found 1 citekeys in bib section 0
INFO - Processing section 0
INFO - Looking for bibtex format file 'DissCh2-Bibliography' for section 0
ERROR - Cannot find 'DissCh2-Bibliography'!
INFO - ERRORS: 1
I have the .bib file stored in the same folder as the .tex and other files for this document.
I also tried adding a bibliography using:
\bibliographystyle{plain}
\bibliography{DissCh2-Bibliography}
\end{document}
This produced errors when trying to typeset in LaTeX:
Package bib latex Warning: Missing 'hyperref' package.
(biblatex) Setting hyperref=false
(./20131021-Hist934-SeminarPaper-SFD-HalfDraft.aux)
*geometry* drive: auto-detecting
*geometry* detected driver: pdftex
No file 20131021-Hist934-SeminarPaper-SFD-HalfDraft.bbl.
(/usr/local/texlive/2013/texmf-dist/tex/latex/base/omscmr.fd) [1{/usr/local/texlive/2013/texmf-var/fonts/map/pdftex/updmap/pdftex.map}] [2]
LaTeX Warning: Citation 'Logan:1677fk' on page 3 undefined on input line 114.
[3] [4] [5]
! Package biblatex Error: '\bibliographystyle' invalid.
See the biblatex package documentation for explanation.
Type H <return> for immediate help
. . .
l.152 \bibliographystyle{plain}
?
When I type H <return>
as prompted, it tells me Your command was ignored
. Can anyone help?
EDIT***
Thank you to everyone for the insight. It does appear that I was confused about the differences between \bibliography{}
and addbibresource{}
. Adding .bib when using the latter has fixed the problem, and I discovered that the former will work too when I handle it correctly. Thank you all!
Best Answer
As others have remarked,
biber
cannot find your.bib
file because you didn't tell it its full name, namelyDissCh2-Bibliography.bib
. Giving the full name and getting rid of the\bibliographystyle
and\bibliography
commands should get you up and running again.... However, a few remarks are in order given that you are just getting your dissertation up and running (too long for a comment). Trust me, it is better to make the change(s) now rather than part-way through or right before the end.
First, although it may be tempting to typeset an individual thesis chapter in the documentclass
article
, this is not really recommended. Eventually, you will have a whole thesis composed of several chapters (and perhaps appendices and other things), and thearticle
class is completely unsuitable for it. You should switch your workflow ASAP to either thereport
orbook
class, or (my recommendation) one of the more feature-rich classes likememoir
or the KOMA-script classes (scrreprt
orscrbook
), or perhapsclassicthesis
. These feature-rich classes give you a lot of functionality 'out of the box'.Let's pretend, however, that you are using the simple
report
class (nothing wrong with it, after all: it just means you'll need to load more packages to do the tweaking you want/need/desire).So far so good. I'd recommend loading
fontenc
andinputenc
is you plan on usingpdflatex
to compile your documents (orfontspec
if usingxelatex
orlualatex
):Now the real issue,
biblatex
; I strongly recommend you loadbabel
andcsquotes
for quotations and multi-lingual support. For now, we'll keep it simple (only English):Normally, you should load
hyperref
as the last package (or nearly last: see this question. We'll keep it simple again:And that should be enough to get you started. Putting it all together, you could do the following:
Now, the reason this structure makes sense is because it will allow you to break up your chapters and then include them in this master file via
\include{DissCh2}
(say). This will make editing your chapters a little easier since things are more compartmentalized: