I provide the detail of tex document with codes that is:
\documentclass[10pt,a4paper]{book}
%\setlength{\columnseprule}{0.4pt}
\usepackage{amssymb,amsfonts}
%\usepackage{mathrsfs}
%\usepackage[centertags]{amsmath}
%\usepackage{biblatex}
\newtheorem{theorem}{Theorem}
\usepackage{epsfig}
\usepackage{graphicx}\graphicspath{{Graphics/}}
\usepackage{amsthm}
\usepackage{mathptmx}
\usepackage[square,sort&compress]{natbib}
\usepackage{pgf,tikz,pgfplots}
\pgfplotsset{compat=1.15}
\usetikzlibrary{arrows}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage{textcomp}
\usepackage{apacite}
\usepackage{fancyhdr}\pagestyle{fancy}
\usepackage{xcolor}
%\usepackage{setspace}
%\usepackage{booktabs}
%\usepackage{hyperref}
\usetikzlibrary{arrows.meta}
\renewcommand{\baselinestretch}{1.5}
\newcommand\aug{\fboxsep=-\fboxrule\!\!\!\fbox{\strut}\!\!\!}
\theoremstyle{definition}
\newtheorem{Thm}{Theorem}[section]
\newtheorem{lem}[Thm]{Lemma}
\newtheorem{pro}[Thm]{Proposition}
\newtheorem{de}[Thm]{Definition}
\newtheorem{re}[Thm]{Remark}
\newtheorem{ex}[Thm]{Example}
\newtheorem{cor}[Thm]{Corollary}
%\numberwithin{equation}{section}
%\definecolor{uuuuuu}{rgb}{0.26666666666666666,0.26666666666666666,0.26666666666666666}
\begin{document}
\frontmatter
%\include{frontmatter/colophon}
%\include{fronmatter/frontpiece}
%\include{frontmatter/dedication}
%\include{frontmatter/preface}
%\twocolumn
\tableofcontents
\mainmatter
\include{mainmater/Chapter-1}
\include{mainmatter/Chapter-2}
\include{mainmatter/Chapter-3}
\include{mainmatter/Chapter-4}
%\include{mainmatter/Chapter-5}
\backmatter
\bibliographystyle{apacite}
\bibliography{backmatter/MyReferences}
\include{Graphics}
\end{document}
My bib file looks like:
@book{chandler2002basics,
title={The basics},
author={Chandler, Daniel},
year={2002},
publisher={Routledge London, UK}
}
@article{sebeok1960style,
title={Style in language.},
author={Sebeok, Thomas A},
year={1960},
publisher={John Wiley}
}
@book{brown1995elements,
title={The elements of language curriculum: A systematic approach to program development.},
author={Brown, James Dean},
year={1995},
publisher={ERIC}
}
But whenever I compile, I just get References title instead of reference below it which I have type in bib file. I do not know how to fix this problem. Also if their is any mistake in my tex document.
natbibas\usepackage[square,sort&compress]{natbib}when you are usingapacite. Remove the\usepackage[square,sort&compress]{natbib}. – moewe Dec 08 '21 at 16:28natbibwithapaciteyou need to loadapacitewith the[natbibapa]option (and don't loadnatbibseparately, as @moewe says). – Alan Munn Dec 08 '21 at 16:29\included files). As always you need to have\cited at least one of the entries in your.bibfile and you need to make sure your.bibfile has the correct name and is in the correct file location. Check the.logand.blgfiles for warnings or errors. – moewe Dec 08 '21 at 16:53.logand.blgfiles to a text-sharing website like https://pastebin.com/ or https://gist.github.com/. Try to run a simplified version of your document first like https://gist.github.com/moewew/df30e83f7e5bfc29f2fa24dad0b8068e – moewe Dec 08 '21 at 16:59bibtexon the file? To get the references to appear you need to runpdflatex,bibtex,pdflatex,pdflatex. – Alan Munn Dec 08 '21 at 17:02.logand.blgfiles. The mini version I posted should work when compiled withpdflatex apcex,bibtex apcex,pdflatex apcex,bibtex apcex. – moewe Dec 08 '21 at 19:51This is BibTeX, Version 0.99d (MiKTeX 20.6.29) The top-level auxiliary file: MyReferences.bib.aux I found no \citation commands---while reading file MyReferences.bib.aux I found no \bibdata command---while reading file MyReferences.bib.aux I found no \bibstyle command---while reading file MyReferences.bib.aux (There were 3 error messages)
– Noor Aslam Dec 09 '21 at 03:13.bibfile. You should run both LaTeX and BibTeX on the base name (file name without extension) of your main.texfile. That's why I wrotepdflatex apcexandbibtex apcexfor the file calledapcex.texin my link above. – moewe Dec 09 '21 at 05:37