Tell me more ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Writing a thesis, contains multiple chapters. Each chapter has a reference section in the end. Each reference is contained in a BibTeX file.

PROBLEM: The reference section of each chapter displays the BibTeX file of the 1st chapter. So the references for the 1st chapter is repeated at the end of each chapter and I never see the references of the other chapters.

MWE of my main file:

\input{preamble.tex}

\begin{document}     

%%%%%The include command blanks, only input command does anything%%%%%
\input{chapter1.tex}
\input{chapter2.tex}

\end{document}

MWE of my preamble:

\documentclass{report}
\usepackage{chapterbib}  
\usepackage{minitoc}
\usepackage[square,numbers,sectionbib]{natbib}
\usepackage[toc,page,titletoc]{appendix}

\renewcommand\bibname{References}   

MWE of each chapter:

    \chapter{Name of Chapter 1}
    \abstract{Abstract 1}
    \section{Section 1 point 1}    
    blah 1
    \section{Section 1 point 2}
   blah 2

    \renewcommand\bibname{{References}}
    \bibliography{chap1bib}  
share|improve this question
1  
Welcome to TeX.sx! – Kurt Feb 27 at 4:11
1  
Is your example as minimal as possible? – cmhughes Feb 27 at 4:33
To cmhughes: you're right it's not, but I don't know which part is causing the problem. I've reduced it to the parts that I think is creating this problem. Hopefully I didn't delete evidence of compatibility problems between packages. – user25971 Feb 27 at 22:43
2  
@user25971 You can as well test the example you provide yourself to see whether it shows the problem and is compilable, or not. Blind shot: add \bibliographystyle{plainnat}. – tohecz Feb 27 at 22:47
1  
I voted to close this question as not constructive. In the current form nobody can help you. – Marco Daniel Mar 3 at 10:33
show 1 more comment

closed as not constructive by Marco Daniel, Andrew Swann, egreg, Claudio Fiandrino, Thorsten Mar 3 at 13:12

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or specific expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, see the FAQ for guidance.

Browse other questions tagged or ask your own question.