I am trying to do APA citation (Name, Year).
However, when I try to compile:
\bibliographystyle{apalike}
I get this error:
! Package biblatex Error: '\bibliographystyle' invalid.See the biblatex package documentation for explanation.Type H for immediate help…. \bibliographystyle{apalike}
Anyone know why?
\documentclass[11pt]{article}
\usepackage[a4paper, margin=1.25in]{geometry}
\usepackage{fancyhdr}
\usepackage{tgschola}% or any other font package you like
\usepackage{setspace}
\edef\restoreparindent{\parindent=\the\parindent\relax}
\usepackage{parskip}
\setlength{\parskip}{1em}
\restoreparindent
\pagestyle{fancy}
\usepackage{titlesec}
\usepackage{graphicx}
\graphicspath{{pictures/}}
\usepackage{subcaption}
\usepackage{caption}
\usepackage{float}
\usepackage{varwidth}
\usepackage[toc,page]{appendix}
\usepackage[backend=bibtex]{biblatex}
\bibliographystyle{apalike}
\bibliography{bib}
\renewcommand{\footrulewidth}{0.5pt}
\renewcommand{\headrulewidth}{0.5pt}
\rhead{Team Frank}
\lhead{MINE 404}
\chead{Project Report}
\begin{document}
\printbibliography
\end{document}
Spend a whole night trying to figure this out with no success.
Best Answer
You are mixing commands from two different bibliography methods. The
\bibliographystyle
command cannot be used withbiblatex
, and is used with a different bibliography package such asnatbib
orapacite
, or with no package at all.biblatex
uses a different method of styling the bibliography, and the style is specified in the options to the\usepackage{biblatex}
command.There are various ways to get an APA conforming bibliography style, both with
biblatex
and without it. The following question shows you two ways:Summarizing, you can either:
Remove the
\bibliographystyle{apalike}
from your document and instead use:If you use this method, you should use
biber
to process the bibliography.or
Remove the
\usepackage{biblatex}
from your document, and instead use:or
If you use this method, you should use
bibtex
to process the bibliography.For more general information see also: