I found some difficulties using the template MasterDoctoralThesis of LaTeX so I'm starting creating a new document. I would like to insert APA style citations here. At first i'm not able to print bibliography with this code. LaTeX says "citation undefined". Anybody can help me to solve the error and add a line to specify also APA style references? Thanks in advance! I'm pretty nervous about that.
\documentclass[12pt]{report}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\graphicspath{ {Figures/} }
\usepackage{biblatex}
\addbibresource{references.bib}
\usepackage{float}
\usepackage{lipsum}
\usepackage{subfig}
\usepackage{adjustbox}
\usepackage{tabularx,booktabs}
\usepackage{mathtools}
\usepackage{array}
\usepackage{dcolumn}
\newcolumntype{P}[1]{>{\centering\arraybackslash}p{#1}}
%\newcolumntype{P}{>{\raggedright\arraybackslash}X}
\setlength\tabcolsep{2pt}
\captionsetup{
justification = centering
}
\usepackage{amsmath}
\usepackage{geometry}
\usepackage{booktabs}
\usepackage{xurl}
\usepackage{hyperref}
\DeclareMathOperator{\Pa}{Pa}
\newcolumntype{d}[1]{D{.}{.}{#1}}
\setlength\tabcolsep{2pt}
%
\title{
{Thesis Title}\\
{\large Institution Name}\\
{\includegraphics{university.jpg}}
}
\author{Author Name}
\date{Day Month Year}
\begin{document}
\chapter*{Abstract}
Blabla
\chapter*{Dedication}
Dedicated to my family and to my soulmate Davide.
\chapter*{Declaration}
\begin{itemize}
\item This work was done wholly or mainly while in candidature for a research degree at this University.
\item Where any part of this thesis has previously been submitted for a degree or any other qualification at this University or any other institution, this has been clearly stated.
\item Where I have consulted the published work of others, this is always clearly attributed.
\item Where I have quoted from the work of others, the source is always given. With the exception of such quotations, this thesis is entirely my own work.
\item I have acknowledged all main sources of help.
\item Where the thesis is based on work done by myself jointly with others, I have made clear exactly what was done by others and what I have contributed myself.\\
\end{itemize}
%\chapter*{Acknowledgements}
%I want to thank...
\tableofcontents
i'm trying to cite here but it doesn't works for me \cite{hoek1992modified}
\printbibliography
\end{document}
This is an example of my .bib file (called references.bib).
@inproceedings{hoek1992modified,
title={A modified Hoek--Brown failure criterion for jointed rock masses},
author={Hoek, E and Wood, D and Shah, S},
booktitle={Rock Characterization: ISRM Symposium, Eurock'92, Chester, UK, 14--17 September 1992},
pages={209--214},
year={1992},
organization={Thomas Telford Publishing}



pdflatex->biber->pdflatex (twice)? – Bernard Aug 30 '19 at 09:19biberorbibtex) can compile to produce another auxiliary file that latex will use for the final layout of the bibliography. B.t.w., what is your latex editor? – Bernard Aug 30 '19 at 09:28biber(Optionsmenu-> Configure TeX Studio -> Production). – Bernard Aug 30 '19 at 09:53mwe.texis. Now typepdflatex mweand press enter. Then typebiber mweand press enter. Nowpdflatex mwetwo times. result? If there are problems please open filemwe.logand copy-paste the first error message to your question ... – Mensch Aug 30 '19 at 10:25pdflatex mwe,biber mweand twicepdflatex mwe? Please follow the hints we gave you, only then we can together solve your issue ... – Mensch Aug 30 '19 at 10:47biblatexand Biber versions are out of sync. You need to update your TeX distribution. Run and Update with the MikTeX Console once in Admin and once in User mode. See https://tex.stackexchange.com/q/55437/35864 for more guidance with pictures. – moewe Aug 30 '19 at 13:29mwe.logandmwe.blgfor error messages. If you get some copy and paste them to your new question too! – Mensch Aug 30 '19 at 14:04