I am trying to use the same .bib file for different versions of my paper, but when I use different versions of the original .tex file the bibliography stops working (it works only with the original).
This below is the code before the beginning of the document:
\documentclass[a4paper,12pt]{article}
\usepackage{natbib}
\usepackage{caption}
\captionsetup{font=footnotesize}
\usepackage{color}
\usepackage{graphicx}
\usepackage[fleqn]{mathtools}
\setlength{\parindent}{0em}
\usepackage{enumitem}
\setlength{\parskip}{0.5em}
\usepackage{subcaption}
\usepackage{float}
\usepackage[utf8]{inputenc}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\cfoot{\thepage}
\lhead{Student ID:10384157}
\usepackage{setspace}
\doublespacing
\usepackage[bottom]{footmisc}
\renewcommand{\arraystretch}{1.5}
\usepackage{adjustbox}
\usepackage{geometry}
\geometry{margin=3cm}
\usepackage{dirtytalk}
\renewenvironment{abstract}
{\small
\begin{center}
\bfseries \abstractname\vspace{-.5em}\vspace{0pt}
\end{center}
\list{}{%
\setlength{\leftmargin}{0mm}% <---------- CHANGE HERE
\setlength{\rightmargin}{\leftmargin}%
}%
\item\relax}
{\endlist}
\title{}
\author{}
and this is how I call the bibliography within the file:
\bibliographystyle{apa}
\bibliography{BiblioC1}
What am I missing? Thanks for your help! Manuel
[?]
marks in your text? Did you remember to runbibtex
for the new document? – Marijn Feb 23 at 14:27\bibstyle{apa : }
should be\bibstyle{apa}
(so without the spaces and:
). But in the more likely scenario that you introduced the typo when copying the error message in your comment and the call in the document is actually correct then BibTeX can't find the fileapa.bst
which contains the bibliography style definition. Actually innatbib
the APA style is calledapalike
, so maybe you entered the wrong name by mistake. Or you actually have a file calledapa.bst
which is located in the folder of your [...] – Marijn Feb 23 at 15:38