[code]\bibliographystyle{econ}
\bibliography{Reference1}[/code]
Reference1 is my master reference file. To have a separate appendix for each chapter, I have used the subappendices option. Appen1 and Appen2 are the appendix files for each chapter. Here is the code for the main file :
[code]\documentclass[12pt,a4paper,english]{report}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage{appendix}
\usepackage{blindtext}
\usepackage{amsmath, epsfig,graphicx,mathrsfs}
\usepackage{float}
\usepackage{ltablex,booktabs}
\usepackage{array}
\usepackage{multirow}
\usepackage{longtable}
\usepackage[tableposition=below]{caption}
\usepackage{caption}
\usepackage{subcaption}
\usepackage{natbib}
\usepackage{url}
\usepackage{chapterbib}
\usepackage[framed, numbered]{matlab-prettifier}
\usepackage[stable]{footmisc}
\usepackage[nottoc]{tocbibind}
\begin{document}
\tableofcontents
\listoffigures
\listoftables
\include{Chapter1}
\begin{subappendices}
\include{Appen1}
\end{subappendices}
\include{Chapter2}
\begin{subappendices}
\include{Appen2}
\end{subappendices}
\end{document}[/code]
Now I am getting the following error :
Can somebody help me with this error? It seems that despite the given error, a PDF file has been produced by the Latex, where Appendix and References, etc. are placed exactly where I wanted.Process started: bibtex.exe "FullThesis"
This is BibTeX, Version 0.99d (MiKTeX 2.9.6630 64-bit)
The top-level auxiliary file: FullThesis.aux
A level-1 auxiliary file: Chapter1.aux
The style file: econ.bst
A level-1 auxiliary file: Appen1.aux
A level-1 auxiliary file: Chapter2.aux
Illegal, another \bibstyle command---line 73 of file Chapter2.aux
: \bibstyle
: {econ}
I'm skipping whatever remains of this command
Illegal, another \bibdata command---line 74 of file Chapter2.aux
: \bibdata
: {Reference1}
I'm skipping whatever remains of this command
A level-1 auxiliary file: Appen2.aux
Database file #1: Reference1.bib
Warning--there is no volume, number, and pages in lyden2001empirical
(There were 2 error messages)
Process exited with error(s)
Process started: pdflatex.exe -synctex=1 -interaction=nonstopmode "FullThesis".tex
Process exited normally
NOTE: If I run each chapter separately as an article using the same bib style and references, I never get any error. It runs perfectly.