0

I know that cite and biblatex are incompatible. Also, natbib and bibtex. I have looked at many Q & A regarding having bib per chapters, but those except this were dealing with multiple bibs. I have just one big bib and 5 chapters (separated .tex files).

I would like to generate chapters-wised references instead of one at the end. Here is my structure and I am using Pdflatex + bibtex + pdflatex*2 + viewpdf :

Currently, it generated one reference at the end, but If I want to have that chapter-wised and I put my bib lines at the end of each chapters' tex file, it gives me error. This task should be straightforward, but it is not.

\usepackage[cite]
\usepackage ...         
\makeindex

\include{foreword}
\include{preface}

\tableofcontents


\mainmatter%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\include{part}
\selectlanguage{english}

\include{1-survey/survey}
\input{2-}
\input{3-}
\input{4-}
\input{5-}
\selectlanguage{english}

\backmatter%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\printindex
\bibliographystyle{plain}
\bibliography{bib/survey}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\end{document}

Now, as suggested by biblatex reference, biblatex is able to provide multiple references with this structure:

\documentclass{...}
\usepackage[...]{biblatex}
\addbibresource{bibfile.bib}
\begin{document}
\cite{...}
...
\printbibliography
\end{document}

I have commented my include{cite} and added those instead of \bibliography and I am recieving this error:

Process started

This is BibTeX, Version 0.99d (TeX Live 2015) The top-level auxiliary file: 
book.aux A level-1 auxiliary file: foreword.aux A level-1 auxiliary file:
preface.aux A level-1 auxiliary file: acronym.aux A level-1 auxiliary file: 
part.aux A level-1 auxiliary file: 1-survey/definitions.aux A level-1 
auxiliary file: 4-/definitions.aux A level-1 auxiliary file: 
5-/definitions.aux I found no \citation commands---while reading file book.aux 
I found no \bibdata command---while reading file book.aux I found no \bibstyle 
command---while reading file book.aux (There were 3 error messages)

Is there a way I don't change my compilation flow with this? Apparently pdflatex and latex are having differences on usage.

Amir
  • 351

0 Answers0