I've always used BibTeX, but after reading a lot online about how biblatex is much better, I decided to give it a go. I have installed it, and it works, but the references using
[style=authoryear]
print out the DOI. I tried to stop this using [style=authoryear, doi=false]
, but that just brings up the error message:
Code: Select all
/usr/share/texmf/tex/latex/biblatex/biblatex.sty:7225:Package keyval Error: doi undefined \blx@processoptions
doi=false
. Does anyone have any ideas? I'm using Ubuntu and Kile, and the main code is shown below.Many thanks.
Code: Select all
\documentclass[a4paper,11pt]{report}
\usepackage[twoside, top=3cm, bottom=2cm, inner=4cm, outer=2cm]{geometry}
\usepackage{fancyhdr}
% Options for page headers
\pagestyle{fancy}
\fancyhead[LE]{\thepage}
\fancyhead[RE]{\leftmark}
\fancyhead[RO]{\thepage}
\fancyhead[LO]{\rightmark}
\fancyfoot[C]{}
\usepackage[final]{pdfpages}
\usepackage{changepage}
\usepackage{amsmath, graphicx, setspace, float}
\usepackage{fourier}
\usepackage[T1]{fontenc}
\usepackage{etoolbox} % These two sections have been added to remove the \hbox full warnings
\apptocmd{\sloppy}{\hbadness 10000\relax}{}{} % that appear due to references having long URLs in the bibtex file
\numberwithin{equation}{chapter}
\setcounter{tocdepth}{2}
\renewcommand{\bibname}{References}
\renewcommand{\~}{$\sim$}
%For adding blank pages
\newcommand{\blankpage}{
\newpage
\thispagestyle{empty}
\mbox{}
\newpage
}
\usepackage[style=authoryear]{biblatex}
\bibliography{bibliography}
%===============================================================================================================================
\begin{document}
\doublespacing
\setcounter{page}{1} % Begin Roman numbering for front matter
\pagenumbering{roman}
\input{./titlepage.tex}
\blankpage
\input{./abstract.tex}
\blankpage
\input{./acknowledgements.tex}
\blankpage
\tableofcontents
\listoffigures
\blankpage
\setcounter{page}{1} % Begin Arabic numbering for main content
\pagenumbering{arabic}
\input{./ch1.tex}
\input{./ch2.tex}
\input{./ch3.tex}
\input{./ch4.tex}
\input{./ch5.tex}
\input{./ch6.tex}
\input{./ch7.tex}
\input{./ch8.tex}
\addcontentsline{toc}{chapter}{References}
\printbibliography
\end{document}